/* =========================================================================
   PASCAL Larnaca — A Parent's Account
   Single shared stylesheet. No framework. Mobile-first, accessible.
   ========================================================================= */

:root {
  --ink:      #16202e;   /* primary text — deep slate navy */
  --slate:    #2c3e50;   /* headings / header bg */
  --bg:       #f7f5f1;   /* warm neutral page background */
  --surface:  #ffffff;   /* cards */
  --line:     #e3ded5;   /* hairline borders */
  --muted:    #586273;   /* secondary text */
  --accent:   #1f6f6b;   /* deep teal — links / trust */
  --accent-d: #185754;
  --warn:     #b23b2e;   /* muted brick — key warnings / primary CTA */
  --warn-d:   #8f2e23;
  --warn-bg:  #fbf0ed;
  --gold:     #b6862c;   /* sparing highlight */

  --maxw: 72rem;
  --measure: 38rem;      /* ~65ch readable column */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22,32,46,.06), 0 6px 24px rgba(22,32,46,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Helvetica Neue", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--slate); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-top: 2.5em; }
h3 { font-size: 1.25rem; margin-top: 2em; }
p, ul, ol { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-d); }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.prose { max-width: var(--measure); }
.prose.wide { max-width: 52rem; }
section { padding-block: 2.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--warn); margin: 0 0 .5rem;
}

/* ---------- warning ribbon (injected sitewide) ---------- */
.alert-ribbon {
  background: var(--warn); color: #fff; text-align: center; font-weight: 700;
  font-size: .92rem; line-height: 1.45; padding: .6rem 1rem;
  border-bottom: 1px solid var(--warn-d);
}
.alert-ribbon a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.alert-ribbon .ico { font-style: normal; }

/* ---------- header / nav ---------- */
.site-header { background: var(--slate); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; }
.brand:hover { color: #fff; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px rgba(178,59,46,.25); flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #c7cfda; letter-spacing: .02em; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0;
  cursor: pointer; padding: .5rem; margin: -.5rem;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  color: #dde3ec; text-decoration: none; padding: .5rem .7rem; border-radius: 6px;
  font-size: .95rem; display: block;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }

@media (max-width: 820px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--slate); padding: .5rem 1.25rem 1rem; box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (min-width: 821px) { .nav-toggle { display: none; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 48ch; margin-top: 1rem; }

/* bold "exposed" hero variant */
.hero--warn { background: var(--ink); border-top: 6px solid var(--warn); border-bottom: 0; }
.hero--warn h1 { color: #fff; }
.hero--warn .lead { color: #cdd4de; }
.hero--warn p { color: #cdd4de; }

/* warning tag / stamp */
.warn-tag {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--warn); color: #fff;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem;
  padding: .45rem .8rem; border-radius: 4px; margin: 0 0 1rem;
}
.warn-tag .ico { font-style: normal; }

/* "open letter" panel */
.letter {
  background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--warn);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow);
  max-width: 48rem; margin-inline: auto;
}
.letter h2 { margin-top: 0; }
.letter .sign { font-family: var(--serif); font-style: italic; color: var(--slate); margin-top: 1.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .8rem 1.3rem; border-radius: 8px; border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .05s; font-size: 1rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--warn); color: #fff; }
.btn-primary:hover { background: var(--warn-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--slate); color: var(--slate); }
.hero--warn .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero--warn .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.4rem 1.1rem; text-align: center; }
.stat b { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--warn); line-height: 1.1; }
.stat span { display: block; font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; text-decoration: none; }
.card a.more::after { content: " →"; }

/* ---------- compare (needs vs delivered) ---------- */
.compare { display: grid; gap: 1.1rem; }
.compare-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-row h3 { margin: 0; padding: .9rem 1.2rem; background: #f0ece4; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; }
.compare-cols > div { padding: 1.1rem 1.2rem; }
.compare-cols .need { border-right: 1px solid var(--line); }
.compare-cols .got { background: var(--warn-bg); }
.compare-cols .label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .4rem; }
.compare-cols .need .label { color: var(--accent-d); }
.compare-cols .got .label { color: var(--warn-d); }
.compare-cols p { margin: 0; font-size: .98rem; }
@media (max-width: 620px) { .compare-cols { grid-template-columns: 1fr; } .compare-cols .need { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline li.flag::before { border-color: var(--warn); }
.timeline time { display: block; font-weight: 700; color: var(--slate); font-size: .95rem; }
.timeline p { margin: .25rem 0 0; color: var(--ink); }

/* ---------- callout / quote ---------- */
.callout { background: var(--warn-bg); border-left: 4px solid var(--warn); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.callout.info { background: #eef5f4; border-left-color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }
blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.2rem; border-left: 4px solid var(--line); font-family: var(--serif); font-style: italic; color: var(--slate); font-size: 1.1rem; }
blockquote cite { display: block; font-size: .85rem; font-style: normal; font-family: var(--font); color: var(--muted); margin-top: .5rem; }

/* ---------- finance table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.finance { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 32rem; }
table.finance th, table.finance td { padding: .8rem 1rem; text-align: right; border-bottom: 1px solid var(--line); }
table.finance th:first-child, table.finance td:first-child { text-align: left; }
table.finance thead th { background: var(--slate); color: #fff; font-size: .9rem; }
table.finance tr.total td { font-weight: 700; background: #f0ece4; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); max-width: 40rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .7rem .8rem; border: 1px solid #c8c2b6; border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(31,111,107,.18); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: auto; margin-top: .35rem; }

/* ---------- list of concerns ---------- */
.concerns { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.concerns li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; }
.concerns li b { display: block; color: var(--slate); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c7cfda; margin-top: 3rem; font-size: .92rem; }
.site-footer .wrap { padding-block: 2.5rem; }
.site-footer a { color: #9ed3cf; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer nav a { text-decoration: none; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.25rem; max-width: 60rem; color: #9aa6b6; }
.disclaimer strong { color: #dde3ec; }

/* ---------- misc ---------- */
.breadcrumb { font-size: .88rem; color: var(--muted); padding-top: 1.25rem; }
.breadcrumb a { text-decoration: none; }
.tag { display: inline-block; background: var(--warn-bg); color: var(--warn-d); border: 1px solid #e6c4bd; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
