:root {
  --navy: #003663;
  --teal: #005374;
  --accent: #c2410c;
  --sand: #ffe9a3;
  --orange: #ffa500;
  --text: #1a1f24;
  --muted: #55606b;
  --line: #e3e6ea;
  --bg: #ffffff;
  --card: #f7f8fa;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Layout */
.layout { min-height: 100vh; }

.deco {
  background: var(--sand) url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MCIgaGVpZ2h0PSI1MCIgdmlld0JveD0iMCAwIDUwIDUwIj4KPGcgaWQ9ImdyaWQiIHN0cm9rZT0ib3JhbmdlIj4KICA8bGluZSB4MT0iMCIgeTE9IjI1IiB4Mj0iNTAiIHkyPSIyNSIgc3R5bGU9InN0cm9rZS1kYXNoYXJyYXk6MSw5LDAsMDtzdHJva2Utd2lkdGg6NTA7Ii8+CiAgPGxpbmUgeDE9IjI1IiB5MT0iMCIgeDI9IjI1IiB5Mj0iNTAiIHN0eWxlPSJzdHJva2UtZGFzaGFycmF5OjEsOSwwLDA7c3Ryb2tlLXdpZHRoOjUwOyIvPgogIDxsaW5lIHgxPSIwIiB5MT0iMjUiIHgyPSI1MCIgeTI9IjI1IiBzdHlsZT0ic3Ryb2tlLWRhc2hhcnJheToxLDQ4LDEsMDtzdHJva2Utd2lkdGg6NTA7Ii8+CiAgPGxpbmUgeDE9IjI1IiB5MT0iMCIgeDI9IjI1IiB5Mj0iNTAiIHN0eWxlPSJzdHJva2UtZGFzaGFycmF5OjEsNDgsMSwwO3N0cm9rZS13aWR0aDo1MDsiLz4KPC9nPgo8L3N2Zz4=') center bottom;
  border-bottom: 1px solid var(--orange);
  min-height: 96px;
  position: relative;
  overflow: hidden;
}
.deco-anim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.content {
  padding: 1.25rem 1rem 2rem;
  max-width: 54rem;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}
.logo { display: block; line-height: 0; }
/* Whole/half multiples of the 150-unit viewBox keep the block edges crisp. */
.logo svg { width: min(225px, 60vw); height: auto; }
/* Logo: the two blues slowly brighten and settle, out of phase, like a faint glow. */
@keyframes logo-glow-a { 0%, 100% { fill: #005374; } 50% { fill: #0a6d92; } }
@keyframes logo-glow-b { 0%, 100% { fill: #003663; } 50% { fill: #0c4f88; } }
.logo .logo-a { animation: logo-glow-a 10s ease-in-out infinite; }
.logo .logo-b { animation: logo-glow-b 10s ease-in-out -5s infinite; }
@media (min-width: 560px) { .logo svg { width: 300px; } }

.lang { display: flex; gap: .25rem; font-size: .875rem; font-weight: 600; }
.lang a {
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--muted);
}
.lang a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.lang a:not([aria-current]):hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { padding: 2.5rem 0 2rem; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; letter-spacing: -.01em; }
.lead { margin: 1rem 0 1.5rem; font-size: 1.1875rem; color: var(--muted); max-width: 40rem; }

/* Hero illustrations (decorative inline SVG, see Illustration.astro) */
.hero-art { display: block; width: 100%; max-width: 12rem; height: auto; margin: 0 0 1rem; }
.hero-art * { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .il-sand { fill: var(--sand); stroke: none; opacity: .6; }
.hero-art .il-paper { fill: #fff; }
.hero-art .il-navy { stroke: var(--navy); }
.hero-art .il-teal { stroke: var(--teal); }
.hero-art .il-orange { stroke: var(--orange); }
.hero-art .il-muted { stroke: #9aa3ab; }
.hero-art .il-fill-t { fill: #d6e6ec; stroke: none; }
.hero-art .il-fill-o { fill: #ffd98a; }
.hero-art .il-dot-o { fill: var(--orange); stroke: none; }
.hero-art .il-dot-t { fill: var(--teal); stroke: none; }
.hero-art .il-dot-n { fill: var(--navy); stroke: none; }
.hero-art .il-dash { stroke-dasharray: 4 5; }
@media (max-width: 479px) { .hero-art { display: none; } }
@media (min-width: 1100px) {
  .hero:has(.hero-art) { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 2.5rem; align-items: start; }
  .hero:has(.hero-art) > * { grid-column: 1; }
  .hero:has(.hero-art) > .btn { justify-self: start; }
  .hero > .hero-art { grid-column: 2; grid-row: 1 / span 4; align-self: center; max-width: none; margin: 0; }
}

.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.btn:hover { background: var(--accent); color: #fff; }

/* Sections */
section { padding: 2rem 0; border-top: 1px solid var(--line); }
section > h2 {
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin: -.75rem 0 .5rem;
  /* Sticks while its section scrolls; the next section pushes it out. */
  position: sticky;
  top: -1px;                 /* -1px lets scroll.js detect the stuck state */
  z-index: 2;
  padding: calc(.75rem + 1px) 0 .75rem;
  background: var(--bg);
  transition: box-shadow .2s;
}
section > h2.is-stuck { box-shadow: 0 1px 0 var(--line), 0 6px 12px -10px rgba(0, 54, 99, .35); }
/* Anchor targets land below a stuck heading. */
main [id] { scroll-margin-top: 3.5rem; }

/* Back to top */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 5;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: var(--navy); color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 54, 99, .25);
  opacity: 0; visibility: hidden; transform: translateY(.5rem);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
/* Bottom reached: blink once (re-runs each time the bottom is reached again). */
@keyframes to-top-pulse {
  0%, 100% { background-color: var(--navy); }
  50% { background-color: var(--accent); }
}
.to-top.is-visible.at-bottom { animation: to-top-pulse .3s ease-in-out; }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 768px) { .to-top { right: 1.5rem; bottom: 1.5rem; } }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.cards li {
  background: var(--card);
  border-left: 3px solid var(--orange);
  padding: 1.125rem 1.25rem;
  border-radius: 0 6px 6px 0;
}
.cards h3 { font-size: 1.0625rem; margin-bottom: .375rem; }
.cards p { margin: 0; color: var(--muted); font-size: .9688rem; }

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .375rem;
}
.steps strong { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: .9375rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tags li {
  font-size: .875rem;
  padding: .25rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
}

.contact { display: grid; gap: .25rem; margin: 0; }
.contact dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .75rem; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 0; font-size: 1.125rem; }
.contact dd.legal { font-size: 1rem; line-height: 1.5; }

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--card);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
}
.contact-form h3, .form-intro, .field-wide { grid-column: 1 / -1; }
.contact-form h3 { font-size: 1.25rem; }
.form-intro { margin: -.5rem 0 0; color: var(--muted); font-size: .9688rem; }

.field { display: grid; gap: .3rem; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #c9ced4;
  border-radius: 6px;
  padding: .625rem .75rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field [aria-invalid="true"] { border-color: #b42318; background: #fff6f5; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.form-actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; }
.form-actions .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-note { margin: 0; font-size: .8125rem; color: var(--muted); }

.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #12703b; }
.form-status.is-error { color: #b42318; }

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

@media (min-width: 560px) {
  .contact-form { grid-template-columns: 1fr 1fr; padding: 1.75rem 1.75rem; }
}

footer {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
  font-size: .875rem;
  color: var(--muted);
}
footer p { margin: 0; }

/* Main navigation */
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  list-style: none; margin: 0; padding: .75rem 0 0;
  font-size: .9063rem; font-weight: 600;
}
.site-nav a { text-decoration: none; color: var(--navy); }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

/* Offer cards (whole card is clickable) */
.offer-cards { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.offer-cards li { position: relative; }
.offer-cards li:hover { border-left-color: var(--accent); }
.offer-cards h3 a { color: inherit; text-decoration: none; }
.offer-cards h3 a::after { content: ""; position: absolute; inset: 0; }
.offer-cards h3 a:focus-visible { outline: none; }
.offer-cards li:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-cards .card-icon {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; margin-bottom: .75rem;
  background: var(--sand); border-radius: 8px;
  transition: background-color .15s;
}
.offer-cards li:hover .card-icon { background: #ffdd80; }
.card-icon svg { width: 2rem; height: 2rem; }
.card-icon svg * { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card-icon .ic-n { stroke: var(--navy); }
.card-icon .ic-t { stroke: var(--teal); }
.card-icon .ic-o { stroke: var(--accent); }
.card-icon .ic-fill-o { fill: var(--orange); stroke: var(--orange); }
.offer-cards .card-price { margin-top: .625rem; color: var(--navy); font-weight: 700; }
.offer-cards .card-price + .card-link { margin-top: .25rem; }
.price-block { display: grid; gap: 1rem 2rem; align-items: start; }
.price-block p { margin: 0 0 .75rem; }
.price-aside { border-top: 3px solid var(--orange); background: var(--card); padding: 1rem 1.25rem; border-radius: 0 0 6px 6px; }
.price-aside .package-price { margin: 0; }
.price-aside .package-for { margin: .375rem 0 0; }
@media (min-width: 640px) { .price-block { grid-template-columns: 1fr 15rem; } }
.vat-note { margin: .75rem 0 0; font-size: .8125rem; color: var(--muted); }
.offer-cards .card-link { margin-top: .625rem; color: var(--teal); font-weight: 600; font-size: .9375rem; }

/* About */
.about-text { max-width: 42rem; }
.about-text p { margin: 0 0 1rem; }
.values { margin: .25rem 0 0; grid-template-columns: 1fr; max-width: 42rem; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: ""; position: absolute; left: .25rem; top: .45em;
  width: .5rem; height: .85rem;
  border: solid var(--orange); border-width: 0 3px 3px 0; transform: rotate(45deg);
}

/* Comparison table */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 32rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .625rem .75rem; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--navy); border-bottom: 2px solid var(--navy); }
.compare tbody th { color: var(--navy); font-weight: 600; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--text); background: var(--card); }
.note { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); font-style: italic; }

/* Packages */
.packages {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.packages-2col { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.packages > li {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-top: 3px solid var(--orange);
  border-radius: 0 0 6px 6px; padding: 1.25rem;
}
.packages h3 { font-size: 1.125rem; }
.package-for { margin: .25rem 0 0; color: var(--muted); font-size: .9375rem; }
.package-price { margin: .75rem 0; font-weight: 800; font-size: 1.375rem; color: var(--navy); }
.packages ul { margin: 0 0 1.25rem; padding-left: 1.125rem; font-size: .9375rem; flex: 1; }
.packages ul li + li { margin-top: .25rem; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); text-align: center; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.related { margin: 1.25rem 0 0; }
.related a { font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: .875rem 0; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

@media (min-width: 768px) {
  .layout { display: grid; grid-template-columns: 2fr 5fr; }
  .deco {
    position: sticky;
    top: 0;
    height: 100vh;
    background-position: right center;
    border-bottom: 0;
    border-right: 1px solid var(--orange);
  }
  .content { padding: 2rem 4rem 2.5rem 3rem; }
  .hero { padding: 4rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section > h2, .to-top { transition: none; }
  .logo .logo-a, .logo .logo-b { animation: none; }
  .to-top.is-visible.at-bottom { animation: none; background: var(--accent); }
}
