/* ==========================================================================
   The Tee Box — Southbroom
   Palette: fairway green / warm sand / ocean teal / brass
   ========================================================================== */

:root {
  /* Colour */
  --ink: #17231d;
  --ink-soft: #35423b;
  --ink-mute: #5d6a62;
  --fairway: #2f5d45;
  --fairway-dk: #1f4231;
  --moss: #7d9c7f;
  --sand: #f2ece1;
  --sand-dk: #e5dcca;
  --cream: #fbf9f5;
  --white: #ffffff;
  --ocean: #2b7286;
  --brass: #b08b52;
  --brass-lt: #cfae7a;
  /* Paler gold for use over the hero photograph, where the standard
     brass drops to an unreadable 1.6:1. */
  --brass-hero: #ecd9b4;
  --line: #e2dccf;
  --line-dk: rgba(255, 255, 255, .16);

  /* Type */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --shell: 1200px;
  --shell-wide: 1500px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------- Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, .95rem + .2vw, 1.075rem);
  line-height: 1.75;
  letter-spacing: .004em;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.012em;
}

/* Cormorant defaults to old-style figures, which turn "01" into something that
   reads as "OI" and makes street numbers and dates hard to scan. Force lining
   figures everywhere the serif carries digits. */
h1,
h2,
h3,
h4,
.lede,
.address,
.hero-facts strong,
.exp-num,
.footer-name {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--fairway);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

a:hover {
  color: var(--fairway-dk);
}

button {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -110%);
  z-index: 200;
  padding: .7rem 1.4rem;
  background: var(--fairway);
  color: #fff;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: #fff;
}

/* --------------------------------------------------------------- Layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell-wide {
  max-width: var(--shell-wide);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section-sand {
  background: var(--sand);
}

.section-dark {
  background: var(--fairway-dk);
  color: rgba(255, 255, 255, .8);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-sub {
  color: var(--ink-mute);
  margin-top: 1.1rem;
  max-width: 40rem;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, .62);
}

/* --------------------------------------------------------------- Type scale */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow.light {
  color: var(--brass-hero);
}

.eyebrow::after {
  content: '';
  display: block;
  width: 2.6rem;
  height: 1px;
  margin-top: .85rem;
  background: currentColor;
  opacity: .5;
}

.h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.6rem);
}

.h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1.4em;
}

.mini-title {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 2.75rem 0 1rem;
}

/* --------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: currentColor;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.85em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease),
    border-color .28s var(--ease), transform .28s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1em 2.2em;
}

.btn-ico {
  width: 1em;
  height: 1em;
  flex: none;
}

.btn-solid {
  --btn-bg: var(--fairway);
  --btn-fg: #fff;
  --btn-bd: var(--fairway);
}

.btn-solid:hover {
  --btn-bg: var(--fairway-dk);
  --btn-bd: var(--fairway-dk);
  color: #fff;
}

.btn-outline {
  --btn-fg: var(--fairway);
  --btn-bd: var(--line);
}

.btn-outline:hover {
  --btn-bg: var(--fairway);
  --btn-fg: #fff;
  --btn-bd: var(--fairway);
}

.btn-ghost {
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .5);
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, .06);
}

.btn-ghost:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: #fff;
}

/* --------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
    border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(251, 249, 245, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(23, 35, 29, .06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
  transition: color .35s var(--ease);
}

.is-stuck .brand {
  color: var(--ink);
}

/* display:block matters — this is a <span>, and width/height are ignored on an
   inline box. The header gets away with it via inline-flex; the footer does not. */
.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--brass-lt);
}

.is-stuck .brand-mark {
  color: var(--brass);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: .01em;
}

.brand-sub {
  font-size: .58rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .72;
  margin-top: .18rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav>a:not(.btn) {
  color: rgba(255, 255, 255, .88);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .35rem 0;
  position: relative;
  transition: color .3s var(--ease);
}

.is-stuck .nav>a:not(.btn) {
  color: var(--ink-soft);
}

.nav>a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease);
}

.nav>a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav>a:not(.btn):hover {
  color: #fff;
}

.is-stuck .nav>a:not(.btn):hover {
  color: var(--fairway);
}

.nav-cta {
  padding: .8em 1.5em;
}

.site-header:not(.is-stuck) .nav-cta {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(3px);
}

.site-header:not(.is-stuck) .nav-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 24px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}

.nav-toggle span:nth-child(2) {
  width: 17px;
}

.is-stuck .nav-toggle span,
.nav-open .nav-toggle span {
  background: var(--ink);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  width: 24px;
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 24px;
}

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 0;
  overflow: hidden;
  background: var(--fairway-dk);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: heroDrift 26s var(--ease) forwards;
}

@keyframes heroDrift {
  from {
    transform: scale(1.09);
  }

  to {
    transform: scale(1);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Wash beneath the copy. The photograph is bright exactly where the text
       lands — without this the gold sits at 1.6:1 and even pure white only
       manages 3.5:1. It stays strong across the full width rather than fading
       out on the right, because on a phone the eyebrow line runs to 87% of the
       frame. Weighted slightly to the left, where the copy block sits. */
    linear-gradient(to right,
      rgba(15, 28, 21, 0.56) 0%,
      rgba(15, 28, 21, 0.52) 70%,
      rgba(15, 28, 21, 0.42) 100%),
    linear-gradient(to top,
      rgba(15, 28, 21, 0.95) 0%,
      rgba(15, 28, 21, 0.70) 40%,
      rgba(15, 28, 21, 0.45) 72%,
      rgba(15, 28, 21, 0.60) 100%
    );
}

.hero-inner {
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  color: #fff;
  max-width: min(var(--shell), 100%);
}

.hero-title {
  font-size: clamp(3.4rem, 1.6rem + 8.4vw, 8rem);
  color: #fff;
  line-height: .94;
  letter-spacing: -.02em;
}

.hero-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem);
  color: var(--brass-hero);
  margin: .55rem 0 1.3rem;
  line-height: 1.3;
}

.hero-blurb {
  max-width: 34rem;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, .96rem + .25vw, 1.12rem);
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.hero-facts li {
  padding: 1.4rem 1rem;
  text-align: center;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.hero-facts li:first-child {
  border-left: 0;
}

.hero-facts strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1;
}

.hero-facts span {
  display: block;
  margin-top: .4rem;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(1.4rem + 88px);
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.hero-scroll span {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollCue 2.4s var(--ease) infinite;
}

@keyframes scrollCue {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(100%);
  }
}

/* --------------------------------------------------------------- Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.intro-copy {
  max-width: 34rem;
}

.tick-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
  color: var(--ink);
  font-size: .96rem;
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--brass);
  border-radius: 50%;
}

.tick-list li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: calc(.58em + 3px);
  width: 3px;
  height: 3px;
  background: var(--brass);
  border-radius: 50%;
}

.intro-media {
  position: relative;
}

.frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-dk);
}

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

.frame-tall {
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -30px rgba(23, 35, 29, .4);
}

.frame-inset {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 46%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--cream);
  box-shadow: 0 20px 45px -20px rgba(23, 35, 29, .35);
}

/* --------------------------------------------------------------- Amenities */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.amenity-title {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fairway);
  padding-bottom: .9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand-dk);
}

.amenity-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amenity-group li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: .16em;
  color: var(--moss);
}

/* --------------------------------------------------------------- Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px);
  gap: clamp(.5rem, 1vw, .9rem);
  /* dense backfills the single-cell holes the wide/tall spans would leave */
  grid-auto-flow: row dense;
}

.gallery-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-dk);
  cursor: zoom-in;
  grid-row: span 1;
}

.gallery-item.is-wide {
  grid-column: span 2;
}

.gallery-item.is-tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.055);
  filter: brightness(.9);
}

.gallery-zoom {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--fairway);
  opacity: 0;
  transform: translateY(6px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.gallery-zoom svg {
  width: 18px;
  height: 18px;
}

.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- Experiences */
.experiences {
  overflow: hidden;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.exp-card {
  position: relative;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line-dk);
}

.exp-num {
  position: absolute;
  top: 1.4rem;
  right: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, .09);
}

.exp-card h3 {
  font-size: 1.5rem;
  margin-bottom: .85rem;
}

.exp-card p {
  color: rgba(255, 255, 255, .66);
  font-size: .95rem;
}

.exp-banner {
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  position: relative;
}

.exp-banner img {
  width: 100%;
  height: clamp(260px, 42vw, 540px);
  object-fit: cover;
}

.exp-banner figcaption {
  max-width: var(--shell);
  margin: 1rem auto 0;
  padding-inline: var(--gutter);
  font-size: .8rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .45);
  font-style: italic;
}

/* --------------------------------------------------------------- Location */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.address {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.4rem;
}

.distance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.distance-list li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .62rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}

.d-place {
  color: var(--ink);
}

.d-dots {
  flex: 1 1 auto;
}

.d-time {
  color: var(--fairway);
  font-weight: 400;
  letter-spacing: .04em;
  white-space: nowrap;
}

.location-map {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 30px 70px -35px rgba(23, 35, 29, .4);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  filter: saturate(.85);
}

/* --------------------------------------------------------------- Booking */
.booking-shell {
  max-width: 780px;
}

.booking-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: 0 30px 70px -40px rgba(23, 35, 29, .28);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
}

.field {
  margin-bottom: 1.4rem;
}

.field-row .field {
  margin-bottom: 0;
}

.field-row {
  margin-bottom: 1.4rem;
}

.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.field label span {
  color: var(--brass);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background .25s var(--ease),
    box-shadow .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a7aea9;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: var(--white);
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(125, 156, 127, .18);
}

.field input[type="date"] {
  min-height: 3.1rem;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .55;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 2.6rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 8px;
  color: var(--ink-mute);
  pointer-events: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b4574c;
  background: #fdf6f5;
}

.field-error {
  margin: .45rem 0 0;
  font-size: .82rem;
  color: #a04a40;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nights-note {
  margin: -.4rem 0 1.4rem;
  font-size: .85rem;
  color: var(--fairway);
  letter-spacing: .04em;
  min-height: 1.3em;
}

.form-foot {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: .6rem;
}

.form-note {
  margin: 0;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--ink-mute);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: .95rem;
  line-height: 1.6;
}

.alert svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: .1em;
}

.alert strong {
  color: inherit;
}

.alert-success {
  background: #eef4ee;
  border-color: #bcd4bf;
  color: #24512f;
}

.alert-error {
  background: #fcf2f0;
  border-color: #e3c2bc;
  color: #8c3f36;
}

/* --------------------------------------------------------------- FAQ */
.faq-shell {
  max-width: 860px;
}

.accordion {
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-item h3 {
  margin: 0;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1rem + .35vw, 1.35rem);
  font-weight: 400;
  color: var(--ink);
  transition: color .25s var(--ease);
}

.acc-trigger:hover {
  color: var(--fairway);
}

.acc-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--brass);
  transition: transform .35s var(--ease);
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  transform: rotate(135deg);
}

.acc-panel {
  padding: 0 0 1.5rem;
  max-width: 62ch;
}

.acc-panel p {
  color: var(--ink-soft);
  font-size: .96rem;
}

.acc-panel[hidden] {
  display: none;
}

.acc-panel:not([hidden]) {
  animation: accIn .35s var(--ease);
}

@keyframes accIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- CTA strip */
.cta-strip {
  background: var(--fairway);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner h2 {
  color: #fff;
  margin-bottom: .5rem;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
}

.cta-inner .btn-solid {
  --btn-bg: #fff;
  --btn-fg: var(--fairway-dk);
  --btn-bd: #fff;
}

.cta-inner .btn-solid:hover {
  --btn-bg: var(--sand);
  --btn-bd: var(--sand);
  color: var(--fairway-dk);
}

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
  color: var(--brass);
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: #fff;
  margin: 1rem 0 .5rem;
  line-height: 1;
}

.footer-tag {
  color: rgba(255, 255, 255, .45);
  font-size: .85rem;
  line-height: 1.7;
  margin: 0;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 1.1rem;
}

.footer-col address {
  font-style: normal;
  line-height: 1.8;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .85rem;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  padding: .25rem 0;
  transition: color .25s var(--ease), transform .25s var(--ease);
  overflow-wrap: anywhere;
}

.footer-link:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: rgba(255, 255, 255, .38);
}

.footer-base p {
  margin: 0;
}

.footer-checkin {
  letter-spacing: .05em;
}

/* Studio credit — present but deliberately quiet, so it reads as a signature
   rather than competing with the client's own footer content. */
.footer-credit a {
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.footer-credit a:hover {
  color: var(--brass-lt);
  border-bottom-color: var(--brass-lt);
}

/* Three items in the base row: on wide screens the credit sits on the right,
   on narrow screens everything stacks left-aligned. */
@media (min-width: 860px) {
  .footer-base {
    justify-content: space-between;
  }
  .footer-checkin {
    margin-inline: auto;
  }
}

@media (max-width: 859px) {
  .footer-base {
    flex-direction: column;
    gap: .5rem;
  }
}

/* --------------------------------------------------------------- Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(12, 20, 15, .94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  animation: lbIn .4s var(--ease);
}

@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.lb-figure figcaption {
  color: rgba(255, 255, 255, .62);
  font-size: .85rem;
  text-align: center;
  max-width: 46ch;
  font-style: italic;
}

.lb-close,
.lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.lb-close:hover,
.lb-nav:hover {
  background: rgba(255, 255, 255, .2);
}

.lb-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
}

.lb-close svg {
  width: 20px;
  height: 20px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lb-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lb-nav svg {
  width: 22px;
  height: 22px;
}

.lb-prev {
  left: 1.25rem;
}

.lb-next {
  right: 1.25rem;
}

body.lb-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------- Reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: rgba(251, 249, 245, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(23, 35, 29, .2);
    transform: translateY(-140%);
    transition: transform .42s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

  .nav-open .nav {
    transform: none;
  }

  .nav>a:not(.btn) {
    color: var(--ink) !important;
    font-size: .95rem;
    letter-spacing: .06em;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav>a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1.4rem;
    justify-content: center;
  }

  .site-header:not(.is-stuck) .nav-cta {
    background: var(--fairway);
    border-color: var(--fairway);
    color: #fff;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-open .site-header {
    background: rgba(251, 249, 245, .98);
    border-bottom-color: transparent;
  }

  .nav-open .brand,
  .nav-open .brand-mark {
    color: var(--ink);
  }

  .nav-open .brand-mark {
    color: var(--brass);
  }

  .intro-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .intro-media {
    max-width: 30rem;
  }

  .frame-inset {
    right: -4%;
    width: 44%;
  }

  .location-map {
    position: static;
    aspect-ratio: 4 / 3;
  }

  .hero {
    min-height: min(94svh, 820px);
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-facts li:nth-child(3) {
    border-left: 0;
  }

  .hero-facts li:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 42vw;
  }

  .gallery-item.is-wide {
    grid-column: span 2;
  }

  .gallery-item.is-tall {
    grid-row: span 1;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Comfortable touch targets for the footer links on small screens. */
  .footer-link {
    padding: .6rem 0;
  }

  .frame-inset {
    position: static;
    width: 100%;
    border: 0;
    margin-top: .6rem;
    aspect-ratio: 16/10;
    box-shadow: none;
  }

  .lb-nav {
    width: 44px;
    height: 44px;
  }

  .lb-prev {
    left: .5rem;
  }

  .lb-next {
    right: .5rem;
  }

  .cta-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------- A11y / print */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {

  .site-header,
  .hero-scroll,
  .lightbox,
  .nav-toggle,
  .cta-strip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 1.5rem;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* ==========================================================================
   Rooms
   Only has any effect once includes/rooms.php holds more than one room.
   ========================================================================== */

/* Alternate the photo/text sides so a list of rooms doesn't read as one
   long column. Applied to even-numbered rooms by index.php. */
@media (min-width: 901px) {
  .intro-flip .intro-copy {
    order: 2;
  }

  .intro-flip .intro-media {
    order: 1;
  }

  /* The small overlapping frame hangs off the outer edge, so it swaps too. */
  .intro-flip .frame-inset {
    right: auto;
    left: -6%;
  }
}

/* Stacked on small screens, the description always comes before the photos. */
@media (max-width: 900px) {
  .intro-flip .intro-copy,
  .intro-flip .intro-media {
    order: initial;
  }
}

/* "Enquire about <room>" button beneath each room's description. */
.room-cta {
  margin: 2rem 0 0;
}

/* A hairline between rooms, so where one ends and the next begins is
   obvious even when two rooms have similar photographs. */
.room + .room {
  border-top: 1px solid var(--line);
}

/* A landscape feature photo in the portrait 4:5 frame loses too much down
   the sides, so the frame reshapes to suit the photograph. index.php adds
   this class by measuring the image. */
.frame-tall-wide {
  aspect-ratio: 4 / 3;
}
