/* =========================================================
   The Guest List — shared styles
   Colours and fonts are set once here as custom properties.
   ========================================================= */

:root {
  --dark: #14110d;
  --darker: #0d0b08;
  --cream: #f3ecdf;
  --gold: #c9a96e;
  --gold-dark: #7a5c24;
  --text-on-dark: #d9cdb9;
  --text-on-light: #5b4f40;
  --heading-on-dark: #f3ecdf;
  --heading-on-light: #2a2118;
  --muted-on-dark: #b9ad9b;
  --rule-on-dark: #3a3126;
  --logo-name-colour: #ffffff;          /* THE GUEST LIST in the header over the home page photo */
  --logo-name-colour-on-dark: #ffffff;  /* the same words where the background is near-black (other pages, footers, open mobile menu) */

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(64px, 9vw, 112px);
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  background: var(--dark);
  color: var(--text-on-dark);
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: #e3c78f; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.light :focus-visible, .band-light :focus-visible { outline-color: var(--gold-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  color: var(--heading-on-dark);
}
h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: 0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; }
p { margin: 0; overflow-wrap: break-word; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--cream); color: var(--heading-on-light);
  padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max); margin: 0 auto; }
.section { padding: var(--section) var(--gutter); }
.stack.stack > * + * { margin-top: 24px; }

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Light cream bands */
.band-light {
  background: var(--cream);
  color: var(--text-on-light);
}
.band-light h1, .band-light h2, .band-light h3 { color: var(--heading-on-light); }
.band-light .eyebrow { color: var(--gold-dark); }
.band-light a:not(.btn) { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Placeholders that must stay obvious until filled in */
.placeholder {
  display: inline;
  padding: 1px 6px;
  border: 1px dashed currentColor;
  color: var(--gold);
  font-style: normal;
  white-space: normal;
}
.band-light .placeholder { color: var(--gold-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 32px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--heading-on-dark);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--gold); color: var(--dark); }
.btn-solid { background: var(--heading-on-light); border-color: var(--heading-on-light); color: var(--cream); }
.btn-solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--cream); }
.band-light .btn:not(.btn-solid) { color: var(--heading-on-light); border-color: var(--gold-dark); }
.band-light .btn:not(.btn-solid):hover { background: var(--gold-dark); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.has-hero .site-header {
  position: absolute; inset: 0 0 auto 0;
  background: transparent;
  border-bottom: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}

.logo { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--heading-on-dark); }
.logo:hover { color: var(--heading-on-dark); }
.logo-icon { flex: none; width: auto; height: 44px; }
.logo-text { display: flex; flex-direction: column; gap: 5px; line-height: 1; }
/* Primary: Century Gothic Regular, tracking 50, horizontal scale 110%.
   The 110% is made by setting the type 10% larger and squeezing its height back, so the
   line keeps its true width in the layout. --logo-size is the nominal (unscaled) size. */
.logo-name {
  --logo-size: 22px;
  display: block;
  font-family: "Century Gothic", CenturyGothic, "URW Gothic", "Apple Gothic", sans-serif;
  font-weight: 400;
  font-size: calc(var(--logo-size) * 1.1);
  transform: scaleY(calc(1 / 1.1));
  transform-origin: left center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--logo-name-colour-on-dark);
}
.has-hero .site-header .logo-name { color: var(--logo-name-colour); }
.has-hero .site-header .nav-open .logo-name { color: var(--logo-name-colour-on-dark); }
/* Secondary: Montserrat Medium, #c1922d, tracking 200, 50% of the primary size */
.logo-sub {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #c1922d;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--heading-on-dark);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  background: transparent; color: var(--heading-on-dark);
  border: 1px solid var(--gold);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .site-nav li + li { border-top: 1px solid var(--rule-on-dark); }
  .site-nav a { width: 100%; min-height: 52px; border-bottom: 0; }
  .has-hero .nav-open { background: rgba(20, 17, 13, 0.96); }
  .logo-name { --logo-size: 19px; }
  .logo-icon { height: 40px; }
  .logo-sub { font-size: 9.5px; }
}
@media (max-width: 400px) {
  .logo { gap: 10px; }
  .logo-icon { height: 34px; }
  .logo-name { --logo-size: 16px; }
  .logo-sub { font-size: 8px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 17, 13, 0.55); }
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 160px var(--gutter) 96px;
}
.hero-content > * { max-width: 820px; }
.hero-content > * + * { margin-top: 28px; }
.hero p { font-size: 18px; color: #ece3d3; max-width: 560px; }

/* ---------- Inner page header band ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 64px); }
.page-hero .container > * + * { margin-top: 20px; }
.page-hero p { max-width: 680px; font-size: 18px; }

/* ---------- Pillars ---------- */
.pillars { padding: 56px var(--gutter); }
.pillar-grid {
  display: grid; gap: 40px 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
}
.pillar { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pillar h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; font-weight: 500; text-transform: uppercase; line-height: 1.5; }
.pillar p { font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Two-column feature ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li {
  padding: 8px 16px; border: 1px solid #6b5e4c;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #e6dccb;
}
.band-light .tags li { border-color: var(--gold-dark); color: var(--heading-on-light); }

.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.small-print { font-size: 13px; letter-spacing: 0.06em; color: var(--muted-on-dark); }
.band-light .small-print { color: var(--text-on-light); }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.collage .half { aspect-ratio: 4 / 3; }

/* ---------- Owners teaser / points ---------- */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; list-style: none; margin: 0; padding: 0; }
.points li { padding-top: 18px; border-top: 1px solid var(--gold-dark); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--heading-on-light); }
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }

.quote { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; color: var(--heading-on-dark); }

/* ---------- Cards (Our Stays) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--rule-on-dark); background: #1a1611; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-details { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #e6dccb; }
.card-soon {
  border: 1px dashed var(--gold); background: transparent;
  justify-content: center; text-align: center; padding: 40px 28px; gap: 18px; align-items: center;
}
.card-soon .btn { align-self: center; margin-top: 8px; }

/* ---------- Property page ---------- */
.prop-summary { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #e6dccb; }
.prop-lead { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .prop-lead { aspect-ratio: 4 / 3; } }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid h3 { margin-bottom: 12px; }
.detail-grid ul { margin: 0; padding-left: 1.1em; }
.detail-grid li + li { margin-top: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.gallery button:hover img { opacity: 0.85; }

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(13, 11, 8, 0.96); color: var(--cream);
}
.lightbox::backdrop { background: rgba(13, 11, 8, 0.9); }
.lightbox-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 64px 16px 24px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox-caption { font-size: 14px; text-align: center; max-width: 720px; color: var(--text-on-dark); }
.lightbox-btn {
  position: absolute; min-width: 48px; min-height: 48px;
  background: rgba(20, 17, 13, 0.7); color: var(--cream); border: 1px solid var(--gold);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

.sticky-book { display: none; }
@media (max-width: 760px) {
  .sticky-book {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(13, 11, 8, 0.96); border-top: 1px solid var(--rule-on-dark);
  }
  .sticky-book .btn { width: 100%; background: var(--gold); color: var(--dark); }
  .has-sticky { padding-bottom: 76px; }
}

/* ---------- Owners page ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.service-grid li { padding-top: 20px; border-top: 1px solid var(--gold-dark); }
.service-grid h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; font-weight: 500; text-transform: uppercase; line-height: 1.5; margin-bottom: 10px; }
.service-grid p { font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); margin-bottom: 14px;
}
.steps h3 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.steps p { font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--heading-on-light); }
.field .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--heading-on-light);
  background: #fffaf2; border: 1px solid #a8977c; border-radius: 0;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; border-color: var(--gold-dark); }
.field [aria-invalid="true"] { border-color: #a1321f; }
.field-error { font-size: 14px; color: #a1321f; min-height: 0; }
.field-error:empty { display: none; }
.form-status { font-size: 15px; padding: 14px 16px; border: 1px solid var(--gold-dark); background: #fffaf2; color: var(--heading-on-light); }
.form-status:empty { display: none; }
.form-note { font-size: 15px; }

/* ---------- Contact page ---------- */
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 0; }
.contact-list div { padding-top: 18px; border-top: 1px solid var(--rule-on-dark); }
.contact-list dt { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 8px; }
.contact-list dd { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.contact-list a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 640px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); border-top: 1px solid var(--rule-on-dark); padding: 64px var(--gutter) 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading { display: block; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 6px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-grid nav a { color: var(--text-on-dark); }
.footer-grid nav a:hover { color: var(--gold); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule-on-dark); font-size: 13px; color: var(--muted-on-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-contact dd { margin: 0 0 10px; }
.footer-contact dl { margin: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
