/* Sunbed website. Colours and type follow DESIGN_SYSTEM_V2 in the app repo. */
:root {
  --ink: #0E3346;
  --ink-2: #4A6573;
  --ivory: #FFFBF5;
  --sand: #F6F0E6;
  --sand-deep: #E7D9C4;
  --hairline: #EFE6DD;
  --gold: #C6A15B;
  --gold-rich: #9C7A32;
  --gold-text: #7D6128;
  --champagne: #F3E6C8;
  --danger: #9A4A3C;
  --palm: #2F5D50;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 18px/1.55 'Source Sans 3', system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ivory); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--gold-rich); outline-offset: 3px; }

.eyebrow { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.muted { color: var(--ink-2); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.button.primary { background: var(--ink); color: var(--ivory); }
.button.primary:hover { background: #1A4A63; }
.button.ghost { border-color: var(--sand-deep); color: var(--ink); background: transparent; min-height: 44px; }
.button.ghost:hover { background: var(--sand); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
}
.top-logo img { width: 64px; display: block; }

/* Home: one full-screen hero */
.splash { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
/* Photo fills the screen; a soft ivory wash at the top keeps the logo and
   headline readable against the sky. */
.splash-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(255, 251, 245, 0.78) 0%, rgba(255, 251, 245, 0.45) 38%, rgba(255, 251, 245, 0) 62%),
    url('/img/hero.webp') center 62% / cover no-repeat;
}
/* Landscape screens crop the tall photo hardest: show more sky behind the text. */
@media (min-aspect-ratio: 1/1) {
  .splash-bg { background-position: center, center 30%; }
}
.splash .button.ghost { background: rgba(255, 251, 245, 0.9); }
.splash-top { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 24px; }
.splash .hero { flex: 1; justify-content: flex-start; padding-top: clamp(24px, 8vh, 96px); padding-bottom: 48px; border-bottom: 0; }
.splash-foot { text-align: center; padding: 20px 24px 28px; color: #FFFBF5; font-size: 15px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }

/* Hero */
.hero {
  max-width: 1000px; margin: 0 auto; padding: 40px 24px 96px;
  border-bottom: 1px solid var(--hairline);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: 1.08; letter-spacing: -0.5px; max-width: 20ch; text-wrap: balance; }
.hero h1 em { color: var(--gold-text); display: block; }
.lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-2); max-width: 40ch; text-wrap: balance; }
.hero-actions { margin-top: 10px; }

.sun { position: relative; width: 168px; height: 90px; overflow: hidden; margin-bottom: 6px; }
.sun-disc {
  position: absolute; left: 50%; bottom: -84px; width: 168px; height: 168px; margin-left: -84px;
  border-radius: 50%; background: radial-gradient(circle at 50% 35%, #E0C988, var(--gold) 60%, var(--gold-rich));
  animation: rise 4s cubic-bezier(.2, .7, .2, 1) 0.3s forwards;
}
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
@keyframes rise { to { bottom: -12px; } }
@media (prefers-reduced-motion: reduce) { .sun-disc { animation: none; bottom: -12px; } }

/* Venues page: the same photo, fixed behind the content, with a stronger
   wash so the copy reads easily. The form keeps its solid card. */
.photo-page { background: transparent; }
.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(255, 251, 245, 0.9) 0%, rgba(255, 251, 245, 0.72) 50%, rgba(255, 251, 245, 0.35) 100%),
    url('/img/hero.webp') center 45% / cover no-repeat;
}
.photo-page .button.ghost { background: rgba(255, 251, 245, 0.9); }
.photo-page .enquiry { box-shadow: 0 12px 40px rgba(14, 51, 70, 0.12); }
@media (max-width: 900px) {
  .page-bg { background: linear-gradient(rgba(255, 251, 245, 0.8), rgba(255, 251, 245, 0.8)), url('/img/hero.webp') center 45% / cover no-repeat; }
}

/* Venues */
.venues {
  max-width: 1200px; margin: 0 auto; padding: 96px 24px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
}
.venues-copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 32px; }
.venues-copy h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; }
.ticks { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--palm); border-bottom: 2px solid var(--palm); transform: rotate(-45deg);
}

.enquiry {
  background: #FFFFFF; border: 1px solid var(--hairline); border-radius: 22px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.optional { font-weight: 400; color: var(--ink-2); }
input, select, textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  border: 1px solid var(--sand-deep); border-radius: 12px; background: var(--ivory);
  padding: 11px 14px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); }
.field-error { color: var(--danger); font-size: 15px; min-height: 0; }
.field-error:empty { display: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 15px; color: var(--ink-2); }
.enquiry .button { align-self: flex-start; }
.form-status { font-weight: 600; }
.form-status.error { color: var(--danger); }
.thanks { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.thanks h3 { font-size: 32px; }

/* Footer */
.foot {
  border-top: 1px solid var(--hairline); padding: 32px 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 15px;
}

@media (max-width: 900px) {
  .venues { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 72px 16px; }
  .venues-copy { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { padding: 16px; }
  .top-logo img { width: 52px; }
  .hero { padding: 24px 16px 72px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .enquiry { padding: 22px 18px; }
  .enquiry .button { align-self: stretch; }
}
