/* ============================================================
   main.css — Green Ad Solutions
   Premium Design System — Full Rebuild
   Stage 1 / Homepage (5 sections)
   ============================================================

   CONTENTS
   1.  Design Tokens (CSS Variables)
   2.  Reset
   3.  Layout Utilities
   4.  Typography Utilities
   5.  Button System
   6.  Navigation
   7.  Hero Section
   8.  Services Home (2x2 visual grid)
   9.  Clients Strip
   10. Portfolio Preview (3-item)
   11. Contact Bar
   12. Footer
   13. Reveal Animations
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {

  /* Brand Green */
  --green-primary:   #2D7A3A;
  --green-dark:      #1A4D25;
  --green-deeper:    #0F2E16;
  --green-light:     #3CAF50;
  --green-glow:      #5ECF72;
  --green-muted:     #2A5C35;

  /* Dark Palette */
  --dark-base:  #060A07;
  --dark-1:     #0C1510;
  --dark-2:     #111D14;
  --dark-3:     #192617;
  --dark-4:     #213020;

  /* Light Palette */
  --light-base: #FFFFFF;
  --light-1:    #F7FAF8;
  --light-2:    #EFF5F0;
  --light-3:    #DDE8DE;

  /* Text */
  --text-on-dark:     #E6EDE8;
  --text-muted-dark:  #7A9580;
  --text-dim-dark:    #4A6550;
  --text-on-light:    #0C1510;
  --text-body-light:  #2A4830;
  --text-muted-light: #5A7260;

  /* Typography */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Font Scale */
  --fs-hero:    clamp(3rem, 8.5vw, 8rem);
  --fs-display: clamp(2.25rem, 5.5vw, 4rem);
  --fs-h2:      clamp(1.875rem, 4vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 2.25vw, 1.875rem);
  --fs-h4:      clamp(1rem, 1.5vw, 1.25rem);
  --fs-body:    clamp(0.9375rem, 1.2vw, 1.0625rem);
  --fs-small:   0.875rem;
  --fs-label:   0.6875rem;

  /* Line Heights */
  --lh-tight:  1.05;
  --lh-snug:   1.25;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  /* Letter Spacing */
  --ls-tight:  -0.035em;
  --ls-normal:  0em;
  --ls-wide:    0.04em;
  --ls-wider:   0.08em;
  --ls-widest:  0.15em;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  1.75rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Section vertical padding */
  --section-py: clamp(4rem, 8vw, 7.5rem);

  /* Layout */
  --container-max: 1320px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.18);
  --shadow-xl:    0 16px 64px rgba(0,0,0,0.24);
  --shadow-green: 0 6px 28px rgba(45,122,58,0.35);

  /* Transitions */
  --ease-fast:   0.15s ease;
  --ease-base:   0.25s ease;
  --ease-slow:   0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-spring: 0.5s cubic-bezier(0.34,1.56,0.64,1);

  /* Z-index */
  --z-below:   -1;
  --z-base:    0;
  --z-above:   1;
  --z-nav:     200;
  --z-overlay: 300;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-on-light);
  background: var(--light-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video  { max-width: 100%; height: auto; display: block; }
a           { color: inherit; text-decoration: none; }
ul, ol      { list-style: none; }
button      { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
p           { max-width: 65ch; }


/* ============================================================
   3. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section         { padding-block: var(--section-py); }
.section--dark   { background: var(--dark-1);    color: var(--text-on-dark); }
.section--darker { background: var(--dark-base);  color: var(--text-on-dark); }
.section--light  { background: var(--light-1);   color: var(--text-on-light); }
.section--white  { background: var(--light-base); color: var(--text-on-light); }


/* ============================================================
   4. TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: var(--sp-4);
}
.section-label--light { color: var(--green-glow); }
.section-label--muted { color: var(--text-dim-dark); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--text-on-light);
}
.section-title--light { color: var(--light-base); }

.section-intro {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--text-muted-light);
  margin-top: var(--sp-4);
  max-width: 54ch;
}
.section-intro--dark   { color: var(--text-muted-dark); }
.section-intro--center { margin-inline: auto; text-align: center; }

.section-head          { margin-bottom: var(--sp-12); }
.section-head--center  { text-align: center; }


/* ============================================================
   5. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  transition: all var(--ease-base);
}

.btn-primary {
  background: var(--green-primary);
  color: var(--light-base);
  border-color: var(--green-primary);
}
.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-outline {
  background: transparent;
  color: var(--light-base);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--light-base);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--light-3);
}
.btn-outline-dark:hover {
  background: var(--dark-base);
  color: var(--light-base);
  border-color: var(--dark-base);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--light-base);
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1DAA52;
  border-color: #1DAA52;
  transform: translateY(-2px);
}

.btn-sm { font-size: var(--fs-small); padding: 0.625rem 1.25rem; }
.btn-lg { font-size: 1.0625rem; padding: 1.0625rem 2.5rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }


/* ============================================================
   6. NAVIGATION
   ============================================================ */

/* Site Header — always white so logo shows in natural brand colours */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 16px rgba(0,0,0,0.04);
  padding-block: 0.9rem;
  transition: box-shadow var(--ease-slow), padding var(--ease-slow);
}

/* On scroll: slightly stronger shadow, no other change */
.site-header.scrolled {
  padding-block: 0.75rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 6px 32px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

/* Logo — no filter, shows in original brand colours (green mark + dark text) */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  /* No filter — header is always white, logo colours read naturally */
}

/* Fallback text logo if image missing */
.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--green-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--light-base);
  flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-on-light);
  letter-spacing: -0.01em;
}

/* Desktop Nav Links — always dark since header is always white */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ease-fast), background var(--ease-fast);
}
.nav-links a:hover  { color: var(--green-primary); background: var(--light-2); }
.nav-links a.active { color: var(--green-primary); font-weight: 600; }

/* CTA */
.nav-cta .btn { font-size: 0.875rem; padding: 0.625rem 1.375rem; }

/* Hamburger — always dark lines on white header */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--light-3);
  background: transparent;
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color var(--ease-base);
}
.nav-toggle:hover { border-color: var(--green-primary); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-on-light);
  border-radius: 2px;
  transform-origin: center;
  transition: all var(--ease-base);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--dark-base);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--container-pad) var(--sp-10);
  transform: translateX(100%);
  transition: transform var(--ease-slow);
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }

.nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--dark-3);
  margin-bottom: var(--sp-8);
}

.nav-mobile-logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-mobile-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--dark-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-dark);
  font-size: 1.125rem;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-body);
  transition: border-color var(--ease-base), color var(--ease-base);
}
.nav-mobile-close:hover { border-color: var(--green-glow); color: var(--green-glow); }

.nav-mobile-links { list-style: none; flex: 1; }

.nav-mobile-links li { border-bottom: 1px solid var(--dark-3); }

.nav-mobile-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-on-dark);
  padding: var(--sp-5) 0;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--ease-base);
}
.nav-mobile-links a::after {
  content: '\2192';
  font-size: 0.9375rem;
  color: var(--text-dim-dark);
  transition: color var(--ease-base), transform var(--ease-base);
}
.nav-mobile-links a:hover            { color: var(--green-glow); }
.nav-mobile-links a:hover::after     { color: var(--green-glow); transform: translateX(4px); }

.nav-mobile-footer {
  margin-top: var(--sp-10);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.nav-mobile-footer .btn { width: 100%; justify-content: center; }


/* ============================================================
   7. HERO — SPLIT SCREEN
   Left panel (videos, crossfading) | Right panel (work images, Ken Burns)
   ============================================================ */

/* ── Hero wrapper ───────────────────────────────────────────── */
.hero {
  display: flex;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  /* Dark background fills the diagonal gap created by clip-path on vpanel */
  background: var(--dark-base);
}

/* ── LEFT PANEL: Outdoor advertising videos ─────────────────── */
.hero-vpanel {
  position: relative;
  flex: 0 0 60%;
  overflow: hidden;
  /* Diagonal right edge — premium parallelogram separator */
  clip-path: polygon(0 0, 100% 0, calc(100% - 4vw) 100%, 0 100%);
  z-index: 2;
}

/* Video stack fills the entire left panel */
.hero-vstack {
  position: absolute;
  inset: 0;
}

.hero-vid-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-vid-item.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-vid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Subtle Ken Burns on video too */
  transform: scale(1.06);
  transition: transform 12s ease-out;
}
.hero-vid-item.is-active video {
  transform: scale(1.0);
}

/* Dark gradient overlay — strong at bottom where text lives */
.hero-voverlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(6,10,7,0.20)  0%,
    rgba(6,10,7,0.30) 30%,
    rgba(6,10,7,0.72) 65%,
    rgba(6,10,7,0.96) 100%
  );
}

/* ── Text content — bottom of left panel ───────────────────── */
.hero-text-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  z-index: 5;
}

/* Eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--green-glow);
  margin-bottom: var(--sp-5);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--green-glow);
  flex-shrink: 0;
}

/* Headline — editorial mixed-weight approach */
.hero-headline {
  font-family: var(--font-display);
  font-style: normal;
  line-height: 1.0;
  margin-bottom: var(--sp-8);
}

/* "Make your brand" — thin, quiet, sets up the power word */
.hl-setup {
  display: block;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(0.95rem, 2.1vw, 1.5rem);
  color: rgba(255,255,255,0.48);
  letter-spacing: -0.01em;
  margin-bottom: 0.2em;
}

/* "Impossible" — maximum weight, maximum presence */
.hl-main {
  display: block;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(2.75rem, 6.2vw, 6.25rem);
  color: var(--light-base);
  letter-spacing: -0.048em;
  line-height: 0.90;
}

/* "to ignore." — same weight, brand green accent */
.hl-close {
  display: block;
  font-style: normal;
  font-weight: 900;
  font-size: clamp(2.75rem, 6.2vw, 6.25rem);
  color: var(--green-glow);
  letter-spacing: -0.048em;
  line-height: 0.90;
}

/* Actions — CTA buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

/* Trust line */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(230,237,232,0.4);
  line-height: 1.4;
}
.hero-trust::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── RIGHT PANEL: Portfolio work images ─────────────────────── */
.hero-wpanel {
  position: relative;
  flex: 1;
  overflow: hidden;
  z-index: 1;
}

/* Image stack */
.hero-wstack {
  position: absolute;
  inset: 0;
}

.hero-work-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-work-item.is-active {
  opacity: 1;
  z-index: 1;
}

/* Ken Burns — slow imperceptible zoom, adds cinematic life */
.hero-work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition:
    transform 9s ease-out;
}
.hero-work-item.is-active img {
  transform: scale(1.0);
}

/* Caption strip at the bottom of the work panel */
.hero-wcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem var(--sp-6) var(--sp-5);
  z-index: 5;
  background: linear-gradient(
    to top,
    rgba(6,10,7,0.88) 0%,
    rgba(6,10,7,0.40) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-1);
}

.hero-wcap-cat {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--green-glow);
  transition: opacity 0.6s ease;
}

.hero-wcap-client {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.6);
  transition: opacity 0.6s ease;
}

/* Progress dot indicators */
.hero-wdots {
  display: flex;
  gap: 5px;
  margin-top: var(--sp-3);
}
.hero-wdot {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: background 0.4s ease, width 0.4s ease;
}
.hero-wdot.is-active {
  background: var(--green-glow);
  width: 30px;
}


/* ============================================================
   8. SERVICES HOME — 2x2 VISUAL GRID
   ============================================================ */
.services-home {
  background: var(--dark-base);
  padding-block: var(--section-py);
}

.services-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
.services-home-head-left  { max-width: 580px; }
.services-home-head-right { flex-shrink: 0; }

/* 2x2 Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--dark-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Individual Service Block */
.service-block {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--dark-2);
}

.service-block-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.service-block:hover .service-block-img {
  transform: scale(1.07);
}

.service-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,10,7,0.97) 0%,
    rgba(6,10,7,0.52) 48%,
    rgba(6,10,7,0.20) 100%
  );
  transition: opacity var(--ease-slow);
}
.service-block:hover .service-block-overlay { opacity: 0.92; }

.service-block-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-8);
  z-index: 1;
}

.service-block-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--green-glow);
  margin-bottom: var(--sp-2);
}

.service-block-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--light-base);
  line-height: var(--lh-snug);
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.service-block-sub {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(230,237,232,0.60);
  line-height: var(--lh-snug);
  max-width: 34ch;
  margin-top: var(--sp-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service-block:hover .service-block-sub {
  opacity: 1;
  transform: translateY(0);
}

.service-block-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-glow);
  margin-top: var(--sp-4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.service-block:hover .service-block-link {
  opacity: 1;
  transform: translateY(0);
}
.service-block-link::after {
  content: '\2192';
  transition: transform var(--ease-base);
}
.service-block:hover .service-block-link::after {
  transform: translateX(4px);
}


/* ============================================================
   9. CLIENTS STRIP
   ============================================================ */
.clients-strip {
  background: var(--dark-2);
  padding-block: var(--sp-12);
  border-top:    1px solid var(--dark-3);
  border-bottom: 1px solid var(--dark-3);
}

.clients-strip-label {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-dim-dark);
  text-align: center;
  margin-bottom: var(--sp-8);
}

.clients-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.client-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: var(--sp-4) var(--sp-6);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-sm);
  background: var(--dark-3);
  transition: border-color var(--ease-base), background var(--ease-base);
}
.client-badge:hover { border-color: var(--green-primary); background: var(--dark-4); }

.client-badge-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted-dark);
  white-space: nowrap;
  transition: color var(--ease-base);
}
.client-badge:hover .client-badge-name { color: var(--light-base); }

.client-badge img {
  max-height: 32px;
  width: auto;
  filter: brightness(0) invert(0.55);
  transition: filter var(--ease-base);
}
.client-badge:hover img { filter: brightness(0) invert(0.9); }


/* ============================================================
   10. PORTFOLIO PREVIEW — 3 ITEMS
   ============================================================ */
.portfolio-home {
  background: var(--dark-1);
  padding-block: var(--section-py);
}

.portfolio-home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
}
.portfolio-home-head-left  { max-width: 600px; }

/* Grid: first item spans all 3 columns */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.work-card {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--dark-2);
}

.work-card:first-child {
  grid-column: span 3;
}

.work-card-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.work-card:first-child .work-card-inner {
  aspect-ratio: 16/6;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94);
}
.work-card:hover .work-card-img { transform: scale(1.06); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,10,7,0.95) 0%, rgba(6,10,7,0.4) 50%, transparent 100%);
  opacity: 0.75;
  transition: opacity var(--ease-slow);
}
.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6);
  z-index: 1;
  transform: translateY(6px);
  transition: transform var(--ease-base);
}
.work-card:hover .work-card-body { transform: translateY(0); }

.work-card-category {
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--green-glow);
  margin-bottom: var(--sp-1);
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--light-base);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
}

.work-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  margin-top: var(--sp-1);
  opacity: 0;
  transition: opacity var(--ease-base);
}
.work-card:hover .work-card-meta { opacity: 1; }

.portfolio-cta {
  text-align: center;
  margin-top: var(--sp-10);
}


/* ============================================================
   11. CONTACT BAR
   ============================================================ */
.contact-bar {
  background: var(--green-primary);
  padding-block: var(--sp-12);
}

.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.contact-bar-headline {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--light-base);
  line-height: var(--lh-snug);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-1);
}

.contact-bar-sub {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.7);
}

.contact-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.contact-bar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(0,0,0,0.18);
  color: var(--light-base);
  border: 1px solid rgba(255,255,255,0.2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ease-base);
}
.contact-bar-link:hover {
  background: rgba(0,0,0,0.32);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}
.contact-bar-link.whatsapp {
  background: #25D366;
  border-color: #25D366;
}
.contact-bar-link.whatsapp:hover {
  background: #1DAA52;
  border-color: #1DAA52;
}


/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-base);
  border-top: 1px solid var(--dark-3);
  padding-top: var(--sp-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--dark-3);
}

.footer-logo {
  display: block;
  margin-bottom: var(--sp-5);
}
.footer-logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-logo-fallback {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.footer-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--green-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9375rem;
  color: var(--light-base);
}
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--light-base);
}

.footer-desc {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-muted-dark);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-5);
  max-width: 30ch;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-dim-dark);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--light-base);
  margin-bottom: var(--sp-5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links a {
  font-size: var(--fs-small);
  color: var(--text-muted-dark);
  text-decoration: none;
  transition: color var(--ease-base);
}
.footer-links a:hover { color: var(--green-glow); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.footer-contact-icon {
  width: 18px;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--green-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-text {
  font-size: var(--fs-small);
  color: var(--text-muted-dark);
  line-height: var(--lh-normal);
}
.footer-contact-text a {
  color: var(--text-on-dark);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease-base);
}
.footer-contact-text a:hover { color: var(--green-glow); }

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: #25D366;
  color: var(--light-base);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--sp-3);
  transition: background var(--ease-base), transform var(--ease-base);
}
.footer-wa-btn:hover { background: #1DAA52; transform: translateY(-2px); }

.footer-bottom {
  padding-block: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.8125rem; color: var(--text-dim-dark); }
.footer-copy a { color: var(--green-light); font-weight: 500; text-decoration: none; }
.footer-copy a:hover { color: var(--green-glow); }
.footer-made { font-size: 0.8125rem; color: var(--text-dim-dark); }


/* ============================================================
   13. REVEAL ANIMATIONS (Progressive Enhancement)
   ============================================================
   Without JS:  all .reveal elements stay visible (no hidden state).
   With JS:     main.js adds 'js-enabled' to <html>.
                CSS applies the initial hidden state.
                IntersectionObserver adds .visible when in view.
*/

.reveal {
  transition: opacity 0.75s ease, transform 0.75s ease;
}

html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(26px);
}

html.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-enabled .reveal-delay-1 { transition-delay: 0.08s; }
html.js-enabled .reveal-delay-2 { transition-delay: 0.16s; }
html.js-enabled .reveal-delay-3 { transition-delay: 0.24s; }
html.js-enabled .reveal-delay-4 { transition-delay: 0.32s; }
html.js-enabled .reveal-delay-5 { transition-delay: 0.42s; }
