/* =========================================================================
   SENDY ERRANDS — DESIGN SYSTEM
   Palette extracted from the brand logo + real packaging/uniform photography.
   Signature motif: the "waybill" — dashed cut-lines, corner notches and a
   ticket-stub silhouette borrowed from Sendy's actual pink poly-mailers.
   ========================================================================= */

:root {
  /* ---- Brand palette (from logo + packaging) ---- */
  --brand-primary:      #E0116E;   /* hot magenta-pink from the logo/polo/mailers */
  --brand-primary-dark: #9C0B4E;   /* deep pink-maroon, gradient end + hover states */
  --brand-primary-100:  #FDE7F0;   /* pale pink tint for backgrounds/badges */
  --brand-ink:          #171214;   /* near-black, from the wordmark + rider cap text */
  --brand-cream:        #FFF9F6;   /* warm off-white page background */
  --brand-white:        #FFFFFF;
  --brand-line:         #F0E2E8;   /* hairline borders on cream */

  /* ---- Functional (status) colors — not decorative brand colors ---- */
  --status-success:  #1E8E5A;
  --status-warning:  #B8790A;
  --status-danger:   #C21F3A;
  --status-info:     #2563AF;

  /* ---- Text ---- */
  --text-primary:   var(--brand-ink);
  --text-secondary: #5B5257;
  --text-muted:     #8B8285;
  --text-on-brand:  #FFFFFF;

  /* ---- Type ---- */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Layout ---- */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(23,18,20,0.06), 0 1px 1px rgba(23,18,20,0.04);
  --shadow-md: 0 8px 24px rgba(23,18,20,0.08);
  --shadow-lg: 0 20px 48px rgba(23,18,20,0.14);
  --gradient-brand: linear-gradient(160deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--brand-cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.01em; color: var(--brand-ink); }
p { margin: 0 0 1em; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Focus visibility (accessibility) ---- */
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 36px 0; }
}

/* Legal documents (Terms, Privacy Policy) — long-form numbered content */
.legal-doc h3 { font-family: var(--font-display); font-size: 19px; margin-top: 30px; margin-bottom: 10px; color: var(--text-primary); }
.legal-doc h4 { font-family: var(--font-display); font-size: 15.5px; margin-top: 20px; margin-bottom: 8px; color: var(--text-primary); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: var(--brand-primary); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--brand-primary-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { font-size: 17px; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-primary); color: var(--text-on-brand); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-primary-dark); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--brand-ink); color: var(--text-on-brand); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-outline:hover { background: var(--brand-ink); color: var(--text-on-brand); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   CARD STYLE (formerly a dashed "waybill" motif — removed per feedback,
   kept as a clean rounded card since it's used across many pages)
   ========================================================================= */
.waybill {
  position: relative;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brand-line);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.navbar__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--brand-ink); }
.navbar__logo img { height: 34px; width: auto; }
.navbar__logo-mark { height: 46px; width: 46px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }

/* Shared stacked wordmark ("Sendy" over "Errands"). Used by the navbar,
   the footer and the dashboard sidebars so the lockup is defined once. */
.logo-stack { display: flex; flex-direction: column; line-height: 1; }
.logo-stack__top { font-size: 19px; font-weight: 700; }
.logo-stack__bottom { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--brand-primary); margin-top: 2px; }
.navbar__links { display: flex; align-items: center; gap: 30px; }
.navbar__links a { font-weight: 600; font-size: 14.5px; color: var(--text-secondary); transition: color 0.15s ease; }
.navbar__links a:hover, .navbar__links a.is-active { color: var(--brand-primary); }
.navbar__cta { display: flex; align-items: center; gap: 12px; }
.navbar__burger {
  display: none; background: none; border: none; padding: 11px;
  position: relative; z-index: 2; cursor: pointer;
  min-width: 44px; min-height: 44px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.navbar__burger span { display: block; width: 22px; height: 2px; background: var(--brand-ink); margin: 5px 0; border-radius: 2px; pointer-events: none; }

.mobile-menu { display: none; }
@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__cta .btn-outline { display: none; }
  .navbar__burger { display: block; }
  .mobile-menu.is-open {
    display: block; position: fixed;
    top: 76px; right: 0; bottom: 0; left: 0; /* longhands: `inset` is unsupported on iOS Safari < 14.5 */
    background: var(--brand-cream);
    z-index: 101; padding: 24px 20px; overflow-y: auto;
  }
  .mobile-menu a { display: block; padding: 16px 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--brand-line); }
  .mobile-menu .btn { margin-top: 20px; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding: 56px 0 80px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-ink); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 700; }
.hero h1 .accent { color: var(--brand-primary); }
.hero__lead { font-size: 18px; max-width: 480px; margin-bottom: 28px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 30px; }
.hero__trust .item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.hero__trust svg { flex-shrink: 0; color: var(--brand-primary); }

.hero__visual { position: relative; }
.hero__photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
}
.hero__photo-card img { width: 100%; height: 100%; object-fit: cover; }
/* Show a photo at its own proportions instead of cropping it to the card.
   Used where the subject matters more than the banner shape — a square source
   forced into a 16:7 card loses ~56% of its height and cuts people off. */
.photo-card--natural { aspect-ratio: auto; }
.photo-card--natural img { height: auto; display: block; object-fit: contain; }
.hero__floating-card {
  position: absolute; left: -28px; bottom: -24px;
  z-index: 3;
  background: var(--brand-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  max-width: 250px;
  animation: floatUp 3.2s ease-in-out 1.1s infinite, heroRise 0.6s ease 0.9s both;
}
@keyframes floatUp { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
.hero__floating-card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-primary-100); display: flex; align-items: center; justify-content: center; color: var(--brand-primary); flex-shrink: 0; }
.hero__floating-card strong { display: block; font-size: 14px; }
.hero__floating-card span { font-size: 12.5px; color: var(--text-muted); }
.hero__badge-top {
  position: absolute; top: -18px; right: 18px;
  z-index: 3;
  background: var(--brand-ink); color: #fff;
  border-radius: 999px; padding: 10px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto 20px; }
  .hero__floating-card { left: 12px; bottom: -18px; }
}

/* =========================================================================
   QUICK BOOKING WIDGET
   ========================================================================= */
.booking-widget {
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.booking-card {
  padding: 30px;
}
.booking-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 24px; flex-wrap: wrap; }
.booking-card__head h3 { margin: 0; font-size: 21px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 22px; }
.service-pill {
  border: 2px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--brand-white);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.service-pill input { position: absolute; opacity: 0; pointer-events: none; }
.service-pill svg { color: var(--brand-primary); }
.service-pill:hover { border-color: var(--brand-primary); }
.service-pill.is-selected { border-color: var(--brand-primary); background: var(--brand-primary-100); color: var(--brand-ink); }
@media (max-width: 720px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  background: var(--brand-white);
  color: var(--text-primary);
  width: 100%;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-primary); outline: none; }
.field textarea { resize: vertical; min-height: 90px; }
.field-hint { font-size: 12.5px; color: var(--text-muted); }

/* ---- Address suggestions (see [data-place-search] in main.js) ----
   A real list rather than <datalist>, which on a phone either draws nothing
   (Firefox for Android), hides in a strip above the keyboard (iOS Safari), or
   ignores options added after the field already has text — which is all of
   them, since they arrive from the network. */
/* ---- Top bar: where we are ----
   Sits above the navbar on every page. Deliberately quiet — it is context,
   not navigation, and it must not compete with the logo directly beneath it. */
.topbar { background: var(--brand-primary-100, #FDE7F0); border-bottom: 1px solid var(--brand-line); }
.topbar__inner { display: flex; align-items: center; justify-content: flex-start; min-height: 38px; }
.topbar .hero__place { margin-bottom: 0; font-size: 13px; }
@media (max-width: 640px) { .topbar .hero__place { font-size: 12.5px; gap: 6px; } }

.hero__place {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 14px;
}
.hero__place svg { color: var(--text-primary); }
.hero__change {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.hero__change:hover { color: var(--brand-primary); }
.hero__city-select {
  font: inherit; font-weight: 600; padding: 5px 8px;
  border: 1.5px solid var(--brand-line); border-radius: var(--radius-sm); background: var(--brand-white);
}

.place-search { position: relative; }
.place-search__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--brand-white);
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.16);
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Lets a finger drag the list without the page scrolling behind it. */
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.place-search.is-above .place-search__list { top: auto; bottom: calc(100% + 4px); }
.place-search__option {
  display: flex;
  align-items: center;
  /* 44px is the smallest thing a thumb hits reliably. A one-line suggestion
     comes to 41px on padding alone. */
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary);
  /* iOS only treats a tap on a non-interactive element as a click when it
     looks clickable. Without this, options do nothing on an iPhone. */
  cursor: pointer;
}
.place-search__option:hover,
.place-search__option.is-active { background: var(--brand-primary-100); color: var(--brand-primary); }
.place-search__note { padding: 11px 12px; font-size: 13px; color: var(--text-muted); }

/* ---- Password show/hide toggle ---- */
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  background: none; border: none; border-radius: 8px;
  color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.password-toggle:hover { color: var(--text-primary); background: var(--brand-cream); }

/* =========================================================================
   SERVICE CARDS
   ========================================================================= */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-cards { grid-template-columns: 1fr; } }
.service-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-primary-100); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 16px; }
.service-card .link { font-weight: 700; font-size: 13.5px; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--brand-primary); font-weight: 700; letter-spacing: 0.05em; margin-bottom: 14px; display: block; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* =========================================================================
   TRACKER
   ========================================================================= */
.tracker { display: flex; align-items: flex-start; justify-content: space-between; margin: 28px 0; }
.tracker__step { flex: 1; text-align: center; position: relative; }
.tracker__step::before {
  content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: var(--brand-line); z-index: 0;
}
.tracker__step:first-child::before { display: none; }
.tracker__step.is-done::before { background: var(--brand-primary); }
.tracker__dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-white);
  border: 2px solid var(--brand-line); margin: 0 auto 8px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.tracker__step.is-done .tracker__dot { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.tracker__step.is-current .tracker__dot { border-color: var(--brand-primary); color: var(--brand-primary); animation: pulse 1.6s ease-in-out infinite, dotGlow 1.6s ease-in-out infinite; }
.tracker__label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* =========================================================================
   APP DOWNLOAD SECTION
   ========================================================================= */
.app-section { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.app-section__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 60px; }
@media (max-width: 900px) { .app-section__inner { grid-template-columns: 1fr; padding: 40px 26px; } }
.app-section h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); }
.app-section p { color: rgba(255,255,255,0.85); }
.app-benefits { display: grid; gap: 12px; margin: 22px 0 28px; }
.app-benefits li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,0.92); }
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.25); padding: 10px 18px; border-radius: 12px; }
.store-btn small { display: block; font-size: 10.5px; opacity: 0.75; }
.store-btn strong { display: block; font-size: 15px; }
.app-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.app-mockup-img { max-width: 260px; width: 100%; border-radius: 20px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35)); animation: floatUp 4s ease-in-out infinite; }
.qr-box { background: #fff; padding: 14px; border-radius: 16px; width: fit-content; margin: 0 auto; text-align: center; }
.qr-box .qr-placeholder { width: 140px; height: 140px; background: repeating-linear-gradient(45deg, #eee, #eee 6px, #fff 6px, #fff 12px); border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 11px; }
.qr-box span { color: var(--brand-ink); font-size: 12px; font-weight: 700; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---- CEO / leadership block (about page) ---- */
.ceo-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.ceo-grid__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius-md); border: 1px solid var(--brand-line); box-shadow: var(--shadow-md);
}
.ceo-grid__bio p { margin-bottom: 14px; }
.ceo-grid__bio p:last-of-type { margin-bottom: 0; }
.ceo-grid__tagline {
  margin: 22px 0 0; padding: 14px 18px;
  border-left: 3px solid var(--brand-primary);
  background: var(--brand-cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-weight: 600; color: var(--brand-ink);
}
@media (max-width: 820px) {
  .ceo-grid { grid-template-columns: 1fr; gap: 26px; }
  /* Cap the portrait so it doesn't dominate a narrow screen. */
  .ceo-grid__photo { max-width: 260px; margin: 0 auto; }
  .ceo-grid__photo img { aspect-ratio: 1 / 1; }
}
.testimonial-card { background: var(--brand-white); border: 1px solid var(--brand-line); border-radius: var(--radius-md); padding: 24px; }
.testimonial-card .stars { color: #F5A623; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14.5px; color: var(--text-primary); }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.testimonial-card .who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.testimonial-card .who strong { display: block; font-size: 13.5px; }
.testimonial-card .who span { font-size: 12px; color: var(--text-muted); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-item { border-bottom: 1px solid var(--brand-line); }
.faq-item summary { cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--brand-primary); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; font-size: 14.5px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--brand-ink); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__logo { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer__logo-mark { height: 44px; width: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.75); }
.footer__bottom-right { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer__bottom-right a { color: rgba(255,255,255,0.75); }
.footer__bottom-right a:hover { color: #fff; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }

/* =========================================================================
   MOTION SYSTEM — hero entrance, staggered reveals, nav shrink, micro-interactions
   All respect prefers-reduced-motion via the global override at the top of this file.
   ========================================================================= */

/* ---- Page-load fade (avoids a flash of unstyled/static content) ---- */
body { animation: pageFadeIn 0.5s ease both; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---- Hero entrance sequence: each direct child animates in, staggered ---- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__grid > div:first-child > * {
  opacity: 0;
  animation: heroRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__grid > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.hero__grid > div:first-child > *:nth-child(2) { animation-delay: 0.15s; }
.hero__grid > div:first-child > *:nth-child(3) { animation-delay: 0.25s; }
.hero__grid > div:first-child > *:nth-child(4) { animation-delay: 0.35s; }
.hero__grid > div:first-child > *:nth-child(5) { animation-delay: 0.45s; }

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateX(28px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.hero__visual { animation: heroVisualIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

.hero__badge-top { animation: heroRise 0.6s ease 0.75s both; }

/* ---- Staggered scroll-reveal for card grids (service cards, steps, testimonials) ---- */
.js-reveal .service-cards[data-reveal] .service-card,
.js-reveal .steps[data-reveal] .step,
.js-reveal .testimonial-grid[data-reveal] .testimonial-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal .service-cards[data-reveal].is-visible .service-card,
.js-reveal .steps[data-reveal].is-visible .step,
.js-reveal .testimonial-grid[data-reveal].is-visible .testimonial-card {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal .service-cards[data-reveal] .service-card:nth-child(1), .js-reveal .steps[data-reveal] .step:nth-child(1), .js-reveal .testimonial-grid[data-reveal] .testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.js-reveal .service-cards[data-reveal] .service-card:nth-child(2), .js-reveal .steps[data-reveal] .step:nth-child(2), .js-reveal .testimonial-grid[data-reveal] .testimonial-card:nth-child(2) { transition-delay: 0.14s; }
.js-reveal .service-cards[data-reveal] .service-card:nth-child(3), .js-reveal .steps[data-reveal] .step:nth-child(3), .js-reveal .testimonial-grid[data-reveal] .testimonial-card:nth-child(3) { transition-delay: 0.23s; }
.js-reveal .service-cards[data-reveal] .service-card:nth-child(4), .js-reveal .steps[data-reveal] .step:nth-child(4) { transition-delay: 0.32s; }
.js-reveal .steps[data-reveal] .step:nth-child(5) { transition-delay: 0.41s; }
.js-reveal .service-cards[data-reveal] .service-card:nth-child(5) { transition-delay: 0.41s; }
.js-reveal .service-cards[data-reveal] .service-card:nth-child(6) { transition-delay: 0.5s; }
.js-reveal .service-cards[data-reveal] .service-card:nth-child(7) { transition-delay: 0.59s; }

/* ---- Sticky nav: gains depth once the page scrolls ---- */
.navbar { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.navbar.is-scrolled { box-shadow: 0 4px 20px rgba(23,18,20,0.06); background: rgba(255, 249, 246, 0.98); }

/* ---- Button micro-interactions: lift on hover, ripple on click ---- */
.btn { position: relative; overflow: hidden; transform: translateY(0); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55);
  transform: scale(0); animation: rippleOut 0.6s ease-out forwards; pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }

/* ---- Card hover lift refinement (adds a subtle tilt via perspective) ---- */
.service-card, .testimonial-card { will-change: transform; }

/* ---- Tracker dot pulse already defined above; add a connecting-line sweep ---- */
@keyframes dotGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(224,17,110,0.25); } 50% { box-shadow: 0 0 0 6px rgba(224,17,110,0.08); } }

/* ---- Stat cards: gentle rise on view (used with data-reveal on the grid) ---- */
.js-reveal .stat-grid[data-reveal] .stat-card { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-reveal .stat-grid[data-reveal].is-visible .stat-card { opacity: 1; transform: translateY(0); }
.js-reveal .stat-grid[data-reveal] .stat-card:nth-child(1) { transition-delay: 0.04s; }
.js-reveal .stat-grid[data-reveal] .stat-card:nth-child(2) { transition-delay: 0.11s; }
.js-reveal .stat-grid[data-reveal] .stat-card:nth-child(3) { transition-delay: 0.18s; }
.js-reveal .stat-grid[data-reveal] .stat-card:nth-child(4) { transition-delay: 0.25s; }

/* ---- Trust/stats strip counters (homepage) ---- */
.js-reveal .stats-strip[data-reveal] .stat { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-reveal .stats-strip[data-reveal].is-visible .stat { opacity: 1; transform: translateY(0); }
.js-reveal .stats-strip[data-reveal] .stat:nth-child(1) { transition-delay: 0.05s; }
.js-reveal .stats-strip[data-reveal] .stat:nth-child(2) { transition-delay: 0.15s; }
.js-reveal .stats-strip[data-reveal] .stat:nth-child(3) { transition-delay: 0.25s; }
.stats-strip { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; padding: 28px 0; }
.stats-strip .stat { text-align: center; }
.stats-strip .stat .num { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--brand-ink); }
.stats-strip .stat .num .suffix { color: var(--brand-primary); }
.stats-strip .stat .lbl { font-size: 12.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .hero__grid > div:first-child > *, .hero__visual, .hero__floating-card, .hero__badge-top { animation: none !important; opacity: 1 !important; transform: none !important; }
.js-reveal .service-cards[data-reveal] .service-card, .js-reveal .steps[data-reveal] .step, .js-reveal .testimonial-grid[data-reveal] .testimonial-card, .js-reveal .stat-grid[data-reveal] .stat-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =========================================================================
   MISC UTILITIES
   ========================================================================= */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: #E5F5EC; color: var(--status-success); }
.badge-warning { background: #FBF0DC; color: var(--status-warning); }
.badge-danger  { background: #FBE6E9; color: var(--status-danger); }
.badge-info    { background: #E5EEFB; color: var(--status-info); }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: #E5F5EC; color: var(--status-success); }
.alert-error   { background: #FBE6E9; color: var(--status-danger); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-primary-100); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 20px; }

.skeleton { background: linear-gradient(90deg, #F1E9EC 25%, #F8F0F3 37%, #F1E9EC 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
