/* ==========================================================================
   LAYOUT STYLES
   ========================================================================== */

/* Navbar */
.navbar {
    --nav-height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--nav-height);
    height: var(--nav-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.logo-image {
    height: 42px;
    width: auto;
    max-height: 42px;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-heading);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-accent);
    opacity: 1;
    outline: none;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: -4px;
    left: 0;
    background-color: var(--brand-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger div {
    width: 24px;
    height: 2px;
    background-color: var(--text-heading);
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.toggle .bar1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .hamburger.toggle .bar2 {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger.toggle .bar3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    height: 100vh;
    background: var(--bg-focus-green);
    overflow: hidden;
}

.hero-text {
    width: 40%;
    padding-top: clamp(7.5rem, 20vh, 11.25rem);
    padding-bottom: clamp(3rem, 8vh, 4.5rem);
    padding-left: 5vw;
    padding-right: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    min-height: 100vh;
}

.hero-image {
    position: relative;
    z-index: 1;
    background: var(--surface-color);
    box-sizing: border-box;
}

@media (min-width: 1025px) {
    .hero-image {
        flex: 1 0 60%;
        width: 60%;
        height: 100%;
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
        overflow: visible;
        padding-top: clamp(4.25rem, 11vw, 5.25rem);
    }

    .hero-text,
    .hero-image {
        width: 100%;
        max-width: 100%;
        flex: none;
        align-self: stretch;
    }

    .hero-text {
        padding-top: clamp(6.25rem, 15vw, 7.5rem);
        padding-bottom: clamp(2.5rem, 6vw, 3rem);
        padding-left: 5%;
        padding-right: 5%;
        min-height: auto;
        order: 2;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        height: auto;
        min-height: 0;
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .hero-image img {
        width: 100%;
        height: min(48vh, 380px);
        min-height: 220px;
        object-fit: cover;
    }
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-accent);
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    font-family: var(--font-heading);
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
}

/* Footer — shell padding lives in components/footer/footer.css */
.site-footer {
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Responsive Layout */
/* Process Section */
.process-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-step {
    display: grid;
    grid-template-columns: 80px 150px 1fr;
    align-items: center;
    background-color: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-all);
    padding: 1.5rem 2rem;
    gap: 2rem;
}

.timeline-step:hover {
    transform: translateY(-8px);
    border-color: var(--brand-accent);
}

.process-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section */
.gallery-section {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--surface-border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
}

.gallery-item {
    height: 350px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

/* About Section */
.about-section {
    position: relative;
    z-index: 20;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image:hover { transform: scale(1.02); }

/* About Section Grids */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* Sub-page Hero */
.hero-subpage {
    display: flex;
    min-height: 650px;
    height: 90vh;
    background: var(--bg-focus-green);
    color: white;
    position: relative;
    overflow: hidden;
    align-items: stretch;
    padding: 0;
}

.hero-subpage .hero-content {
    flex: 0 0 35%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

.hero-image-split {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    z-index: 1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-image-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-subline {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Generic Section Elements */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.grid-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.process-steps,
.process-flow {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .process-steps,
    .process-flow {
        flex-direction: column;
    }
}

/* Section nav on service / boden subpages */
.navbar:has(.nav-links--sections) {
    padding-left: clamp(1rem, 2.5vw, 3%);
    padding-right: clamp(1rem, 2.5vw, 3%);
    gap: clamp(0.5rem, 1.2vw, 1rem);
}

.navbar:has(.nav-links--sections) .logo-container {
    flex-shrink: 0;
}

.navbar:has(.nav-links--sections) .nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.navbar:has(.nav-links--sections) .hamburger {
    flex-shrink: 0;
}

@media (min-width: 993px) {
    .navbar:has(.nav-links--sections) .hamburger {
        display: none;
    }
}

.nav-links--sections {
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.35rem, 0.9vw, 0.65rem);
    max-width: 100%;
    overflow: hidden;
}

.nav-links--sections a {
    font-size: clamp(0.68rem, 0.95vw, 0.76rem);
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
    letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
    .nav-links--sections {
        display: none;
    }
    .navbar:has(.nav-links--sections).nav-active .nav-links--sections,
    .navbar:has(.nav-links--sections) .nav-links.nav-active.nav-links--sections {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.35rem;
    }
}

/* Mobile sticky contact bar — floating, modern */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    z-index: 998;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    height: auto;
    max-width: 520px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .nav-cta-group {
        display: none !important;
    }

    body.has-mobile-sticky-bar .mobile-only-contact {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
    }

    body.has-mobile-sticky-bar {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

.msb-btn {
    flex: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    min-height: 52px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.14);
}

.msb-btn:active {
    transform: scale(0.98);
}

.msb-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.msb-call {
    background: var(--accent-orange, #c96a2b);
    color: #fff !important;
}

.msb-inquiry {
    background: #fff;
    color: var(--accent-orange, #c96a2b) !important;
    border: 1px solid rgba(201, 106, 43, 0.22);
}

.msb-inquiry:hover {
    background: #fffaf6;
}

.msb-inquiry svg {
    stroke: var(--accent-orange, #c96a2b) !important;
    color: var(--accent-orange, #c96a2b) !important;
}

.msb-call svg {
    stroke: #fff !important;
    color: #fff !important;
}

.msb-wa {
    background: var(--wa-green, #25D366);
    color: #fff !important;
}

.msb-wa:hover {
    background: var(--wa-green-dark, #1fb855);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.28);
}

.msb-wa svg,
.msb-wa .wa-logo {
    color: #fff !important;
    fill: #fff;
}

.form-privacy-notice {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary, #6b7280);
}

.form-privacy-notice a {
    color: var(--brand-accent, #C96A2B);
    text-decoration: underline;
}

.contact-modern-card .form-privacy-notice,
.modal-content .form-privacy-notice {
    margin-top: 0.65rem;
}

.conversion-zone .form-privacy-notice {
    color: var(--text-secondary, #6b7280);
}

.conversion-zone .form-privacy-notice a {
    color: var(--accent-orange, #c96a2b);
}
