/* Desktop Oasis — Cape Coastal (Direction B)
   One stylesheet for the whole site. No framework, no build step. */

/* ---------- Fonts (self-hosted, SIL Open Font License: see /fonts) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/worksans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/worksans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #1e3a4c;        /* text, buttons, footer */
  --navy-dark: #10222e;
  --glass: #a8cfc4;       /* soft fills; navy text only */
  --glass-deep: #2f5f55;  /* small labels on sand (AA) */
  --sand: #f3ece0;        /* page background */
  --paper: #fbf8f2;       /* cards */
  --drift: #6b5d4c;       /* secondary text on sand (5.4:1) */
  --red: #b23a32;         /* rare accent */
  --line: #ddd2bf;
  --on-navy: #f3ece0;
  --on-navy-muted: #d3e2dd;
  --radius: 4px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--paper { background: var(--paper); }
.eyebrow {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--glass-deep); margin: 0 0 14px;
}
.lede { font-size: 1.2rem; max-width: 40em; }
.muted { color: var(--drift); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Placeholder for details Jeff still has to confirm. Remove the class once filled in. */
.todo { background: #fff1a8; color: #3b3000; padding: 0 0.25em; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.0625rem;
  padding: 15px 26px; border-radius: var(--radius); border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; line-height: 1.2;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn--glass { background: var(--glass); border-color: var(--glass); color: var(--navy); }
.btn--glass:hover { background: #95c2b6; border-color: #95c2b6; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; }
.site-nav li + li { margin-top: 0; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 8px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .nav-cta { border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 10px 18px; }
.site-nav .nav-cta:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero p { font-size: 1.2rem; }
.hero .btn-row { margin-top: 28px; }
.hero picture img { border-radius: var(--radius); width: 100%; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.split--top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.rounded { border-radius: var(--radius); }

.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 28px 0 0; }
.facts li + li { margin-top: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }

.step picture img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.step h3 { margin-top: 18px; }
.step-num { font-family: var(--serif); color: var(--glass-deep); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; }

.card { background: var(--paper); border-radius: var(--radius); padding: 30px; }
.card--glass { background: var(--glass); }
.card h3 { margin-bottom: 0.4em; }
.card > :last-child { margin-bottom: 0; }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.size { background: var(--paper); border-top: 3px solid var(--navy); padding: 24px; border-radius: 0 0 var(--radius) var(--radius); }
.size h3 { font-size: 1.6rem; }
.size dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.98rem; }
.size dt { color: var(--drift); }
.size dd { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.review { margin: 0; background: var(--sand); padding: 26px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review figcaption { font-family: var(--serif); font-weight: 600; }

.band { border-top: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); padding: 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.band h2 { font-size: 1.9rem; margin-bottom: 0.2em; }
.band p { margin: 0; color: var(--drift); }

/* ---------- Care guide / prose pages ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.qa details p { margin: 0 0 16px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--drift); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  background: #fff; border: 1.5px solid #8f8473; border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--glass); outline-offset: 0; border-color: var(--navy); }
.field fieldset { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.checks input { width: 20px; height: 20px; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 48px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 52px; height: 52px; }
.foot-brand p { margin: 0; color: var(--on-navy-muted); font-size: 0.98rem; }
.foot-brand strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--on-navy); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav li + li { margin-top: 0; }
.foot-small { width: 100%; font-size: 0.9rem; color: var(--on-navy-muted); margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 16px; }
  .grid-3, .sizes, .reviews { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .site-nav ul { gap: 2px 18px; }
  .facts, .grid-2, .form .row { grid-template-columns: minmax(0, 1fr); }
  .band { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Small utilities (no inline styles: the CSP blocks them) ---------- */
.mt { margin-top: 28px; }
.h-sm { font-size: 1.8rem; }
.card--sand { background: var(--sand); }
.img-tall { max-height: 560px; width: auto; margin: 0 auto; border-radius: var(--radius); }
.signoff { font-family: var(--serif); font-size: 1.2rem; margin-top: 1.5em; }
