/* ==========================================================================
   NLV Health Insurance Spain — global stylesheet
   Brand: "Calm NLV Confidence" — Mediterranean healthcare platform, NLV-only.
   Recolour the whole site from the :root variables below.
   ========================================================================== */

:root {
  /* --- Brand palette --- */
  --c-navy:        #09233F;   /* trust / headings / header / footer          */
  --c-navy-2:      #0d3a63;   /* lighter navy for gradients                  */
  --c-blue:        #0077B6;   /* PRIMARY brand — CTAs, links, icons          */
  --c-blue-dark:   #005F92;   /* primary hover                               */
  --c-teal:        #00A6A6;   /* checklist ticks, secondary CTA, success cues*/
  --c-teal-dark:   #018a8a;
  --c-sky:         #EAF7FB;   /* soft section background                     */
  --c-sky-2:       #f3fafd;
  --c-sand:        #F5D7A1;   /* warm Spain accent (sparingly)               */
  --c-sand-soft:   #fbeed3;
  --c-coral:       #FF6B5A;   /* URGENCY ONLY                               */
  --c-coral-dark:  #ef5645;
  --c-coral-tint:  #FFF0EE;   /* urgent block background                     */
  --c-bg:          #FAFCFD;   /* main page background                        */
  --c-white:       #ffffff;
  --c-ink:         #1B2733;   /* body text                                  */
  --c-muted:       #667085;   /* captions, hints, secondary text            */
  --c-line:        #DCEAF0;   /* card borders / dividers                     */
  --c-line-2:      #CAD8E1;   /* form field borders                         */
  --c-border-btn:  #B9DDEB;   /* secondary button border                    */

  /* --- Type --- */
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* --- Layout --- */
  --maxw: 1200px;
  --maxw-read: 820px;
  --radius: 14px;
  --radius-btn: 12px;
  --radius-card: 18px;
  --shadow: 0 12px 32px rgba(9,35,63,.06);
  --shadow-lg: 0 20px 50px rgba(9,35,63,.12);
}

/* --------------------------------------------------------------- reset */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--soft { background: var(--c-sky); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.prose { max-width: var(--maxw-read); }
.prose-wide { max-width: 940px; }

/* --------------------------------------------------------------- type */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; color: var(--c-navy); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.05; margin: 0 0 .45em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 1.7em 0 .55em; }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); margin: 1.4em 0 .45em; font-weight: 700; }
h4 { font-size: 1.2rem; margin: 1.2em 0 .4em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin: .45em 0; }
strong { color: var(--c-navy); font-weight: 700; }
.lead { font-size: 1.22rem; color: var(--c-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; font-weight: 800; color: var(--c-blue); margin: 0 0 .6em; }
.small, .disclaimer { font-size: .88rem; color: var(--c-muted); }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--c-navy); color: #fff;
  box-shadow: 0 2px 14px rgba(9,35,63,.18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 1.14rem; font-family: var(--font-head); }
.brand:hover { text-decoration: none; }
.brand .mark {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(150deg, var(--c-blue), var(--c-teal)); color: #fff; font-weight: 800; font-size: .92rem;
}
.brand .mark span { line-height: 1; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #a9c4de; letter-spacing: .01em; font-family: var(--font-body); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: #e7eef6; font-weight: 600; font-size: .96rem; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .btn { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; padding: 4px 8px; line-height: 1; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  padding: 15px 26px; border-radius: var(--radius-btn); border: 2px solid transparent;
  cursor: pointer; transition: transform .05s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--c-blue); color: #fff; box-shadow: 0 8px 20px rgba(0,119,182,.22); }
.btn--primary:hover { background: var(--c-blue-dark); color: #fff; }
.btn--secondary { background: #fff; color: var(--c-navy); border-color: var(--c-border-btn); }
.btn--secondary:hover { background: var(--c-sky); color: var(--c-navy); }
.btn--teal { background: var(--c-teal); color: #fff; }
.btn--teal:hover { background: var(--c-teal-dark); color: #fff; }
.btn--urgent { background: var(--c-coral); color: #fff; box-shadow: 0 8px 20px rgba(255,107,90,.28); }
.btn--urgent:hover { background: var(--c-coral-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; }
.btn--lg { padding: 18px 32px; font-size: 1.1rem; }
.btn--block { display:block; width:100%; }

/* --------------------------------------------------------------- trust pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #eaf4fb; font-size: .86rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.pill::before { content: "✓"; color: var(--c-teal); font-weight: 800; }
.pills--light .pill { background: var(--c-white); border-color: var(--c-line); color: var(--c-navy); }
.pills--light .pill::before { color: var(--c-teal); }

/* --------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(155deg, var(--c-navy) 0%, #0c2f52 60%, var(--c-navy-2) 100%);
  color: #fff; padding: 74px 0 82px; position: relative; overflow: hidden;
}
.hero::after {
  content:""; position:absolute; right:-140px; top:-120px; width:460px; height:460px;
  background: radial-gradient(circle, rgba(0,166,166,.22), transparent 62%); pointer-events:none;
}
.hero::before {
  content:""; position:absolute; left:-90px; bottom:-140px; width:360px; height:360px;
  background: radial-gradient(circle, rgba(245,215,161,.16), transparent 62%); pointer-events:none;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: #d6e6f2; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; max-width: 58ch; }
.hero-points li { position: relative; padding-left: 30px; color: #eaf3fb; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-teal); font-weight: 800; }

/* --------------------------------------------------------------- breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--c-muted); padding: 16px 0; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-blue); }

/* --------------------------------------------------------------- cards / callouts */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card);
  padding: 30px; box-shadow: var(--shadow); color: var(--c-ink);
}
.card h3 { margin-top: 0; color: var(--c-navy); }
.section--navy .card h3 { color: var(--c-navy); }
.section--navy .card p { color: var(--c-ink); }
a.card { color: var(--c-ink); display: block; transition: transform .1s ease, box-shadow .15s ease; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.card h3 { color: var(--c-blue); }

.callout { border-radius: var(--radius); padding: 22px 24px; margin: 1.5em 0; border: 1px solid var(--c-line); background: var(--c-sky); }
.callout--info { background: var(--c-sky); border-color: #cfe7f2; }
.callout--success { background: #e6f6f4; border-color: #b6e4df; }
.callout--warn { background: var(--c-coral-tint); border-color: #ffd6cf; }
.callout--sand { background: var(--c-sand-soft); border-color: #eeddb6; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { display: block; margin-bottom: .3em; color: var(--c-navy); }

/* requirement checklist (teal ticks) */
.req-list { list-style: none; padding: 0; margin: 1.3em 0; display: grid; gap: 12px; }
.req-list li { position: relative; padding: 15px 18px 15px 52px; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; }
.req-list li::before {
  content: "✓"; position: absolute; left: 16px; top: 14px; width: 24px; height: 24px;
  background: var(--c-teal); color:#fff; border-radius: 50%; display: grid; place-items: center;
  font-size: .82rem; font-weight: 800;
}
.req-card { background: var(--c-sky); border: 1px solid #cfe7f2; border-radius: var(--radius-card); padding: 28px 30px; }
.req-card .req-list li { background: #fff; }

/* --------------------------------------------------------------- CTA band */
.cta-band { background: linear-gradient(150deg, var(--c-navy), var(--c-navy-2)); color: #fff; border-radius: var(--radius-card); padding: 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #d6e6f2; max-width: 62ch; margin-inline: auto; }

/* urgent block */
.urgent-band { background: var(--c-coral-tint); border: 1px solid #ffd6cf; border-radius: var(--radius-card); padding: 30px 32px; }
.urgent-band h2, .urgent-band h3 { color: var(--c-navy); margin-top: 0; }
.urgent-band .badge-urgent { color: var(--c-coral-dark); }

/* sand accent block */
.sand-band { background: var(--c-sand-soft); border: 1px solid #eeddb6; border-radius: var(--radius-card); padding: 30px 32px; }
.sand-band h2, .sand-band h3 { color: var(--c-navy); margin-top: 0; }

/* --------------------------------------------------------------- quote / form */
.quote-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow-lg); }
.form-note { font-size: .84rem; color: var(--c-muted); }
.form-card label { display:block; font-weight:600; color:var(--c-navy); margin:14px 0 6px; font-size:.95rem; }
.form-card input, .form-card select, .form-card textarea {
  width:100%; height:54px; padding:0 14px; border:1px solid var(--c-line-2); border-radius:10px;
  font-family:var(--font-body); font-size:1rem; color:var(--c-ink); background:#fff;
}
.form-card textarea { height:auto; padding:12px 14px; min-height:110px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline:none; border-color:var(--c-blue); box-shadow:0 0 0 3px rgba(0,119,182,.14); }
.form-card input[readonly] { background:var(--c-sky); color:var(--c-muted); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-row > div { min-width:0; }
@media (max-width:560px){ .form-row { grid-template-columns:1fr; } }
.form-card fieldset.applicant-block { border:1px solid var(--c-line-2); border-radius:12px; padding:6px 16px 14px; margin:16px 0 0; }
.form-card fieldset.applicant-block legend { font-weight:700; color:var(--c-navy); font-size:.9rem; padding:0 6px; }
.form-card fieldset.applicant-block label { margin-top:8px; }
.form-card .consent-label { display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:.9rem; margin-top:14px; color:var(--c-ink); }
.form-card .consent-label input { width:auto; height:auto; margin-top:4px; }
.hp-field { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; }

/* --------------------------------------------------------------- Legal pages */
.legal h2 { margin-top: 1.8em; }
.legal h3 { margin-top: 1.2em; }
.legal table { width:100%; border-collapse:collapse; margin:16px 0; font-size:.9rem; }
.legal th, .legal td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--c-line); vertical-align:top; }
.legal th { background:var(--c-sky); color:var(--c-navy); font-weight:700; }
.legal .toc { background:var(--c-sky); border-left:4px solid var(--c-blue); padding:18px 22px; border-radius:10px; margin:0 0 34px; }
.legal .toc h3 { margin:0 0 10px; font-size:.9rem; text-transform:uppercase; letter-spacing:.06em; color:var(--c-navy); }
.legal .toc ol { columns:2; column-gap:28px; margin:0 0 0 18px; }
.legal .toc li { padding:3px 0; break-inside:avoid; }
.legal .idbox { background:var(--c-sand-soft); border:1px solid var(--c-line); border-radius:12px; padding:20px 24px; margin:18px 0 28px; }
/* generic jump-link index (also usable outside legal pages) */
.toc { background:var(--c-sky); border-left:4px solid var(--c-blue); padding:18px 22px; border-radius:10px; margin:0 0 8px; }
.toc h3 { margin:0 0 10px; font-size:.9rem; text-transform:uppercase; letter-spacing:.06em; color:var(--c-navy); }
.toc ol { columns:2; column-gap:28px; margin:0 0 0 18px; }
.toc li { padding:3px 0; break-inside:avoid; }
@media (max-width:600px){ .toc ol { columns:1; } }
.legal .idbox p { margin:4px 0; }
@media (max-width:600px){ .legal .toc ol { columns:1; } }
.footer-legal-links { margin-top:8px; font-size:.85rem; }
.footer-legal-links a { color:#a9c4de; margin:0 10px 0 0; }
.footer-legal-links a:hover { color:#fff; }

/* --------------------------------------------------------------- Cookie consent */
.nlv-cc { position:fixed; left:0; right:0; bottom:0; z-index:9999; background:var(--c-navy); color:#fff; box-shadow:0 -6px 24px rgba(0,0,0,.18); }
.nlv-cc-inner { max-width:1100px; margin:0 auto; padding:15px 20px; display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.nlv-cc-text { margin:0; font-size:.92rem; color:#e7eef6; flex:1; min-width:240px; }
.nlv-cc-text a { color:var(--c-sand); }
.nlv-cc-btns { display:flex; gap:10px; flex-wrap:wrap; }
.nlv-cc-sm { padding:10px 16px; font-size:.9rem; }
.nlv-cc-modal { position:fixed; inset:0; z-index:10000; background:rgba(3,17,31,.6); display:flex; align-items:center; justify-content:center; padding:20px; }
.nlv-cc-card { background:#fff; color:var(--c-ink); max-width:520px; width:100%; border-radius:16px; padding:26px 26px 22px; box-shadow:var(--shadow-lg); }
.nlv-cc-card h3 { margin:0 0 8px; }
.nlv-cc-row { display:flex; gap:14px; align-items:center; justify-content:space-between; border:1px solid var(--c-line); border-radius:10px; padding:12px 14px; margin:10px 0; }
.nlv-cc-row small { color:var(--c-muted); }
.nlv-cc-row input { width:20px; height:20px; flex-shrink:0; }

/* --------------------------------------------------------------- FAQ */
.faq details { border: 1px solid var(--c-line); border-radius: 12px; margin: 0 0 12px; background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--c-navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--c-blue); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--c-line); }
.faq .faq-body { padding: 18px 22px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- TOC */
.toc { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-card); padding: 26px 30px; box-shadow: var(--shadow); }
.toc h2 { margin: 0 0 .5em; font-size: 1.2rem; }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 1.2em; }
.toc a { color: var(--c-navy); font-weight: 600; }
.toc a:hover { color: var(--c-blue); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--c-navy); color: #b9cbdd; padding: 56px 0 30px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin: 0 0 .8em; }
.site-footer a { color: #b9cbdd; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .5em 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 22px; font-size: .82rem; color: #8ea6bf; }
.footer-bottom p { margin: .4em 0; }

/* --------------------------------------------------------------- sticky mobile CTA */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--c-line); padding: 10px 14px;
  box-shadow: 0 -6px 20px rgba(9,35,63,.12);
}
.sticky-cta .btn { width: 100%; }

/* --------------------------------------------------------------- utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------- comparison table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0; border: 1px solid var(--c-line); border-radius: var(--radius-card); overflow: hidden; font-size: .98rem; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.cmp thead th { font-family: var(--font-head); font-weight: 800; color: #fff; }
.cmp thead th:first-child { background: var(--c-teal); }
.cmp thead th:last-child { background: var(--c-coral); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { background: #e6f6f4; }
.cmp td:last-child { background: var(--c-coral-tint); }
.cmp td:first-child::before { content: "✓ "; color: var(--c-teal-dark); font-weight: 800; }
.cmp td:last-child::before { content: "✕ "; color: var(--c-coral-dark); font-weight: 800; }
@media (max-width: 620px){ .cmp, .cmp thead, .cmp tbody, .cmp th, .cmp td, .cmp tr { display:block; } .cmp thead { display:none; } .cmp td { border-bottom:1px solid var(--c-line); } }

/* code-ish term chips for policy-wording lists */
.terms { list-style:none; padding:0; margin:1em 0; display:flex; flex-wrap:wrap; gap:8px; }
.terms li { background:var(--c-sky); border:1px solid #cfe7f2; border-radius:8px; padding:6px 12px; font-family:var(--font-body); font-weight:600; color:var(--c-navy); font-size:.92rem; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .quote-wrap, .footer-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--c-navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 18px;
    border-top: 1px solid rgba(255,255,255,.12); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .sticky-cta { display: block; }
  body { padding-bottom: 78px; }  /* room for sticky CTA */
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .section { padding: 52px 0; }
  .cta-band { padding: 26px; }
  .card { padding: 24px; }
}
