/* L Guess holding page
   Monochrome, photography-led, one accent. Light by default, dark via system
   preference. Playfair Display for display type (the brand's existing serif),
   Manrope for everything else. Corners are square throughout. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-italic-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f4;
  --bg-2: #ecece9;
  --surface: #fcfcfb;
  --ink: #171716;
  --ink-2: #4a4a48;
  --muted: #6b6b68;
  --line: rgba(23, 23, 22, 0.14);
  --line-strong: rgba(23, 23, 22, 0.32);
  --accent: #1e5a44;
  --accent-ink: #ffffff;
  --accent-soft: rgba(30, 90, 68, 0.10);
  --danger: #a3271f;
  --shadow: 0 24px 60px -30px rgba(23, 23, 22, 0.35);

  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 2px;
  --container: 1240px;
  --gutter: clamp(16px, 5vw, 48px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --bg-2: #181818;
    --surface: #1c1c1b;
    --ink: #f1f1ee;
    --ink-2: #cfcfca;
    --muted: #a3a39f;
    --line: rgba(241, 241, 238, 0.14);
    --line-strong: rgba(241, 241, 238, 0.34);
    --accent: #86c2a4;
    --accent-ink: #0f1a15;
    --accent-soft: rgba(134, 194, 164, 0.14);
    --danger: #f08a82;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme="dark"] {
  --bg: #121212;
  --bg-2: #181818;
  --surface: #1c1c1b;
  --ink: #f1f1ee;
  --ink-2: #cfcfca;
  --muted: #a3a39f;
  --line: rgba(241, 241, 238, 0.14);
  --line-strong: rgba(241, 241, 238, 0.34);
  --accent: #86c2a4;
  --accent-ink: #0f1a15;
  --accent-soft: rgba(134, 194, 164, 0.14);
  --danger: #f08a82;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h3 { font-size: 1.375rem; line-height: 1.25; }
p { max-width: 65ch; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-inline { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; margin-left: 0.15em; }

.text-link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 4px; text-decoration-thickness: 1px; font-weight: 600;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* Buttons: square corners, tactile press, one primary style */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; letter-spacing: 0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { border-color: var(--ink); background: var(--surface); }
.button-small { min-height: 42px; padding: 0 1.1rem; font-size: 0.9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark-name { font-family: var(--serif); font-size: 1.625rem; letter-spacing: 0.18em; text-transform: uppercase; }
.wordmark-caption { margin-top: 5px; font-size: 0.625rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.nav-list a:not(.button) {
  text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2);
  padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-list a:not(.button):hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero: asymmetric split, text left, 4:5 photograph right */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
  min-height: min(calc(100dvh - var(--nav-h)), 860px);
  padding-top: clamp(32px, 6vh, 72px); padding-bottom: clamp(32px, 6vh, 72px);
}
.hero-title { font-size: clamp(2.375rem, 1.4rem + 2.9vw, 3.5rem); max-width: 20ch; }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }
.hero-media { position: relative; aspect-ratio: 4 / 5; max-height: min(78dvh, 760px); justify-self: end; width: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media::after {
  /* a quiet frame line, offset, instead of a glow */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line); border-radius: var(--radius); pointer-events: none; z-index: -1;
}

/* Entrance: hero elements rise in sequence (hierarchy: headline first) */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-sub, .hero-actions { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
  .hero-sub { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.22s; }
  .hero-media { opacity: 0; transform: translateY(14px) scale(0.985); animation: rise-media 1.1s var(--ease) 0.1s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes rise-media { to { opacity: 1; transform: none; } }

  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .bento .reveal:nth-child(2), .lineage.reveal li:nth-child(2) { transition-delay: 0.08s; }
  .bento .reveal:nth-child(3) { transition-delay: 0.12s; }
  .bento .reveal:nth-child(4) { transition-delay: 0.16s; }
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.125rem; max-width: 56ch; }

/* Services bento: 4 items, 2 wide + 2 narrow, images in every cell */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento-cell { grid-column: span 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cell-wide { grid-column: span 2; }
.bento-media { display: block; aspect-ratio: 21 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.bento-cell:not(.cell-wide) .bento-media { aspect-ratio: 4 / 3; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento-cell:hover .bento-media img { transform: scale(1.03); }
.bento-body { padding: clamp(22px, 3vw, 34px); }
.bento-body h3 { margin-bottom: 0.65rem; }
.bento-body p { color: var(--ink-2); font-size: 1rem; }

/* About */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 100%; height: auto; }
.about-copy { min-width: 0; }
.about-story { margin-top: 32px; }
.about-standfirst { margin-top: 1.25rem; font-family: var(--serif); font-size: 1.375rem; line-height: 1.4; color: var(--ink-2); max-width: 30ch; }
.about-story p + p { margin-top: 1.25rem; }
.about-story p { font-size: 1.125rem; color: var(--ink-2); }
.lineage {
  margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  counter-reset: lineage;
}
.lineage li { display: flex; flex-direction: column; gap: 6px; }
.lineage-date { color: var(--muted); font-size: 0.9375rem; }
.lineage-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; margin-top: 2px; }
.lineage-role { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.visit-map { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.visit-map iframe { width: 100%; height: 100%; filter: grayscale(1) contrast(1.05); transition: filter 0.6s var(--ease); }
.visit-map:hover iframe { filter: none; }
.visit-details { display: grid; gap: 36px; }
.detail { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
.detail > .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 4px; }
.detail h3 { font-family: var(--sans); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.detail p, .detail address { color: var(--ink); }
.detail-note { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; }
.detail .text-link { display: inline-block; margin-top: 10px; }
.days { display: flex; gap: 6px; margin-top: 14px; }
.days li {
  flex: 1 1 0; text-align: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 8px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.days li.open { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.days li.closed { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.days abbr { text-decoration: none; }

/* Enquiry */
.enquiry { background: var(--bg-2); border-top: 1px solid var(--line); }
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.enquiry-intro p { margin-top: 1.25rem; font-size: 1.125rem; color: var(--ink-2); }
.enquiry-content { min-width: 0; }
.enquiry-intro { margin-bottom: 32px; }
.enquiry-figure { margin: 0; }
.enquiry-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.enquiry-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; min-height: 50px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field-hint { font-size: 0.875rem; color: var(--muted); }
.field-error { display: none; font-size: 0.875rem; color: var(--danger); font-weight: 600; }
.field.is-invalid .field-error { display: block; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-privacy { font-size: 0.875rem; color: var(--muted); }
.button-busy { display: none; }
.enquiry-form.is-busy .button-label { display: none; }
.enquiry-form.is-busy .button-busy { display: inline; }
.enquiry-form.is-busy #form-submit { opacity: 0.7; pointer-events: none; }

.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-weight: 600; border: 1px solid; }
.form-status.is-success { display: block; border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.form-status.is-error { display: block; border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--ink); }
.enquiry-form.is-sent > :not(.form-status) { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .wordmark-name { color: var(--ink); }
.footer-brand p { margin-top: 18px; font-size: 0.9375rem; }
.footer-brand a { text-decoration: none; }
.footer-brand a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sep { display: inline-block; width: 1px; height: 0.9em; background: var(--line-strong); margin: 0 12px; vertical-align: -0.1em; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.social a:hover { color: var(--ink); border-color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-legal { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); max-width: none; }
.footer-legal a { color: var(--muted); }

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lineage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; row-gap: 40px; padding-top: 48px; }
  .hero-media { max-height: none; aspect-ratio: 4 / 5; max-width: 520px; justify-self: start; }
  .hero-media::after { inset: 14px -14px -14px 14px; }
  .bento { grid-template-columns: 1fr; }
  .cell-wide { grid-column: span 1; }
  .bento-media, .bento-cell:not(.cell-wide) .bento-media { aspect-ratio: 4 / 3; }
  .about-grid, .visit-grid, .enquiry-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .visit-map { aspect-ratio: 4 / 3; }
  .enquiry-figure { display: none; }
}
@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li.nav-cta { border: 0; padding-top: 16px; }
  .nav-list a:not(.button) { display: block; padding: 14px 0; border-bottom: 0; font-size: 1.0625rem; }
  .nav-list .button { width: 100%; }
  .wordmark-name { font-size: 1.375rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .lineage { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
}
@media (max-width: 420px) {
  .days { flex-wrap: wrap; }
  .days li { flex: 1 1 calc(25% - 6px); }
}

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