/* Knot 4 Sail — coastal, calm, mostly photographs and air. */

:root {
  --sand: #f6f1e7;
  --sand-2: #ebe2d0;
  --paper: #fffdf9;
  --ink: #14212b;
  --ink-2: #44525c;
  --muted: #7a868e;
  --sea: #1c5d7a;
  --sea-deep: #0e3a4d;
  --sea-tint: #e3eff3;
  --foam: #f0f6f8;
  --shell: #d98c4a;
  --booked: #e0b5a3;
  --booked-ink: #8a4a30;
  --free: #d9ebe6;
  --free-ink: #1f5c4c;
  --line: rgba(20, 33, 43, 0.12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 58, 77, 0.10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-variation-settings: "opsz" 96; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.big { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.display { max-width: 16ch; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--sea-deep);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--sea-deep);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn:hover { background: var(--sea); border-color: var(--sea); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-light { background: var(--sand); border-color: var(--sand); color: var(--sea-deep); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--sea-deep); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--sea-deep); }
.btn-outline:hover { background: var(--sea-deep); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.link { font-weight: 500; }
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; color: var(--ink); text-decoration: none; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.brand-mark { width: 30px; height: 30px; display: block; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover { color: var(--sea-deep); }
.nav .btn { color: #fff; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; color: var(--sea-deep) !important; font-weight: 600 !important; }
.phone-link svg { width: 18px; height: 18px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 58, 77, 0.05) 0%, rgba(14, 58, 77, 0.35) 55%, rgba(14, 58, 77, 0.78) 100%),
    var(--hero) center / cover no-repeat, var(--sea-deep);
  overflow: hidden;
}
.hero--nophoto {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(217, 140, 74, 0.25), transparent 60%),
    linear-gradient(180deg, #1c5d7a 0%, #0e3a4d 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 140px 0 72px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 0.25em; text-wrap: balance; }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 40ch; color: rgba(255, 255, 255, 0.9); font-family: var(--serif); font-style: italic; font-variation-settings: "opsz" 48; text-wrap: balance; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); margin-bottom: 1.2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 120px; fill: var(--paper); z-index: 1; }

/* Facts strip */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-list {
  list-style: none; margin: 0 auto; padding: 22px 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.facts-list li { display: flex; flex-direction: column; line-height: 1.3; }
.facts-list strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--sea-deep); }
.facts-list span { font-size: 0.86rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-sea { background: var(--sea-deep); color: #fff; }
.section-sea h2, .section-sea h3 { color: #fff; }
.section-sea .big { color: rgba(255, 255, 255, 0.85); }
.section-sea a { color: #fff; }
.section-sea a.btn-light { color: var(--sea-deep); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.page-head { padding-top: 64px; padding-bottom: 24px; }
.page-head + .section { padding-top: 32px; }

.card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); color: var(--ink); }
.section-sea .card a { color: var(--sea); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px;
  border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg);
}
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal-n { color: var(--muted); margin-right: 8px; }
.legal li { margin-bottom: 6px; }
.legal .risk { border-left: 3px solid var(--sea); background: var(--sand); padding: 12px 18px; border-radius: 0 10px 10px 0; margin: 12px 0; }
.legal .risk p:last-child { margin-bottom: 0; }
mark.tbc { background: #fde9b8; color: #6b4300; padding: 0 5px; border-radius: 4px; font-weight: 600; }
.draft-banner { background: #fde9b8; color: #4a2f00; border-radius: 10px; padding: 12px 16px; margin-top: 18px; }
.area-list { max-width: 72ch; }
.link-list { list-style: none; padding: 0; margin: 0 0 24px; max-width: 72ch; }
.link-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; color: var(--sea); }
.link-list span { display: block; margin-top: 2px; }
.steps { padding-left: 1.2em; }
.steps li { margin-bottom: 0.6em; }

/* Mosaic and gallery */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; position: relative; }
.mosaic-item { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
.mosaic-item:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mosaic-item:hover img { transform: scale(1.04); }
.mosaic-more { grid-column: span 2; text-align: center; font-weight: 600; text-decoration: none; padding: 10px; }
.mosaic-placeholder { grid-column: span 2; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(160deg, var(--sea-tint), var(--sand-2)); display: grid; place-items: center; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { margin: 0; }
.gallery-item a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: 0.9rem; color: var(--muted); padding: 8px 4px 0; }

/* Calendar */
.months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.months-many { grid-template-columns: repeat(3, 1fr); }
.month h4 { text-align: center; margin-bottom: 10px; font-size: 1.15rem; }
.cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal th { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 4px; }
.cal td { text-align: center; font-size: 0.92rem; height: 40px; border-radius: 8px; position: relative; overflow: hidden; }
.cal td span { position: relative; z-index: 1; }
.cal td.free { background: var(--free); color: var(--free-ink); }
.cal td.booked { background: var(--booked); color: var(--booked-ink); }
.cal td.past { background: transparent; color: #c2c8cc; }
.cal td.empty { background: transparent; }
.cal td.checkout.free { background: linear-gradient(135deg, var(--booked) 0 50%, var(--free) 50% 100%); color: var(--free-ink); }
.cal td.checkout.booked { background: var(--booked); }
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }
.swatch.free { background: var(--free); }
.swatch.booked { background: var(--booked); }
.swatch.checkout { background: linear-gradient(135deg, var(--booked) 0 50%, var(--free) 50% 100%); }

/* Rates */
.rates { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rates th, .rates td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rates th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.rates tr:last-child td { border-bottom: 0; }

/* Contact and forms */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 1.15rem; }
.contact-list li { padding: 6px 0; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badges a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; text-decoration: none; font-size: 0.92rem; }
.badges a:hover { background: rgba(255, 255, 255, 0.12); }
.map-card { text-align: left; }
.form-card { padding: 28px; }
.enquiry label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 14px; color: var(--ink-2); }
.enquiry input, .enquiry textarea, .enquiry select {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--paper);
}
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: var(--sea); }
.enquiry .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enquiry .err { display: block; color: #b91c1c; font-weight: 500; margin-top: 4px; }
.enquiry .form-error { background: #fdecea; color: #7f1d1d; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.enquiry .form-error p { margin: 0; }
.enquiry .btn { width: 100%; margin-top: 6px; }
.enquiry.done h3 { font-size: 1.8rem; }
.hp { position: absolute; left: -9999px; }
.htmx-request .btn { opacity: 0.6; }

/* Footer */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.4em; }
.footer-heading { font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.site-footer p { margin-bottom: 0.5em; }
.footer-base { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .facts-list { grid-template-columns: repeat(3, 1fr); }
  .months-many { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { min-height: 78vh; }
  .hero-inner { padding: 110px 0 56px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 12px 20px; text-align: center; border-radius: 999px; }
  .nav .btn-small { padding: 12px 16px; }
  .facts-list { grid-template-columns: repeat(2, 1fr); }
  .months, .months-many { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .enquiry .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 22px; }
  .footer-base { flex-direction: column; gap: 8px; }
}
