/* World of Doc — site styles. Colours taken from the logo. */
:root {
  --orange: #dd3800;
  --orange-dark: #b52e00;
  --blue: #024d86;
  --blue-dark: #013559;
  --ink: #1d2733;
  --muted: #5b6673;
  --line: #e3e7ec;
  --soft: #f4f6f9;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 77, 134, 0.08);
  --max: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--blue-dark); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand img { width: 220px; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--soft); }
.nav a.btn, .nav a.btn[aria-current="page"] { color: #fff; background: var(--orange); margin-left: 6px; }
.nav a.btn:hover { background: var(--orange-dark); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; cursor: pointer; color: var(--blue-dark);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .brand img { width: 170px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer;
  font-size: 1rem; font-family: inherit; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.secondary:hover { background: var(--blue); color: #fff; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); overflow: hidden; }
.hero .eyebrow { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .8em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-image { margin-top: 36px; }
.hero.photo { color: #fff; padding: 120px 0 100px; background-size: cover; background-position: center; }
.hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 34, 60, .82) 0%, rgba(1, 34, 60, .45) 60%, rgba(1, 34, 60, .15) 100%); }
.hero.photo .container { position: relative; }
.hero.photo h1 { color: #fff; }
.hero.photo p.lead { color: rgba(255, 255, 255, .9); }
.hero.photo .btn.secondary { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.hero.photo .btn.secondary:hover { background: #fff; color: var(--blue-dark); }

/* Heartbeat divider (from the logo) */
.pulse { display: block; width: 100%; height: 40px; color: var(--blue); }
.pulse .dot { fill: var(--orange); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .kicker { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; display: block; margin-bottom: .5em; }
.section-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--orange); color: #fff; font-weight: 700; margin-bottom: 14px; }
.card.link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.card.link:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(2, 77, 134, .14); }
.card.link .more { color: var(--orange); font-weight: 600; }
.card.media { padding: 0; overflow: hidden; }
.card.media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--soft); }
.card.media .body { padding: 26px 28px 28px; }
.card.media img.contain { object-fit: contain; padding: 14px; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.trust { background: var(--blue-dark); color: #fff; padding: 46px 0; }
.trust .grid { text-align: center; }
.trust strong { display: block; font-size: 1.15rem; }
.trust span { color: rgba(255, 255, 255, .75); font-size: .95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--blue-dark); }

.notice { border-left: 4px solid var(--orange); background: #fff; padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th, .table td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.table td:last-child, .table th:last-child { text-align: right; white-space: nowrap; }
.table tr.total td { font-weight: 700; color: var(--blue-dark); border-bottom: 0; border-top: 2px solid var(--blue); }
.table tr.positive td:last-child { color: #1a7f37; }
.table caption { text-align: left; font-weight: 700; color: var(--blue-dark); padding-bottom: 6px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.facts strong { display: block; color: var(--orange); font-size: 1.35rem; }
.facts span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.disclaimer { font-size: .85rem; color: var(--muted); }

/* Contact */
.contact-cards .card { display: flex; flex-direction: column; }
.contact-cards .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-cards .icon svg { width: 24px; height: 24px; }
.contact-cards strong { color: var(--blue-dark); font-size: 1.08rem; word-break: break-word; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; border-radius: 22px; padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) { .cta { padding: 32px 24px; } }

/* Footer */
.site-footer { background: #0e1a26; color: rgba(255, 255, 255, .8); padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ff7a45; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 180px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; font-size: .85rem; color: rgba(255, 255, 255, .55); }
