/* ============================================
   Diana Ramsay — Biodynamic Massage Therapy
   Shared Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Palette — earthy, grounded, warm */
  --sage: #6a9a5b;
  --sage-light: #8db87a;
  --sage-pale: #d4e8c8;
  --cream: #faf8f2;
  --cream-warm: #f5f0e6;
  --bark: #5c4a3a;
  --bark-light: #8b7355;
  --text-primary: #3d3328;
  --text-secondary: #6b5e50;
  --text-light: #8a7e72;
  --white: #ffffff;
  --divider: #e2ddd4;
  --lilac-pale: #e8dff0;

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Lora', 'Georgia', serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1140px;
  --container-padding: 0 40px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--bark);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-nav--transparent {
  background-color: transparent;
}

.site-nav--solid {
  background-color: rgba(250, 248, 242, 0.97);
  box-shadow: 0 1px 0 var(--divider);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* ── UPDATED: Logo now larger, bolder, with text-shadow on hero ── */
.nav-logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--bark);
  letter-spacing: 0.06em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.site-nav--transparent .nav-logo {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
/* ── END UPDATE ── */

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--sage);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-links a:hover::after {
  width: 100%;
}

.site-nav--transparent .nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

.site-nav--transparent .nav-links a:hover {
  color: var(--white);
}

.site-nav--transparent .nav-links a::after {
  background-color: var(--white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--bark);
  transition: all 0.3s ease;
}

.site-nav--transparent .nav-hamburger span {
  background-color: var(--white);
}

/* Mobile nav */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(250, 248, 242, 0.98);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.nav-mobile-overlay.is-open {
  display: flex;
}

.nav-mobile-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--bark);
  transition: color 0.3s ease;
}

.nav-mobile-links a:hover {
  color: var(--sage);
}

.nav-close {
  position: absolute;
  top: 28px;
  right: 40px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--bark);
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(60, 50, 35, 0.35) 0%,
    rgba(60, 50, 35, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 30px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 6.5vw, 4.5rem);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease 0.3s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease 0.6s forwards;
}

/* Hero placeholder (for development) */
.hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--sage) 0%,
    #4a7a3f 50%,
    var(--bark-light) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
}

.hero-placeholder span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background-color: var(--cream-warm);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   SECTIONS — General
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section--cream {
  background-color: var(--cream);
}

.section--white {
  background-color: var(--white);
}

.section--sage {
  background-color: var(--sage-pale);
}

.section--lilac {
  background-color: var(--lilac-pale);
}

/* ============================================
   SPLIT LAYOUT (text + image side by side)
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split-text h2 {
  margin-bottom: 24px;
}

.split-text p {
  margin-bottom: 1em;
}

.split-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image placeholder */
.image-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px dashed var(--sage-light);
}

.image-placeholder span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--sage);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* ============================================
   DECORATIVE DIVIDER
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.divider svg {
  width: 60px;
  height: auto;
  opacity: 0.35;
}

/* ============================================
   CENTRED TEXT SECTION
   ============================================ */
.centred-text {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.centred-text h2 {
  margin-bottom: 24px;
}

/* ============================================
   QUOTE / PULL QUOTE
   ============================================ */
.pull-quote {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pull-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--bark);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
}

.pull-quote cite {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ============================================
   PORTRAIT IMAGE (About page)
   ============================================ */
.split-image--portrait {
  aspect-ratio: 3 / 4;
}

/* ============================================
   FEE CARDS
   ============================================ */
.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.fee-card {
  text-align: center;
  padding: 48px 32px;
  background-color: var(--white);
  border: 1px solid var(--divider);
  border-radius: 2px;
}

.fee-card--alt {
  background-color: var(--sage-pale);
  border-color: var(--sage-light);
}

.fee-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--bark);
  margin-bottom: 16px;
}

.fee-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 16px;
}

.fee-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.fees-note {
  text-align: center;
  max-width: 500px;
  margin: 36px auto 0;
}

.fees-note p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   LOCATION ADDRESS
   ============================================ */
.location-address {
  font-style: italic;
  color: var(--text-light) !important;
  margin-top: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 14px 36px;
  border: 1px solid var(--sage);
  color: var(--sage);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--sage);
  color: var(--white);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn--light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  text-align: center;
  padding: 80px 40px;
  background-color: var(--sage-pale);
}

.cta-band h2 {
  margin-bottom: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--bark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 40px 30px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.footer-col {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col--centre {
  text-align: center;
}

.footer-col--right {
  text-align: right;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-abmt {
  width: 80px;
  margin: 0 auto 12px;
  opacity: 0.8;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root {
    --section-padding: 70px 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse {
    direction: ltr;
  }

  .fees-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-col--right {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .hero {
    height: 75vh;
  }

  .container {
    padding: 0 24px;
  }

  .cta-band {
    padding: 60px 24px;
  }

  .site-footer {
    padding: 40px 24px 24px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}