/* ============================================
   J9INE — Design System
   Deep Plum / Warm Gold / Sage Green / Cream / Charcoal
   ============================================ */

:root {
  --plum: #5C2D6B;
  --plum-dark: #431f4d;
  --gold: #D4A843;
  --sage: #7A9E7E;
  --cream: #F7F3EE;
  --charcoal: #2C2C2C;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(44, 44, 44, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--plum);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.lede {
  font-size: 1.15rem;
  color: #55504f;
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--plum);
  color: var(--white);
}
.btn-primary:hover { background: var(--plum-dark); box-shadow: var(--shadow); }

.btn-gold {
  background: var(--gold);
  color: var(--plum-dark);
}
.btn-gold:hover { box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--plum); }

.btn-outline-plum {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-outline-plum:hover { background: var(--plum); color: var(--white); }

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(92, 45, 107, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--plum);
  letter-spacing: 0.03em;
}
.logo span { color: var(--gold); }
.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--plum);
  border-color: var(--gold);
}

.nav-cta { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--plum);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-dark) 65%);
  color: var(--white);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.35) 0%, rgba(212,168,67,0) 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,0.85); }

.hero-video-hero {
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.hero-video-hero::after {
  display: none;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-corner {
  position: relative;
  z-index: 2;
  max-width: 420px;
  margin: 0 0 40px 40px;
  padding: 24px 28px;
  background: rgba(44,44,44,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
}
.hero-corner h1 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 12px;
}
.hero-corner .lede {
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.hero-corner .cta-row {
  gap: 10px;
}
.hero-corner .btn {
  padding: 10px 20px;
  font-size: 0.82rem;
}

.about-photo {
  justify-self: center;
  max-height: 480px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}

.big-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--plum);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  text-align: center;
  max-width: 14ch;
  margin: 0 auto;
  position: relative;
}
.big-quote::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212,168,67,0.5);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-charcoal { background: var(--charcoal); color: var(--white); }
.section-charcoal h2, .section-charcoal h3 { color: var(--white); }
.section-charcoal .lede { color: rgba(255,255,255,0.75); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.card.plum { border-top-color: var(--plum); }
.card.sage { border-top-color: var(--sage); }

.card h3 { margin-bottom: 10px; }
.card p { color: #5a5654; margin-bottom: 0; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag-plum { background: rgba(92,45,107,0.1); color: var(--plum); }
.tag-gold { background: rgba(212,168,67,0.18); color: #8a6b1f; }
.tag-sage { background: rgba(122,158,126,0.18); color: #3f5a42; }

/* ---------- About / image split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.split img, .img-placeholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.img-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--sage), var(--plum));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-style: italic;
  text-align: center;
  padding: 24px;
}

/* ---------- Schedule table ---------- */
.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule th, .schedule td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #eee6dc;
}
.schedule th {
  background: var(--plum);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.schedule tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--plum);
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #ddd3c8;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #355E3B, #24402a);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); }

/* ---------- Newsletter ---------- */
.newsletter-bar {
  background: var(--plum-dark);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.newsletter-bar h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.newsletter-bar p {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 240px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.social-row { display: flex; gap: 14px; margin-top: 8px; }
.social-row a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Wellness article ---------- */
.article-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 70px 0 50px;
}
.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 24px;
}
.article-body h2 { margin-top: 40px; }
.article-body ul { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.back-link { font-weight: 600; color: var(--plum); }

/* ---------- Mobile sticky booking CTA ---------- */
.mobile-book-cta {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { max-height: 320px; }
  .hero-video-hero { min-height: 480px; }
  .hero-corner { margin: 0 20px 24px; max-width: none; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-outline-plum { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(92,45,107,0.1);
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; }
  .form { padding: 28px; }
  .newsletter-bar { flex-direction: column; align-items: flex-start; padding: 24px; }
  .newsletter-form { width: 100%; }
  .newsletter-form input[type="email"] { flex: 1; min-width: 0; }

  body { padding-bottom: 74px; }
  .mobile-book-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 300;
    background: var(--gold);
    color: var(--plum-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 34px;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    white-space: nowrap;
  }
}
