/* =========================================================
   Clean Guard — Shared Stylesheet
   All design tokens live here. Never hardcode hex values
   in page files; always reference a custom property.
   ========================================================= */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand */
  --brand:       #27AE60;
  --brand-dark:  #1E8449;
  --brand-light: #E8F8EF;
  --brand-rgb:   39, 174, 96;

  /* Page */
  --bg:       #F6F9F7;
  --surface:  #FFFFFF;

  /* Text */
  --ink:       #1A2332;
  --ink-muted: #64748B;

  /* Footer */
  --footer-bg: #0F1923;

  /* Category accents */
  --cat-red:    #EF4444;
  --cat-orange: #F97316;
  --cat-amber:  #F59E0B;
  --cat-green:  #27AE60;
  --cat-blue:   #3B82F6;
  --cat-purple: #8B5CF6;

  /* Shape */
  --radius:     20px;
  --radius-btn: 100px;
  --radius-sm:  10px;

  /* Shadows — three-layer for premium depth */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.07), 0 12px 32px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.06), 0 12px 32px rgba(var(--brand-rgb),.15), 0 28px 56px rgba(0,0,0,.10);

  /* Layout */
  --max-w:       1140px;
  --section-gap: 100px;
  --header-h:    68px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { color: var(--ink-muted); line-height: 1.72; }

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-gap);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.18s ease,
              background 0.15s ease,
              color 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

/* Green on white bg */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 2px 6px rgba(var(--brand-rgb),.2), 0 6px 20px rgba(var(--brand-rgb),.32);
}
.btn-brand:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--brand-rgb),.22), 0 10px 28px rgba(var(--brand-rgb),.4);
}

/* Outline green */
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
}

/* White (on green bg) */
.btn-white {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}
.btn-white:hover {
  background: #f0faf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* Outline white (on green bg) */
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  background: var(--brand-light);
  color: var(--brand);
  flex-shrink: 0;
}

.card-icon svg { width: 26px; height: 26px; }

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

.card-checklist {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.card-checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--brand);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Category-colored card icon variants */
.card-icon--red    { background: #FEF2F2; color: var(--cat-red); }
.card-icon--orange { background: #FFF7ED; color: var(--cat-orange); }
.card-icon--amber  { background: #FFFBEB; color: var(--cat-amber); }
.card-icon--blue   { background: #EFF6FF; color: var(--cat-blue); }
.card-icon--purple { background: #F5F3FF; color: var(--cat-purple); }

/* Category-colored card top accent border */
.card--red    { border-top: 4px solid var(--cat-red); }
.card--orange { border-top: 4px solid var(--cat-orange); }
.card--amber  { border-top: 4px solid var(--cat-amber); }
.card--green  { border-top: 4px solid var(--cat-green); }
.card--blue   { border-top: 4px solid var(--cat-blue); }
.card--purple { border-top: 4px solid var(--cat-purple); }

/* ── Scroll-in Animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.22,1,.36,1);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for sibling groups */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand / logo */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand__logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.header-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-brand__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.header-brand__sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.site-nav a.active {
  color: var(--brand);
  font-weight: 600;
}

/* Phone link in nav */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-phone:hover {
  color: var(--brand);
  background: var(--brand-light);
}
.nav-phone:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.nav-phone__icon {
  width: 28px;
  height: 28px;
  background: var(--brand-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-phone:hover .nav-phone__icon { background: var(--brand); }
.nav-phone__icon svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
  transition: color 0.15s ease;
}
.nav-phone:hover .nav-phone__icon svg { color: #fff; }

/* CTA pill button in nav */
.site-nav .btn-brand {
  margin-left: 0.25rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  border-radius: 100px;
  gap: 0.45rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.nav-toggle:hover { background: var(--brand-light); }

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Open state — X icon */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .header-brand__logo { height: 56px; width: auto; }
  .header-brand { gap: 2px; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(0,0,0,.07);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-open .site-nav { display: flex; }

  .site-nav a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .nav-phone {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .site-nav .btn-brand {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 100px;
  }
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding-block: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle texture overlay */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='white' opacity='.06'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.cta-banner p {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px) {
  .cta-banner { padding-block: 52px; }
  .cta-banner__actions { flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; justify-content: center; }
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.72);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem 3rem;
  padding-bottom: 48px;
}

/* Brand column */
.footer-brand__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.9rem;
}

.footer-brand__logo {
  height: 100px;
  width: auto;
  color: var(--brand);
  flex-shrink: 0;
}

.footer-brand__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.footer-brand__sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,.5);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.6);
  max-width: 28ch;
}

/* Contact highlight box inside brand column */
.footer-brand__contact {
  margin-top: 1.25rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-brand__contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,.72);
  transition: color 0.15s ease;
}

.footer-brand__contact-item:hover { color: #fff; }

.footer-brand__contact-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--brand);
}

.footer-brand__contact-item--phone {
  color: var(--brand);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Links columns */
.footer-links h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255,255,255,.88);
  margin-bottom: 1rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(3px);
}

.footer-links li:not(:has(a)) {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
}

/* Footer bottom bar */
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 18px;
}

.footer-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bar__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

.footer-bar__policies {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-bar__policies a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
  transition: color 0.15s ease;
}

.footer-bar__policies a:hover { color: rgba(255,255,255,.75); }

/* Footer responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bar .container { flex-direction: column; align-items: flex-start; }
}

/* ── Hero gradient utility ── */
.hero-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

/* ── Stats row utility ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-card {
  flex: 1 1 140px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ── Card grid utilities ── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid-4,
  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ── Form elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--cat-red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.form-error {
  font-size: 0.8rem;
  color: var(--cat-red);
  display: none;
}

.form-group.has-error .form-error { display: block; }

/* ── Language Toggle ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.15rem;
}

.lang-toggle__opt {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1;
  transition: color 0.15s ease;
}

.lang-toggle__opt:hover { color: var(--brand); }

.lang-toggle__opt--active {
  color: var(--brand);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}

.lang-toggle__sep {
  display: block;
  width: 1px;
  height: 11px;
  background: rgba(0,0,0,.2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lang-toggle {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: 10px;
    margin-left: 0;
    margin-top: 0.25rem;
    gap: 0.1rem;
  }
  .lang-toggle__opt {
    font-size: 0.9rem;
    padding: 0.3rem 0.55rem;
  }
}
