/* YogaTravel — warm, grounded, spacious */

:root {
  --bg: #fbfaf4;               /* warm morning white */
  --bg-alt: #f0e9d8;           /* soft sand */
  --ink: #2b3530;              /* deep forest ink */
  --ink-soft: #5a6a60;
  --ink-muted: #9aa89f;
  --line: #ebe6d8;
  --green: #6b8f71;            /* sage — soft, calming */
  --green-dark: #4a6e52;
  --sky: #a7c9d8;              /* soft morning sky */
  --sky-dark: #6fa0ba;
  --sand: #e6d5b0;
  --cream: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(43, 53, 48, 0.03), 0 2px 8px rgba(43, 53, 48, 0.04);
  --shadow: 0 4px 18px rgba(43, 53, 48, 0.05), 0 16px 40px rgba(43, 53, 48, 0.07);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green), var(--green-dark));
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

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

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  object-fit: cover;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: var(--cream);
}
.btn-primary:hover { background: var(--green-dark); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-muted); color: var(--ink); }

.btn-sky {
  background: var(--sky);
  color: var(--cream);
}
.btn-sky:hover { background: var(--sky-dark); color: var(--cream); }

.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  max-width: 14ch;
  margin: 0 auto 28px;
  line-height: 1.08;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 auto 40px;
}

.hero-tagline span { color: var(--green-dark); font-style: normal; font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    /* top-down cream wash keeps text legible */
    linear-gradient(to bottom,
      rgba(251, 250, 244, 0.96) 0%,
      rgba(251, 250, 244, 0.78) 30%,
      rgba(251, 250, 244, 0.40) 60%,
      rgba(251, 250, 244, 0.20) 80%,
      rgba(251, 250, 244, 0.65) 100%),
    /* warm sand glow at the base */
    radial-gradient(ellipse 55% 38% at 50% 110%, rgba(230, 213, 176, 0.55), transparent 70%),
    /* soft sage glow top-left */
    radial-gradient(ellipse 60% 45% at 10% 5%, rgba(107, 143, 113, 0.18), transparent 70%),
    /* the sky & clouds — expansive */
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=2400&q=85") center 30%/cover no-repeat;
}

/* On small screens the photo is zoomed more so it still feels atmospheric */
@media (max-width: 720px) {
  .hero { min-height: 78vh; padding: 80px 0 60px; }
}

/* Breathing circle — the soul of the page */

.breathe-wrap {
  display: flex;
  justify-content: center;
  margin: 48px auto 0;
  pointer-events: none;
}

.breathe {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 12s ease-in-out infinite;
}

.breathe::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 248, 224, 0.95), rgba(230, 213, 176, 0.70) 40%, rgba(167, 201, 216, 0.40) 75%, transparent 100%);
  filter: blur(2px);
}

.breathe::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff8e0 0%, #f5e3b8 70%, transparent 100%);
  opacity: 0.9;
}

.breathe-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green-dark);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  opacity: 0.65;
  animation: breatheText 12s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1.08); }
}

@keyframes breatheText {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .breathe, .breathe-label { animation: none; }
}

/* Poetic quote block */

.quote-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.quote-section::before,
.quote-section::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 0 auto;
  background: linear-gradient(to bottom, transparent, var(--green) 50%, transparent);
}

.quote-section::before { margin-bottom: 40px; }
.quote-section::after { margin-top: 40px; }

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
  max-width: 24ch;
  margin: 0 auto;
  line-height: 1.4;
  font-weight: 400;
}

.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 28px;
}

/* Full-bleed imagery band */

.imagery-band {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--line);
}

@media (max-width: 780px) {
  .imagery-band { grid-template-columns: 1fr; }
}

.imagery-band .ib-frame {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt) center/cover no-repeat;
  position: relative;
  filter: saturate(0.85);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.imagery-band .ib-frame:hover {
  filter: saturate(1);
  transform: scale(1.01);
}

.imagery-band .ib-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 250, 244, 0.05) 0%, rgba(43, 53, 48, 0.25) 100%);
}

/* Lotus / ornament divider */

.ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  gap: 14px;
  color: var(--green);
  opacity: 0.7;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 60px;
  background: currentColor;
}

.ornament-mark {
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  padding: 80px 0;
}

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

.section-head .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Three-column features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 780px) {
  .features { grid-template-columns: 1fr; gap: 28px; }
}

.feature {
  text-align: center;
  padding: 12px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
}

/* ---------- Story block ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 780px) { .story { grid-template-columns: 1fr; gap: 32px; } }

.story-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(74, 125, 96, 0.22), rgba(126, 181, 208, 0.22)),
    url("https://images.unsplash.com/photo-1506126613408-eca07ce68773?w=1200&q=80") center/cover;
  box-shadow: var(--shadow);
}

.story h2 { margin-bottom: 18px; }
.story blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink);
  border-left: 2px solid var(--green);
  padding-left: 18px;
  margin: 24px 0;
}

/* ---------- Teacher cards grid ---------- */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.teacher-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.teacher-card-photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt) center/cover no-repeat;
  position: relative;
}

.teacher-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.25));
}

.teacher-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teacher-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.teacher-card-location {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.teacher-card-headline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.tag-free {
  background: rgba(74, 125, 96, 0.12);
  color: var(--green-dark);
  font-weight: 500;
}

/* ---------- Profile page ---------- */

.profile-hero {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 780px) {
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-alt) center/cover no-repeat;
  box-shadow: var(--shadow);
  border: 4px solid var(--cream);
}

.profile-name {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 6px;
}

.profile-location {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 18px;
}

.profile-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.profile-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.profile-section h3 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.profile-section p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.75;
}

.free-session-card {
  background: linear-gradient(135deg, rgba(74, 125, 96, 0.10), rgba(232, 217, 184, 0.40));
  border: 1px solid rgba(74, 125, 96, 0.22);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.free-session-card h3 { color: var(--green-dark); margin-top: 0; }

/* ---------- Comments ---------- */

.comments { display: flex; flex-direction: column; gap: 14px; }

.comment {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  transition: border-color 0.15s;
}

.comment.pinned {
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, rgba(74, 125, 96, 0.04), transparent 30%);
}

.comment.deleted { opacity: 0.7; }
.comment.deleted .comment-body { font-style: italic; color: var(--ink-muted); }

.comment.collapsed {
  grid-template-columns: 1fr;
  padding: 10px 18px;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.comment-collapsed-note { flex: 1; }

.comment-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 4px;
  user-select: none;
}

.vote-btn {
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--ink-muted);
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s, transform 0.1s;
  font-size: 0.9rem;
}

.vote-btn:not([disabled]):hover { background: var(--bg-alt); color: var(--ink); }
.vote-btn:not([disabled]):active { transform: scale(0.92); }
.vote-btn[disabled] { cursor: default; opacity: 0.35; }

.vote-btn.up.active { color: var(--green-dark); }
.vote-btn.down.active { color: #8a3c3c; }

.vote-score {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 22px;
  text-align: center;
}
.vote-score.pos { color: var(--green-dark); }
.vote-score.neg { color: #8a3c3c; }

.comment-main { min-width: 0; }

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-head .avatar { width: 28px; height: 28px; }

.comment-name { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.comment-date { font-size: 0.78rem; color: var(--ink-muted); }
.comment-pin {
  font-size: 0.72rem;
  color: var(--green-dark);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.comment-body {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0 0 6px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.comment-actions {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.comment-action {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--ink-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
}
.comment-action:hover { color: var(--green-dark); text-decoration: underline; }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- Forms ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-field small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.input, .textarea, .select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 125, 96, 0.14);
}

.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.toggle input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- CTA banner ---------- */

.cta {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green), var(--sky-dark));
  color: var(--cream);
}

.cta h2 { color: var(--cream); }
.cta p { color: rgba(255, 249, 239, 0.85); }

.cta .btn-ghost {
  color: var(--cream);
  border-color: rgba(255, 249, 239, 0.4);
}
.cta .btn-ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer .brand { justify-content: center; margin-bottom: 14px; font-size: 1.2rem; }
.site-footer-links { display: flex; gap: 24px; justify-content: center; margin-top: 14px; }
.site-footer-links a { color: var(--ink-muted); font-size: 0.88rem; }
.site-footer-links a:hover { color: var(--ink); }

/* ---------- Empty / loading states ---------- */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
}

.empty-icon { font-size: 2.2rem; margin-bottom: 12px; }

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.err { background: #8a3c3c; }

.hidden { display: none !important; }

/* Modal (shared with admin + report flow) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 36, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.modal .form-field { margin: 14px 0; }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Google sign-in wrapper ---------- */

.google-signin {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.auth-gate {
  text-align: center;
  padding: 60px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 40px auto;
}

.auth-gate h2 { margin-bottom: 14px; }
.auth-gate p { margin-bottom: 28px; }
