/* PT Sinar Jaya Reklame - Reusable Components */

/* Reset & Global Defaults */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-glass);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-logo img {
    display: block;
    width: 172px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

.company-name {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    color: var(--text-primary);
    line-height: .92;
    letter-spacing: -.04em;
}

.company-name b {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.company-name small {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.logo-badge {
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: #000;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: var(--glow-gold);
}

.logo-text {
    color: #000000 !important;
}

.logo-text span {
    color: #000000 !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-services {
    position: relative;
}

.service-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    left: -1rem;
    width: 180px;
    padding: .65rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.nav-services:hover .service-menu,
.nav-services:focus-within .service-menu {
    display: grid;
    gap: .15rem;
}

.service-menu a {
    padding: .55rem .7rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
}

.service-menu a:hover {
    color: var(--accent-gold);
    background: var(--bg-surface-elevated);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    border-radius: var(--radius-full);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Mobile Toggle Hamburger */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #0b0f19;
    box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.08);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.05rem;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Badges & Pills */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
}

.pill-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan-glow);
}

.pill-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Section Header Component */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0.75rem 0 1rem 0;
    letter-spacing: -0.02em;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-gold), #fef3c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Calculator Widget UI */
.calculator-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.calc-control-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.material-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.material-card {
    background: var(--bg-surface-elevated);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.material-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.material-card.selected {
    border-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.12);
    box-shadow: var(--glow-gold);
}

.material-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.material-rate {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.slider-input {
    width: 100%;
    accent-color: var(--accent-gold);
    cursor: pointer;
}

.number-input,
.select-input,
.text-input {
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.number-input:focus,
.select-input:focus,
.text-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.calc-summary-panel {
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-display {
    text-align: center;
    padding: 1.5rem 0;
}

.price-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.2;
    margin: 0.5rem 0;
    text-shadow: var(--glow-gold);
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Portfolio Filter & Lightbox UI */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gold);
    color: #090d16;
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.portfolio-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
}

.portfolio-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #1e293b;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 13, 22, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0.9;
}

.portfolio-info {
    z-index: 2;
}

.portfolio-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.2rem;
}

/* Lightbox Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid var(--border-glass);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 2rem;
}

/* Footer Component */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 4.5rem 0 2rem 0;
    color: #000000;
}


.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand .nav-logo,
.footer-brand .logo-text,
.footer-brand .logo-text span {
    color: #000000 !important;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;

}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: 1280px;
    margin: 3.5rem auto 0 auto;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .calculator-box {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Controlled via JS drawer */
    }

    .nav-links.mobile-open {
        display: flex;

        flex-direction: column;

        /* PENTING: semua rata kiri */
        align-items: flex-start;

        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        max-height: calc(100vh - 70px);

        overflow-y: auto;

        background: var(--bg-surface);

        padding: 1rem 1.5rem 1.5rem;

        border-bottom: 1px solid var(--border-glass);

        box-shadow: var(--shadow-lg);

        /* Supaya tidak ada alignment ke tengah */
        text-align: left;
    }


    /* Semua item menu memenuhi lebar */
    .nav-links.mobile-open li {
        width: 100%;
        text-align: left;
    }


    /* Semua tulisan menu rata kiri */
    .nav-links.mobile-open .nav-link {

        display: block;

        width: 100%;

        padding: 0.85rem 0;

        text-align: left;

        color: var(--text-secondary);
    }


    /* =================================
       LAYANAN
    ================================= */

    .nav-services {
        width: 100%;
        text-align: left;
    }


    /*
       SUBMENU LAYANAN
       DEFAULT = TERSEMBUNYI
    */

    .nav-services .service-menu {

        display: none;

        position: static;

        width: 100%;

        margin-top: 0.3rem;

        padding: 0.5rem 0 0.5rem 1rem;

        box-shadow: none;

        background: var(--bg-surface-elevated);

        border-radius: var(--radius-md);

        text-align: left;
    }


    /*
       BARU TERBUKA
       KETIKA LAYANAN DIKLIK
    */

    .nav-services.submenu-open .service-menu {

        display: grid;

        gap: 0.15rem;

    }


    /* Isi submenu rata kiri */

    .nav-services .service-menu a {

        display: block;

        width: 100%;

        padding: 0.65rem 0.75rem;

        text-align: left;

    }


    /* =================================
       HAMBURGER
    ================================= */

    .mobile-menu-toggle {

        display: block;

    }


    /* Logo mobile tetap seperti sebelumnya */

    .nav-logo img {

        width: 108px;

        height: 42px;

    }


    .company-name b {

        font-size: .9rem;

    }


    .company-name small {

        font-size: .63rem;

    }
    .nav-services:hover .service-menu,
    .nav-services:focus-within .service-menu {
        display: none;
    }

    .nav-services.submenu-open .service-menu {
        display: grid;
    }

}

    .section-title {
        font-size: 1.95rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}