/* Careviaa Solutions — site styles
   Mobile-first. No external fonts (keeps CSP tight and pages fast). */

:root {
  --brand: #0b7a75;
  --brand-dark: #085c58;
  --brand-soft: #e6f3f2;
  --navy: #0f2b3d;
  --navy-2: #163a52;
  --ink: #1d2b36;
  --muted: #56687a;
  --line: #dbe5ea;
  --bg: #ffffff;
  --bg-alt: #f4f8f9;
  --accent: #e8833a;
  --ok: #1f7a4d;
  --error: #b42318;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 43, 61, .06), 0 8px 24px rgba(15, 43, 61, .08);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1a1206; }
.btn-accent:hover { background: #d9722a; color: #1a1206; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: 38px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; }
.brand-name span { color: var(--brand); font-weight: 600; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav { display: none; }
.nav-open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .5rem 16px 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .8rem .25rem; color: var(--navy);
  text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav .nav-cta { margin-top: 1rem; }
.site-nav .nav-cta a { border: 0; color: #fff; text-align: center; padding: .8rem 1.35rem; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav {
    display: flex; align-items: center; gap: 1.5rem; position: static;
    padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .site-nav ul { display: flex; gap: .25rem; }
  .site-nav a { border: 0; padding: .5rem .8rem; border-radius: 8px; }
  .site-nav a:hover { background: var(--bg-alt); }
  .site-nav a[aria-current="page"] { background: var(--brand-soft); }
  .site-nav .nav-cta { margin: 0; }
  .site-nav .nav-cta a { border-radius: 999px; }
  .site-nav .nav-cta a:hover { background: var(--brand-dark); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #dfe9ef;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(11,122,117,.55), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(232,131,58,.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 3.5rem 0 3rem;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { font-size: 1.125rem; max-width: 56ch; color: #c9d8e1; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .9rem;
}
.hero .eyebrow {
  color: #9fe3dc; background: rgba(159,227,220,.1); border: 1px solid rgba(159,227,220,.3);
  padding: .35rem .75rem; border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 1.5rem;
}
.hero-card h2 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.metric-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.metric-list li { display: flex; gap: .9rem; align-items: flex-start; }
.metric-list strong { display: block; color: #fff; font-size: 1.05rem; }
.metric-list span { font-size: .93rem; color: #b9cad5; }
.metric-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(159,227,220,.14); color: #9fe3dc;
}
.metric-icon svg { width: 22px; height: 22px; }

.trust-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.trust-strip li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-strip svg { width: 18px; height: 18px; color: #9fe3dc; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #c9d8e1; padding: 3rem 0 2.75rem;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.75rem); }
.page-hero p { max-width: 60ch; font-size: 1.08rem; margin: 0; }
.breadcrumb { font-size: .88rem; margin-bottom: .75rem; }
.breadcrumb a { color: #9fe3dc; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 960px) { .section { padding: 5rem 0; } }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card p { color: var(--muted); margin: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c5d6dd; }
.card .more { display: inline-block; margin-top: 1rem; color: var(--brand); font-weight: 600; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list strong { color: var(--navy); }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.5rem;
  color: var(--brand); margin-bottom: .5rem;
}
.steps p { color: var(--muted); margin: 0; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem; color: var(--navy);
}

/* Stats */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.stat strong { display: block; font-size: 1.9rem; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #e3f4f2; border-radius: var(--radius); padding: 2.25rem 1.5rem;
  display: grid; gap: 1.25rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; padding: 3rem; } }

/* Service detail blocks */
.service-block { display: grid; gap: 1.5rem; padding: 2.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .service-block { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.service-block .lead { color: var(--muted); font-size: 1.05rem; }

.service-index { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.service-index a {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px; background: var(--brand-soft);
  color: var(--brand-dark); text-decoration: none; font-weight: 600; font-size: .93rem;
}
.service-index a:hover { background: var(--brand); color: #fff; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; } }

.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #c9d6dd; border-radius: var(--radius-sm); padding: .75rem .9rem; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,122,117,.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .hint { font-size: .85rem; color: var(--muted); }
.field .error-msg { font-size: .87rem; color: var(--error); min-height: 0; }
.field .error-msg:empty { display: none; }

.field .consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; font-weight: 400; color: var(--muted); }
.field .consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: .2rem 0 0; flex: none; accent-color: var(--brand); }

/* Honeypot: hidden from people, visible to naive bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #e8f5ee; color: var(--ok); border: 1px solid #b9dfca; }
.form-status.err { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }

.turnstile-wrap { margin: .25rem 0 1.25rem; min-height: 65px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon-badge { width: 42px; height: 42px; margin: 0; flex: none; }
.contact-list .icon-badge svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { word-break: break-word; }

.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); display: block; background: var(--bg-alt); }

.notice {
  background: #fff8ec; border: 1px solid #f3d9a8; color: #6b4a0d;
  border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .92rem; margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cad5; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #dfe9ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name span { color: #9fe3dc; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25d366; color: #0b2e17; border-radius: 999px; padding: .8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; font-weight: 700;
}
.wa-float:hover { background: #1ebe5b; color: #0b2e17; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float span { display: none; padding-right: .35rem; }
@media (min-width: 720px) { .wa-float { right: 24px; bottom: 24px; padding: .8rem 1.1rem .8rem .9rem; } .wa-float span { display: inline; } }

/* 404 */
.not-found { text-align: center; padding: 5rem 0; }
.not-found .code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; color: var(--brand-soft); line-height: 1; -webkit-text-stroke: 2px var(--brand); }
.not-found .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

@media print {
  .site-header, .wa-float, .site-footer, .cta-band { display: none; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
