/* ==========================================================================
   The Winston Beach House
   Palette, type and layout tokens
   ========================================================================== */

:root {
  --sand:        #f7f4ee;   /* page background / light text */
  --ink:         #26312f;   /* body text */
  --deep:        #1e2f38;   /* headings, dark sections */
  --deeper:      #16242b;   /* footer */
  --brass:       #a8895f;   /* accent */
  --slate:       #55605f;   /* secondary text */
  --muted:       #8b9491;   /* tertiary text */
  --gallery-bg:  #243a44;   /* image placeholder inside dark gallery */

  --rule:        rgba(30, 47, 56, 0.10);
  --rule-strong: rgba(30, 47, 56, 0.14);
  --rule-faint:  rgba(30, 47, 56, 0.07);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell:     1240px;                /* max content width */
  --gutter:    clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius:    2px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--deep);
  text-decoration: none;
}

a:hover { color: var(--brass); }

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
}

p { margin: 0; }

img { display: block; max-width: 100%; }

input, textarea, button { font-family: inherit; }

/* Sticky header would otherwise cover the target of an in-page link.
   Keep these roughly in step with the header height (logo + 28px padding). */
[id] { scroll-margin-top: 128px; }

@media (max-width: 900px) {
  [id] { scroll-margin-top: 96px; }
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

@keyframes wbhFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Shared pieces
   ========================================================================== */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--brass);
}

.section-title {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.18;
  color: var(--deep);
  text-wrap: pretty;
}

.section-title--light { color: var(--sand); }

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 56ch;
  margin-top: 30px;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--slate);
}

.prose__emphasis { color: var(--deep); }

.column-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--deep);
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 300;
  font-size: 15.5px;
  color: var(--slate);
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 0;
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--light {
  background: var(--sand);
  color: var(--deep);
}

.btn--light:hover {
  background: var(--brass);
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--submit {
  margin-top: 8px;
  padding: 16px 28px;
  background: var(--sand);
  color: var(--deep);
  font-size: 11.5px;
  letter-spacing: 0.22em;
}

.btn--submit:hover {
  background: var(--brass);
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  /* Anchors the mobile menu panel, which drops out of the bar. */
  isolation: isolate;
  background: rgba(247, 244, 238, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand:hover { color: inherit; }

.brand__logo {
  width: auto;
  height: clamp(56px, 7vw, 86px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__link {
  padding: 4px 0;
  color: var(--slate);
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--deep); }

.nav__cta {
  padding: 11px 22px;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--sand);
  letter-spacing: 0.18em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  background: var(--brass);
  color: #fff;
}

/* Hamburger — hidden until the links stop fitting on one line. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--deep);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /* The links become a panel that drops out from under the header bar. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 26px;
    background: var(--sand);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -22px rgba(18, 30, 36, 0.5);
  }

  .nav.is-open { display: flex; }

  .nav__link {
    padding: 16px 2px;
    border-bottom: 1px solid var(--rule-faint);
    font-size: 13px;
  }

  .nav__cta {
    margin-top: 22px;
    padding: 16px 22px;
    text-align: center;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(540px, 80vh, 780px);
  /* Two scrims: a vertical one for the whole frame, and a left-hand wash so the
     headline stays legible against the lit windows of the house. */
  background-image:
    linear-gradient(90deg,
      rgba(18, 30, 36, 0.52) 0%,
      rgba(18, 30, 36, 0.20) 45%,
      rgba(18, 30, 36, 0) 70%),
    linear-gradient(180deg,
      rgba(18, 30, 36, 0.42) 0%,
      rgba(18, 30, 36, 0.14) 40%,
      rgba(18, 30, 36, 0.72) 100%),
    url('../assets/img/header-exterior.webp');
  background-size: cover;
  /* The house sits right of centre in this frame; bias the crop toward it. */
  background-position: 60% center;
}

.hero__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 86px) var(--gutter);
}

.hero__content {
  max-width: 720px;
  animation: wbhFade 0.9s ease both;
}

.hero__kicker {
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero__lede {
  max-width: 520px;
  margin-top: 26px;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

@media (max-width: 700px) {
  /* A full-height hero eats the whole first screen on a phone. */
  .hero { min-height: clamp(420px, 64vh, 540px); }

  /* Half-size backdrop — a phone never resolves the 2400px one. */
  .hero {
    background-image:
      linear-gradient(90deg,
        rgba(18, 30, 36, 0.52) 0%,
        rgba(18, 30, 36, 0.20) 45%,
        rgba(18, 30, 36, 0) 70%),
      linear-gradient(180deg,
        rgba(18, 30, 36, 0.42) 0%,
        rgba(18, 30, 36, 0.14) 40%,
        rgba(18, 30, 36, 0.72) 100%),
      url('../assets/img/header-exterior-1200.webp');
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 15px 20px;
  }
}

/* ==========================================================================
   Welcome
   ========================================================================== */

.welcome__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.welcome__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.welcome__img {
  width: 100%;
  height: clamp(240px, 34vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
}

/* Staggers the pair so they read as a composition, not a strip. */
.welcome__img--offset { margin-top: 34px; }

/* ==========================================================================
   Stats band
   ========================================================================== */

.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 44px) var(--gutter);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__value {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--deep);
}

.stat__label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Accommodation
   ========================================================================== */

.accommodation__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.accommodation__body {
  max-width: 52ch;
  margin-top: 26px;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--slate);
}

.pull-quote {
  max-width: 24ch;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--brass);
}

/* Definition list of room details */
.spec {
  display: grid;
  margin: 6px 0 0;
}

.spec__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-faint);
  font-weight: 300;
  font-size: 15px;
}

.spec__row:last-child { border-bottom: 0; }

.spec dt {
  color: var(--slate);
}

.spec dd {
  margin: 0;
  color: var(--deep);
  text-align: right;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 50px);
  margin-top: clamp(46px, 6vw, 76px);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  background: var(--deep);
  padding: var(--section-y) 0;
}

.gallery__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.gallery__head .eyebrow { margin-bottom: 18px; }

.gallery__head .section-title { line-height: 1.15; }

.gallery__hint {
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 238, 0.6);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--gallery-bg);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gallery__item:hover { opacity: 0.86; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   History
   ========================================================================== */

.history__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.history__hero {
  width: 100%;
  height: clamp(320px, 44vw, 560px);
  object-fit: cover;
  border-radius: var(--radius);
}

.history__grid .prose { margin-top: 28px; max-width: 54ch; }

.history__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 60px);
}

.history__strip img {
  width: 100%;
  height: clamp(200px, 20vw, 280px);
  object-fit: cover;
  border-radius: var(--radius);
}

/* ==========================================================================
   Things to do
   ========================================================================== */

.things {
  border-top: 1px solid var(--rule);
}

.things__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.things .section-title { max-width: 18ch; }

.things__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(34px, 5vw, 56px);
}

.things__note {
  margin-top: 28px;
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid rgba(30, 47, 56, 0.09);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover { border-color: var(--brass); }

.card__kicker {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.card__title {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.2;
  color: var(--deep);
}

.card__body {
  flex: 1;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
}

.card__link {
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(30, 47, 56, 0.25);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card__link:hover {
  color: var(--brass);
  border-color: var(--brass);
}

/* ==========================================================================
   Booking enquiry
   ========================================================================== */

.enquire {
  background: var(--deep);
  color: var(--sand);
}

.enquire__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 80px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.enquire .section-title { max-width: 14ch; line-height: 1.15; }

.enquire__lede {
  max-width: 44ch;
  margin-top: 24px;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(247, 244, 238, 0.72);
}

.enquire__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 44px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(247, 244, 238, 0.86);
}

.enquire__contact-heading {
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}

.enquire__contact-spaced { margin-top: 14px; }

.underlined {
  border-bottom: 1px solid rgba(247, 244, 238, 0.3);
  color: var(--sand);
  transition: color 0.2s ease;
}

.underlined:hover { color: var(--brass); }

.social {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.social a {
  color: rgba(247, 244, 238, 0.75);
  transition: color 0.2s ease;
}

.social a:hover { color: var(--brass); }

/* Form ------------------------------------------------------------------- */

.enquiry-form {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(247, 244, 238, 0.05);
  border: 1px solid rgba(247, 244, 238, 0.14);
  border-radius: var(--radius);
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.6);
}

.field__input {
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 244, 238, 0.28);
  color: var(--sand);
  font-size: 16px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease;
}

.field__input::placeholder { color: rgba(247, 244, 238, 0.35); }

.field__input:focus { border-bottom-color: var(--brass); }

.field__input--area { resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}

.enquiry-form__hint {
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.45);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--deeper);
  color: rgba(247, 244, 238, 0.55);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px var(--gutter);
  font-weight: 300;
  font-size: 13px;
}

.site-footer__links {
  display: flex;
  gap: 22px;
}

.site-footer__links a {
  color: rgba(247, 244, 238, 0.55);
  transition: color 0.2s ease;
}

.site-footer__links a:hover { color: var(--brass); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 60px);
  background: rgba(14, 24, 29, 0.94);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox__close:hover { color: var(--brass); }

/* Honeypot: present in the DOM for bots, unreachable for people. Not
   display:none — some bots skip those; this is off-screen but still "visible". */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-form__hint.is-ok    { color: #9ecfae; }
.enquiry-form__hint.is-error { color: #e8a99d; }

.enquiry-form button[disabled] { opacity: 0.55; cursor: default; }

/* ==========================================================================
   Good to know — provided / bring / please note
   ========================================================================== */

.goodtoknow {
  border-top: 1px solid var(--rule);
  background: #fff;
}

.goodtoknow__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.goodtoknow__lede {
  max-width: 56ch;
  margin-top: 22px;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--slate);
}

.goodtoknow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 50px);
  margin-top: clamp(34px, 5vw, 54px);
}

.goodtoknow__col .plain-list li {
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

/* A dash rather than a bullet, to sit with the rest of the page. */
.goodtoknow__col .plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}
