/* Shoreside Terrace Café — "Whitewash and sea" */
:root {
  --ground: #F8F6F0;
  --surface: #FFFFFF;
  --ink: #0E2A3F;
  --muted: #46606F;
  --brand: #1E5BA8;
  --brand-hover: #174A8A;
  --brand-text: #1E5BA8;
  --accent-dark: #A8CDF5;
  --lemon: #F5D547;
  --lemon-hover: #FBE47E;
  --ink-fixed: #0E2A3F;
  --on-brand: #FFFFFF;
  --cream: #EEF3F7;
  --band: #0E2A3F;
  --line: #B4C3CE;
  --field-line: #6F8696;
  --tint: #E1EAF4;
  --tint-text: #0E2A3F;
  --focus: #1E5BA8;
  --field: #FFFFFF;
  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Albert Sans", system-ui, sans-serif;
  --radius: 14px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 -2 24 6 T48 6' fill='none' stroke='%231E5BA8' stroke-width='1.5'/%3E%3C/svg%3E");
}
[data-theme="dark"] {
  --ground: #07182A;
  --surface: #0F2740;
  --ink: #EEF3F7;
  --muted: #B9CAD6;
  --brand-text: #8FBEF2;
  --band: #030C16;
  --line: #3A5A78;
  --field-line: #6F90AD;
  --tint: #17395C;
  --tint-text: #EEF3F7;
  --focus: #8FBEF2;
  --field: #07182A;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 Q12 -2 24 6 T48 6' fill='none' stroke='%238FBEF2' stroke-width='1.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-text); text-underline-offset: 3px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.1rem; }
.section { padding-block: 3.5rem; }
.section--tight { padding-block: 2rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lemon); color: var(--ink-fixed); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wave { height: 12px; background: var(--wave) repeat-x center; margin: 0; border: 0; }
.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--brand-text); margin-bottom: .6rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.3rem; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--lemon { background: var(--lemon); color: var(--ink-fixed); }
.btn--lemon:hover { background: var(--lemon-hover); color: var(--ink-fixed); }
a.btn--ghost, button.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
a.btn--ghost:hover, button.btn--ghost:hover { background: var(--tint); color: var(--ink); }
a.btn--primary, a.btn--lemon { text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===== Always-dark surfaces: header, hero, band, footer, Table brief panel ===== */
.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel { background: var(--band); color: var(--cream); }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) :is(h1, h2, h3, h4, p, li, dt, dd, small, strong, .muted, .note, .img-note, .stat, .stat-label, .chip, .demo-note, .brand-name, legend, label) { color: var(--cream); }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) .eyebrow { color: var(--accent-dark); }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a:not(.btn) { color: var(--cream); text-decoration: underline; }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a:not(.btn):hover { color: #FFFFFF; }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a.btn--primary,
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a.btn--primary:hover { color: var(--on-brand); border-color: var(--accent-dark); text-decoration: none; }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a.btn--lemon,
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a.btn--lemon:hover { color: var(--ink-fixed); text-decoration: none; }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a.btn--ghost,
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) button.btn--ghost { background: transparent; color: var(--cream); border-color: var(--cream); text-decoration: none; }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) a.btn--ghost:hover,
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) button.btn--ghost:hover { background: #1F4568; color: #FFFFFF; border-color: #FFFFFF; }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) .chip { background: #1B3E5E; border: 1px solid var(--accent-dark); }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) .chip--lemon { background: var(--lemon); color: var(--ink-fixed); border-color: var(--lemon); }
:is(.site-header, .hero, .band, .site-footer, .footer-bottom, .brief-panel) :focus-visible { outline-color: var(--lemon); }
.band .ticks li::before, .brief-panel .ticks li::before, .hero .ticks li::before { color: var(--accent-dark); }
.demo-note { background: #0A1E30; border: 1px solid #3A5A78; border-radius: 10px; padding: .6rem .9rem; margin: 0; font-size: .9rem; }
.demo-note strong { color: var(--cream); }
[data-theme="dark"] .demo-note { background: #0A1E30; }

/* Header */
.site-header { padding-block: .8rem; border-bottom: 1px solid #2B4A68; position: relative; z-index: 10; }
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand nav actions"; align-items: center; gap: 1rem; }
.header-inner > * { min-width: 0; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: .6rem; text-decoration: none !important; }
.brand-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 0 3px #1E5BA8; }
.brand-name { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.15; overflow-wrap: anywhere; }
.nav { grid-area: nav; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.nav a { display: inline-block; padding: .45rem .7rem; border-radius: 999px; text-decoration: none !important; font-weight: 500; }
.nav a:hover { background: #1F4568; }
.nav a[aria-current="page"] { background: var(--lemon); color: var(--ink-fixed) !important; font-weight: 700; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: .6rem; }
.theme-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 960px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; row-gap: .6rem; }
}
@media (max-width: 700px) {
  .nav ul { gap: .2rem; }
  .nav a { padding: .4rem .6rem; font-size: .95rem; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .brand-name { font-size: 1.1rem; }
}

/* Hero */
.hero { padding-block: 3rem 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { color: var(--cream); }
.hero .lead { font-size: 1.2rem; }
.page-hero { padding-block: 2.5rem; }
.page-hero h1 { margin-bottom: .4em; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; } }

/* Frames / images */
.frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--tall { aspect-ratio: 4 / 5; }
.img-note { font-size: .85rem; margin: .5rem 0 0; color: var(--muted); }

/* Cards & grids */
.grid { display: grid; gap: 1.4rem; }
.grid > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.card h3 { margin-top: .9rem; }
.card .frame { margin-bottom: .2rem; }
.card p:last-child { margin-bottom: 0; }

/* Proof */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.proof > * { min-width: 0; }
.proof .card { text-align: center; padding: 1rem .8rem; }
.stat { font-family: var(--font-head); font-size: 2rem; line-height: 1.1; color: var(--ink); display: block; }
.stat-label { display: block; color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .proof { grid-template-columns: minmax(0, 1fr); } }

/* Chips */
.chip { display: inline-block; background: var(--tint); color: var(--tint-text); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .75rem; font-size: .88rem; font-weight: 500; }
.chip--lemon { background: var(--lemon); color: var(--ink-fixed); border-color: var(--lemon); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: .35rem; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--brand-text); }

/* Band (teaser / CTA) */
.band { padding-block: 3.5rem; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.band-grid > * { min-width: 0; }
@media (max-width: 800px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }
.band .img-note { color: var(--cream); }

/* Find us / NAP */
.findus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; }
.findus > * { min-width: 0; }
@media (max-width: 760px) { .findus { grid-template-columns: minmax(0, 1fr); } }
dl.nap { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1rem; }
dl.nap dt { font-weight: 700; color: var(--ink); }
dl.nap dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.site-footer dl.nap dt, .site-footer dl.nap dd { color: var(--cream); }
@media (max-width: 400px) { dl.nap { grid-template-columns: minmax(0, 1fr); gap: 0; } dl.nap dd { margin-bottom: .6rem; } }

blockquote { margin: 0 0 1rem; padding: .4rem 0 .4rem 1.1rem; border-left: 4px solid var(--lemon); font-family: var(--font-head); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
blockquote cite { display: block; font-family: var(--font-body); font-size: .95rem; font-style: normal; color: var(--muted); margin-top: .4rem; }

/* Footer */
.site-footer { padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-size: 1.1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-bottom { border-top: 1px solid #2B4A68; padding-block: 1.2rem; }
.footer-bottom .container { display: grid; gap: .8rem; }
.footer-bottom p { margin: 0; font-size: .92rem; }

/* ===== Table brief (planner) ===== */
.planner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.planner > * { min-width: 0; }
@media (max-width: 900px) { .planner { grid-template-columns: minmax(0, 1fr); } }
.brief-form { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.brief-form fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.brief-form legend, .brief-form .field-label { font-family: var(--font-head); font-size: 1.25rem; padding: 0; margin-bottom: .6rem; color: var(--ink); display: block; }
.hint { font-size: .92rem; color: var(--muted); margin: 0 0 .6rem; }
.stepper { display: inline-flex; align-items: center; gap: .6rem; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--brand-text); background: var(--surface); color: var(--brand-text); font: 700 1.5rem/1 var(--font-body); cursor: pointer; padding: 0; }
.stepper button:hover { background: var(--tint); }
.stepper input { width: 4.5rem; text-align: center; font-size: 1.4rem; }
input[type="number"], input[type="date"], textarea {
  font: inherit; color: var(--ink); background: var(--field); border: 2px solid var(--field-line); border-radius: 10px; padding: .6rem .8rem; max-width: 100%;
}
input[type="number"] { -moz-appearance: textfield; }
textarea { width: 100%; min-height: 5.5rem; resize: vertical; }
.options { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt { position: relative; min-width: 0; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.opt .tile {
  display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem .95rem;
  background: var(--field); color: var(--ink); border: 2px solid var(--field-line); border-radius: 12px; font-weight: 500;
}
.opt .box { flex: none; width: 1.3rem; height: 1.3rem; border: 2px solid var(--muted); border-radius: 50%; display: inline-block; position: relative; background: transparent; }
.opt--check .box { border-radius: 5px; }
.opt input:checked + .tile { border-color: var(--brand-text); outline: 2px solid var(--brand-text); outline-offset: 0; background: var(--tint); color: var(--tint-text); font-weight: 700; }
.opt input:checked + .tile .box { background: var(--brand); border-color: var(--brand); }
.opt input:checked + .tile .box::after { content: "\2713"; position: absolute; inset: 0; color: var(--on-brand); font-size: .85rem; line-height: 1.1rem; text-align: center; font-weight: 700; }
.opt input:focus-visible + .tile { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt input:checked:focus-visible + .tile { outline: 3px solid var(--focus); outline-offset: 2px; }
.dependent { margin-top: .9rem; }
.dependent[hidden] { display: none; }
.dependent label { display: block; font-weight: 700; margin-bottom: .3rem; }
.counter { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }

.brief-panel { border-radius: var(--radius); padding: 1.4rem; border: 1.5px solid #3A5A78; position: sticky; top: 1rem; }
@media (max-width: 900px) { .brief-panel { position: static; } }
.brief-panel h2 { font-size: 1.4rem; }
.brief-message { background: #0A1E30; border: 1px solid #3A5A78; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; min-height: 5rem; }
.brief-panel .brief-message { color: var(--cream); overflow-wrap: anywhere; }
.brief-panel .brief-message.is-empty { font-style: italic; }
.brief-actions { display: grid; gap: .6rem; }
.brief-actions .btn { width: 100%; }
.brief-actions .pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.brief-actions .pair > * { min-width: 0; }
@media (max-width: 420px) { .brief-actions .pair { grid-template-columns: minmax(0, 1fr); } }
.copy-status { min-height: 1.4em; margin: .6rem 0 0; font-size: .92rem; }
.brief-panel .note { font-size: .9rem; margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
