﻿:root {
  --bg: #060b14;
  --bg-2: #0c111d;
  --gold: #d6b067;
  --gold-soft: #f0d59a;
  --text: #f6f1e6;
  --muted: #b9b3a7;
  --card: #151515;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #141829 0%, var(--bg) 55%, #03060d 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 99;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(90vw, var(--max));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  /* Ensure content sits above the fixed background video layer. */
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050813;
  /* Fallback when video is not available or still loading. */
}

.site-bg__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.02);
}

.site-bg__glass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(214, 176, 103, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.65) 0%, rgba(6, 11, 20, 0.25) 45%, rgba(6, 11, 20, 0.75) 100%);
  backdrop-filter: blur(12px);
  /* Glassy overlay: soft blur + low-contrast gradients for readability. */
}
.site-bg__glass::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: url("../assets/images/sacred-geometry.svg") 50% calc(10% + var(--bg-scroll, 0px)) / 1120px auto no-repeat;
  opacity: 0;
  filter: blur(0.1px);
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 70%);
  transition: opacity 1.6s ease;
  /* Soft echo of the geometry across the page (not tiled). */
}

body.hero-settled .site-bg__glass::after {
  opacity: 0.2;
  /* Only reveal the background echo after leaving the hero. */
}

.wordmark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.hero-geometry {
  position: absolute;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  background: url("../assets/images/sacred-geometry.svg") center/contain no-repeat;
  opacity: 0.4;
  filter: drop-shadow(0 0 36px rgba(214, 176, 103, 0.28));
  transform: translate(-12px, -4px) scale(1.06) translate3d(0, var(--hero-scroll, 0px), 0);
  transition: transform 1.8s ease, opacity 1.8s ease, filter 1.8s ease;
  will-change: transform, opacity;
  /* Geometry sits behind content: low opacity, soft edge, slight offset. */
}

body.hero-settled .hero-geometry {
  opacity: 0.42;
  filter: blur(0.2px) drop-shadow(0 0 36px rgba(214, 176, 103, 0.3));
  transform: translate(-6px, -26px) scale(0.94) translate3d(0, var(--hero-scroll, 0px), 0);
  /* Scroll-settled state: geometry sinks into the background. */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 11, 20, 0.1) 0%, rgba(6, 11, 20, 0.78) 70%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.55) 0%, rgba(6, 11, 20, 0.05) 45%, rgba(6, 11, 20, 0.7) 100%);
  /* Layered gradients separate background/geometry/content without hard edges. */
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -28px -18px;
  background: radial-gradient(circle at center, rgba(6, 11, 20, 0.55) 0%, rgba(6, 11, 20, 0) 70%);
  filter: blur(12px);
  z-index: -1;
  /* Soft content halo improves legibility without visible edges. */
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--muted);
}

.title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin: 18px auto;
  max-width: 720px;
  color: #f5e1b6;
  font-weight: 600;
}

.subtitle {
  max-width: 540px;
  margin: 0 auto 28px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  transform: translateY(2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #f1d79a, #cfa45d);
  color: #1b1205;
  box-shadow: 0 16px 32px rgba(208, 167, 92, 0.25);
}

.btn.ghost {
  border-color: rgba(241, 215, 154, 0.4);
  color: var(--gold-soft);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.section {
  padding: 96px 0;
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-book {
  background: rgba(12, 17, 29, 0.58);
  backdrop-filter: blur(2px);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(214, 176, 103, 0.06), transparent 55%);
}

.section-about {
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.56) 0%, rgba(6, 11, 20, 0.68) 100%);
  backdrop-filter: blur(2px);
  background-image:
    radial-gradient(circle at 80% 10%, rgba(214, 176, 103, 0.05), transparent 60%);
}

.section-quotes {
  background: rgba(12, 17, 29, 0.56);
  backdrop-filter: blur(2px);
  background-image:
    radial-gradient(circle at 30% 80%, rgba(214, 176, 103, 0.05), transparent 60%);
}

.section-booking {
  padding-bottom: 120px;
}

.section::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  background: radial-gradient(circle at 50% 50%, rgba(6, 11, 20, 0.55), rgba(6, 11, 20, 0));
  opacity: 0.5;
  filter: blur(18px);
  z-index: 0;
  animation: panel-drift 160s ease-in-out infinite;
  /* Soft panel drift adds depth without attention. */
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0.32) 0%, rgba(6, 11, 20, 0) 40%, rgba(6, 11, 20, 0.35) 100%);
  opacity: 0.4;
  z-index: 0;
  /* Gentle top/bottom shading gives sections a grounded base. */
}

.section .container {
  position: relative;
  z-index: 1;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.book-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  min-height: 320px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.book-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(241, 215, 154, 0.2), transparent 60%);
}

.book-shell {
  position: relative;
  border: 1px solid rgba(241, 215, 154, 0.3);
  padding: 48px 32px;
  text-align: center;
  border-radius: 18px;
  display: grid;
  gap: 16px;
}

.book-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: var(--gold-soft);
}

.book-subtitle {
  color: var(--muted);
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.author-media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 5;
  background: rgba(6, 11, 20, 0.35);
}

.author-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stat {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--muted);
  margin-bottom: 16px;
}

.quotes-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quote-card {
  background: #14120f;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(241, 215, 154, 0.15);
  color: var(--muted);
}

.quote-card cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  color: var(--gold-soft);
}

.booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #15120e;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid rgba(241, 215, 154, 0.2);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
}

.footer-sitemap {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-sitemap a {
  color: var(--gold-soft);
  opacity: 0.85;
}

.footer-credit {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-credit a {
  color: var(--gold-soft);
  opacity: 0.8;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 20%, rgba(214, 176, 103, 0.08), transparent 55%);
  opacity: 0.55;
  animation: hero-breathe 140s ease-in-out infinite;
  z-index: 0;
  /* Ambient breathing adds life without drawing attention. */
}

@media (max-width: 700px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding-top: 96px;
    min-height: 78vh;
  }

  .hero-geometry {
    width: min(560px, 92vw);
    height: min(560px, 92vw);
    opacity: 0.32;
    transform: translate(-6px, 6px) scale(1.02);
    /* Mobile: keep geometry present but less dominant. */
  }

  .hero-content {
    text-align: left;
  }

  .hero-content::before {
    inset: -24px -8px;
    /* Mobile: tighter halo so content breathes without overpowering. */
  }

  .cta-row {
    justify-content: flex-start;
    gap: 12px;
  }

  .btn {
    min-height: 44px;
    padding: 12px 20px;
    /* Mobile: comfortable touch targets. */
  }

  .booking-card {
    flex-direction: column;
    text-align: left;
  }

  .author-media {
    aspect-ratio: 4 / 5;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-breathe {
  0% {
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.7;
    transform: translate3d(1.5%, -1%, 0);
  }
  100% {
    opacity: 0.52;
    transform: translate3d(-1%, 1%, 0);
  }
}

@keyframes panel-drift {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.48;
  }
  50% {
    transform: translate3d(1%, -0.6%, 0);
    opacity: 0.56;
  }
  100% {
    transform: translate3d(-0.8%, 0.8%, 0);
    opacity: 0.5;
  }
}

/* Phase 0.1 refinements: royal-blue palette + form integration overrides. */
:root {
  --bg: #050913;
  --bg-2: #0a1222;
  --royal: #2e4f95;
  --royal-soft: #6b82bf;
}

body {
  background: radial-gradient(circle at top, #10172a 0%, var(--bg) 55%, #03060d 100%);
}

.site-bg__glass {
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 79, 149, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(5, 9, 19, 0.7) 0%, rgba(6, 11, 20, 0.25) 45%, rgba(5, 9, 19, 0.82) 100%);
}

.wordmark,
.eyebrow {
  color: var(--royal-soft);
}

.title {
  color: #f5e6c4;
}

.btn.primary {
  background: linear-gradient(135deg, #3a5ea8, #2b3f7a);
  color: #f6f1e6;
  box-shadow: 0 16px 32px rgba(46, 79, 149, 0.28);
}

.btn.ghost {
  border-color: rgba(214, 176, 103, 0.35);
}

.hero-overlay {
  background:
    radial-gradient(circle at center, rgba(5, 9, 19, 0.1) 0%, rgba(5, 9, 19, 0.82) 70%),
    linear-gradient(180deg, rgba(5, 9, 19, 0.55) 0%, rgba(6, 11, 20, 0.05) 45%, rgba(5, 9, 19, 0.72) 100%);
}

.hero::before {
  background: radial-gradient(circle at 30% 20%, rgba(46, 79, 149, 0.12), transparent 55%);
}

.section-book {
  background-image: radial-gradient(circle at 20% 20%, rgba(46, 79, 149, 0.1), transparent 55%);
}

.section-about {
  background-image: radial-gradient(circle at 80% 10%, rgba(46, 79, 149, 0.08), transparent 60%);
}

.section-quotes {
  background-image: radial-gradient(circle at 30% 80%, rgba(46, 79, 149, 0.08), transparent 60%);
}

.booking-card {
  background: rgba(12, 17, 29, 0.6);
  border: 1px solid rgba(46, 79, 149, 0.35);
}

.form-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(9, 14, 24, 0.45);
  border: 1px solid rgba(46, 79, 149, 0.35);
  box-shadow: 0 20px 50px rgba(5, 9, 19, 0.45);
  position: relative;
  /* Form wrapper: subtle blue frame to integrate the iframe. */
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(5, 9, 19, 0.18), rgba(5, 9, 19, 0));
  pointer-events: none;
  /* Soft veil reduces iframe brightness shock. */
}

.form-intro {
  margin: 0 0 14px;
  color: var(--royal-soft);
  font-size: 0.95rem;
}

.intake-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  gap: 8px;
}

.intake-form label {
  font-size: 0.95rem;
  color: var(--text);
}

.intake-form input,
.intake-form textarea,
.intake-form select {
  width: 100%;
  background: rgba(6, 11, 20, 0.6);
  color: var(--text);
  border: 1px solid rgba(46, 79, 149, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}

.intake-form textarea {
  resize: vertical;
  min-height: 92px;
}

.intake-form input:focus,
.intake-form textarea:focus,
.intake-form select:focus {
  outline: 2px solid rgba(46, 79, 149, 0.45);
  border-color: rgba(46, 79, 149, 0.6);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(46, 79, 149, 0.2);
  border: 1px solid rgba(46, 79, 149, 0.5);
  color: var(--text);
  font-weight: 600;
}

.form-error {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(160, 72, 72, 0.15);
  border: 1px solid rgba(160, 72, 72, 0.35);
  color: var(--text);
  font-weight: 600;
}

.intake-form.is-submitted .form-success {
  display: block;
}

.intake-form.is-submitted .field-row,
.intake-form.is-submitted button {
  display: none;
}

.intake-form.is-error .form-error {
  display: block;
}

/* Reduce generic reveal stacking; keep section-level reveal only. */
.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 700px) {
  .form-card {
    padding: 18px;
  }
}

/* Form emphasis: single intentional reveal moment. */
.form-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .form-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Page scrollbar styling (not inside the Google Form iframe). */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 130, 191, 0.6) rgba(5, 9, 19, 0.8);
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(5, 9, 19, 0.8);
}

*::-webkit-scrollbar-thumb {
  background: rgba(107, 130, 191, 0.55);
  border-radius: 10px;
  border: 2px solid rgba(5, 9, 19, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 130, 191, 0.75);
}

/* Secondary email capture styling (subordinate to beta). */
.section-connect {
  padding-top: 64px;
}

.connect-card {
  padding: 22px 24px;
  border-radius: 16px;
  background: rgba(6, 11, 20, 0.35);
  border: 1px solid rgba(46, 79, 149, 0.2);
}

.connect-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.connect-form {
  display: block;
}

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.connect-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: min(70%, 760px);
  justify-content: flex-end;
}

.connect-form input {
  background: rgba(6, 11, 20, 0.65);
  border: 1px solid rgba(46, 79, 149, 0.35);
  min-width: 190px;
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
}

.connect-form button {
  justify-self: start;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(46, 79, 149, 0.2);
  border: 1px solid rgba(46, 79, 149, 0.5);
  color: var(--text);
}

.connect-form.is-submitted .form-success {
  display: block;
}

.connect-form.is-submitted .field-row,
.connect-form.is-submitted button {
  display: none;
}

.connect-form.is-error .form-error {
  display: block;
}

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

@media (max-width: 700px) {
  .section-connect {
    padding-top: 56px;
  }

  .connect-card {
    padding: 18px;
  }

  .connect-row {
    flex-direction: column;
    align-items: stretch;
  }

  .connect-fields {
    width: 100%;
    flex-wrap: wrap;
  }

  .connect-form input {
    flex: 1 1 100%;
  }

  .connect-form button {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .connect-fields {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
