/* =========================================================
   AbbyBernard.ai — Stylesheet
   Theme: midnight-blue night sky + gold stars + pink accent
   ========================================================= */

:root {
  --bg: #0A0E27;
  --bg-2: #131836;
  --bg-3: #1B2150;
  --gold: #FFD75A;
  --gold-soft: #FFE89A;
  --gold-deep: #E8A52B;
  --pink: #FF8FB8;
  --pink-soft: #FFC5D8;
  --text: #F5F1FF;
  --text-dim: #B8BBD9;
  --text-muted: #7A7FA8;
  --line: rgba(255, 215, 90, 0.18);
  --shadow-glow: 0 0 60px rgba(255, 215, 90, 0.35);

  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Brush Script MT', cursive;

  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--gold-soft); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

p { margin: 0 0 1em; }

/* ---------- Background — twinkling star field ---------- */
.star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, #1B2150 0%, var(--bg) 60%, #060923 100%);
}

/* CSS-generated star points using box-shadow trick */
.stars {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  background: transparent;
  border-radius: 50%;
}
.stars--small  { box-shadow: var(--stars-small); animation: twinkle 4s ease-in-out infinite alternate; }
.stars--medium { box-shadow: var(--stars-medium); animation: twinkle 6s ease-in-out infinite alternate; opacity: 0.85; }
.stars--large  { box-shadow: var(--stars-large); animation: twinkle 9s ease-in-out infinite alternate; opacity: 0.7; }

@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* The shadow lists are generated in script.js because they'd be enormous in CSS.
   Until JS loads, we still want some background sparkle, so we set a few inline. */
.stars--small  { box-shadow:
    100px 200px #fff, 300px 50px #fff, 600px 320px #fff, 900px 100px #fff,
    1300px 280px #fff, 200px 600px #fff, 500px 750px #fff, 800px 900px #fff,
    1200px 600px #fff, 1500px 800px #fff, 50px 1100px #fff, 1700px 200px #fff;
}

/* ---------- Layout ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px;
}

.section-head { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin: 0 0 12px;
}
.section-sub {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 14, 39, 0.75);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-name { white-space: nowrap; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.site-nav a {
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
}
.site-nav a:hover { color: #fff; }
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease, left .25s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; left: 0; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 215, 90, 0.3);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 215, 90, 0.45); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #1A1530;
  box-shadow: 0 8px 30px rgba(255, 215, 90, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 215, 90, 0.5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); }
.btn-large { padding: 18px 36px; font-size: 17px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 80px);
}
.hero-photo {
  position: relative;
  order: 2;
  justify-self: center;
}
.hero-photo img {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255, 215, 90, 0.15);
  position: relative;
  z-index: 2;
}
.photo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, rgba(255, 215, 90, 0.35) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
.orbit-star {
  position: absolute;
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 215, 90, 0.8);
  z-index: 3;
  animation: orbit 8s ease-in-out infinite;
}
.orbit-star--1 { top: 4%;  left: -4%; font-size: 36px; animation-delay: 0s; }
.orbit-star--2 { top: 70%; right: -2%; font-size: 24px; animation-delay: -2s; }
.orbit-star--3 { bottom: 6%; left: 8%; font-size: 30px; color: var(--pink); animation-delay: -4s; }
@keyframes orbit {
  0%, 100% { transform: translate(0,0) rotate(0); }
  50% { transform: translate(8px, -10px) rotate(15deg); }
}

.hero-text { order: 1; }
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-family: var(--script);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1.2;
  margin: 0 0 36px;
  max-width: 520px;
}
.hero-tagline em { color: var(--pink); font-style: normal; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- ABOUT ---------- */
.section-about { padding-top: 60px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 100px;
  position: relative;
}
.about-photo img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  border: 1px solid var(--line);
}
.frame-stars {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 2;
}
.frame-stars span {
  position: absolute;
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 90, 0.7);
  animation: twinkle-spin 5s ease-in-out infinite;
}
.frame-stars span:nth-child(1) { top: -8px; left: -8px; animation-delay: 0s; }
.frame-stars span:nth-child(2) { top: 30%; right: -16px; color: var(--pink); animation-delay: -1.5s; font-size: 18px; }
.frame-stars span:nth-child(3) { bottom: -8px; right: 20%; animation-delay: -3s; }
@keyframes twinkle-spin {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(0.6) rotate(180deg); opacity: 0.5; }
}

.about-copy { color: var(--text-dim); }
.about-copy p { margin-bottom: 1.2em; }
.about-copy strong { color: #fff; font-weight: 600; }
.about-copy em { color: var(--gold-soft); font-style: italic; }
.about-subhead {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 32px 0 16px;
}
.award-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.award-list li {
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255, 215, 90, 0.08), rgba(255, 215, 90, 0.02));
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--text);
}
.award-list .muted { color: var(--text-muted); font-size: 14px; }

/* ---------- WATCH ---------- */
.section-watch { padding-bottom: 60px; }
.watch-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(255, 215, 90, 0.08) 0%, rgba(255, 0, 51, 0.06) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 720px;
  margin: 0 auto;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.watch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 215, 90, 0.2);
  border-color: rgba(255, 215, 90, 0.4);
}
.watch-card-icon { flex: 0 0 auto; }
.watch-card-text h3 { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.watch-card-text p { color: var(--text-dim); margin: 0; font-size: 15px; }
.watch-card-arrow {
  margin-left: auto;
  font-size: 28px;
  color: var(--gold);
  transition: transform .25s ease;
}
.watch-card:hover .watch-card-arrow { transform: translateX(6px); }

/* ---------- FOLLOW ---------- */
.follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.follow-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.follow-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255, 215, 90, 0.4);
}
.follow-platform { font-weight: 600; margin: 0; color: #fff; font-size: 16px; }
.follow-handle { margin: 0; color: var(--text-dim); font-size: 14px; }
.follow-cta { margin-left: auto; color: var(--gold); font-weight: 600; font-size: 14px; }

/* ---------- BOOK / FORM ---------- */
.section-book { padding-bottom: 80px; }
.booking-form {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(27, 33, 80, 0.6), rgba(19, 24, 54, 0.6));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 0;
}
.field-row > .field { margin-bottom: 22px; }
.field label, .field legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.req { color: var(--pink); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  background: rgba(10, 14, 39, 0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10, 14, 39, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 215, 90, 0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23FFD75A' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}

.field-radio {
  border: none;
  margin: 0 0 22px;
  padding: 0;
}
.field-radio legend { padding: 0 0 8px; }
.field-radio { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.field-radio legend { width: 100%; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.radio:has(input:checked) {
  border-color: var(--gold);
  background: rgba(255, 215, 90, 0.12);
  color: var(--gold-soft);
}
.radio input { accent-color: var(--gold); }

.form-actions { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.form-note { color: var(--text-muted); font-size: 14px; margin: 0; text-align: center; }
.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  display: none;
}
.form-status.success { display: block; background: rgba(72, 187, 120, 0.15); border: 1px solid rgba(72, 187, 120, 0.4); color: #9AE6B4; }
.form-status.error   { display: block; background: rgba(245, 101, 101, 0.15); border: 1px solid rgba(245, 101, 101, 0.4); color: #FEB2B2; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* button submitting state */
.btn .btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.btn[data-state="loading"] .btn-spinner { display: inline-block; }
.btn[data-state="loading"] { opacity: 0.7; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 35, 0.8);
  backdrop-filter: blur(10px);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-align: left;
}
.footer-tagline {
  font-family: var(--script);
  font-size: 16px;
  color: var(--gold);
  margin: 0;
  text-align: left;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 30px;
  }
  .hero-photo { order: 1; max-width: 380px; margin: 0 auto; }
  .hero-text { order: 2; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .section { padding: 70px 20px; }
  .site-header { padding: 12px 16px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
  .booking-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-links { gap: 18px; font-size: 13px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .hero-name { font-size: 3rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
