/* 4 Boxes landing page — Coral Stone palette */

:root {
  --paper: #F6F1E7;
  --paper-alt: #EFE7D9;
  --card: #FFFDF9;
  --panel: #F3ECE1;
  --img-bed: #E9E0D2;
  --ink: #22190F;
  --ink-2: #332719;
  --rule-dark: #3B2E1E;
  --rule-dark-2: #463726;
  --body: #4E4335;
  --muted: #7C6F5E;
  --line: #D9CCB6;
  --line-2: #DCCFB9;
  --line-4: #C8B99F;
  --accent: #9C4A25;
  --accent-dark: #7C3A1C;
  --accent-light: #E0A87F;
  --sand: #C3B49F;
  --sand-2: #DCCDB6;
  --sand-3: #A98F74;

  --serif: Newsreader, Georgia, serif;
  --sans: Archivo, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --cladding-light: repeating-linear-gradient(90deg, rgba(34,25,15,0.05) 0px, rgba(34,25,15,0.05) 1px, transparent 1px, transparent 46px);
  --cladding-panel: repeating-linear-gradient(90deg, rgba(34,25,15,0.055) 0px, rgba(34,25,15,0.055) 1px, transparent 1px, transparent 46px);
  --cladding-dark: repeating-linear-gradient(90deg, rgba(246,241,231,0.045) 0px, rgba(246,241,231,0.045) 1px, transparent 1px, transparent 46px);

  --section-y: clamp(64px, 8vw, 104px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { display: block; max-width: 100%; }
figure, dl, dd, ol { margin: 0; padding: 0; }
p { margin: 0; }

a { color: var(--accent); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .dark :focus-visible, .footer :focus-visible { outline-color: var(--accent-light); }
.booking :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; font-weight: 600; border-radius: 2px;
}
.skip-link:focus { top: 12px; }

.page { max-width: 100%; overflow-x: clip; background-image: var(--cladding-light); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: var(--section-y); }
.section--first { padding-top: clamp(56px, 7vw, 88px); }
.section--pad { padding-bottom: var(--section-y); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.dark .split { gap: clamp(40px, 5vw, 64px); }

/* Type */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow--light { color: var(--accent-light); }
.eyebrow--sand { color: var(--sand-3); }

.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.label--accent { color: var(--accent); }

.h1 {
  font-family: var(--serif); font-size: clamp(44px, 6.4vw, 90px); line-height: 0.95; letter-spacing: -0.022em;
  font-weight: 500; color: var(--paper); margin: 0 0 26px; text-wrap: balance;
}
.h2 {
  font-family: var(--serif); font-size: clamp(34px, 4.2vw, 56px); line-height: 1.0; letter-spacing: -0.018em;
  font-weight: 500; margin: 0 0 20px; text-wrap: balance;
}
.h2--base { font-size: clamp(34px, 4.2vw, 58px); line-height: 0.98; margin-bottom: 22px; }
.h2--tight { margin-bottom: 16px; }
.h2--steps { margin-bottom: 52px; }
.h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 12px; }
.h3--step { font-size: 22px; margin-bottom: 10px; }

.intro { font-size: 18px; line-height: 1.6; color: var(--body); margin-bottom: 14px; max-width: 30em; text-wrap: pretty; }
.intro--muted { font-size: 16px; color: var(--muted); margin-bottom: 0; }
.intro--sub, .intro--gallery { font-size: 18px; max-width: 32em; }
.intro--sub { margin-bottom: clamp(32px, 4vw, 52px); }
.intro--gallery { margin-bottom: 44px; }
.intro--dark { color: var(--sand); margin-bottom: 44px; }

/* Buttons */
.btn {
  display: inline-block; padding: 16px 28px; border-radius: 2px; font-size: 16px; font-weight: 600;
  white-space: nowrap; text-align: center;
}
.btn--sm { padding: 12px 20px; font-size: 14.5px; flex: 0 0 auto; }
.btn--lg { padding: 18px 32px; font-size: 16.5px; }
.btn--accent { background: var(--accent); color: var(--paper); }
.btn--accent:hover { background: var(--accent-dark); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent-light); color: var(--ink); }
#price .btn { margin-top: 28px; }
.btn--spaced { margin-top: 32px; }

.underline-link { font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.underline-link:hover { border-bottom-color: var(--ink); }

/* Hero */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(34,25,15,0.9) 0%, rgba(34,25,15,0.62) 50%, rgba(34,25,15,0.35) 100%);
}
.hero__inner { position: relative; }

.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand:hover { color: var(--paper); }
.logo { display: block; flex: 0 0 auto; }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px);
}
.hero__lead { font-size: 19.5px; line-height: 1.5; color: var(--sand-2); margin-bottom: 20px; max-width: 27em; text-wrap: pretty; }
.hero__spec { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--sand); }

.booking {
  background: var(--card); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.55);
  scroll-margin-top: 16px;
}
.booking:focus { outline: none; }
.booking__title { font-family: var(--serif); font-size: 28px; line-height: 1.05; letter-spacing: -0.015em; font-weight: 500; margin: 0 0 18px; }
.booking__step[hidden] { display: none; }
.booking__step .booking__title { margin-bottom: 10px; }
.booking__step .booking__title:focus { outline: none; }
.booking__hint { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; max-width: 28em; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%;
  padding: 16px 44px 16px 18px; position: relative; text-align: left; cursor: pointer;
  background: #FDFBF6; border: 1px solid var(--line); border-radius: 2px;
  font: inherit; color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.choice::after {
  content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 18px;
}
.choice:hover { border-color: var(--accent); background: var(--card); }
.choice__title { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.choice__note { font-size: 13.5px; color: var(--muted); }

.picked {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 16px; background: var(--panel);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--body);
}
.picked strong { font-weight: 500; color: var(--ink); }
.picked__change {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 500;
  color: var(--accent); border-bottom: 1px solid var(--line);
}
.picked__change:hover { color: var(--ink); border-bottom-color: var(--ink); }

.booking__fallback { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center; }
.booking__fallback a { font-weight: 600; }
.booking__ask {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: center;
  font-size: 14.5px;
}
.booking__ask span { color: var(--muted); }
/* Bigger tap target without moving the underline */
.booking__ask .underline-link {
  border-bottom: 0; padding: 12px 4px; margin: -12px -4px;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px;
}
.booking__ask .underline-link:hover { text-decoration-color: var(--ink); }

.btn--block { display: block; width: 100%; border: 0; cursor: pointer; font-family: inherit; padding: 18px; font-size: 16.5px; }
/* Google's booking pop-up: its frame is see-through by default, so give it a solid page and a darker backdrop.
   Matched on the title Google copies from our label ("Book a viewing"), not Google's changeable class names. */
iframe[title="Book a viewing"] { background: #fff; border-radius: 8px; }
div:has(> iframe[title="Book a viewing"]) { background-color: rgba(34, 25, 15, 0.82) !important; }
.gcal-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 520px) {
  .booking { padding: 22px 16px; }
  .choice { padding: 14px 40px 14px 16px; }
}

/* Price */
.price-table { border-top: 1px solid var(--ink); }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line-2);
}
.price-row--last { border-bottom-color: var(--ink); }
.price-row__label { display: block; font-size: 17px; font-weight: 500; }
.price-row__note { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.price-row__value { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.015em; }
.price-row__value--accent { color: var(--accent); }

/* Dark base build */
.dark {
  margin-top: clamp(64px, 8vw, 110px);
  background-color: var(--ink); background-image: var(--cladding-dark); color: var(--paper);
}
.spec {
  display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule-dark);
}
.spec dt { font-size: 17px; font-weight: 500; }
.spec dd { font-family: var(--mono); font-size: 14px; color: var(--sand); text-align: right; }
.spec dd.spec--accent { color: var(--accent-light); }

.base-figure { display: grid; gap: 16px; }
.base-figure figcaption { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--sand-3); }

/* Image frames */
.frame { overflow: hidden; background: var(--img-bed); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--dark { background: var(--ink-2); }
.frame--5x4 { aspect-ratio: 5 / 4; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--16x10 { aspect-ratio: 16 / 10; }
.frame--3x4 { aspect-ratio: 3 / 4; }
.frame--1x1 { aspect-ratio: 1 / 1; }
.frame--4x3 { aspect-ratio: 4 / 3; }

/* Use cases */
.uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}
.use .frame { margin-bottom: 22px; }
.use p { font-size: 16px; line-height: 1.6; color: var(--body); }
.use--2 { margin-top: clamp(0px, 4vw, 44px); }
.use--3 { margin-top: clamp(0px, 8vw, 88px); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}
.tile figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 10px; }
/* Span two tracks only once there is room for two (2 × 168px + gap + gutters) */
@media (min-width: 390px) {
  .tile--lead { grid-column: span 2; }
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(28px, 4vw, 40px);
}
.step__num { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--line-4); margin-bottom: 16px; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--body); }

/* CTA band */
.cta-band-wrap { margin-top: var(--section-y); }
.cta-band {
  background-color: var(--paper-alt); background-image: var(--cladding-panel);
  padding: clamp(32px, 5vw, 56px) 20px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.cta-band__title {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.0; letter-spacing: -0.018em;
  font-weight: 500; margin: 0; text-wrap: balance;
}

/* Footer */
.footer { margin-top: var(--section-y); background: var(--ink); color: var(--sand); }
.footer__inner {
  padding-top: clamp(44px, 6vw, 60px); padding-bottom: clamp(44px, 6vw, 60px);
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer__name { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--paper); letter-spacing: -0.015em; }
.footer__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--sand-3); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { border: 1px solid var(--rule-dark-2); padding: 10px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--sand); }
.chip:hover { border-color: var(--accent-light); color: var(--paper); }
