/* site.css — design system for coastkellys.com
   Purpose: single stylesheet for every public page (cached immutable at the edge).
   Approach: mobile-first, fluid type, system font stacks (zero font downloads),
   WCAG AA contrast throughout (navy #0e3a54 on sand/white >= 7:1).
   Extension: tune the custom properties in :root; components are BEM-lite classes. */

:root {
  --navy: #0e3a54;        /* primary text / brand */
  --navy-deep: #092a3e;   /* footer, header */
  --sea: #17698a;         /* links, accents (4.6:1 on white) */
  --sea-dark: #115570;    /* hover */
  --sand: #f7f2ea;        /* section backgrounds */
  --shell: #ffffff;
  --amber: #e9a13b;       /* sun accent — decorative only, never text-on-white */
  --amber-deep: #a05f00;  /* accessible amber for text */
  --ink: #21333f;         /* body text on white, 12:1 */
  --ink-soft: #48606f;    /* secondary text, 6:1 */
  --line: #dfe7ec;
  --ok: #1e7b45;
  --warn: #b3261e;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(9, 42, 62, .10);
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* trust strip (booking page): proof points close to the conversion action */
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: .9rem 1rem; margin: 1.1rem 0 0; background: var(--sand); border-radius: var(--radius); }
.trust-row li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink); }
.trust-row svg { width: 18px; height: 18px; flex: none; color: var(--amber-deep); }
.hint-secure svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ink-soft); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--shell);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
a:hover { color: var(--sea-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px;
}
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- header / nav ---------- */
.site-header { background: var(--navy-deep); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; }
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.brand-text { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.brand-text em { font-style: normal; color: #bfe0ec; }
.nav-toggle { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: .4rem .55rem; cursor: pointer; display: inline-flex; }
.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .4rem 0 1rem; display: flex; flex-direction: column; gap: .15rem; }
.site-nav a { color: #eaf4f9; text-decoration: none; display: block; padding: .55rem .6rem; border-radius: 8px; font-weight: 500; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.16); color: #fff; }
.site-nav a.nav-cta { background: var(--amber); color: #2b1a00; font-weight: 700; }
.site-nav a.nav-cta:hover { background: #f3b45c; color: #2b1a00; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: .2rem; }
  .header-row { flex-wrap: nowrap; }
}
@media (max-width: 899.98px) { .header-row { flex-wrap: wrap; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-deep); }
.hero img { width: 100%; height: min(72vh, 620px); object-fit: cover; opacity: .82; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(9,42,62,.15) 30%, rgba(9,42,62,.82)); }
.hero-overlay .wrap { padding-bottom: 2.2rem; width: 100%; }
.hero h1 { color: #fff; margin-bottom: .2em; }
.hero p { font-size: clamp(1rem, 2.4vw, 1.25rem); max-width: 42rem; color: #e8f2f7; }
.hero .rating { color: #ffd28a; font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--amber); color: #2b1a00; }
.btn-primary:hover { background: #f3b45c; color: #2b1a00; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.1rem; padding: 1rem 2rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- sections / cards ---------- */
.section { padding-block: clamp(2.2rem, 6vw, 4rem); }
.section-alt { background: var(--sand); }
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: .5rem; }
.stat { text-align: center; padding: 1rem; }
.stat .num { font-family: var(--serif); font-size: 2rem; color: var(--navy); display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--sea); margin-bottom: .4rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { padding-left: 1.7rem; position: relative; margin-bottom: .45rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery-grid button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: rgba(6, 24, 34, .96); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(6, 24, 34, .8); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; }
.lightbox img { max-height: 82vh; max-width: 94vw; width: auto; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #d9e8f0; text-align: center; max-width: 60rem; }
.lightbox .lb-controls { position: absolute; inset: 0; pointer-events: none; }
.lightbox .lb-controls button { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 2.9rem; height: 2.9rem; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-prev { left: .6rem; } .lightbox .lb-next { right: .6rem; }
.lightbox .lb-close { position: absolute; top: .8rem; right: .8rem; transform: none; }

/* ---------- booking ---------- */
.book-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .book-layout { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: #fff; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.cal-head h3 { margin: 0; }
.cal-head button { background: var(--sand); border: 1px solid var(--line); border-radius: 8px; width: 2.4rem; height: 2.4rem; cursor: pointer; font-size: 1.05rem; color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink-soft); padding: .3rem 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: .9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0; }
.cal-day .rate { font-size: .62rem; color: var(--ink-soft); }
.cal-day:hover:not(:disabled) { border-color: var(--sea); }
.cal-day:disabled { background: repeating-linear-gradient(135deg, #f0f0f0 0 4px, #fafafa 4px 8px); color: #9aa8b1; cursor: not-allowed; text-decoration: line-through; }
.cal-day.out { visibility: hidden; }
.cal-day.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-day.sel .rate { color: #cfe3ee; }
.cal-day.range { background: #dcecf4; border-color: #b7d5e4; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--amber); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend i { width: .9rem; height: .9rem; border-radius: 3px; border: 1px solid var(--line); display: inline-block; }
.legend-avail i { background: #fff; }
.legend-booked i { background: repeating-linear-gradient(135deg, #f0f0f0 0 4px, #fafafa 4px 8px); }
.legend-sel i { background: var(--navy); }

.quote-box { position: sticky; top: 4.6rem; }
.quote-box .card { padding: 1.4rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: .65rem .7rem; border: 1px solid #b8c6cf; border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
.field .hint { font-size: .82rem; color: var(--ink-soft); margin-top: .2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.price-lines { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid var(--line); }
.price-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.price-lines li.total { font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.notice { padding: .8rem 1rem; border-radius: 8px; font-size: .92rem; margin: .8rem 0; }
.notice-info { background: #e8f2f7; color: #0d4a63; }
.notice-ok { background: #e7f4ec; color: #135c31; }
.notice-err { background: #fbeae9; color: #8f1d16; }

/* ---------- reviews ---------- */
.review-card blockquote { margin: 0 0 .6rem; font-style: italic; color: var(--ink); }
.review-card cite { font-style: normal; font-weight: 600; color: var(--navy); }
.stars { color: var(--amber-deep); letter-spacing: .1em; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.rating-big { font-family: var(--serif); font-size: 3.4rem; color: var(--navy); line-height: 1; }
.rating-bars { flex: 1; min-width: 16rem; }
.rating-bars .row { display: grid; grid-template-columns: 8.5rem 1fr 2.6rem; gap: .6rem; align-items: center; font-size: .9rem; margin-bottom: .35rem; }
.rating-bars .bar { background: var(--line); border-radius: 999px; height: .5rem; overflow: hidden; }
.rating-bars .bar i { display: block; height: 100%; background: var(--sea); border-radius: 999px; }

/* ---------- faq / tables / misc ---------- */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .7rem; }
details.faq summary { padding: 1rem 1.2rem; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--sea); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.2rem 1rem; }
table.simple { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.simple th, table.simple td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
table.simple th { background: var(--sand); color: var(--navy); }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }
.breadcrumbs { font-size: .88rem; color: var(--ink-soft); padding-top: 1rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #cfdfe8; margin-top: 3rem; }
.site-footer a { color: #9fd0e4; }
.footer-grid { display: grid; gap: 1.6rem; padding-block: 2.2rem 1rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .3rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1rem; font-size: .85rem; }
