/* Modern Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
    /* Refined primary green, keep original highlight */
    --primary-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --accent-earth: linear-gradient(135deg, #a3a3a3 0%, #d97706 100%); /* Your original */
    --secondary-green: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);

    /* Enhanced earth tones */
    --earth-gradient: linear-gradient(135deg, #92826d 0%, #6b5b47 100%);

    /* More sophisticated sky */
    --sky-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);

    /* Refined neutrals */
    --light-gradient: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);

    /* Refined shadows */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 8px 16px rgba(34, 197, 94, 0.25);

    /* Enhanced text hierarchy */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Refined accent colors */
    --nature-green: #16a34a;
    --earth-brown: #92826d;
    --sage-accent: #84a98c;
    /* Unified button corner radius */
    --button-radius: 15px;
    }

html {
scroll-behavior: smooth;
overflow-x: hidden;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.6;
color: var(--text-primary);
overflow-x: hidden;
background: var(--light-gradient);
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2.25rem;
    border-radius: 16px;
    text-align: center;
    max-width: 520px;
    margin: 1rem;
    position: relative;
    transform: scale(0.94) translateY(24px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.success-modal.show .success-content {
    transform: scale(1) translateY(0);
}

/* Animated Background Elements */
.success-content::before { content: none; display: none; }

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
}

/* Success Icon Animation */
.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    position: relative;
}

.checkmark-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    position: relative;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
    animation: bounceIn 0.5s ease-out 0.15s both;
}

.checkmark-circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 20px;
    border: 4px solid white;
    border-top: none;
    border-right: none;
    transform: translate(-50%, -60%) rotate(-45deg);
    animation: checkmark-draw 0.5s ease-in-out 0.6s both;
}

@keyframes bounceIn {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes checkmark-draw {
    0% {
        width: 0;
        height: 0;
    }
    50% {
        width: 40px;
        height: 0;
    }
    100% {
        width: 40px;
        height: 20px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Floating Leaf Animation */
.floating-leaves { display: none; }

.leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.leaf:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.leaf:nth-child(2) {
    left: 20%;
    animation-delay: 0.5s;
    animation-duration: 5s;
}

.leaf:nth-child(3) {
    left: 80%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.leaf:nth-child(4) {
    left: 90%;
    animation-delay: 1.5s;
    animation-duration: 4.5s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Success Message Styling */
.success-message {
    position: relative;
    z-index: 2;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-details {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-details h4 {
    color: var(--nature-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.success-close-btn {
  background-color: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.success-close-btn:hover { background-color: #0b1220; }

.success-close-btn::before {
    content: none;
}

/* Ripple effect for button */
.success-close-btn span {
    position: relative;
    z-index: 2;
}

/* Navigation - Floating Organic Design */
.navbar {
position: fixed;
top: 0px;
left: 50%;
transform: translateX(-50%);
width: 100%;
background: transparent;
z-index: 1000;
padding: 0.8rem 2rem;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
background: #ffffff;
backdrop-filter: blur(6px);
border-bottom: 1px solid #e5e7eb;
box-shadow: var(--shadow-soft);
transition: all 0.25s ease;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
}

.nav-logo h2 {
background: var(--primary-green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-size: 1.6rem;
font-weight: 800;
display: flex;
align-items: center;
gap: 0.5rem;
}

.nav-logo i {
color: var(--nature-green);
font-size: 1.8rem;
}

.nav-menu {
display: flex;
gap: 2rem;
align-items: center;
}

.nav-link {
text-decoration: none;
color: var(--text-primary);
font-weight: 600;
letter-spacing: .02em;
font-size: 0.96rem;
position: relative;
transition: color 0.2s ease;
}

.nav-link::after {
content: '';
position: absolute;
left: 0;
bottom: -6px;
width: 0;
height: 2px;
background: currentColor;
border-radius: 2px;
transition: width 0.25s ease;
}

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

.nav-link:hover {
color: var(--nature-green);
}

.nav-link:focus-visible::after { width: 100%; }
.nav-link:focus-visible { outline: none; color: var(--nature-green); }
.navbar:not(.scrolled) .nav-link:focus-visible { color: #ffffff; }

.nav-cta {
background-color: #22c55e;
color: white;
padding: 0.6rem 1.5rem;
border-radius: var(--button-radius);
text-decoration: none;
font-weight: 600;
font-size: 0.9rem;
transition: background-color 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
position: relative;
overflow: hidden;
box-shadow: none;
}

.nav-cta:hover {
background-color: #16a34a;
transform: none;
box-shadow: none;
}

.nav-toggle {
display: none;
flex-direction: column;
cursor: pointer;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 12px;
position: relative;
transition: transform .25s ease;
}

/* Prevent scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* Desktop: hide inline menu close */
.menu-close { display: none; }

.hidden {
z-index: -100;
transition: all 0.5s;
}

.bar1, .bar2, .bar3 {
  width: 26px;
  height: 3px;
  background: #0f172a; /* dark by default (scrolled) */
  margin: 3px 0;
  transition: transform .3s ease, width .3s ease, background-color .3s ease, opacity .2s ease;
  border-radius: 2px;
}

/* Subtle playful hover wiggle and width stretch */
.nav-toggle:hover .bar1 { transform: translateY(-1px); }
.nav-toggle:hover .bar3 { transform: translateY(1px); }
.nav-toggle:hover .bar2 { width: 24px; }

/* Remove glow/ring around toggle */
.nav-toggle::after { display: none; }
.nav-toggle.active::after { display: none; }
.nav-toggle .bar2 { width: 20px; }
.nav-toggle.active .bar1 { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .bar2 { width: 0; opacity: 0; }
.nav-toggle.active .bar3 { transform: translateY(-8px) rotate(-45deg); }
.nav-menu.active + .nav-toggle .bar1,
.nav-menu.active + .nav-toggle .bar2,
.nav-menu.active + .nav-toggle .bar3 { background: #0f172a; }

/* Hero Section - Nature-Inspired */
.hero {
    height: 100vh;
    display:
    flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
}

/* Hero: Photo Overlay variant */
.hero.hero-photo {
  color: #fff;
  background: #0b0f14; /* fallback */
  --parallax: 0px;
}
.hero.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://cdn.upgraded.co.nz/img/8.webp') center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  background-position: center calc(50% + var(--parallax));
  transform: translateY(var(--parallax)) scale(1.05);
  will-change: transform, background-position;
}
.hero.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 45%, rgba(0,0,0,.65));
}
.hero.hero-photo .hill { display: none; }
.hero.hero-photo .hero-container { position: relative; z-index: 2; }
.hero.hero-photo .hero-content { text-align: left; margin: 0; max-width: 800px; }
.hero.hero-photo .hero-title { color: #fff; text-shadow: 0 14px 40px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.45); }
.hero.hero-photo .hero-title .highlight { -webkit-text-fill-color: initial; background: none; color: #ffffff; }
.hero.hero-photo .hero-subtitle { color: #e5eefb; text-shadow: 0 10px 32px rgba(0,0,0,.5), 0 3px 8px rgba(0,0,0,.35); max-width: 700px; }

/* Eyebrow pill to increase legibility */
.hero.hero-photo .hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: .35rem .6rem;
  border-radius: 999px;
  color: #cbd5e1;
  letter-spacing: .2em;
}

/* Local contrast boost behind text */
.hero.hero-photo .hero-content { position: relative; }
.hero.hero-photo .hero-content::before {
  content: '';
  position: absolute;
  inset: -1rem -1rem -1rem -1.25rem;
  background: radial-gradient(600px 360px at 20% 30%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0) 70%);
  filter: blur(2px);
  border-radius: 24px;
  z-index: -1;
  transform: translateY(calc(var(--parallax) * 0.12));
  will-change: transform;
}

/* Depth overlays for added parallax layers */
.hero.hero-photo .hero-container { perspective: 1000px; }
.hero.hero-photo .hero-container::before {
  content: '';
  position: absolute;
  inset: -10% -5% -5% -5%;
  pointer-events: none;
  background:
    radial-gradient(220px 220px at 12% 28%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(180px 180px at 86% 24%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(200px 200px at 70% 78%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%);
  transform: translateY(calc(var(--parallax) * 0.35));
  will-change: transform;
}
.hero.hero-photo .hero-container::after {
  content: '';
  position: absolute;
  left: -5%; right: -5%; bottom: -5%; height: 45%;
  background: radial-gradient(80% 60% at 50% 120%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  transform: translateY(calc(var(--parallax) * 0.15));
  will-change: transform;
}

/* Subtle counter-parallax for content */
.hero.hero-photo .hero-content {
  transform: translateY(calc(var(--parallax) * -0.08));
  will-change: transform;
}

/* Hill layers */
.hill {
    position: absolute;
    bottom: 0;
    width: 120%;
    height: 200px;
    border-radius: 50% 50% 0 0;
    animation: hill-breathe 20s ease-in-out infinite;
    }

    .hill-1 {
    background:
        radial-gradient(circle at 25% 40%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to top, #22c55e 0%, #4ade80 100%);
    background-size: 60px 60px, 80px 80px, 100% 100%;
    left: -10%;
    height: 180px;
    animation-delay: 0s;
    z-index: 1;
    }

    .hill-2 {
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to top, #16a34a 0%, #22c55e 100%);
    background-size: 70px 70px, 100% 100%;
    left: -5%;
    height: 150px;
    animation-delay: -7s;
    opacity: 0.9;
    z-index: 2;
    }

    .hill-3 {
    background:
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(to top, #15803d 0%, #16a34a 100%);
    background-size: 50px 50px, 100% 100%;
    left: 0%;
    height: 120px;
    animation-delay: -14s;
    opacity: 0.8;
    z-index: 3;
    }

@keyframes hill-breathe {
0%, 100% {
    transform: translateY(0) scaleX(1);
}
50% {
    transform: translateY(-10px) scaleX(1.02);
}
}
.hero-container {
max-width: 1400px;
margin: auto;
align-items: center;
position: relative;
z-index: 10;
}

.hero-content {
position: relative;
max-width: 600px;
text-align: center;
margin: auto;
}

.hero-title {
font-size: clamp(3rem, 8vw, 5.5rem);
font-weight: 900;
line-height: 1.1;
margin-bottom: 2rem;
position: relative;
}

.hero-title .highlight {
background: var(--primary-green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
position: relative;
}

.hero-subtitle {
font-size: 1.3rem;
color: var(--text-secondary);
margin-bottom: 3rem;
line-height: 1.7;
font-weight: 400;
}

/* Hero eyebrow line */
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
  opacity: .95;
}
.hero.hero-photo .hero-eyebrow { color: #cbd5e1; }

.btn,
.submit-btn,
.nav-cta,
.success-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.06s ease;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary {
  background-color: #0f172a; /* slate-900 */
  color: #ffffff;
  box-shadow: none;
  border-color: #0f172a;
}

.btn-primary:hover {
  background-color: #0b1220;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background-color: var(--earth-brown);
  color: #ffffff;
  box-shadow: none;
  border-color: var(--earth-brown);
}

.btn-secondary:hover {
  transform: none;
  box-shadow: none;
}

/* Global button system unification */
button,
input[type="button"],
input[type="submit"],
.btn,
.submit-btn,
.success-close-btn,
.nav-cta {
  border-radius: var(--button-radius) !important;
}

button,
input[type="button"],
input[type="submit"],
.btn,
.submit-btn,
.success-close-btn {
  outline: none;
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
.btn:focus-visible,
.submit-btn:focus-visible,
.success-close-btn:focus-visible,
.nav-cta:focus-visible {
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.28); /* neutral slate ring */
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
.btn:active,
.submit-btn:active,
.success-close-btn:active,
.nav-cta:active {
  transform: translateY(0) scale(0.99);
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
.btn:disabled,
.submit-btn:disabled,
.success-close-btn:disabled,
.nav-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hero-specific button styles on photo overlay */
.hero.hero-photo .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.55);
}
.hero.hero-photo .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}
.hero.hero-photo .btn-primary {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}
.hero.hero-photo .btn-primary:hover {
  background-color: rgba(255,255,255,0.9);
}

/* Nav: overlay on hero vs scrolled */
.navbar.scrolled {
  background: #ffffff;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--shadow-soft);
}

/* Glass burst animation for menu open */
.glass-burst { position: fixed; inset: 0; pointer-events: none; z-index: 20000; }
.glass-chip {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  width: var(--w, 12px);
  height: var(--h, 6px);
  border-radius: 10px;
  background: rgba(22,163,74,0.70); /* stronger grass green */
  border: 1px solid rgba(22,163,74,0.45);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(34,197,94,0.35);
  transform: translate(-50%, -50%) scale(0.6) rotate(var(--rot, 0deg));
  animation: glass-burst 900ms cubic-bezier(.2,.8,.2,1) forwards;
  opacity: 1;
}
@keyframes glass-burst {
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot2, 0deg));
    opacity: 0;
  }
}

/* New: softer grass clippings with JS-driven motion */
.grass-clip {
  position: absolute;
  left: 0; top: 0;
  width: var(--w, 10px);
  height: var(--h, 6px);
  border-radius: 30% 60% 40% 70% / 50% 40% 60% 50%; /* irregular organic */
  background: linear-gradient(180deg, rgba(21,128,61,0.8), rgba(5,85,45,0.7));
  border: 1px solid rgba(5,85,45,0.55);
  filter: saturate(0.9) brightness(0.95);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(5,85,45,0.28);
  transform: translate3d(0,0,0) scale(0.7) rotate(0deg);
  will-change: transform, opacity;
  opacity: 0.92;
}

/* Floating grass blades for added flair */
.grass-blade {
  position: absolute;
  left: var(--x, 0px);
  top: var(--y, 0px);
  width: var(--bw, 3px);
  height: var(--bh, 28px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34,197,94,0.98), rgba(16,185,129,0.7));
  border: 1px solid rgba(16,185,129,0.45);
  box-shadow: 0 6px 16px rgba(16,185,129,0.25);
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: 50% 100%;
  animation: grass-react var(--bdur, 2.2s) ease-out forwards;
  opacity: 0.95;
}

.grass-blade::after {
  content: '';
  position: absolute;
  left: 55%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  border-radius: 999px;
  opacity: 0.7;
}

@keyframes grass-react {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scaleY(0.35);
    opacity: 0;
  }
  25% {
    transform: translate(calc(-50% + calc(var(--bdx) * 0.4)), calc(-50% + calc(var(--bdy) * 0.4))) rotate(var(--b1, 12deg)) scaleY(1.08);
    opacity: 1;
  }
  50% {
    transform: translate(calc(-50% + calc(var(--bdx) * 0.7)), calc(-50% + calc(var(--bdy) * 0.7))) rotate(var(--b2, -7deg)) scaleY(1.02);
  }
  75% {
    transform: translate(calc(-50% + calc(var(--bdx) * 0.9)), calc(-50% + calc(var(--bdy) * 0.9))) rotate(var(--b3, 4deg)) scaleY(1.0);
  }
  100% {
    transform: translate(calc(-50% + var(--bdx)), calc(-50% + var(--bdy))) rotate(0deg) scaleY(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-chip { animation: none; opacity: 0; }
}

.navbar:not(.scrolled) .nav-link { color: #ffffff; }
.navbar:not(.scrolled) .nav-link::after { background: rgba(255,255,255,0.9); }
.navbar:not(.scrolled) .nav-link:hover { color: #ffffff; }
.navbar:not(.scrolled) .nav-logo h2 { background: none; -webkit-text-fill-color: initial; color: #ffffff; }
.navbar.scrolled .nav-logo h2 { background: none; -webkit-text-fill-color: initial; color: var(--text-primary); }
.navbar:not(.scrolled) .nav-cta {
  background: rgba(0,0,0,0.3);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
}
.navbar:not(.scrolled) .nav-cta:hover {
  background: rgba(0,0,0,0.8);
}
.navbar.scrolled .nav-link { color: var(--text-primary); }
.navbar.scrolled .nav-link:hover { color: var(--nature-green); }
.navbar.scrolled .nav-cta {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.navbar:not(.scrolled) .bar1,
.navbar:not(.scrolled) .bar2,
.navbar:not(.scrolled) .bar3 { background: #ffffff; }

/* Fancy hamburger animation */
.nav-toggle { position: relative; }
.nav-toggle::after { display: none; }
.nav-toggle.active::after { display: none; }
.nav-toggle .bar2 { width: 20px; }
.nav-toggle.active .bar1 { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .bar2 { width: 0; opacity: 0; }
.nav-toggle.active .bar3 { transform: translateY(-8px) rotate(-45deg); }
.nav-menu.active + .nav-toggle .bar1,
.nav-menu.active + .nav-toggle .bar2,
.nav-menu.active + .nav-toggle .bar3 { background: #0f172a; }

/* Hero Visual - Organic Garden Elements */
.hero-visual {
position: relative;
height: 500px;
perspective: 1000px;
}

/* Services Section - Organic Bento Layout */
.services {
padding: 8rem 0;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
position: relative;
}

.services::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.02'%3E%3Cpath d='M50 30c11.046 0 20 8.954 20 20s-8.954 20-20 20-20-8.954-20-20 8.954-20 20-20zm0 5c-8.284 0-15 6.716-15 15s6.716 15 15 15 15-6.716 15-15-6.716-15-15-15z' fill='%2322c55e'/%3E%3C/g%3E%3C/svg%3E");
opacity: 0.3;
}

.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
position: relative;
}

.section-header {
text-align: center;
margin-bottom: 6rem;
}

.section-header h2 {
font-size: clamp(2.5rem, 6vw, 4rem);
font-weight: 900;
letter-spacing: -0.01em;
margin-bottom: 0.75rem;
color: var(--text-primary);
background: none;
-webkit-text-fill-color: initial;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 0.85rem auto 1.5rem;
  background: #0f172a;
  border-radius: 2px;
  opacity: .9;
}

.section-header p {
font-size: 1.2rem;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
}

.services-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(4, 320px);
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}

.service-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
border: 1px solid rgba(74, 222, 128, 0.1);
border-radius: 24px;
padding: 2.5rem;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
}

/* Image-backed service cards */
.service-card.has-bg {
  background-color: #0b1320;
  background-size: cover;
  background-position: center;
  color: #fff;
  border: 0;
}

.service-card.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.service-card.has-bg > * { z-index: 2; }
.service-card.has-bg h2, .service-card.has-bg h3 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.service-card.has-bg .service-icon { -webkit-text-fill-color: rgba(255,255,255,0.95); }

/* Small chip label for featured/services */
.service-chip {
  align-self: flex-start;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.service-card .btn { align-self: flex-start; }

.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--primary-green);
opacity: 0;
transition: opacity 0.4s ease;
z-index: 1;
}

.service-card:hover::before {
opacity: 0.05;
}

.service-card:hover {
transform: translateY(-10px) rotate(1deg);
border-color: rgba(74, 222, 128, 0.3);
}

.service-card > * {
position: relative;
z-index: 2;
}

.service-card.large {
grid-column: span 8;
grid-row: span 2;
}

.service-card.medium {
grid-column: span 4;
grid-row: span 2;
}

.service-card.small {
grid-column: span 6;
grid-row: span 1;
}

.service-icon {
font-size: 3rem;
background: var(--primary-green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
align-self: flex-start;
}

.service-card h2 {
font-size: 1.6rem;
font-weight: 700;
margin-bottom: 1rem;
color: var(--text-primary);
}

.service-card h3 {
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 1.5rem;
flex-grow: 1;
}

.service-features {
list-style: none;
margin-top: auto;
}

.service-features li {
color: var(--text-secondary);
margin-bottom: 0.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
}

/* Ensure legibility on image-backed service cards */
.service-card.has-bg .service-features li {
  color: #fff;
}

.service-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 4px;
}

/* Gallery Section - Enhanced with Expandable Cards */
.gallery {
padding: 8rem 0;
background: white;
position: relative;
}

/* Projects Grid - Creative mosaic */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}

.project-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background: #eef2f7;
  transform: translateZ(0);
  cursor: zoom-in;
}

.project-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s ease;
}

.project-tile.square img { aspect-ratio: 1 / 1; }
.project-tile.tall img { aspect-ratio: 2 / 3; }
.project-tile.wide { grid-column: span 2; }
.project-tile.big { grid-column: span 2; }
.project-tile.big img { aspect-ratio: 3 / 2; }

.project-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.0) 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tile-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.tile-title { font-weight: 700; letter-spacing: 0.2px; }
.tile-action { font-weight: 600; font-size: 0.9rem; opacity: 0.9; }
.tile-action i { margin-right: 0.4rem; }

.project-tile:hover::after { opacity: 1; }
.project-tile:hover .tile-overlay { opacity: 1; transform: translateY(0); }
.project-tile:hover img { transform: scale(1.05); }

/* Lightbox for projects */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .project-tile.wide,
  .project-tile.big { grid-column: span 1; }
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
max-width: 1400px;
margin: 0 auto;
}

.gallery-item {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: var(--shadow-soft);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
cursor: pointer;
}

.gallery-item:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: var(--shadow-soft);
}

.gallery-item.expanded {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) !important;
width: 90vw;
max-width: 1200px;
height: 90vh;
z-index: 2000;
overflow-y: auto;
border-radius: 30px;
}

.gallery-image {
width: 100%;
height: 250px;
background: var(--primary-green);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 3rem;
position: relative;
overflow: hidden;
}

.gallery-image i {
position: relative;
z-index: 2;
}

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

.gallery-content {
padding: 1.5rem;
position: relative;
}

.gallery-content h4 {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text-primary);
}

.gallery-content p {
color: var(--text-secondary);
font-size: 0.9rem;
line-height: 1.5;
}

/* Expanded Gallery Content */
.expanded-gallery {
display: none;
padding: 2rem;
}

.gallery-item.expanded .expanded-gallery {
display: block;
}

.gallery-item.expanded .gallery-content {
padding: 2rem 2rem 1rem 2rem;
}

.expanded-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 2rem;
}

.expanded-title {
font-size: 2.5rem;
font-weight: 900;
background: var(--primary-green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.5rem;
}

.expanded-subtitle {
color: var(--text-secondary);
font-size: 1.1rem;
line-height: 1.6;
}

.close-btn {
background: rgba(255, 255, 255, 0.9);
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 1.5rem;
color: var(--text-primary);
box-shadow: var(--shadow-soft);
transition: all 0.3s ease;
flex-shrink: 0;
}

.close-btn:hover {
background: rgba(255, 255, 255, 1);
transform: scale(1.1);
}

.project-images {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

.project-image {
height: 400px;
background: var(--primary-green);
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 2rem;
position: relative;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
}

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

.project-image:hover {
transform: scale(1.05);
box-shadow: var(--shadow-soft);
}

.project-image i {
position: relative;
z-index: 2;
}

.project-details {
background: rgba(74, 222, 128, 0.05);
padding: 2rem;
border-radius: 15px;
margin-bottom: 2rem;
}

.project-details h5 {
font-size: 1.3rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 1rem;
}

.project-features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
list-style: none;
}

.project-features li {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
font-size: 0.9rem;
}

.project-features li::before {
content: "✨";
font-size: 1rem;
}

/* Backdrop overlay */
.gallery-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(5px);
z-index: 1500;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

.gallery-backdrop.active {
opacity: 1;
visibility: visible;
}

/* About Section - Split with Nature Feel */
.about {
padding: 8rem 0;
background: white;
position: relative;
}

.about-visual {
position: relative;
height: 600px;
display: flex;
align-items: center;
justify-content: center;
perspective: 1000px;
}

.card-deck {
position: relative;
width: 500px;
height: 600px;
cursor: pointer;
}

.card {
position: absolute;
width: 100%;
height: 100%;
border-radius: 15px;
overflow: hidden;
box-shadow: var(--shadow-soft);
transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
transform-origin: center bottom;
background: white;
}

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

/* Stack the cards with different rotations and z-index */
.card:nth-child(1) {
transform: translateY(0px) rotate(-2deg);
z-index: 3;
}

.card:nth-child(2) {
transform: translateY(-10px) rotate(1deg);
z-index: 2;
}

.card:nth-child(3) {
transform: translateY(-20px) rotate(-1deg);
z-index: 1;
}

.card:nth-child(4) {
transform: translateY(-30px) rotate(2deg);
z-index: 0;
}

.copyright{
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (min-width: 1280px) {
/* Hover effects to cycle through cards */
.card-deck:hover .card:nth-child(1) {
    transform: translateY(-40px) translateX(-200px) rotate(5deg) scale(0.9);
    z-index: 3;
}

.card-deck:hover .card:nth-child(2) {
    transform: translateY(-40px) translateX(150px) rotate(10deg) scale(0.9);
    z-index: 2;
}

.card-deck:hover .card:nth-child(3) {
    transform: translateY(-40px) translateX(-30vw) rotate(-5deg) scale(0.9);
    z-index: 1;
}

.card-deck:hover .card:nth-child(4) {
    transform: translateY(-80px) translateX(-50vw) rotate(-15deg) scale(0.9);
    z-index: 0;
}
}

/* Mobile cycling states */
.card-deck.cycle-1 .card:nth-child(1) {
transform: translateY(-40px) translateX(-50vw) rotate(-15deg) scale(0.8);
z-index: 0;
}

.card-deck.cycle-1 .card:nth-child(2) {
transform: translateY(0px) rotate(-2deg);
z-index: 3;
}

.card-deck.cycle-1 .card:nth-child(3) {
transform: translateY(-10px) rotate(1deg);
z-index: 2;
}

.card-deck.cycle-1 .card:nth-child(4) {
transform: translateY(-20px) rotate(-1deg);
z-index: 1;
}

.card-deck.cycle-2 .card:nth-child(1) {
transform: translateY(-50px) translateX(-60vw) rotate(-20deg) scale(0.7);
z-index: 0;
}

.card-deck.cycle-2 .card:nth-child(2) {
transform: translateY(-40px) translateX(-50vw) rotate(-15deg) scale(0.8);
z-index: 0;
}

.card-deck.cycle-2 .card:nth-child(3) {
transform: translateY(0px) rotate(-2deg);
z-index: 3;
}

.card-deck.cycle-2 .card:nth-child(4) {
transform: translateY(-10px) rotate(1deg);
z-index: 2;
}

.card-deck.cycle-3 .card:nth-child(1) {
transform: translateY(-60px) translateX(-70vw) rotate(-25deg) scale(0.6);
z-index: 0;
}

.card-deck.cycle-3 .card:nth-child(2) {
transform: translateY(-50px) translateX(-60vw) rotate(-20deg) scale(0.7);
z-index: 0;
}

.card-deck.cycle-3 .card:nth-child(3) {
transform: translateY(-40px) translateX(-50vw) rotate(-15deg) scale(0.8);
z-index: 0;
}

.card-deck.cycle-3 .card:nth-child(4) {
transform: translateY(0px) rotate(-2deg);
z-index: 3;
}


.about-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8rem;
align-items: center;
}

.about-content h2 {
font-size: clamp(2.5rem, 6vw, 4rem);
font-weight: 900;
line-height: 1.1;
margin-bottom: 2rem;
}

.about-content .highlight {
background: var(--accent-earth);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.about-content p {
font-size: 1.2rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 2rem;
}

.about-features {
display: grid;
gap: 2rem;
}

.feature-item {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 1.5rem;
background: #f8fafc;
border-radius: 16px;
transition: all 0.3s ease;
}

.feature-item:hover {
transform: translateX(10px);
box-shadow: var(--shadow-soft);
}

.feature-icon {
font-size: 2.5rem;
background: var(--primary-green);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.feature-text h4 {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text-primary);
}

.feature-text p {
color: var(--text-muted);
margin: 0;
font-size: 1rem;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.contact-container {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
position: relative;
z-index: 2;
}

.contact .section-header h2 {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.contact .section-header p {
  color: var(--text-secondary);
}

.contact-form {
  background: #f8fafc; /* slightly darker than white for contrast */
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form::before { content: none; }

.contact-form > * {
position: relative;
z-index: 2;
}

.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
margin-bottom: 2rem;
}

.form-group {
position: relative;
}

.form-group.full {
grid-column: span 2;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin: auto;
    justify-content: center;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
/* Light inputs inside contact */
.contact .form-input {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: var(--text-primary);
  min-height: 48px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}
.contact .form-input:hover { border-color: #cbd5e1; }
.contact textarea.form-input { min-height: 180px; }

.form-input:focus {
  outline: none;
  border-color: #22c55e;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.contact .form-input:focus {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.18);
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact .form-input::placeholder { color: #94a3b8; }
.contact label { display: block; margin-bottom: 0.4rem; color: var(--text-secondary); font-weight: 600; font-size: 0.95rem; }

textarea.form-input {
resize: vertical;
min-height: 180px;
}

.submit-btn {
  background-color: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.submit-btn:hover { background-color: #0b1220; }

.contact-info {
display: flex;
justify-content: center;
gap: 3rem;
margin-top: 3rem;
flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #0f172a;
    font-size: 0.95rem;
}

.contact-info-item a {
    text-decoration: none;
    color: #0f172a;
}

.contact-info-item i {
    color: #0f172a;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
.hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
}

.about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    display: block;
}

.services-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 250px);
}

.service-card.large {
    grid-column: span 6;
    grid-row: span 2;
}

.service-card.medium {
    grid-column: span 6;
    grid-row: span 1;
}

.service-card.small {
    grid-column: span 3;
    grid-row: span 1;
}

.gallery-item.expanded {
    width: 95vw;
    height: 95vh;
}

.project-images {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
}

@media (max-width: 768px) {
.navbar {
    width: 100%;
    padding: 0.6rem 1rem;
}

/* (moved to global section) */

/* Mobile menu: immersive, animated panel */
.nav-menu {
    position: fixed;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    background: radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,0.95), rgba(248,250,252,0.98));
    backdrop-filter: blur(10px);
    padding: max(110px, env(safe-area-inset-top) + 32px) 20px 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    gap: .25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    width: 100%;
    height: 100vh;
    z-index: 1200;
}
.nav-menu::before{
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(40% 30% at 80% 10%, rgba(15,23,42,0.08), transparent),
      radial-gradient(50% 40% at 10% 80%, rgba(15,23,42,0.06), transparent);
    pointer-events: none;
}

/* Circular reveal animation from hamburger position if supported */
@supports (clip-path: circle(50% at 50% 50%)) {
  .nav-menu {
    /* JS sets these to the toggle center */
    --menu-x: 100vw;
    --menu-y: 0px;
    clip-path: circle(0 at var(--menu-x) var(--menu-y));
    transition: clip-path .55s cubic-bezier(.2,.8,.2,1), opacity .35s ease, visibility .35s ease;
  }
  .nav-menu.active {
    clip-path: circle(150% at var(--menu-x) var(--menu-y));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle, .nav-toggle * { transition: none !important; }
  .nav-menu { transition: none !important; }
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu a.nav-link,
.nav-menu .nav-cta { font-size: 1.25rem; line-height: 1; padding: 1rem 1.25rem; }
.nav-menu a.nav-link { display: block; border-radius: 12px; }
.nav-menu a.nav-link:hover { background: rgba(15,23,42,0.06); }

.nav-menu .nav-link {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: .02em;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}
.nav-menu.active .nav-link { opacity: 1; transform: translateY(0); }
.nav-menu.active .nav-link:nth-child(1) { transition-delay: .05s; }
.nav-menu.active .nav-link:nth-child(2) { transition-delay: .1s; }
.nav-menu.active .nav-link:nth-child(3) { transition-delay: .15s; }
.nav-menu.active .nav-link:nth-child(4) { transition-delay: .2s; }
.nav-menu.active .nav-cta { transition-delay: .25s; }

.nav-menu .nav-link::after { bottom: -10px; height: 3px; border-radius: 3px; }
.nav-menu .nav-cta { margin-top: .75rem; }
.nav-menu .nav-link:active { transform: translateY(2px) scale(0.98); }

    /* Close button removed; hamburger acts as close */
    .menu-close { display: none !important; }

/* Ensure dark, high-contrast menu items when over hero */
.navbar:not(.scrolled) .nav-menu .nav-link { color: #0f172a; }
.navbar:not(.scrolled) .nav-menu .nav-link::after { background: #0f172a; }
.navbar:not(.scrolled) .nav-menu .nav-cta {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Make CTA prominent and easy to tap */
.nav-menu .nav-cta {
    width: 100%;
    justify-content: center;
    border-radius: var(--button-radius);
    box-shadow: 0 10px 20px rgba(15,23,42,0.15);
}

/* Ensure dark, high-contrast menu items when over hero */
.navbar:not(.scrolled) .nav-menu .nav-link { color: #0f172a; }
.navbar:not(.scrolled) .nav-menu .nav-link::after { background: #0f172a; }
.navbar:not(.scrolled) .nav-menu .nav-cta {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Make CTA prominent and easy to tap */
.nav-menu .nav-cta {
    width: 100%;
    justify-content: center;
    border-radius: var(--button-radius);
    box-shadow: 0 10px 20px rgba(15,23,42,0.15);
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    z-index: 1300; /* keep visible above overlay */
}

/* Prevent scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

.nav-toggle.active .bar1 {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar2 {
    width: 0px;
}

    .nav-toggle.active .bar3 {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* Minimalist nav links with underline accent */
    .nav-menu a.nav-link {
        position: relative;
        overflow: visible;
        background: transparent !important;
        border: none !important;
        border-radius: 0;
        color: #0f172a;
        --nav-pad-x: 1.25rem; /* keep in sync with link padding */
    }
    .nav-menu a.nav-link + a.nav-link { margin-top: 0; border-top: 1px solid rgba(15,23,42,0.08); }
    .nav-menu a.nav-link:hover { background: transparent; }
    .nav-menu a.nav-link:focus-visible { outline: none; }
    .nav-menu a.nav-link::after {
        content: '';
        position: absolute;
        left: var(--nav-pad-x);
        width: calc(100% - (var(--nav-pad-x) * 2));
        bottom: 0.25rem;
        height: 2px;
        background: #0f172a; /* black accent */
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
        border-radius: 2px;
    }
    .nav-menu a.nav-link:hover::after,
    .nav-menu a.nav-link:focus-visible::after,
    .nav-menu a.nav-link.active::after { transform: scaleX(1); }

    /* CTA separation + emphasis */
    .nav-menu .nav-cta { position: relative; box-shadow: 0 12px 28px rgba(15,23,42,0.16); background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; border: 1px solid rgba(34,197,94,0.5); }
    .nav-menu .nav-cta:hover { filter: brightness(0.96); }
    .nav-menu .nav-cta::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 1px; background: linear-gradient(90deg, transparent, rgba(15,23,42,0.15), transparent); }

    /* Subtle animated background accents inside overlay */
    .nav-menu::after { content: ''; position: absolute; inset: 0; background: radial-gradient(30% 40% at 85% 20%, rgba(34,197,94,0.10), transparent 60%), radial-gradient(22% 28% at 15% 85%, rgba(34,197,94,0.08), transparent 60%); pointer-events: none; animation: drift 12s linear infinite; }
    @keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); opacity: 1; } 50% { transform: translate3d(6px,2px,0) scale(1.02); opacity: .95; } 100% { transform: translate3d(0,0,0) scale(1); opacity: 1; } }

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.hero.hero-photo { padding: 5rem 1rem; }
.hero.hero-photo .hero-content { padding: 0 0.8rem; }
.hero.hero-photo { min-height: 88vh; }
.hero.hero-photo .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
.hero.hero-photo .hero-subtitle { font-size: 1.05rem; }

.services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.service-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

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

.form-group.full {
    grid-column: span 1;
}

.contact-form {
    padding: 2rem;
}

.gallery-item.expanded {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.expanded-gallery {
    padding: 1rem;
}

.expanded-title {
    font-size: 2rem;
}

.project-images {
    grid-template-columns: 1fr;
}

.project-features {
    grid-template-columns: 1fr;
}
}
/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0b0f14, #0f172a);
  color: #e2e8f0;
  padding: 3.5rem 0 2rem;
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1.2fr);
  grid-template-areas: 'links contact brand';
  gap: 2.25rem;
  align-items: start;
}
.footer-brand { grid-area: brand; text-align: right; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 1rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); margin-left: auto; }
.footer-brand p { color: #cbd5e1; max-width: 420px; margin-left: auto; line-height: 1.6; }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links h4, .footer-contact h4 { color: #ffffff; margin-bottom: 0.75rem; font-size: 1.05rem; letter-spacing: .02em; }
.footer-links a, .footer-contact a { color: #e2e8f0; text-decoration: none; font-weight: 600; line-height: 1.5; }
.footer-links a:hover, .footer-contact a:hover { color: #ffffff; }

.footer-links { grid-area: links; text-align: left; }
.footer-contact { grid-area: contact; text-align: center; }

.footer-badges img { width: 140px; height: auto; margin-top: 0.5rem; opacity: .95; }

.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { margin: 0; color: #cbd5e1; }
.footer-meta { color: #94a3b8; font-size: 0.95rem; }

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'links'
      'contact'
      'brand';
  }
  .footer-brand { text-align: left; }
  .footer-brand img { width: 160px; margin-left: 0; }
  .footer-brand p { margin-left: 0; max-width: 520px; }
  .footer-contact { text-align: left; }
}
