/* =========================================================================
   OldACBuySell — style.css
   Black / Green / White theme with animations & a left-to-right
   services marquee.

   1.  Design tokens
   2.  Reset & base
   3.  Layout helpers
   4.  Buttons
   5.  Header & navigation
   6.  Hero (full-width background image + entrance animation)
   7.  Trust strip
   8.  Services (left-to-right marquee)
   9.  How it works
   10. Why choose us
   11. Service area
   12. Contact & quote form
   13. FAQ
   14. Footer & floating WhatsApp
   15. Scroll-reveal animations
   16. Motion preferences
   ========================================================================= */


/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
  /* Core palette — Black / Green / White */
  --black: #0A0A0A;
  --black-800: #141414;
  --black-700: #1F1F1F;
  --black-600: #2B2B2B;

  --green: #16A34A;
  --green-600: #128A3E;
  --green-50: #E9F9EF;
  --green-glow: rgba(22, 163, 74, 0.32);

  --white: #FFFFFF;
  --bg-soft: #F6F8F6;
  --bg-soft-2: #EEF2EE;
  --text: #0A0A0A;
  --text-muted: #586158;
  --border: #E2E6E2;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, Helvetica, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.0625rem;
  --fs-h3: 1.125rem;
  --fs-h2: clamp(1.5rem, 4vw, 2.125rem);
  --fs-h1: clamp(1.875rem, 5.6vw, 3.125rem);

  /* Radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.06);
  --shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.06),
                0 4px 12px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 6px 22px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 18px 40px rgba(10, 10, 10, 0.14);

  /* Layout */
  --container: 1180px;
  --header-h: 64px;
  --section-y: 3.25rem;

  /* Transitions */
  --t-fast: 0.16s ease;
  --t-base: 0.24s ease;
  --t-slow: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --section-y: 4.25rem; }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 74px;
    --section-y: 5.25rem;
  }
}


/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  color: var(--black);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.125rem;
  background: var(--black);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus { left: 0; }

.lucide {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  flex-shrink: 0;
}


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

@media (min-width: 768px) {
  .container { padding-inline: 1.5rem; }
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

section[id],
div[id="quote"] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-head { margin-bottom: 2.75rem; }
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.28rem 0.7rem;
  background: var(--green-50);
  color: var(--green-600);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}


/* =========================================================================
   4. BUTTONS
   ========================================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast),
              transform var(--t-fast);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn--primary:hover {
  background: var(--green-600);
  box-shadow: 0 8px 24px var(--green-glow);
  transform: translateY(-2px);
}

/* Subtle sheen sweep on primary buttons */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn--primary:hover::after { left: 130%; }

.btn--whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn--whatsapp:hover {
  background: var(--green-600);
  box-shadow: 0 8px 22px var(--green-glow);
  transform: translateY(-2px);
}

.btn--outline {
  background: #fff;
  color: var(--black);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--green-600);
  transform: translateY(-2px);
}

/* Ghost button — used on the dark hero */
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--block { width: 100%; }


/* =========================================================================
   5. HEADER & NAVIGATION
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--black);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--black);
  color: var(--green);
  transition: transform var(--t-base);
}

.logo:hover .logo-mark { transform: rotate(-8deg); }

.logo-mark .lucide { width: 18px; height: 18px; }

.logo-accent { color: var(--green); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--black);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.nav-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list { display: flex; flex-direction: column; }

.nav-list a {
  display: block;
  padding: 0.8rem 0.5rem;
  color: var(--black);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background-color var(--t-fast);
}

.nav-list a:hover {
  color: var(--green-600);
  background: var(--green-50);
}

.nav-cta { width: 100%; margin-top: 0.75rem; }

@media (min-width: 992px) {
  .nav-toggle { display: none; }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.5rem 0.7rem;
    font-size: var(--fs-sm);
  }

  .nav-cta {
    width: auto;
    margin-top: 0;
    min-height: 42px;
    padding: 0.55rem 1.1rem;
    font-size: var(--fs-sm);
  }
}


/* =========================================================================
   6. HERO — full-width background image + entrance animation
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 540px;
  padding-block: 4.5rem 4rem;

  background-color: var(--black);
  background-image:
    url("hero.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Black overlay with a green tint on the left */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
 
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 640px;
  min-width: 0;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  margin-bottom: 0.9rem;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.36rem 0.85rem;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(22, 163, 74, 0.5);
  border-radius: var(--radius-sm);
  color: #C9F5D5;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-badge .lucide {
  width: 15px;
  height: 15px;
  color: #4ADE80;
}

.hero-lead {
  max-width: 52ch;
  margin-bottom: 1.75rem;
  color: rgba(232, 238, 232, 0.88);
  font-size: var(--fs-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: 160px;
}

@media (min-width: 480px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #E8EEE8;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.hero-points .lucide {
  width: 17px;
  height: 17px;
  color: #4ADE80;
}

/* Hero entrance animation (staggered) */
.hero-badge,
.hero h1,
.hero-lead,
.hero-actions,
.hero-points {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-badge   { animation-delay: 0.10s; }
.hero h1      { animation-delay: 0.22s; }
.hero-lead    { animation-delay: 0.34s; }
.hero-actions { animation-delay: 0.46s; }
.hero-points  { animation-delay: 0.58s; }

@keyframes heroIn {
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .hero {
    min-height: 560px;
    padding-block: 3.5rem 3.25rem;
    background-position: 60% center;
  }
  .hero-content h1 { max-width: 100%; }
}

@media (min-width: 768px) {
  .hero {
    min-height: 580px;
    background-position: center 45%;
  }
  .hero-overlay {
    background: linear-gradient(
      100deg,
      rgba(10, 10, 10, 0.94) 0%,
      rgba(10, 10, 10, 0.78) 40%,
      rgba(10, 10, 10, 0.32) 100%
    );
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 640px;
    padding-block: 5rem 4.5rem;
    background-position: center 45%;
  }
  .hero-content h1 { max-width: 14ch; }
}

@media (min-width: 1280px) {
  .hero { min-height: 680px; }
}


/* =========================================================================
   7. TRUST STRIP
   ========================================================================= */
.trust-strip {
  padding-block: 1.75rem;
  background: var(--black);
}

.trust-strip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

@media (min-width: 900px) {
  .trust-strip-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.trust-strip-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #E8EEE8;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
}

.trust-strip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(22, 163, 74, 0.16);
  color: #4ADE80;
  transition: transform var(--t-base), background-color var(--t-base);
}

.trust-strip-list li:hover .trust-strip-icon {
  transform: translateY(-3px) scale(1.05);
  background: rgba(22, 163, 74, 0.28);
}

.trust-strip-icon .lucide { width: 18px; height: 18px; }


/* =========================================================================
   8. SERVICES — left-to-right infinite marquee
   ========================================================================= */
.services-section { overflow: hidden; }

.services-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* Fade the marquee at both edges */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.services-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding-block: 0.5rem;

  /* Moving from LEFT to RIGHT:
     start shifted left, end at 0 — visually the cards slide rightwards. */
  animation: marqueeLTR 45s linear infinite;
  will-change: transform;
}

/* Pause on hover for readability */
.services-marquee:hover .services-track { animation-play-state: paused; }

@keyframes marqueeLTR {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 280px;
  min-width: 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.16);
}

@media (min-width: 640px)  { .service-card { width: 300px; } }
@media (min-width: 1024px) { .service-card { width: 320px; } }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 11px;
  background: var(--green-50);
  color: var(--green-600);
  transition: transform var(--t-base), background-color var(--t-base),
              color var(--t-base);
}

.service-card:hover .card-icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--green);
  color: #fff;
}

.card-icon .lucide { width: 22px; height: 22px; }

.service-card h3 { margin-bottom: 0.5rem; }

.service-card p {
  flex: 1;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--green-600);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.card-link .lucide {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}

.card-link:hover .lucide { transform: translateX(3px); }


/* =========================================================================
   9. HOW IT WORKS
   ========================================================================= */
.steps {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.step {
  position: relative;
  min-width: 0;
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: background-color var(--t-base), transform var(--t-base);
}

.step:hover .step-number {
  background: var(--green);
  transform: translateX(-50%) scale(1.1);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0.75rem auto 1rem;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-600);
  transition: transform var(--t-base), background-color var(--t-base),
              color var(--t-base);
}

.step:hover .step-icon {
  background: var(--green);
  color: #fff;
  transform: scale(1.05) rotate(-4deg);
}

.step-icon .lucide { width: 25px; height: 25px; }

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }

@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1.75rem;
    width: 1.75rem;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--border) 0 7px,
      transparent 7px 13px
    );
  }
}


/* =========================================================================
   10. WHY CHOOSE US
   ========================================================================= */
.why-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.why-media {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}

.why-media:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-media:hover img { transform: scale(1.05); }

.why-content { min-width: 0; }
.why-content .eyebrow { margin-bottom: 0.6rem; }

.why-lead {
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.benefit-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 1.75rem;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  font-size: var(--fs-sm);
  transition: transform var(--t-fast);
}

.benefit-list li:hover { transform: translateX(4px); }

.benefit-list .lucide {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  stroke-width: 3;
}


/* =========================================================================
   11. SERVICE AREA
   ========================================================================= */
.area-card {
  max-width: 800px;
  margin-inline: auto;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.area-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .area-card { padding: 2.5rem; }
}

.area-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: left;
}

.area-note .lucide {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex-shrink: 0;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.area-list li {
  padding: 0.4rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--black);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background-color var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast);
}

.area-list li:hover {
  background: var(--green-50);
  border-color: var(--green);
  color: var(--green-600);
  transform: translateY(-2px);
}


/* =========================================================================
   12. CONTACT & QUOTE FORM
   ========================================================================= */

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.form-card,
.contact-card {
  min-width: 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.form-card:hover,
.contact-card:hover {
  border-color: #C7E8D2;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .form-card,
  .contact-card { padding: 2rem; }
}

.form-title { margin-bottom: 0.25rem; }

.form-help {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.req { color: #D64545; font-weight: 700; }
.optional { color: var(--text-muted); font-weight: 400; }

.form-grid {
  display: grid;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field label {
  margin-bottom: 0.4rem;
  color: var(--black);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder { color: #93A5B8; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #C2D4C8; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
  outline: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23586158' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #D64545;
  background: #FFF8F8;
}

.field-error {
  margin: 0.35rem 0 0;
  color: #C33;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.field-error:empty { display: none; }

.quote-form .btn--block { margin-top: 1.5rem; }

.form-disclaimer {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-align: center;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  background: var(--green-50);
  border: 1px solid #BFE7D3;
  color: #14603C;
}

.form-status a {
  color: #14603C;
  font-weight: 700;
  text-decoration: underline;
}

.contact-card h3 { margin-bottom: 0.35rem; }

.contact-intro {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.contact-list {
  display: grid;
  gap: 1.125rem;
  margin-bottom: 1.5rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-600);
  transition: transform var(--t-base), background-color var(--t-base),
              color var(--t-base);
}

.contact-list li:hover .contact-icon {
  background: var(--green);
  color: #fff;
  transform: scale(1.06);
}

.contact-icon--green {
  background: var(--green-50);
  color: var(--green-600);
}

.contact-icon .lucide { width: 19px; height: 19px; }

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.contact-text small {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-text a,
.contact-text span {
  color: var(--black);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-text a:hover { color: var(--green-600); }


/* =========================================================================
   13. FAQ
   ========================================================================= */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
              transform var(--t-fast);
}

.faq-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.faq-heading { margin: 0; font-size: inherit; }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 58px;
  padding: 1rem 1.125rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: color var(--t-fast);
}

.faq-btn:hover { color: var(--green-600); }

.faq-chevron {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--black);
  transition: transform var(--t-base), background-color var(--t-fast),
              color var(--t-fast);
}

.faq-chevron .lucide { width: 17px; height: 17px; }

.faq-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  background: var(--green-50);
  color: var(--green-600);
}

.faq-panel {
  padding: 0 1.125rem 1.15rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  animation: faqFade 0.2s ease;
}

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   14. FOOTER & FLOATING WHATSAPP
   ========================================================================= */
.site-footer {
  background: var(--black);
  color: #C6CEC6;
  padding-top: 2.75rem;
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2rem;
  }
}

.logo--footer { color: #fff; margin-bottom: 0.9rem; }

.logo--footer .logo-mark {
  background: rgba(22, 163, 74, 0.2);
  color: #4ADE80;
}

.footer-brand p {
  max-width: 34ch;
  color: #9AA69A;
  font-size: var(--fs-sm);
}

.footer-title {
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul { display: grid; gap: 0.55rem; }

.footer-col a {
  color: #C6CEC6;
  font-size: var(--fs-sm);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-col a:hover {
  color: #4ADE80;
  padding-left: 3px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-sm);
}

.footer-contact .lucide {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #4ADE80;
  flex-shrink: 0;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #8A958A;
  font-size: var(--fs-xs);
}

/* Floating WhatsApp button with pulse ring */
.whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 22px var(--green-glow);
  transition: transform var(--t-fast), background-color var(--t-fast);
}

.whatsapp-fab:hover {
  background: var(--green-600);
  transform: scale(1.08);
}

.whatsapp-fab-icon {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

.whatsapp-fab .lucide { width: 25px; height: 25px; }

/* Soft pulsing ring behind the FAB */
.whatsapp-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.55;
  z-index: 1;
  animation: fabPulse 2.2s ease-out infinite;
}

@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (min-width: 768px) {
  .whatsapp-fab {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 58px;
    height: 58px;
  }
}


/* =========================================================================
   15. SCROLL-REVEAL ANIMATIONS
   Applied via [data-reveal] + IntersectionObserver in script.js
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays for grouped items (steps, FAQ) */
[data-reveal-delay="1"].is-visible { transition-delay: 0.05s; }
[data-reveal-delay="2"].is-visible { transition-delay: 0.12s; }
[data-reveal-delay="3"].is-visible { transition-delay: 0.19s; }
[data-reveal-delay="4"].is-visible { transition-delay: 0.26s; }
[data-reveal-delay="5"].is-visible { transition-delay: 0.33s; }
[data-reveal-delay="6"].is-visible { transition-delay: 0.40s; }


/* =========================================================================
   16. MOTION PREFERENCES
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Stop the marquee and let users see cards in a scrollable row */
  .services-track {
    animation: none !important;
    transform: none !important;
  }

  .services-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ensure all revealed content is visible */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}