/* Driftwell Saunas — Coastal Sauna Club
   Palette derived from the printed flyer:
   - Deep navy background: #0F1E33 / #142842
   - Cream body & headings: #EFE7D4 / #F4EEDD
   - Gold accent (italic word "yours", numerals): #B89968 / #C7A876
   - Serif display: Cormorant Garamond (closest free web equivalent to the flyer's serif)
   - Sans body: Inter (letter-spaced small caps for eyebrows) */

:root {
  --navy-900: #0D1528;
  --navy-800: #142033;
  --navy-700: #17324B;
  --cream:    #EFE7D4;
  --cream-dim:#CFC6B3;
  --gold:     #C0A26E;
  --gold-bright: #D8B87F;
  --hairline: rgba(239, 231, 212, 0.18);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --pad-x: clamp(20px, 5vw, 56px);
  --section-y: clamp(32px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ===== CINEMATIC BACKDROP ===== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--navy-900);
}
.backdrop-image {
  position: absolute;
  inset: -4%;
  background-image: url('assets/boat-hero.jpg');
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.55) contrast(1.05) brightness(0.55);
  transform: scale(1.02);
}
.backdrop-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 40%, transparent 0%, rgba(13, 21, 40, 0.55) 60%, var(--navy-900) 100%),
    linear-gradient(to bottom, rgba(13, 21, 40, 0.35) 0%, rgba(13, 21, 40, 0.55) 45%, rgba(13, 21, 40, 0.9) 100%);
}

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

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  padding: clamp(64px, 12vw, 120px) 0 clamp(12px, 2.5vw, 20px);
  text-align: center;
  position: relative;
}

.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.logo {
  width: clamp(240px, 58vw, 400px);
  height: auto;
  display: block;
  margin-bottom: 0;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 52px);
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1;
}

.divider {
  width: 44px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}

.subwordmark {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(11px, 2.2vw, 13px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero-eyebrow {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ===== TAGLINE (was framed photo) ===== */
.tagline {
  padding: clamp(24px, 5vw, 48px) 0 clamp(48px, 10vw, 96px);
  text-align: center;
}
.tagline p {
  margin: 0 auto;
  max-width: 520px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.55;
  opacity: 0.88;
}

/* ===== RITUAL (shirt-styled) ===== */
.ritual {
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 80px);
  text-align: center;
  color: var(--cream);
  position: relative;
}

.ritual::before,
.ritual::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 0 auto 24px;
}
.ritual::after { margin: 24px auto 0; }

.ritual-arc {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.55em;
  font-size: clamp(10px, 1.8vw, 12px);
  color: var(--gold-bright);
  margin: 0 0 22px;
  text-indent: 0.55em;
  text-transform: uppercase;
}

.ritual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ritual-temp {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 76px);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--cream);
}

.ritual-arrow {
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 26px);
  color: var(--cream-dim);
  line-height: 1;
  opacity: 0.7;
}

.ritual-repeat {
  margin: 16px 0 8px;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.42em;
  font-size: clamp(11px, 2vw, 13px);
  color: var(--cream);
  text-indent: 0.42em;
}

.ritual-wave {
  width: 70px;
  height: 14px;
  color: var(--cream-dim);
  margin-top: 2px;
  opacity: 0.6;
}

/* ===== WAITLIST ===== */
.waitlist {
  padding: clamp(48px, 7vw, 80px) 0 clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--hairline);
  text-align: center;
  /* subtle darkened panel behind the form for legibility over the backdrop */
  background: linear-gradient(to bottom, rgba(13, 21, 40, 0.4), rgba(13, 21, 40, 0.75));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-top: clamp(24px, 4vw, 40px);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 36px);
  margin: 0 0 10px;
  color: var(--cream);
  letter-spacing: 0.015em;
}
.section-sub {
  max-width: 420px;
  margin: 0 auto 32px;
  color: var(--cream-dim);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 2vw, 16px);
  opacity: 0.85;
  line-height: 1.5;
}

.wl-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.req { color: var(--gold-bright); }
.opt {
  color: var(--cream-dim);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 300;
  text-transform: uppercase;
}

.field input {
  background: rgba(11, 20, 36, 0.35);
  border: none;
  border-bottom: 1px solid rgba(239, 231, 212, 0.25);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  width: 100%;
}
.field input::placeholder { color: rgba(239, 231, 212, 0.35); }
.field input:focus { border-bottom-color: var(--gold); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 18px 28px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  min-height: 52px;
  text-align: center;
}

.btn-primary {
  margin-top: 18px;
  background: var(--cream);
  color: var(--navy-900);
  border-color: var(--cream);
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy-900); }

.btn-secondary {
  display: block;
  max-width: 400px;
  margin: 20px auto 0;
  background: transparent;
  color: var(--cream);
  border-color: rgba(239, 231, 212, 0.5);
}
.btn-secondary:hover { background: var(--cream); color: var(--navy-900); }

.form-note {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-bright);
  text-align: center;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--cream-dim);
  background: rgba(13, 21, 40, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.footer-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}
.footer-wave { width: 60px; height: 20px; }
.footer-line {
  font-family: var(--serif);
  font-size: 14px;
  margin: 4px 0;
  letter-spacing: 0.04em;
}
.footer-line.small {
  font-size: 12px;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 10px;
}
.footer a { color: var(--gold-bright); text-decoration: none; }
.footer a:hover { color: var(--cream); }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .btn { padding: 16px 22px; font-size: 11px; letter-spacing: 0.22em; }
  .ritual::before, .ritual::after { margin-bottom: 24px; }
}

/* ============================================================
   INSTAGRAM CTA — big prominent block after the waitlist
   ============================================================ */
.ig-cta {
  margin: 56px auto 24px;
  max-width: 680px;
  padding: 0 24px;
}

.ig-block {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(216, 184, 127, 0.45);
  border-radius: 14px;
  background: rgba(13, 21, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: #EFE7D4;
  transition: all 0.35s ease;
}

.ig-block:hover {
  border-color: rgba(216, 184, 127, 0.85);
  background: rgba(13, 21, 40, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.ig-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  color: #D8B87F;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ig-icon svg {
  width: 100%;
  height: 100%;
}

.ig-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.ig-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 26px;
  color: #EFE7D4;
  letter-spacing: 0.5px;
}

.ig-handle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #C0A26E;
}

@media (max-width: 480px) {
  .ig-block {
    padding: 20px 22px;
    gap: 18px;
  }
  .ig-icon {
    width: 46px;
    height: 46px;
  }
  .ig-title {
    font-size: 22px;
  }
  .ig-handle {
    font-size: 12px;
    letter-spacing: 2px;
  }
}

/* ============================================================
   iOS / Safari fixes — keep the look consistent on iPhone
   ============================================================ */

/* Kill the blue tap-highlight box on all tappable elements */
a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}

/* Force link colors so Safari never falls back to blue/purple */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  -webkit-text-decoration-color: inherit;
}

/* The Instagram block must never turn blue */
.ig-block,
.ig-block:link,
.ig-block:visited,
.ig-block:hover,
.ig-block:active,
.ig-block:focus {
  color: #EFE7D4;
  text-decoration: none;
}
.ig-block .ig-icon,
.ig-block:visited .ig-icon {
  color: #D8B87F;
}
.ig-block .ig-title,
.ig-block:visited .ig-title {
  color: #EFE7D4;
}
.ig-block .ig-handle,
.ig-block:visited .ig-handle {
  color: #C0A26E;
}

/* Buttons: strip iOS default rounded/appearance */
button,
input[type="submit"],
.btn {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* Footer mailto link: preserve gold styling */
.footer a,
.footer a:link,
.footer a:visited {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 162, 110, 0.3);
}
