/* Smart Extensions - Main Stylesheet
   Design: Premium, warm modern with subtle tech edge
   Inspired by: Tom Howley sophistication + Plus Rooms hero
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-primary: #1a1a2e;
    --color-secondary: #2d3a4a;
    --color-accent: #7DA19A;
    --color-accent-dark: #5d8179;
    --color-warm-white: #faf9f7;
    --color-warm-gray: #f5f4f2;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-border: #e5e5e5;
    --color-white: #ffffff;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: var(--container-narrow);
}

section {
    padding: var(--space-xl) 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(125, 161, 154, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-white:hover {
    background-color: var(--color-warm-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 1px 0 var(--color-border);
    transition: all var(--transition-base);
}

.site-header.header-transparent {
    background-color: transparent;
    box-shadow: none;
}

.site-header.header-transparent .logo-text,
.site-header.header-transparent .nav-list a,
.site-header.header-transparent .header-cta {
    color: var(--color-white);
}

.site-header.header-transparent .header-cta {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.site-header.header-scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.header-scrolled .logo-text,
.site-header.header-scrolled .nav-list a {
    color: var(--color-primary);
}

.site-header.header-scrolled .header-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem var(--space-md);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.logo-image {
    height: 40px;
    width: auto;
    transition: opacity var(--transition-base);
}

.logo-image:hover {
    opacity: 0.8;
}

/* Logo switching: show dark logo by default, light logo on transparent header */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-image.logo-light {
    display: none;
}

.logo-image.logo-dark {
    display: block;
}

/* On transparent header (hero), show white logo */
.site-header.header-transparent .logo-image.logo-light {
    display: block;
    filter: brightness(0) invert(1);
}

.site-header.header-transparent .logo-image.logo-dark {
    display: none;
}

/* When scrolled, always show dark logo */
.site-header.header-scrolled .logo-image.logo-light {
    display: none;
}

.site-header.header-scrolled .logo-image.logo-dark {
    display: block;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-list a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    transition: color var(--transition-base);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-cta {
    padding: 0.75rem 1.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ============================================
   HERO SECTION (Full Screen)
   ============================================ */
.hero {
    position: relative;
    height: 80vh;
    min-height: 80vh;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    overflow: hidden;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.45) 50%,
        rgba(26, 26, 46, 0.65) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 2.5rem;
    animation: slideInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: slideInUp 0.8s ease-out 0.7s forwards;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.7s forwards;
    opacity: 0;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 3.5rem;
    animation: slideInUp 0.8s ease-out 0.9s forwards;
    opacity: 0;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.hero-feature:first-child {
    border-radius: 4px 0 0 4px;
}

.hero-feature:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
}

.hero-feature svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--color-accent);
}

@media (max-width: 1024px) {
    .hero-features {
        flex-wrap: wrap;
        gap: 0;
        max-width: 600px;
    }

    .hero-feature {
        flex: 1 1 50%;
        justify-content: center;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0;
    }

    .hero-feature:nth-child(1) {
        border-radius: 4px 0 0 0;
    }

    .hero-feature:nth-child(2) {
        border-radius: 0 4px 0 0;
    }

    .hero-feature:nth-child(3) {
        border-top: none;
        border-radius: 0 0 0 4px;
    }

    .hero-feature:nth-child(4) {
        border-top: none;
        border-radius: 0 0 4px 0;
    }
}

@media (max-width: 480px) {
    .hero-features {
        flex-direction: column;
        max-width: 280px;
    }

    .hero-feature {
        flex: 1 1 100%;
        justify-content: center;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        border-top: none;
        border-radius: 0;
    }

    .hero-feature:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 4px 4px 0 0;
    }

    .hero-feature:last-child {
        border-radius: 0 0 4px 4px;
    }
}

.hero-location {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease-out 1.3s forwards;
    opacity: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--color-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   BENEFITS STRIP
   ============================================ */
.benefits-strip {
    background-color: var(--color-warm-gray);
    padding: var(--space-lg) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.benefit-item {
    text-align: center;
    padding: var(--space-sm);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    color: var(--color-accent);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.benefit-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-lg);
}

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

.section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.section-header.text-left {
    text-align: left;
    margin-left: 0;
    max-width: none;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    background-color: var(--color-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.step-card {
    position: relative;
    padding: var(--space-md);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.technology-section {
    background-color: var(--color-warm-gray);
}

.technology-section.parallax-craftsmanship {
    position: relative;
    background-image: url('/images/parallax-craftsmanship.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.technology-section.parallax-craftsmanship::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    z-index: 1;
}

.technology-section.parallax-craftsmanship > .container {
    position: relative;
    z-index: 2;
}

.technology-section.parallax-craftsmanship .section-header h2 {
    color: var(--color-white);
}

.technology-section.parallax-craftsmanship .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

@supports (-webkit-touch-callout: none) {
    .technology-section.parallax-craftsmanship {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .technology-section.parallax-craftsmanship {
        background-attachment: scroll;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.tech-card {
    background-color: var(--color-white);
    padding: var(--space-md);
    border-radius: 8px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tech-card p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.tech-supplier {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.tech-supplier a {
    color: var(--color-accent);
    font-weight: 500;
}

.tech-supplier a:hover {
    text-decoration: underline;
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-section {
    background-color: var(--color-white);
}

.benefits-strip-inline {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: var(--space-lg);
    background-color: var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
}

.benefit-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 3rem;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-inline:last-child {
    border-right: none;
}

.benefit-inline svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .benefits-strip-inline {
        flex-direction: column;
    }

    .benefit-inline {
        padding: 1.25rem 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .benefit-inline:last-child {
        border-bottom: none;
    }
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    align-items: center;
}

.why-content {
    padding-right: var(--space-lg);
}

.why-list {
    margin-top: var(--space-md);
}

.why-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.why-item-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.why-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.why-item p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    margin: 0;
}

.why-image {
    border-radius: 8px;
    overflow: hidden;
}

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

/* ============================================
   FEATURED PROJECTS
   ============================================ */
.projects-section {
    background-color: var(--color-warm-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.project-location {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.projects-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ============================================
   GOOGLE REVIEWS SECTION
   ============================================ */
.reviews-section {
    background-color: var(--color-white);
    padding: var(--space-xl) 0;
}

.reviews-header {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.google-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-warm-gray);
    padding: 1.25rem 2rem;
    border-radius: 12px;
}

.google-logo {
    flex-shrink: 0;
}

.rating-info .stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.rating-info .star {
    color: #ddd;
    font-size: 1.25rem;
    line-height: 1;
}

.rating-info .star.filled {
    color: #FBBC05;
}

.rating-info .rating-score {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-left: 8px;
}

.rating-info p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.review-card {
    background: var(--color-warm-gray);
    padding: 1.75rem;
    border-radius: 12px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.reviewer-info {
    flex-grow: 1;
}

.reviewer-info h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.review-stars {
    color: #FBBC05;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.google-icon {
    flex-shrink: 0;
}

.review-text {
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.reviews-cta {
    text-align: center;
    margin-top: var(--space-lg);
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .google-rating {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .rating-info .stars {
        justify-content: center;
    }
}

/* ============================================
   QUALITY SECTION
   ============================================ */
.quality-section {
    background-color: var(--color-warm-gray);
    padding: var(--space-xl) 0;
}

.quality-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quality-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.quality-content p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.trust-section h2 {
    color: var(--color-white);
}

.trust-section p {
    color: rgba(255, 255, 255, 0.8);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.trust-item {
    text-align: center;
}

.trust-item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-sm);
    color: var(--color-accent);
}

.trust-item h4 {
    color: var(--color-white);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background-color: var(--color-accent);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

.cta-section .btn {
    margin: 0 0.5rem;
}

/* ============================================
   PARALLAX SECTIONS
   ============================================ */
.parallax-section {
    position: relative;
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(26, 26, 46, 0.4) 50%,
        rgba(26, 26, 46, 0.7) 100%
    );
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 700px;
    padding: 0 var(--space-md);
}

.parallax-content h2 {
    color: var(--color-white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.parallax-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.parallax-craftsmanship {
    background-image: url('/images/parallax-craftsmanship.jpg');
}

.parallax-aspiration {
    background-image: url('/images/parallax-aspiration.jpg');
}

/* Fallback for mobile - disable fixed attachment */
@supports (-webkit-touch-callout: none) {
    .parallax-section {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
        height: 300px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    display: block;
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: block;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 45px;
    width: auto;
    transition: opacity var(--transition-base);
    filter: brightness(0) invert(1);
}

.footer-logo-image:hover {
    opacity: 0.8;
}

.footer-tagline {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.parent-company {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.parent-company a {
    color: var(--color-accent);
}

.parent-company a:hover {
    text-decoration: underline;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}
.cbs-logo-link {
    display: inline-block;
    margin-top: 1rem;
    margin-bottom: -1rem;
    background: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}
.cbs-logo-link:hover {
    opacity: 1;
}
.cbs-logo {
    height: 90px;
    width: auto;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .why-content {
        padding-right: 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        padding: 6rem var(--space-md) var(--space-md);
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list a {
        display: block;
        padding: 1rem 0;
        font-size: 1.25rem;
        color: var(--color-primary) !important;
        border-bottom: 1px solid var(--color-border);
    }

    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-header.header-transparent .hamburger,
    .site-header.header-transparent .hamburger::before,
    .site-header.header-transparent .hamburger::after {
        background-color: var(--color-white);
    }

    .site-header.header-scrolled .hamburger,
    .site-header.header-scrolled .hamburger::before,
    .site-header.header-scrolled .hamburger::after {
        background-color: var(--color-primary);
    }

    .benefits-grid,
    .steps-grid,
    .tech-grid,
    .projects-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

    section {
        padding: var(--space-lg) 0;
    }

    .hero h1 {
        margin-bottom: 2rem;
    }

    .hero-features {
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
    }

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .hero h1 {
        margin-bottom: 1.25rem;
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-features {
        margin-top: 1.5rem;
    }

    .hero-feature {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .hero-feature svg {
        width: 18px;
        height: 18px;
    }

    .hero-location {
        position: relative;
        bottom: auto;
        margin-top: 1.5rem;
        transform: none;
        left: auto;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .hero-background img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Mobile landscape orientation */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero-features {
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .hero-feature {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .hero-feature svg {
        width: 16px;
        height: 16px;
    }

    .hero-location {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Base state - hidden before animation */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fade up animation */
.animate-fade-up {
    transform: translateY(30px);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in animation */
.animate-fade-in {
    transform: scale(0.98);
}

.animate-fade-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Slide from left */
.animate-slide-left {
    transform: translateX(-30px);
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.2s; }
.stagger-4 { transition-delay: 0.3s; }

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(125, 161, 154, 0.3);
}

.back-to-top:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 161, 154, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}
