/* =========================================================================
   SafeCare Pro — Design System
   Modern, animated, RTL-first marketing theme.
   Brand: Terracotta / Teal / Cream. Fonts: Heebo + Montserrat.
   ========================================================================= */

/* ----------------------------- Tokens ---------------------------------- */
:root {
  /* Brand */
  --brand: #C97B63;
  --brand-dark: #A8583F;
  --brand-light: #E8B4A0;
  --teal: #6D9CA3;
  --teal-deep: #2E5761;
  --ink: #1F3B4D;
  --cream: #F5EFE7;
  --sand: #EDE3D4;
  --white: #ffffff;

  /* Semantic */
  --bg: #FBF8F3;
  --bg-alt: #F5EFE7;
  --surface: #ffffff;
  --text: #24333d;
  --muted: #64707a;
  --border: rgba(31, 59, 77, .10);
  --ring: rgba(201, 123, 99, .35);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  --grad-warm: linear-gradient(135deg, #E8B4A0 0%, #C97B63 55%, #A8583F 100%);
  --grad-teal: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(232,180,160,.55), transparent 60%),
               radial-gradient(900px 500px at 5% 10%, rgba(109,156,163,.35), transparent 55%);

  /* Type */
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", "Heebo", system-ui, sans-serif;

  /* Radii + shadow */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(31, 59, 77, .06);
  --shadow: 0 12px 30px rgba(31, 59, 77, .10);
  --shadow-lg: 0 28px 60px rgba(31, 59, 77, .16);
  --shadow-brand: 0 16px 40px rgba(201, 123, 99, .35);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .5s;

  --container: 1200px;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.sc {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { inset-inline-start: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* ----------------------------- Layout ---------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.center { text-align: center; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(201, 123, 99, .12);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-title { margin: 0 0 .6rem; }
.section-sub { font-size: 1.1rem; margin: 0; }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform; position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.1em; height: 1.1em; fill: currentColor; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 20px 46px rgba(168, 88, 63, .45); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand); background: rgba(201,123,99,.06); }

.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-light { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--brand-dark); box-shadow: var(--shadow); }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { color: #fff; background: #1ebe5b; box-shadow: 0 14px 30px rgba(37, 211, 102, .4); }

.btn-sm { padding: .58rem 1.05rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* Shine sweep */
.btn-shine::after {
  content: ""; position: absolute; top: 0; inset-inline-start: -120%;
  width: 60%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
.btn-shine:hover::after { animation: shine 0.9s var(--ease); }
@keyframes shine { to { inset-inline-start: 130%; } }

/* ----------------------------- Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 243, .92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 74px; }
.site-header.is-scrolled .header-inner { min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { max-height: 44px; width: auto; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 4px rgba(201,123,99,.18); animation: pulse 2.4s var(--ease) infinite; }
.brand-mark { color: var(--ink); }
.brand-mark-alt { color: var(--brand); }
.brand--light .brand-mark { color: #fff; }
.brand--light .brand-mark-alt { color: var(--brand-light); }

.site-nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: inline-block; padding: .5rem .8rem; font-weight: 600; color: var(--ink); font-size: .98rem; border-radius: 8px;
}
.nav-list a::after {
  content: ""; position: absolute; inset-inline: .8rem; bottom: .35rem; height: 2px;
  background: var(--grad-brand); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.nav-list a:hover { color: var(--brand-dark); }
.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 12px; cursor: pointer; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: rgba(251, 248, 243, .98);
  backdrop-filter: blur(14px);
  padding: 1rem 1.25rem 1.5rem;
  animation: dropIn .35s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .25rem; }
.mobile-nav-list a { display: block; padding: .8rem .6rem; font-weight: 600; color: var(--ink); border-radius: 10px; border-bottom: 1px solid var(--border); }
.mobile-nav-list a:hover { background: rgba(201,123,99,.08); color: var(--brand-dark); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ----------------------------- Hero ------------------------------------ */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--grad-hero); }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(closest-side at 50% 30%, #000, transparent);
  opacity: .5;
}
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: var(--brand-light); top: -80px; inset-inline-end: -60px; animation: float1 14s var(--ease) infinite; }
.blob-2 { width: 360px; height: 360px; background: var(--teal); bottom: -120px; inset-inline-start: -80px; animation: float2 18s var(--ease) infinite; }
.blob-3 { width: 260px; height: 260px; background: #F1C9A0; top: 40%; inset-inline-start: 45%; animation: float1 20s var(--ease) infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px, 30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.12); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; color: var(--teal-deep); background: rgba(255,255,255,.7); border: 1px solid var(--border); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

.hero-title { margin-bottom: 1rem; }
.grad-text {
  display: block;
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: gradShift 6s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% center; } 50% { background-position: 100% center; } }

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.75rem 0; }

.hero-stats { display: flex; gap: 2.25rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--brand-dark); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--muted); margin-top: .3rem; }

/* Glass hero card */
.hero-card { position: relative; z-index: 1; }
.glass-card {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.floaty { animation: floaty 6s var(--ease) infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.gc-row { display: flex; align-items: center; gap: .8rem; }
.gc-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.gc-row strong { display: block; color: var(--ink); }
.badge { margin-inline-start: auto; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.badge-ok { background: rgba(37,211,102,.15); color: #12813a; }
.gc-line { height: 1px; background: var(--border); margin: 1rem 0; }
.gc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }

/* ----------------------------- Trust marquee --------------------------- */
.trust-bar { background: var(--ink); padding: 1rem 0; overflow: hidden; }
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 26s linear infinite; }
.chip { color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* RTL scrolls the other way visually — reverse for natural feel */
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ----------------------------- Grid + cards ---------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,123,99,.35); }

.feature-ic {
  display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  font-size: 1.7rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.ic-terracotta { background: rgba(201,123,99,.14); }
.ic-teal { background: rgba(109,156,163,.16); }
.ic-clay { background: rgba(168,88,63,.14); }
.ic-soft { background: var(--sand); }
.feature h3 { margin-bottom: .4rem; }

.service-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.service-card .feature-ic { margin-bottom: 0; flex: 0 0 auto; }
.service-card h3 { margin-bottom: .3rem; }

.values { margin-top: 2.5rem; }

/* Testimonials */
.quote-card { display: flex; flex-direction: column; gap: .75rem; }
.stars { color: #F5B301; letter-spacing: 2px; }
.quote-card blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.quote-card figcaption { font-size: .92rem; }

/* ----------------------------- Timeline -------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.tl-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tl-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tl-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow-brand); }
.tl-item:not(:last-child)::after {
  content: ""; position: absolute; top: 3.1rem; inset-inline-start: -1.1rem; width: 2.2rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-light), var(--brand-light) 5px, transparent 5px, transparent 10px);
}

/* ----------------------------- Audience split -------------------------- */
.split-card { border-radius: var(--r-xl); padding: clamp(2rem, 4vw, 3rem); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.split-card h3 { color: #fff; font-size: 1.7rem; }
.split-card p { color: rgba(255,255,255,.9); max-width: 44ch; }
.split-families { background: var(--grad-warm); }
.split-nurses { background: var(--grad-teal); }
.split-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.14); top: -80px; inset-inline-end: -60px; }

/* ----------------------------- CTA hero -------------------------------- */
.cta-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg .blob-1 { background: var(--brand); opacity: .4; }
.cta-bg .blob-2 { background: var(--teal); opacity: .4; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: #fff; }
.cta-content p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }
.cta-content .hero-cta { justify-content: center; }
.cta-band { background: var(--grad-brand); color: #fff; border-radius: var(--r-lg); padding: 2.5rem; text-align: center; }

/* ----------------------------- Page head ------------------------------- */
.page-head { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); background: var(--bg-alt); text-align: center; }
.page-head-bg { position: absolute; inset: 0; }
.page-title { margin: 0 0 .5rem; }
.page-head .lead { margin-inline: auto; }
.page-head .container { position: relative; z-index: 1; }

/* ----------------------------- Prose ----------------------------------- */
.prose { font-size: 1.06rem; color: var(--text); }
.prose h2 { margin-top: 2rem; }
.prose p { margin-bottom: 1.2rem; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------- FAQ ------------------------------------- */
.faq { display: grid; gap: .9rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0 1.4rem; box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(201,123,99,.3); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(201,123,99,.12); color: var(--brand-dark); font-weight: 700; transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding-bottom: 1.25rem; animation: fadeIn .35s var(--ease); }
.faq-answer p { margin: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ----------------------------- Forms ----------------------------------- */
.lead-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .8rem 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--ring); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--r-sm); padding: .85rem 1.1rem; font-size: .95rem; }
.notice-ok { background: rgba(37,211,102,.12); color: #12813a; border: 1px solid rgba(37,211,102,.3); }
.notice-error { background: rgba(201,66,66,.1); color: #a33; border: 1px solid rgba(201,66,66,.28); }
.notice-soft { background: var(--sand); color: var(--ink); border: 1px solid var(--border); }

/* Contact */
.contact-grid { align-items: start; }
.contact-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .75rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.ci { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--sand); }

/* ----------------------------- Blog / cards ---------------------------- */
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--brand-dark); }
.link-arrow::after { content: "←"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(-4px); }
.card-media { border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; }
.post-hero { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 2rem; box-shadow: var(--shadow); }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .5rem; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 600; }
.pagination .page-numbers.current { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ----------------------------- Footer ---------------------------------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.82); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; overflow: hidden; }
.footer-glow { position: absolute; top: -160px; inset-inline-start: 50%; transform: translateX(-50%); width: 640px; height: 320px; background: radial-gradient(circle, rgba(201,123,99,.4), transparent 70%); filter: blur(20px); pointer-events: none; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; margin: 1rem 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-list a { color: rgba(255,255,255,.78); }
.footer-list a:hover { color: var(--brand-light); }
.store-badges { display: grid; gap: .6rem; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .6rem .9rem; color: #fff; transition: background .25s var(--ease), transform .25s var(--ease); }
.store-badge:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; fill: #fff; }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-emergency { color: var(--brand-light); }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.5);
  animation: fabPulse 2.6s var(--ease) infinite; transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
@keyframes fabPulse { 0%,100% { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 14px rgba(37,211,102,0); } }

/* ----------------------------- Reveal on scroll ------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Stagger children when a container is revealed */
.grid .reveal.in { transition-delay: calc(var(--i, 0) * 80ms); }

/* ----------------------------- Responsive ------------------------------ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tl-item:nth-child(2)::after, .tl-item:last-child::after { display: none; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-whatsapp span { display: none; }
  .header-actions .btn:not(.btn-whatsapp):not(.nav-toggle) { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .tl-item::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.8rem; }
}

/* ----------------------------- Motion safety --------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------- Elementor harmony ----------------------- */
/* Let Elementor full-width/canvas sections breathe; theme wrappers stay tidy. */
.elementor .container { width: 100%; }
.site-main > .elementor { margin: 0; }
