/*
Theme Name: Lumbung Architect
Theme URI: http://lumbungarchitect.test
Author: Lumbung Architect
Description: Custom theme for Lumbung Architect - A Journey in Every Design
Version: 3.0
Text Domain: lumbung-architect
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── Lumbung Architect Brand System ── */
    --primary: #161616;
    --primary-light: #2A2A2A;
    --primary-dark: #000000;
    --primary-rgb: 0, 0, 0;

    --accent: #95B83C;
    --accent-light: #ADCF4A;
    --accent-dark: #7A9A2A;
    --accent-text: #6B8A2A; /* WCAG AA safe green for small text on white (4.5:1) */
    --accent-rgb: 149, 184, 60;

    --gold: #C9A84C;

    --cream: #F8F5F1;
    --cream-dark: #EDE8E2;
    --white: #FFFFFF;
    --dark: #161616;
    --dark-soft: #2A2A2A;

    --gray-900: #2E2E2E;
    --gray-700: #525252;
    --gray-500: #6B6B6B; /* Updated from #8A8A8A for WCAG AA 4.5:1 contrast on white */
    --gray-300: #C8C8C8;
    --gray-200: #E2E2E2;
    --gray-100: #F2F2F2;

    /* ── Typography ── */
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Cabin', -apple-system, sans-serif;

    /* ── Spacing System (8px grid) ── */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 100px;
    --space-3xl: 140px;
    --section-pad: 120px;

    /* ── Motion ── */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.4s;
    --duration-slow: 0.8s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
}

*, *::before, *::after {
    max-width: 100%;
}

section, footer {
    overflow: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all var(--duration) var(--ease-smooth); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children > .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children > .reveal:nth-child(8) { transition-delay: 0.7s; }
.stagger-children > .reveal:nth-child(9) { transition-delay: 0.8s; }
.stagger-children > .reveal:nth-child(10) { transition-delay: 0.9s; }
.stagger-children > .reveal:nth-child(11) { transition-delay: 1.0s; }
.stagger-children > .reveal:nth-child(12) { transition-delay: 1.1s; }

/* ===== SHARED SECTION STYLES ===== */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #6B8A2A; /* WCAG AA 4.5:1 on white — darker than var(--accent) #95B83C which only achieves 2.9:1 */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary);
}

.section-heading-white {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--white);
}

.accent-line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: var(--space-md) 0;
    border-radius: 2px;
}

.section-title-center {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--duration) var(--ease-smooth);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform 0.45s var(--ease-smooth);
}

.btn-primary:hover { border-color: var(--accent); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
}

.btn-outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--duration) var(--ease-smooth);
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ── Logo ── */
.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s var(--ease-smooth);
}

.site-header.scrolled .site-logo img { height: 48px; }

.site-logo .logo-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-logo .logo-text {
    color: var(--dark);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.site-logo .logo-sub {
    color: var(--accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 7px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Nav ── */
.main-nav ul {
    display: flex;
    gap: 0;
    align-items: center;
}

.main-nav a,
.main-nav .menu-item a {
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    position: relative;
    display: block;
    transition: color var(--duration) var(--ease-smooth);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-smooth);
}

.main-nav a:hover { color: var(--dark); }
.main-nav a:hover::after,
.main-nav .current-menu-item a::after,
.main-nav .current_page_item a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--dark); }

.mobile-nav-brand,
.mobile-nav-footer {
    display: none;
}

/* Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* ===== HERO ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--primary);
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s var(--ease-smooth);
    background-size: cover;
    background-position: center;
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(var(--primary-rgb), 0.45) 0%,
        rgba(var(--primary-rgb), 0.1) 40%,
        rgba(0,0,0,0.6) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 14%;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.9s var(--ease-out) 0.2s forwards;
}

.hero-content .hero-line {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 18px auto;
    border-radius: 2px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.4s forwards;
}

.hero-content .project-category {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.55s forwards;
}

.hero-content .btn-see-more {
    display: inline-block;
    padding: 14px 38px;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 28px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.7s forwards;
    transition: all 0.35s var(--ease-smooth);
}

.hero-content .btn-see-more:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero nav dots */
.hero-nav {
    position: absolute;
    bottom: 5%;
    right: 60px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-nav .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.35s var(--ease-smooth);
}

.hero-nav .dot.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.25);
}

.hero-nav .dot:hover { border-color: var(--white); }

/* Hero arrows */
.hero-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
    pointer-events: none;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 22px;
    background: transparent;
    pointer-events: all;
    transition: all 0.35s var(--ease-smooth);
}

.hero-arrow:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== DESCRIPTION / ABOUT ===== */
.description-section {
    padding: var(--section-pad) 0 var(--space-2xl);
}

.desc-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
}

.desc-heading {
    font-family: var(--font-heading);
    font-size: 36px;
    line-height: 1.3;
    color: var(--primary);
}

.desc-service h3 {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6B8A2A; /* WCAG AA — darker green for small text */
    font-weight: 700;
    margin-bottom: var(--space-sm);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.desc-service p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.9;
}

.desc-readmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 35px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-500);
}

.desc-readmore::after {
    content: '\2192';
    transition: transform 0.3s var(--ease-smooth);
}

.desc-readmore:hover {
    color: var(--accent);
}

.desc-readmore:hover::after {
    transform: translateX(4px);
}

/* Philosophy quote */
.philosophy-quote {
    padding: var(--space-xl) 0;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.philosophy-quote p {
    font-size: 16px;
    line-height: 2;
    color: var(--gray-700);
}

.philosophy-quote .tagline {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--accent);
    margin-top: var(--space-md);
    font-style: italic;
    font-weight: 500;
}

/* ===== PHILOSOPHY ===== */
.philosophy-section {
    padding: var(--section-pad) 0;
    background: #fff;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.philosophy-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(var(--accent-rgb), 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.philosophy-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -80px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(var(--accent-rgb), 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.philosophy-diagram {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.philosophy-title {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    color: var(--accent-text); /* WCAG AA for small text */
    font-weight: 700;
}

.philosophy-top-labels {
    display: flex;
    justify-content: space-between;
    max-width: 550px;
    margin: 0 auto var(--space-md);
}

.philosophy-top-labels span {
    font-size: 12px;
    color: var(--gray-500);
    opacity: 1;
    letter-spacing: 0.5px;
}

.philosophy-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 var(--space-lg);
}

.philosophy-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1.5px solid rgba(var(--accent-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--primary);
    margin: 0 -18px;
    transition: all 0.5s var(--ease-smooth);
    background: rgba(var(--accent-rgb), 0.03);
}

.philosophy-circle:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    transform: scale(1.05);
}

.philosophy-labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.philosophy-label {
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: var(--gray-500);
    opacity: 1;
}

.philosophy-label strong {
    color: var(--accent-text); /* WCAG AA for small text */
    opacity: 1;
}

/* ===== NATURE SECTION ===== */
.nature-section {
    padding: var(--section-pad) 0;
    background: #fff;
    color: var(--primary);
    overflow: hidden;
}

.nature-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.nature-gallery img {
    width: 300px;
    height: 210px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.5s var(--ease-smooth);
    border: 1px solid #E2E2E2;
}

.nature-gallery img:hover {
    transform: scale(1.03);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.nature-content { text-align: center; }

.nature-content h2 {
    font-size: 22px;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    font-weight: 400;
    color: var(--primary);
}

.nature-content p {
    font-size: 13px;
    line-height: 2;
    color: var(--gray-500);
    opacity: 1;
    max-width: 470px;
    margin: 0 auto;
}

.circle-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: var(--space-lg);
}

.circle-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #E2E2E2;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s var(--ease-smooth);
}

.circle-nav button:hover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
}

/* ===== SERVICES ===== */
.services-section {
    padding: var(--section-pad) 0;
    background: #fff;
}

.service-card { margin-bottom: var(--space-lg); }

.service-card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 50px rgba(0,0,0,0.04);
    transition: box-shadow var(--duration) var(--ease-smooth);
}

.service-card:hover .service-card-inner {
    box-shadow: 0 8px 60px rgba(0,0,0,0.08);
}

.service-card-inner.reverse { direction: rtl; }
.service-card-inner.reverse > * { direction: ltr; }

.service-image-wrap { overflow: hidden; }

.service-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.7s var(--ease-smooth);
}

.service-card:hover .service-image { transform: scale(1.04); }

.service-info {
    padding: var(--space-xl) 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-info h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.service-info p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-700);
}

/* ===== PORTFOLIO ===== */
.portfolio-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.portfolio-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.portfolio-filters {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    background: var(--gray-100);
    border-radius: 40px;
    padding: 4px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-filters button {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-500);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s var(--ease-smooth);
}

.portfolio-filters button.active,
.portfolio-filters button:hover {
    color: var(--white);
    background: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border-radius: 2px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(var(--primary-rgb), 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portfolio-overlay .overlay-cat {
    color: rgba(255,255,255,0.75);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ===== PRINCIPAL ===== */
.principal-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.principal-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 70px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.principal-photo-wrap { position: relative; }

.principal-photo-wrap::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: -14px;
    bottom: -14px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    z-index: 0;
    transition: all 0.4s var(--ease-smooth);
}

.principal-photo-wrap:hover::before {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
}

.principal-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.principal-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-text); /* WCAG AA for small text */
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.principal-name {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.principal-bio p {
    font-size: 14.5px;
    line-height: 2;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

/* ===== ACHIEVEMENTS ===== */
.achievements-section {
    padding: var(--section-pad) 0;
    background: #fff;
    text-align: center;
}

.awards-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.award-card {
    width: 210px;
    padding: 32px 22px;
    border-radius: 8px;
    transition: transform var(--duration) var(--ease-smooth), box-shadow var(--duration) var(--ease-smooth);
    text-align: center;
}

.award-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.award-card--gold {
    background: linear-gradient(145deg, #C9A84C, #F5D88E, #C9A84C);
    color: #333;
}

.award-card--teal {
    background: var(--primary);
    color: var(--white);
}

.award-card--cream {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--gray-200);
}

.award-year { font-size: 22px; font-weight: 800; }
.award-subtitle { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; margin: 6px 0; opacity: 0.85; }
.award-title { font-size: 12px; font-weight: 800; line-height: 1.4; }
.award-project { font-size: 10px; margin-top: 6px; opacity: 0.7; }
.award-stars { color: var(--gold); margin-top: 10px; letter-spacing: 2px; font-size: 14px; }
.award-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}
.award-badge--green { background: #2E7D32; color: white; }
.award-badge--gold { background: var(--gold); color: white; }

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 1px;
    transition: all 0.3s var(--ease-smooth);
}

.partner-name:hover { color: var(--accent); }

/* ===== TESTIMONIALS ===== */
.testimonial-section {
    padding: var(--section-pad) 0;
    background: var(--white);
    position: relative;
}

/* Subtle accent top border */
.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.testimonial-alt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-alt h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.testimonial-alt .quote {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-700);
}

.testimonial-alt .view-project {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: var(--space-md);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-text); /* WCAG AA for small text */
}

.testimonial-alt .view-project:hover { gap: 16px; }

.testimonial-person { text-align: center; }

.testimonial-person img {
    width: 300px;
    height: 320px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 auto;
}

.testimonial-person h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: var(--space-sm);
    color: var(--primary);
}

.testimonial-person span {
    font-size: 12px;
    color: var(--gray-500);
}

/* ===== CONTACT ===== */
.contact-section {
    padding: var(--section-pad) 0;
    background: #fff;
    border-top: 1px solid #E2E2E2;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form .form-group { margin-bottom: var(--space-md); }

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-bottom: 2px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    background: transparent;
    outline: none;
    transition: border-color var(--duration) var(--ease-smooth);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-500); }
.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    cursor: pointer;
    color: var(--gray-500);
}

.contact-form select option {
    color: var(--dark);
    background: var(--white);
}

.contact-info-panel .map-container {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--gray-200);
}

.contact-info-panel .map-container iframe { width: 100%; height: 100%; border: 0; }

.contact-info-panel h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    margin-top: var(--space-md);
}

.contact-info-panel p,
.contact-info-panel a {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.8;
}

.contact-info-panel a:hover { color: var(--accent); }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: var(--space-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s var(--ease-smooth);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: var(--space-lg);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-sm);
}

.footer-brand .footer-logo img {
    height: 36px;

}

.footer-brand .footer-logo-text {
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    padding: 5px 0;
    transition: all 0.3s var(--ease-smooth);
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.footer-social { display: flex; gap: 16px; }

.footer-social a {
    color: rgba(255,255,255,0.4);
    transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover { color: var(--accent); transform: translateY(-2px); }

/* ===== WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
    z-index: 999;
    transition: all 0.3s var(--ease-spring);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg { width: 26px; height: 26px; fill: var(--white); }

/* ===== PAGE HERO (About, Projects, Contact) ===== */
.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: var(--primary);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    max-width: 100vw;
}

/* Accent corner decoration */
.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at bottom right, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: var(--space-xl);
    color: var(--white);
}

.page-hero .container {
    position: relative;
    z-index: 3;
}

.page-hero-label {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.page-hero-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.6;
    max-width: 480px;
}

/* ===== ABOUT PAGE ===== */
.about-story { padding: var(--section-pad) 0; }

.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-story-text h2 {
    font-family: var(--font-heading);
    font-size: 34px;
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.about-story-text p {
    font-size: 15px;
    line-height: 2;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

/* Stats */
.about-stats {
    padding: 80px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.about-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item { color: var(--white); }

.stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.55;
    font-weight: 600;
}

/* Values */
.about-values {
    padding: var(--section-pad) 0;
    background: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.value-card {
    padding: var(--space-lg) var(--space-md);
    background: var(--white);
    border-radius: 8px;
    transition: all var(--duration) var(--ease-smooth);
    border-left: 4px solid transparent;
    position: relative;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    border-left-color: var(--accent);
}

.value-number {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.value-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    filter: grayscale(30%);
    transition: all var(--duration) var(--ease-smooth);
}

.team-member:hover .team-photo {
    filter: grayscale(0%);
    transform: translateY(-4px);
}

.team-member h4 { font-size: 14px; font-weight: 700; margin-top: var(--space-sm); color: var(--primary); }
.team-member span { font-size: 12px; color: var(--gray-500); }

/* ===== PROJECTS PAGE ===== */
.projects-archive {
    padding: 80px 0 var(--section-pad);
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-smooth);
}

.project-card:hover img { transform: scale(1.06); }

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(var(--primary-rgb), 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-overlay h3 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.project-card-overlay .card-location {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

.project-card-overlay .card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transform: translate(-10px, 10px);
    opacity: 0;
    transition: all 0.4s var(--ease-smooth);
}

.project-card:hover .card-arrow {
    transform: translate(0);
    opacity: 1;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
    padding: 80px 0 var(--section-pad);
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
}

.contact-page-form h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

.contact-page-form > p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.contact-offices { margin-top: var(--space-xl); }

.office-card {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gray-200);
}

.office-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-badge {
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.office-card p {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE: TABLET (1024px) ===== */
@media (max-width: 1024px) {
    .container { padding: 0 40px; }
    .header-inner { padding: 0 40px; }

    /* Reduce section padding */
    section[style*="padding:120px"] { padding-top: 80px !important; padding-bottom: 80px !important; }
    section[style*="padding:100px"] { padding-top: 70px !important; padding-bottom: 70px !important; }

    /* All 2-col inline grids → stack */
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns:1.3fr 1fr"],
    div[style*="grid-template-columns: 1.3fr 1fr"],
    div[style*="grid-template-columns:1.2fr 1fr"],
    div[style*="grid-template-columns: 1.2fr 1fr"],
    div[style*="grid-template-columns:1.4fr 1fr"],
    div[style*="grid-template-columns: 1.4fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* 4-col → 2-col */
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4,1fr)"],
    div[style*="grid-template-columns:repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 5-col → 3-col */
    div[style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* 3-col stays 2-col */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Gap reductions */
    div[style*="gap:80px"] { gap: 40px !important; }
    div[style*="gap: 80px"] { gap: 40px !important; }
    div[style*="gap:100px"] { gap: 50px !important; }
    div[style*="gap: 100px"] { gap: 50px !important; }
    div[style*="gap:60px"] { gap: 30px !important; }

    /* Image heights */
    img[style*="height:500px"] { height: 350px !important; }
    img[style*="height:420px"] { height: 300px !important; }
    img[style*="height: 500px"] { height: 350px !important; }

    /* Font sizes */
    h1[style*="font-size:48px"] { font-size: 36px !important; }
    h2[style*="font-size:34px"] { font-size: 28px !important; }
    h2[style*="font-size:36px"] { font-size: 30px !important; }
    h2[style*="font-size:38px"] { font-size: 30px !important; }

    /* CSS-class grids */
    .desc-grid { grid-template-columns: 1fr; gap: 30px; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-inner { grid-template-columns: 1fr; }
    .service-card-inner.reverse { direction: ltr; }
    .service-image { height: 350px; }
    .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-page-grid { grid-template-columns: 1fr; gap: 60px; }

    /* Footer inline grid */
    .site-footer div[style*="grid-template-columns:1.5fr"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Stats bar flex wrap */
    div[style*="display:flex"][style*="gap:60px"] {
        gap: 30px !important;
    }

    /* Awards flex */
    div[style*="display:flex"][style*="gap:24px"][style*="flex-wrap:wrap"] > div[style*="width:210px"] {
        width: 180px !important;
    }

    /* Principal */
    .principal-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .principal-photo-wrap { max-width: 280px; margin: 0 auto; }
}

/* ===== RESPONSIVE: MOBILE (768px) ===== */
@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 0 24px; }

    section[style*="padding:120px"] { padding-top: 60px !important; padding-bottom: 60px !important; }
    section[style*="padding:100px"] { padding-top: 50px !important; padding-bottom: 50px !important; }
    section[style*="padding:80px"] { padding-top: 50px !important; padding-bottom: 50px !important; }

    /* Mobile menu */
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        background: var(--primary);
        background-image:
            radial-gradient(circle at 20% 30%, rgba(149,184,60,0.06) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(149,184,60,0.04) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255,255,255,0.01) 0%, transparent 70%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.45s var(--ease-smooth);
        z-index: 1000;
        overflow: visible !important;
    }

    .main-nav::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        border: 1px solid rgba(149,184,60,0.08);
        border-radius: 50%;
        pointer-events: none;
    }

    .main-nav::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 250px;
        height: 250px;
        border: 1px solid rgba(149,184,60,0.06);
        border-radius: 50%;
        pointer-events: none;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav ul {
        position: relative;
        z-index: 2;
    }

    .main-nav li {
        text-align: center;
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .main-nav.open li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav.open li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.open li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.open li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.open li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.open li:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.open li:nth-child(6) { transition-delay: 0.35s; }
    .main-nav.open li:nth-child(7) { transition-delay: 0.4s; }

    .main-nav a {
        color: rgba(255,255,255,0.7) !important;
        font-size: 16px !important;
        letter-spacing: 5px !important;
        padding: 14px 20px !important;
        display: block;
        transition: color 0.3s ease, letter-spacing 0.3s ease !important;
    }

    .main-nav a:hover {
        color: #95B83C !important;
        letter-spacing: 7px !important;
    }

    .main-nav .current-menu-item a,
    .main-nav .current_page_item a {
        color: #95B83C !important;
    }

    .mobile-nav-brand {
        display: block;
        position: absolute;
        top: 50px;
        text-align: center;
    }

    .mobile-nav-brand img {
        height: 40px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 auto;
    }

    .mobile-nav-footer {
        display: block;
        position: absolute;
        bottom: 40px;
        text-align: center;
    }

    .main-nav ul { flex-direction: column; gap: 20px; }
    .main-nav a { font-size: 15px; letter-spacing: 4px; }
    .main-nav a::after { display: none; }

    .site-logo img { height: 32px !important; width: auto !important; max-width: none !important; }
    .site-logo .logo-text { font-size: 14px !important; letter-spacing: 3px !important; }
    .site-logo .logo-sub { font-size: 7px !important; letter-spacing: 4px !important; }

    /* All multi-col → single col */
    div[style*="grid-template-columns:repeat(3,1fr)"],
    div[style*="grid-template-columns: repeat(3,1fr)"],
    div[style*="grid-template-columns:repeat(2,1fr)"],
    div[style*="grid-template-columns: repeat(2,1fr)"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Keep 2-col for small items */
    div[style*="grid-template-columns:repeat(4,1fr)"],
    div[style*="grid-template-columns: repeat(4,1fr)"],
    div[style*="grid-template-columns:repeat(5,1fr)"],
    div[style*="grid-template-columns: repeat(5,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Reduce large gaps */
    div[style*="gap:80px"] { gap: 40px !important; }
    div[style*="gap:60px"] { gap: 30px !important; }

    /* Reduce section padding */
    section[style*="padding:120px"] { padding: 60px 0 !important; }
    section[style*="padding:100px"] { padding: 50px 0 !important; }

    /* Font sizes */
    .hero-content h1 { font-size: 30px; }
    .page-hero-title { font-size: 32px; }
    .section-heading { font-size: 28px; }
    h1[style*="font-size:48px"] { font-size: 28px !important; }
    h1[style*="font-size:38px"] { font-size: 26px !important; }
    h2[style*="font-size:34px"] { font-size: 24px !important; }
    h2[style*="font-size:36px"] { font-size: 26px !important; }
    h2[style*="font-size:28px"] { font-size: 22px !important; }
    h2[style*="font-size:24px"] { font-size: 20px !important; }
    h2[style*="font-size:42px"] { font-size: 28px !important; }

    /* Images */
    img[style*="height:500px"] { height: 280px !important; }
    img[style*="height:420px"] { height: 250px !important; }
    img[style*="height:400px"] { height: 260px !important; }

    /* Gaps */
    div[style*="gap:80px"] { gap: 30px !important; }
    div[style*="gap:60px"] { gap: 24px !important; }
    div[style*="gap:50px"] { gap: 24px !important; }
    div[style*="gap:40px"] { gap: 20px !important; }

    /* Page hero */
    .page-hero { min-height: 320px !important; height: 40vh !important; }
    section[style*="height:60vh"] { height: 40vh !important; min-height: 320px !important; }
    section[style*="height:55vh"] { height: 40vh !important; min-height: 320px !important; }

    /* Philosophy circles */
    div[style*="border-radius:50%"][style*="width:200px"] {
        width: 140px !important;
        height: 140px !important;
        font-size: 16px !important;
        margin: 0 -12px !important;
    }

    /* Pill filters scroll */
    div[style*="border-radius:40px"][style*="background:#F2F2F2"] {
        max-width: 100% !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }

    /* Portfolio grid 2-col */
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .portfolio-filters { border-radius: 8px; }

    .principal-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .principal-photo-wrap { max-width: 220px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .testimonial-alt { grid-template-columns: 1fr; gap: 30px; }

    /* Awards */
    div[style*="display:flex"][style*="flex-wrap:wrap"] > div[style*="width:210px"] {
        width: 100% !important;
        max-width: 280px;
    }

    .nature-gallery { flex-direction: column; align-items: center; }

    /* Footer */
    .site-footer div[style*="grid-template-columns:1.5fr"] {
        grid-template-columns: 1fr !important;
    }
    .site-footer div[style*="display:flex"][style*="justify-content:space-between"] {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }

    /* Stats inline */
    div[style*="display:flex"][style*="gap:60px"] {
        flex-wrap: wrap !important;
        gap: 20px !important;
        justify-content: center !important;
    }

    /* Project detail split layout */
    div[style*="grid-template-columns:1.3fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* CHAKRA flex */
    div[style*="display:flex"][style*="gap:16px"][style*="flex-wrap:wrap"] > div[style*="width:150px"],
    div[style*="display:flex"][style*="gap:16px"][style*="flex-wrap:wrap"] > div[style*="width:140px"] {
        width: calc(33% - 12px) !important;
    }

    /* Culture cards */
    .culture-card { min-height: auto !important; }

    .values-grid { grid-template-columns: 1fr; }

    /* Mindset 5-col → 2-col */
    div[style*="grid-template-columns:repeat(5,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Related projects 4-col → 2-col */
    div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Blog grid */
    div[style*="grid-template-columns:repeat(3,1fr)"][class*="stagger"] {
        grid-template-columns: 1fr !important;
    }

    /* Details table in project */
    div[style*="display:flex"][style*="justify-content:space-between"][style*="padding:14px"] {
        flex-direction: column !important;
        gap: 2px !important;
    }
}

    /* Fix overflow on all decorative absolute elements */
    div[style*="position:absolute"][style*="border-radius:50%"] {
        display: none !important;
    }

    /* Fix inline flex gap overflow */
    div[style*="display:flex"][style*="gap:50px"] {
        gap: 20px !important;
    }
    div[style*="display:flex"][style*="gap:40px"] {
        gap: 16px !important;
    }

/* ===== RESPONSIVE: SMALL MOBILE (480px) ===== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 0 16px; }

    .hero-content h1 { font-size: 24px; }
    .page-hero-title { font-size: 26px; }
    .section-heading { font-size: 24px; }
    .stat-number { font-size: 40px; }

    h1[style*="font-size:48px"] { font-size: 24px !important; }
    h2[style*="font-size:34px"] { font-size: 22px !important; }

    .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
    .hero-nav { right: 16px; }

    /* All grids single col */
    div[style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Awards stack full */
    div[style*="display:flex"][style*="flex-wrap:wrap"] > div[style*="width:210px"],
    div[style*="display:flex"][style*="flex-wrap:wrap"] > div[style*="width:180px"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* CHAKRA items */
    div[style*="display:flex"][style*="gap:16px"][style*="flex-wrap:wrap"] > div[style*="width:150px"] {
        width: calc(50% - 10px) !important;
    }

    /* Buttons full width */
    a[style*="display:inline-block"][style*="padding:15px 40px"] {
        display: block !important;
        text-align: center !important;
    }

    /* Footer social center */
    .site-footer div[style*="display:flex"][style*="gap:16px"] {
        justify-content: center !important;
    }

    /* Hero min height */
    .page-hero { min-height: 280px !important; }
    section[style*="height:60vh"] { min-height: 280px !important; }

    /* Philosophy circles — stack vertically on mobile */
    .philosophy-circles {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .philosophy-circle {
        margin: -18px 0 !important;
        width: 180px !important;
        height: 180px !important;
        font-size: 16px !important;
        letter-spacing: 3px !important;
    }
    .philosophy-top-labels { display: none !important; }
    .philosophy-labels { grid-template-columns: 1fr !important; gap: 16px !important; }

    img:not(.site-logo img):not([style*="height:36px"]) { max-width: 100% !important; }
    .site-logo img { max-width: none !important; height: 36px !important; width: auto !important; }
    img[style*="height:420px"] { height: auto !important; max-width: 100% !important; }
    img[style*="height:160px"] { height: 80px !important; width: auto !important; max-width: none !important; }
    img[style*="height:200px"] { height: 100px !important; width: auto !important; max-width: none !important; }
}

/* ===== PRIVACY POLICY PAGE ===== */
.privacy-content h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    margin: 40px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.privacy-content h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.privacy-content h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 24px 0 10px;
}
.privacy-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-700);
    margin-bottom: 12px;
}
.privacy-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.privacy-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--gray-700);
    margin-bottom: 4px;
}
.privacy-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.privacy-content a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.privacy-content a:hover { color: var(--primary); }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--white);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--accent);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-consent.visible { transform: translateY(0); }
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}
.cookie-consent-text p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0;
}
.cookie-consent-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-consent-text a:hover { color: var(--primary); }
.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn-accept {
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--accent-dark); }
.cookie-btn-reject {
    padding: 10px 22px;
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cookie-btn-reject:hover { border-color: var(--gray-700); color: var(--gray-900); }
.cookie-btn-settings {
    padding: 10px 22px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.cookie-btn-settings:hover { background: var(--primary); color: #fff; }

/* Cookie Settings Panel */
.cookie-settings-panel {
    border-top: 1px solid var(--gray-200);
    background: var(--cream);
}
.cookie-settings-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}
.cookie-settings-inner h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
}
.cookie-category {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.cookie-category-header strong {
    font-size: 14px;
    color: var(--gray-900);
    display: block;
    margin-bottom: 2px;
}
.cookie-category-header p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}
.cookie-always-on {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-text); /* WCAG AA for small text */
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.cookie-settings-actions {
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--gray-300);
    border-radius: 24px;
    transition: background 0.3s ease;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

/* Cookie consent responsive */
@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        padding: 18px 20px;
        gap: 16px;
    }
    .cookie-consent-text { gap: 8px; }
    .cookie-consent-text svg { display: none; }
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    .cookie-consent-actions button { width: 100%; text-align: center; }
    .cookie-settings-inner { padding: 16px 20px; }
    .cookie-category-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
