/* meditationteacher.uk — 10 Tips for Amazing Meditation
   Dark, calm, teal-water palette. Lora (display) + Open Sans (body). */

:root {
  --bg: #0d1a20;
  --bg-deep: #0a141a;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.16);
  --ink: #f3f8f9;
  --muted: rgba(243, 248, 249, 0.74);
  --gold: #f5dd0a;
  --gold-soft: rgba(245, 221, 10, 0.85);
  --teal: #6cfafa;
  --green-1: #17a34a;
  --green-2: #00a8a8;
  --green-edge: #5bbd83;
  --radius: 16px;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-btn: 0 10px 30px -12px rgba(0, 168, 168, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- draft chip (preview builds only) ---------- */
.draft-chip {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 50;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d1a20;
  background: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  box-shadow: 0 6px 18px -6px rgba(245, 221, 10, 0.6);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--gold);
  color: #0d1a20;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 0.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  text-decoration: none;
  color: #fff;
  padding: 1.05rem 2.6rem;
  border-radius: 999px;
  border: 3px solid transparent;
  margin: 1.2rem 0.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.btn .icon { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }

.btn-course {
  background-image: linear-gradient(180deg, var(--green-1), var(--green-2));
  border-color: var(--green-edge);
  box-shadow: var(--shadow-btn);
}

.btn-call {
  background-image: linear-gradient(180deg, #f5a623, #c2a006);
  box-shadow: 0 10px 30px -12px rgba(245, 166, 35, 0.55);
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
}

.btn-news {
  background-image: linear-gradient(180deg, #09f266, #058248);
  box-shadow: 0 10px 30px -12px rgba(9, 242, 102, 0.45);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(10, 20, 26, 0.62) 0%, rgba(10, 20, 26, 0.86) 70%, var(--bg-deep) 100%),
    url("../assets/img/hero-bg.webp") center 38% / cover no-repeat,
    var(--bg-deep);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}

.hero-course-link {
  display: inline-block;
  max-width: 560px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-course-link:hover { transform: translateY(-3px); }
.hero-course-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 2.2rem 0 0.6rem;
  color: #fcf7f7;
  text-wrap: balance;
}
.hero-title .accent { color: var(--gold-soft); }

.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: #fffcfc;
  margin: 0 0 0.6rem;
}
.hero-sub .value { color: var(--muted); font-size: 0.9em; }

.hero-note {
  max-width: 46ch;
  margin: 0.4rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- tips sections ---------- */
.tips {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg) 18%, var(--bg) 82%, var(--bg-deep));
  padding: clamp(2.6rem, 6vw, 4.2rem) 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  color: #fff;
  margin: 0 0 1.4rem;
  text-wrap: balance;
}

.rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: 1.6rem auto;
  max-width: 100%;
}

.tip-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}
.tip-grid li {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tip-grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85);
}

/* ---------- mentoring ---------- */
.mentor {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 50% -10%, rgba(0, 168, 168, 0.16), transparent 65%),
    linear-gradient(180deg, var(--bg-deep), #0c2028 55%, var(--bg-deep));
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.6rem, 6vw, 4rem);
  text-align: center;
}

.mentor .glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(9, 242, 102, 0.07), transparent 70%);
  pointer-events: none;
}

.mentor-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  color: var(--gold);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.mentor-text {
  max-width: 62ch;
  margin: 0 auto;
  font-weight: 600;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: #fcf9f9;
}
.mentor-text em { font-style: italic; }

.mentor-photo {
  width: clamp(140px, 24vw, 190px);
  border-radius: 999px;
  margin: 1.8rem auto 0;
  border: 3px solid rgba(108, 250, 250, 0.35);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

.mentor-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  line-height: 1.3;
  color: var(--gold);
  margin: 2.2rem 0 0.8rem;
}

.privacy {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

/* ---------- footer ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer a { color: var(--teal); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tip-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .btn { padding-inline: 1.8rem; }
}

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

/* subtle reveal (applied by JS only when motion is welcome) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
