/* ============================================================
   SAMARITANO — Design System & Shared Components
   ============================================================ */

/* 1. Tokens  2. Reset  3. Layout  4. Typography
   5. Buttons  6. Header/Nav  7. Mobile Nav  8. FAB
   9. Bento Cards  10. FAQ  11. CTA Box
   12. Footer (full)  13. Footer (strip)  14. Responsive
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --navy:        #0a1e3d;
  --navy-deep:   #061229;
  --navy-soft:   #1a2f54;
  --navy-line:   #1f3563;
  --cream:       #fbf8f3;
  --paper:       #ffffff;
  --paper-warm:  #f5f1ea;
  --ink:         #0a1e3d;
  --ink-soft:    #5d6577;
  --ink-mute:    #aab1bd;
  --ink-light:   #e6e3dc;
  --orange:      #ed7a3a;
  --orange-deep: #c9531e;
  --orange-soft: #fff0e3;
  --green:       #2da77b;
  --green-soft:  #e3f4ec;
  --blue:        #2a9ad6;
  --blue-soft:   #e1f1fa;
  --whats:       #25d366;

  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", "Sora", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 4px 14px rgba(10,30,61,0.08);
  --shadow:    0 12px 36px rgba(10,30,61,0.12);
  --shadow-lg: 0 28px 64px -16px rgba(10,30,61,0.4);
}

/* ── 2. RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* ── 3. LAYOUT ────────────────────────────────────────────── */
.wrap    { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 100px) 0; }

/* ── 4. TYPOGRAPHY UTILITIES ──────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow .bar  { width: 24px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow .dot  { width: 6px; height: 6px; border-radius: 99px; background: var(--orange); }
.eyebrow.green { color: var(--green); }
.eyebrow.green .bar, .eyebrow.green .dot { background: var(--green); }
.eyebrow.on-dark { color: rgba(255,255,255,0.8); }
.eyebrow.on-dark .bar, .eyebrow.on-dark .dot { background: var(--orange); }

.section-title         { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; }
.section-title .accent { color: var(--orange); }
.section-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 12px;
  line-height: 1.55;
}

/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 22px; border-radius: 10px;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease;
  text-transform: uppercase;
  border: 1.4px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
}
.btn:hover       { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10,30,61,0.18); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.btn.primary     { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn.dark        { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.dark:hover  { background: var(--navy-deep); }
.btn.ghost       { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn.ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.btn.whats       { background: var(--whats); color: #fff; border-color: var(--whats); }
.btn.whats:hover { background: #1eb558; border-color: #1eb558; }
.btn.sm   { padding: 9px 14px; font-size: 12px; }
.btn.full { width: 100%; display: flex; }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── 6. HEADER & NAVIGATION ──────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,30,61,0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo .word  {
  font-family: var(--display);
  font-weight: 800; font-size: 19px; letter-spacing: -0.04em;
}
.logo .word span { color: var(--orange); }
.logo .tagline {
  display: block;
  font-family: var(--body); font-weight: 500;
  font-size: 10px; line-height: 1;
  color: rgba(255,255,255,0.55);
  margin-top: 4px; letter-spacing: 0.03em;
}

.nav-links {
  display: flex; align-items: center; gap: 26px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font-family: var(--body); font-weight: 500; font-size: 14px;
  color: rgba(255,255,255,0.78);
  position: relative; padding: 6px 0;
  transition: color 120ms ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 3px; }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2.5px; background: var(--orange); border-radius: 2px;
}

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-phone { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; white-space: nowrap; }
.nav-phone:hover { color: #fff; }
@media (max-width: 900px) { .nav-phone { display: none; } }
.nav-cta .link {
  font-family: var(--body); font-weight: 600; font-size: 13px;
  color: rgba(255,255,255,0.85);
  border: 1.2px solid rgba(255,255,255,0.4);
  padding: 9px 14px; border-radius: 9px;
  transition: background 120ms ease, border-color 120ms ease;
}
.nav-cta .link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.nav-cta .contract {
  font-family: var(--body); font-weight: 600; font-size: 13px;
  color: #fff; background: var(--orange);
  padding: 9px 16px; border-radius: 9px;
  transition: background 120ms ease;
}
.nav-cta .contract:hover  { background: var(--orange-deep); }
.nav-cta .link:focus-visible,
.nav-cta .contract:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── 7. MOBILE NAV ────────────────────────────────────────── */
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px; color: #fff;
  transition: background 120ms ease;
}
.menu-btn:hover { background: rgba(255,255,255,0.08); }
.menu-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.menu-btn svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  position: fixed; inset: 64px 0 0 0; z-index: 49;
  background: var(--navy-deep);
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a {
  display: block; padding: 16px 0;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  color: rgba(255,255,255,0.85);
  transition: color 120ms ease;
}
.mobile-nav a:hover  { color: #fff; }
.mobile-nav a.active { color: var(--orange); }
.mobile-nav .actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.10); }
.mobile-nav .actions .btn.ghost { border-color: rgba(255,255,255,0.65); color: #fff; font-size: 15px; padding: 14px 24px; }
.mobile-nav .actions .btn.ghost:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.mobile-nav .actions .btn.primary { font-size: 15px; padding: 14px 24px; box-shadow: 0 4px 16px rgba(237,122,58,0.35); }

/* ── 8. WHATSAPP FAB ──────────────────────────────────────── */
.fab {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--whats); color: #fff;
  width: 56px; height: 56px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 60;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 36px rgba(37,211,102,0.5); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fab svg { width: 26px; height: 26px; }
.fab .pulse {
  position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid var(--whats);
  animation: pulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.4);  opacity: 0; }
}

/* ── 9. BENTO BENEFIT CARDS ───────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bcard {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1.4px solid var(--ink-light);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--ink-mute); }
.bcard .icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bcard .icon.orange { background: var(--orange-soft); color: var(--orange); }
.bcard .icon.green  { background: var(--green-soft);  color: var(--green); }
.bcard .icon.blue   { background: var(--blue-soft);   color: var(--blue); }
.bcard .icon.navy   { background: var(--navy); color: #fff; }
.bcard h3 { font-size: 17px; letter-spacing: -0.02em; }
.bcard p  { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.bcard .tag {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); padding: 4px 8px;
  background: var(--green-soft); border-radius: 6px;
  align-self: flex-start;
}
.bcard.sm       { grid-column: span 2; }
.bcard.featured {
  grid-column: span 3; grid-row: span 2;
  background: var(--navy); color: #fff; border: none;
  padding: 28px; overflow: hidden; position: relative;
}
.bcard.featured::before {
  content: ""; position: absolute; right: -60px; top: -40px;
  width: 200px; height: 200px; border-radius: 999px;
  background: radial-gradient(circle, rgba(237,122,58,0.35), transparent 70%);
  pointer-events: none;
}
.bcard.featured .icon { width: 56px; height: 56px; border-radius: 14px; }
.bcard.featured h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; }
.bcard.featured p  { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 34ch; line-height: 1.6; }
.bcard.featured .link {
  margin-top: auto;
  color: var(--orange);
  font-family: var(--display); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.bcard.featured .badge-row { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.bcard.featured .badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 99px; padding: 5px 11px;
  font-family: var(--body); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.bcard.featured .photo {
  height: 140px; margin-top: 14px; border-radius: 12px;
  background-image:
    linear-gradient(180deg, rgba(10,30,61,0) 40%, rgba(10,30,61,0.6) 100%),
    url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=900&auto=format&fit=crop&q=80');
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--navy-line);
}

/* ── 10. FAQ ACCORDION ────────────────────────────────────── */
.faq-inner {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 4vw, 56px); align-items: flex-start;
}
.faq-aside { position: sticky; top: 100px; }
.faq-aside .section-lead { margin-top: 14px; }
.faq-aside .lead {
  font-size: 15px; color: var(--ink-soft);
  line-height: 1.6; margin-top: 14px; max-width: 34ch; font-weight: 500;
}
.faq-aside .btn { margin-top: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff; border-radius: 12px;
  border: 1.4px solid var(--ink-light); overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.faq-item[open] { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 20px; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.faq-item .pm {
  width: 32px; height: 32px; border-radius: 99px;
  background: var(--paper-warm); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
  user-select: none;
}
.faq-item[open] .pm { background: var(--orange); color: #fff; transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 20px 18px;
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.55; max-width: 60ch;
}

/* ── 11. CTA BOX (sub-pages) ──────────────────────────────── */
.cta-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; right: -80px; top: -60px;
  width: 300px; height: 300px; border-radius: 999px;
  background: radial-gradient(circle, rgba(237,122,58,0.2), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(24px, 2.8vw, 34px); color: #fff;
  letter-spacing: -0.03em; max-width: 28ch;
}
.cta-box h2 .accent { color: var(--orange); }
.cta-box p { color: rgba(255,255,255,0.68); font-size: 15px; margin-top: 10px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ── 12. FOOTER — FULL (main page) ───────────────────────── */
.footer { background: var(--navy-deep); color: #fff; padding: 0 0 32px; }
.cta-banner {
  background: var(--navy); border-radius: 22px;
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-top: -80px; position: relative; z-index: 2;
  border: 1px solid var(--navy-line);
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; color: #fff;
}
.cta-banner h2 .accent { color: var(--orange); }
.cta-banner p { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; max-width: 56ch; }
.cta-banner .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding: 60px 0 36px;
}
.footer-cols .brand p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 280px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-col h5 {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--orange); margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a  { font-size: 13px; color: rgba(255,255,255,0.72); transition: color 120ms ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5);
}
.footer-bottom .contacts { display: flex; gap: 22px; }

/* ── 13. CONTACT STRIP (sub-pages) ───────────────────────── */
.contact-strip {
  background: var(--navy-deep); color: #fff;
  padding: 40px 0; border-top: 1px solid var(--navy-line);
}
.contact-strip-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; align-items: center;
}
.cs-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cs-cell .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--orange);
}
.cs-cell.whats .ic  { color: var(--whats); background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.3); }
.cs-cell.social .ic { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: #fff; border: none; }
.cs-cell .ic svg { width: 18px; height: 18px; }
.cs-legal {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.45);
}
.cs-legal a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 120ms ease; }
.cs-legal a:hover { color: var(--orange); }
.cs-cell .label {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  line-height: 1.3; white-space: nowrap;
}
.cs-cell .meta {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px; letter-spacing: 0.04em; white-space: nowrap;
}

/* ── 14. RESPONSIVE (shared components) ──────────────────── */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .logo .tagline { display: none; }
  .logo .mark { width: 32px; height: 32px; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 28px; }
  .footer-cols .brand { grid-column: 1 / -1; }
  .cta-banner { padding: 24px; margin-top: -60px; }
  .cta-banner .actions { width: 100%; }
  .cta-banner .actions .btn { flex: 1; }

  .contact-strip-inner { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .faq-inner  { grid-template-columns: 1fr; gap: 28px; }
  .faq-aside  { position: static; }

  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .bcard.featured { grid-column: span 4; }
  .bcard.sm { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav { padding: 10px 0; }
  .logo .word { font-size: 17px; }

  .cta-banner { flex-direction: column; align-items: stretch; }
  .cta-banner .actions { flex-direction: column; }
  .cta-banner .actions .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom .contacts { flex-direction: column; gap: 4px; }

  .contact-strip-inner { grid-template-columns: 1fr 1fr; gap: 14px; }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bcard.featured { grid-column: span 2; }
  .bcard.sm { grid-column: span 1; }

  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }

  .fab { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .fab svg { width: 24px; height: 24px; }
}
