/* Sandbanks Ferry Information Guide — global styles */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ocean: #1f7a9c;
  --ocean-soft: #e8f3f8;
  --sand: #f3ead8;
  --grey: #f4f6f8;
  --grey-2: #e3e8ee;
  --text: #1c2a3a;
  --muted: #5a6b7d;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow: 0 12px 32px -12px rgba(11, 37, 69, 0.22);
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
code { background: var(--grey); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { color: var(--navy); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.15rem; }
.brand-text small { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 16px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: background .2s; }
.site-nav a:hover { background: var(--ocean-soft); }
.site-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; }

/* Sections */
.section { padding: 88px 0; }
.section-ocean { background: linear-gradient(180deg, var(--ocean-soft), #f5fafc); }
.section-grey { background: var(--grey); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--ocean); margin-bottom: 10px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.align-start { align-items: start; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
figure { margin: 0 0 1.5em; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,37,69,0.15) 0%, rgba(11,37,69,0.35) 45%, rgba(11,37,69,0.88) 100%); }
.hero-content { position: relative; padding-bottom: 96px; padding-top: 140px; }
.hero h1 { color: var(--white); max-width: 820px; }
.hero .eyebrow { color: #bfe3f0; }
.hero-sub { font-size: 1.25rem; max-width: 640px; opacity: 0.95; }

.page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,37,69,0.25), rgba(11,37,69,0.85)); }
.page-hero-content { position: relative; padding-top: 100px; padding-bottom: 56px; }
.page-hero h1 { color: var(--white); max-width: 860px; }
.page-hero p { font-size: 1.15rem; max-width: 680px; opacity: .95; }
.breadcrumb { font-size: 0.88rem; margin-bottom: 14px; opacity: .9; }
.breadcrumb a { color: inherit; }
.breadcrumb.dark { color: var(--muted); }
.legal-hero { background: var(--ocean-soft); padding: 72px 0 40px; }
.legal-hero p { color: var(--muted); margin: 0; }

/* Prose */
.prose h2 { margin-top: 1.8em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose figure img { border-radius: var(--radius); }
.content-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; background: var(--grey); border-radius: var(--radius); padding: 20px 22px; }
.toc-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.toc li { margin: 6px 0; }
.toc a { text-decoration: none; }
.small-muted { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e5; padding: 64px 0 24px; font-size: 0.94rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--font-serif); font-size: 1.3rem; color: var(--white); margin-bottom: 10px; }
.footer-disclaimer { color: var(--white); font-weight: 600; }
.footer-small { font-size: 0.85rem; opacity: 0.8; }
.footer-heading { color: var(--white); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
