/* ─── TOKENS ─────────────────────────────────── */
:root {
  --green-900: #0d2016;
  --green-800: #1b3a28;
  --green-700: #2d5a3d;
  --green-600: #3d7a52;
  --green-400: #6aab7a;
  --gold:      #d4a843;
  --gold-lt:   #e8c46e;
  --sand:      #f7f3ec;
  --white:     #ffffff;
  --gray-100:  #f5f5f5;
  --gray-200:  #e5e5e5;
  --gray-400:  #a3a3a3;
  --text:      #1a1a1a;
  --muted:     #666666;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-xl:   clamp(1.25rem, 1rem + 1.25vw, 1.875rem);
  --fs-2xl:  clamp(1.75rem, 1rem + 3vw, 2.75rem);
  --fs-3xl:  clamp(2.25rem, 1rem + 5vw, 4rem);
  --fs-hero: clamp(2.75rem, 1rem + 8vw, 6.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.18);

  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
figure { margin: 0; }

/* ─── UTILITY ────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; display: block; width: 2rem; height: 1.5px; background: currentColor; }
.eyebrow--gold { color: var(--gold-lt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-16); }

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.section-title--light { color: var(--white); }

.section-sub { font-size: var(--fs-lg); color: var(--muted); line-height: 1.7; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .9rem 2rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .02em;
  transition: transform var(--dur-base) var(--ease-expo), box-shadow var(--dur-base) var(--ease-expo), background var(--dur-fast) ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--gold { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,.4); }

.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn--green { background: var(--green-700); color: var(--white); justify-content: center; }
.btn--green:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,90,61,.35); }

.btn--lg { padding: 1.1rem 2.5rem; font-size: var(--fs-base); }
.btn--full { width: 100%; }

/* ─── NAV ────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.25rem 0;
  transition: padding var(--dur-base) ease, background var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.nav--solid { background: var(--green-900); padding: .875rem 0; box-shadow: 0 2px 24px rgba(0,0,0,.3); }

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--white);
  text-decoration: none;
}
.nav__leaf { width: 32px; height: 36px; flex-shrink: 0; }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-top { font-family: var(--ff-display); font-size: var(--fs-xl); font-weight: 700; }
.nav__logo-btm { font-size: var(--fs-xs); font-weight: 400; letter-spacing: .06em; opacity: .75; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links a {
  color: rgba(255,255,255,.82);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur-fast) ease;
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  background: var(--gold) !important;
  color: var(--green-900) !important;
  padding: .55rem 1.25rem;
  border-radius: var(--r-md);
  font-weight: 600 !important;
  font-size: var(--fs-sm) !important;
  transition: background var(--dur-fast) ease, transform var(--dur-base) var(--ease-expo) !important;
}
.nav__cta:hover { background: var(--gold-lt) !important; transform: translateY(-1px); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  padding: .35rem .7rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: border-color var(--dur-fast) ease;
  color: rgba(255,255,255,.75);
}
.lang-toggle:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.lang-toggle__en, .lang-toggle__es { transition: color var(--dur-fast) ease; }
.lang-toggle__sep { opacity: .4; }
body.lang-es .lang-toggle__en { opacity: .45; }
body:not(.lang-es) .lang-toggle__es { opacity: .45; }
body.lang-es .lang-toggle__es { color: var(--gold); }
body:not(.lang-es) .lang-toggle__en { color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 201;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--dur-base) ease, opacity var(--dur-base) ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,32,22,.93) 0%, rgba(13,32,22,.72) 45%, rgba(13,32,22,.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(80px + 4rem) var(--space-6) var(--space-16);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}
.hero__eyebrow::before { content: ''; display: block; width: 2rem; height: 1.5px; background: var(--gold); }

.hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: var(--space-6);
  max-width: 680px;
}
.hero__title em { font-style: italic; color: var(--gold); }

.hero__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-8);
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__scroll-line {
  width: 1.5px;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .6; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 1;  transform: scaleY(1.15); transform-origin: top; }
}

/* ─── STATS ──────────────────────────────────── */
.stats { background: var(--green-800); padding: var(--space-12) 0; }
.stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  border-right: 1px solid rgba(255,255,255,.1);
}
.stats__item:last-child { border-right: none; }
.stats__num {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stats__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* ─── SERVICES ───────────────────────────────── */
.services { padding: var(--space-24) 0; background: var(--sand); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

.svc-card {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  transition: transform var(--dur-slow) var(--ease-expo), box-shadow var(--dur-slow) var(--ease-expo), border-color var(--dur-slow) ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }

.svc-card__icon {
  width: 56px; height: 56px;
  background: rgba(45,90,61,.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.svc-card__icon svg { width: 28px; height: 28px; color: var(--green-700); }

.svc-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.svc-card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.75; }

/* ─── BEFORE/AFTER ───────────────────────────── */
.ba-section { padding: var(--space-24) 0 var(--space-16); }

.ba-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 1400px;
  margin: 0 auto var(--space-12);
  padding: 0 var(--space-6);
}

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 3/4;
  cursor: ew-resize;
  user-select: none;
  box-shadow: var(--shadow-lg);
}

.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.ba-after { clip-path: inset(0 50% 0 0); }
.ba-slider.is-dragging .ba-after { transition: none; }

.ba-chip {
  position: absolute;
  bottom: 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  z-index: 2;
}
.ba-chip--before { right: 1rem; background: rgba(0,0,0,.6); color: var(--white); }
.ba-chip--after  { left:  1rem; background: var(--green-700);  color: var(--white); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}
.ba-handle__line { flex: 1; width: 2px; background: rgba(255,255,255,.9); }
.ba-handle__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba-handle__btn svg { width: 20px; height: 20px; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}
.gallery-item { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4/3; }
.gallery-item--tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item--wide { grid-column: span 2; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-expo); }
.gallery-item:hover img { transform: scale(1.05); }

/* ─── ABOUT ──────────────────────────────────── */
.about { background: var(--green-800); padding: var(--space-24) 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-24);
  align-items: center;
}

.about__body p {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-8);
}
.about__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.about__list li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.about__cta {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  text-align: center;
  min-width: 280px;
}
.about__cta-label {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--white);
  margin-bottom: var(--space-6);
  display: block;
}
.about__cta-or {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  margin-top: var(--space-4);
}

/* ─── CONTACT ────────────────────────────────── */
.contact { padding: var(--space-24) 0; background: var(--sand); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.contact__info p { font-size: var(--fs-lg); color: var(--muted); line-height: 1.7; margin-bottom: var(--space-8); }
.contact__links { display: flex; flex-direction: column; gap: var(--space-4); }
.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text);
  font-weight: 500;
  transition: color var(--dur-fast) ease;
}
.contact__link:hover { color: var(--green-700); }
.contact__link svg { width: 20px; height: 20px; color: var(--green-700); flex-shrink: 0; }
.contact__link--static { pointer-events: none; }

/* Form */
.contact__form {
  background: var(--white);
  padding: var(--space-8);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: var(--space-4); }
.form-group label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(61,122,82,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-note { text-align: center; font-size: var(--fs-xs); color: var(--gray-400); margin-top: var(--space-4); }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background: var(--green-900); padding: var(--space-16) 0 var(--space-6); }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__logo { display: inline-flex; margin-bottom: var(--space-4); }
.footer__brand p { font-size: var(--fs-sm); color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; }

.footer__top nav h3,
.footer__contact h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  color: var(--white);
  margin-bottom: var(--space-4);
}
.footer__top nav ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__top nav a { font-size: var(--fs-sm); color: rgba(255,255,255,.5); transition: color var(--dur-fast) ease; }
.footer__top nav a:hover { color: var(--gold); }

.footer__contact { display: flex; flex-direction: column; gap: var(--space-2); }
.footer__contact a,
.footer__contact p { font-size: var(--fs-sm); color: rgba(255,255,255,.5); transition: color var(--dur-fast) ease; }
.footer__contact a:hover { color: var(--gold); }

.footer__bottom { padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer__bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,.3); }

/* ─── SCROLL REVEAL ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-expo), transform .7s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .ba-row          { grid-template-columns: repeat(2, 1fr); }
  .ba-row .ba-slider:nth-child(3) { grid-column: span 2; aspect-ratio: 16/7; }
  .about__inner    { grid-template-columns: 1fr; gap: var(--space-12); }
  .about__cta      { max-width: 400px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--green-900);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    z-index: 200;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: var(--fs-xl); }

  .stats__inner    { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }

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

  .ba-row          { grid-template-columns: 1fr; }
  .ba-row .ba-slider:nth-child(3) { grid-column: span 1; aspect-ratio: 3/4; }
  .ba-slider       { aspect-ratio: 3/4; }

  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--tall { grid-row: auto; }
  .gallery-item--wide { grid-column: span 2; }

  .contact__inner  { grid-template-columns: 1fr; gap: var(--space-12); }
  .form-row        { grid-template-columns: 1fr; }

  .footer__top     { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__actions   { flex-direction: column; }
  .about__list     { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
}
