/* =========================================================
   Science of Yoga — custom stylesheet
   Palette: Rich Black / Royal Gold / Bright Gold / Magenta accents
   Tone: bold, luxurious, premium wellness
   ========================================================= */

:root {
    /* ── Primary Palette ── */
    --rich-black: #0A0A0A;
    --royal-gold: #D4AF37;
    --bright-gold: #F5C518;
    --deep-amber: #B8860B;
    --rosegold: #B76E79;
    --rosegold-light: #d4979f;
    --rosegold-dark: #8e4f58;
    --magenta: #D6006E;
    --deep-magenta: #8B1A6B;
    --hot-pink: #E91E8C;

    /* ── Semantic aliases (drop-in replacements) ── */
    --sage: #D4AF37;
    --sage-dark: #B8860B;
    --sage-darker: #8a6510;
    --sage-light: #fdf3d3;
    --sage-pale: #fef9e7;
    --cream: #faf9f6;
    --off-white: #fdfcfa;
    --indigo: #0A0A0A;
    --indigo-deep: #080808;
    --gold: #D4AF37;
    --gold-light: #F5C518;
    --ink: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e0d5;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.06), 0 4px 12px rgba(10, 10, 10, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.10);
    --shadow-lg: 0 16px 40px rgba(10, 10, 10, 0.14);
    --radius: 0.9rem;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--off-white);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--indigo);
    font-weight: 600;
    line-height: 1.25;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--ink); }
a { color: var(--sage-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--indigo); }

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

::selection { background: var(--magenta); color: var(--white); }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--indigo); color: var(--white);
    padding: 0.75rem 1.25rem; border-radius: 0 0 0.5rem 0;
}
.skip-link:focus { left: 0; }

/* ---------- Site loader / preloader ---------- */
#site-loader {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--rich-black);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-ring {
    position: relative; width: 120px; height: 120px; margin: 0 auto;
}
.loader-svg {
    width: 120px; height: 120px; transform: rotate(-90deg);
}
.loader-track {
    fill: none; stroke: rgba(212, 175, 55, 0.15); stroke-width: 6;
}
.loader-progress {
    fill: none; stroke: var(--royal-gold); stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.1s ease;
}
.loader-logo-icon {
    position: absolute; inset: 0;
    width: 72px; height: 72px;
    margin: auto;
    border-radius: 50%;
    object-fit: cover;
    animation: loader-breathe 2.4s ease-in-out infinite;
}
@keyframes loader-breathe {
    0%, 100% { transform: scale(0.92); opacity: 0.8; }
    50%      { transform: scale(1.05); opacity: 1; }
}
.loader-percent {
    margin-top: 1rem;
    font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
    color: var(--bright-gold);
    letter-spacing: 0.05em;
}
.loader-label {
    display: block; margin-top: 0.5rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--rosegold);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar {
    padding-top: 0.6rem; padding-bottom: 0.6rem;
    align-items: center;
    min-height: 72px;
}

/* Brand logo (full lockup incl. wordmark) — height-constrained so it scales, never wraps */
.brand-logo { max-height: 56px; width: auto; }

/* Nav links: one line, never break */
.navbar-nav {
    gap: 0.2rem;
    align-items: center;
}
.navbar-nav .nav-link {
    font-weight: 500; color: var(--indigo);
    padding-inline: 0.6rem; padding-block: 0.5rem;
    white-space: nowrap; font-size: 0.9rem;
    border-radius: 0.5rem;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: var(--sage-dark); }

/* Active state: distinct colour + subtle underline */
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.active > .nav-link {
    color: var(--sage-dark);
    font-weight: 600;
    position: relative;
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.12rem;
    height: 2px; border-radius: 2px;
    background: var(--sage);
}

.navbar-nav .nav-cta { margin-inline-start: 0.35rem; }
.navbar-nav .nav-cta .btn { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* Never let the expanded menu wrap onto two lines */
@media (min-width: 1200px) {
    .navbar-expand-xl .navbar-nav { flex-wrap: nowrap; }
}

/* Compact fit for the xl breakpoint (1200–1399px): 11 items + CTA must fit on one row */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar { min-height: 68px; }
    .brand-logo { max-height: 44px; }
    .navbar-nav { gap: 0.05rem; }
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding-inline: 0.5rem;
    }
    .navbar-nav .nav-cta { margin-inline-start: 0.2rem; }
    .navbar-nav .nav-cta .btn { font-size: 0.85rem; padding: 0.45rem 1rem; }
}

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    min-width: 15rem;
}
.dropdown-item { border-radius: 0.5rem; font-size: 0.92rem; padding: 0.5rem 0.9rem; color: var(--ink); white-space: nowrap; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sage-light); color: var(--indigo); }
.dropdown-item.active { background: var(--sage); color: var(--white); }

.navbar-toggler { border-color: transparent; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: 0.01em; padding: 0.65rem 1.5rem; }
.btn:focus-visible { box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.35); }

.btn-brand {
    background: var(--royal-gold); color: var(--rich-black); border: 1px solid var(--royal-gold);
}
.btn-brand:hover, .btn-brand:focus { background: var(--bright-gold); border-color: var(--bright-gold); color: var(--rich-black); }

.btn-outline-brand {
    background: transparent; color: var(--deep-amber); border: 1.5px solid var(--royal-gold);
}
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--royal-gold); color: var(--rich-black); border-color: var(--royal-gold); }

.btn-indigo { background: var(--rich-black); color: var(--gold); border: 1px solid var(--rich-black); }
.btn-indigo:hover, .btn-indigo:focus { background: #1a1a1a; color: var(--bright-gold); }

.btn-light-soft { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn-light-soft:hover { background: var(--sage-light); color: var(--rich-black); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--cream); }
.section-sage { background: var(--sage-light); }
.section-golden {
    background: linear-gradient(135deg, #fdf3d3 0%, #fef9e7 50%, #fdf3d3 100%);
    color: var(--rich-black);
}
.section-golden h2, .section-golden h3, .section-golden p { color: var(--rich-black); }
.section-golden .eyebrow { color: var(--deep-amber); }
.section-golden .card { background: var(--white); border-color: rgba(212, 175, 55, 0.2); }
.section-golden .card-text { color: var(--ink); }

.section-rosegold {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a0d10 50%, #0A0A0A 100%);
    color: var(--off-white);
}
.section-rosegold h2, .section-rosegold h3, .section-rosegold p { color: var(--off-white); }
.section-rosegold .eyebrow { color: var(--rosegold-light); }
.section-indigo { background: var(--indigo); }
.section-indigo h2, .section-indigo h3, .section-indigo p { color: var(--off-white); }

.eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--sage-dark); margin-bottom: 0.75rem;
}
.section-indigo .eyebrow { color: var(--gold-light); }

.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 46rem; }
.section-indigo .section-lead { color: rgba(253, 252, 250, 0.75); }

/* ---------- Hero (homepage banner) ---------- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex; align-items: center;
    background:
        linear-gradient(115deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.86) 32%, rgba(10, 10, 10, 0.62) 62%, rgba(10, 10, 10, 0.42) 100%),
        url('../img/content/hero-banner.jpg') center / cover no-repeat;
    background-color: var(--indigo-deep);
    color: var(--off-white);
    padding: clamp(5rem, 10vw, 8rem) 0;
    overflow: hidden;
}
.hero .eyebrow { color: var(--gold-light); }
.hero-title { color: var(--white); max-width: 14em; }
.hero-lead {
    color: rgba(253, 252, 250, 0.82);
    font-size: 1.15rem; max-width: 40rem;
    margin-top: 1.25rem;
}
.hero-content { max-width: 46rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 1.5rem 2.75rem;
    margin-top: 2.75rem; padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stat-badge .stat-num {
    font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700;
    color: var(--gold-light); line-height: 1;
}
.hero-stat-badge .stat-cap {
    color: rgba(253, 252, 250, 0.72); font-size: 0.82rem;
    margin-top: 0.4rem; max-width: 9.5rem;
}

@media (max-width: 575.98px) {
    .hero { min-height: 64vh; text-align: center; }
    .hero-content { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
    .hero-stat-badge .stat-cap { max-width: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background:
        radial-gradient(900px 480px at 90% -20%, rgba(212, 175, 55, 0.2), transparent 55%),
        linear-gradient(150deg, var(--indigo-deep), var(--indigo));
    color: var(--off-white);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero p { color: rgba(253, 252, 250, 0.8); max-width: 44rem; }
.breadcrumb-crumb { font-size: 0.8rem; color: rgba(253, 252, 250, 0.65); }
.breadcrumb-crumb a { color: var(--gold-light); }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.card-body { padding: 1.6rem; }
.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-text { color: var(--muted); }

.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.tag {
    display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
    background: var(--sage-light); color: var(--sage-darker);
    padding: 0.22rem 0.65rem; border-radius: 999px; margin: 0 0.35rem 0.35rem 0;
}
.tag-gold { background: rgba(214, 0, 110, 0.12); color: var(--magenta); }

.stat-card { text-align: center; padding: 2rem 1.25rem; }
.stat-number { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--sage-dark); }
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Research citation callouts ---------- */
.citation {
    position: relative;
    background: var(--sage-pale);
    border: 1px solid var(--border);
    border-left: 4px solid var(--magenta);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}
.citation .citation-source {
    display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem;
}
.citation .citation-source .source-link { color: var(--sage-dark); font-weight: 600; }

.quote-block {
    border-left: 4px solid var(--hot-pink);
    background: var(--cream);
    padding: 1.5rem 1.75rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink);
}

/* ---------- Icon tiles ---------- */
.icon-tile {
    width: 56px; height: 56px; border-radius: 1rem;
    background: var(--sage-light); color: var(--sage-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1rem;
}
.icon-tile-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(245, 197, 24, 0.1));
    color: var(--royal-gold);
}
.icon-tile-rosegold {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.15), rgba(212, 151, 159, 0.1));
    color: var(--rosegold);
}
.icon-tile-magenta {
    background: linear-gradient(135deg, rgba(214, 0, 110, 0.12), rgba(233, 30, 140, 0.08));
    color: var(--magenta);
}

/* ---------- Testimonials ---------- */
.testimonial-carousel .carousel-inner { padding: 0.5rem 1rem 2rem; }
.testimonial-item { max-width: 46rem; margin: 0 auto; text-align: center; }
.testimonial-item .quote {
    font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; color: var(--indigo);
}
.testimonial-author { margin-top: 1.25rem; color: var(--muted); font-size: 0.95rem; }
.testimonial-author strong { color: var(--indigo); display: block; }
.testimonial-carousel .carousel-indicators [data-bs-target] {
    background-color: var(--magenta); width: 10px; height: 10px; border-radius: 50%;
}

/* ---------- Study filter (research page) ---------- */
.filter-btn {
    border: 1px solid var(--border); background: var(--white); color: var(--ink);
    border-radius: 999px; padding: 0.4rem 1.1rem; font-size: 0.85rem; font-weight: 600;
    transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--royal-gold); color: var(--deep-amber); }
.filter-btn.is-active { background: var(--magenta); border-color: var(--magenta); color: var(--white); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.7rem 1rem;
    background: var(--white); color: var(--ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--royal-gold); box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.18);
}
.form-label { font-weight: 600; color: var(--indigo); font-size: 0.92rem; }
.form-msg { font-size: 0.85rem; margin-top: 0.5rem; margin-bottom: 0; }
.form-msg.is-success { color: var(--sage-darker); }
.form-msg.is-error { color: #b3552d; }
.is-invalid-msg { color: #b3552d; font-size: 0.83rem; margin-top: 0.3rem; display: none; }
.is-invalid .form-control { border-color: #c75b33; }
.is-invalid .is-invalid-msg { display: block; }

.alert-rounded { border-radius: var(--radius); }

/* ---------- Related article links ---------- */
.related-list a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--border);
    color: var(--ink); font-weight: 500;
}
.related-list a:hover { color: var(--sage-dark); }
.related-list a .arrow { color: var(--sage); font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(212, 175, 55, 0.25), transparent 55%),
        linear-gradient(140deg, var(--rich-black), #111);
    border-radius: var(--radius);
    padding: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Featured / news feed ---------- */
.feed-item {
    display: flex; gap: 1.25rem; padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: 0; }
.feed-date {
    flex: 0 0 auto; text-align: center;
    background: var(--sage-light); border-radius: 0.75rem;
    padding: 0.6rem 0.8rem; width: 64px; height: 64px;
}
.feed-date .day { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--sage-dark); line-height: 1; }
.feed-date .month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sage-darker); }
.feed-title { font-weight: 600; color: var(--indigo); font-size: 1.02rem; }
.feed-meta { color: var(--muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--indigo-deep);
    color: rgba(253, 252, 250, 0.78);
    padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.site-footer h3.footer-heading {
    color: var(--bright-gold); font-size: 1.02rem; font-family: var(--font-sans);
    letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
    margin-bottom: 1.1rem;
}
.footer-brand .brand-logo { max-height: 46px; opacity: 0.95; }
.footer-blurb { color: rgba(253, 252, 250, 0.7); max-width: 30rem; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: rgba(253, 252, 250, 0.78); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.social-link {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08); color: var(--off-white);
    font-size: 0.72rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.12);
}
.social-link:hover { background: var(--magenta); border-color: var(--magenta); color: var(--white); }

.footer-newsletter-note { color: rgba(253, 252, 250, 0.65); font-size: 0.9rem; }
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16);
    color: var(--white);
}
.newsletter-form .form-control::placeholder { color: rgba(253, 252, 250, 0.5); }
.newsletter-form .form-control:focus { border-color: var(--bright-gold); box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25); }

.footer-contact { font-style: normal; font-size: 0.92rem; color: rgba(253, 252, 250, 0.7); display: flex; flex-direction: column; gap: 0.25rem; }
.footer-contact a { color: var(--gold-light); }

.footer-bottom {
    margin-top: 2.5rem; padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between; align-items: center;
}
.copyright { margin: 0; color: rgba(253, 252, 250, 0.55); font-size: 0.85rem; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.footer-legal a { color: rgba(253, 252, 250, 0.65); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--gold-light); }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1050;
    width: 46px; height: 46px; border-radius: 50%;
    border: none; background: var(--royal-gold); color: var(--rich-black);
    font-size: 1.2rem; line-height: 1;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--bright-gold); }

/* ---------- Scroll reveal (on-scroll section animations) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.reveal-fade  { transform: none; }
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-up    { transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger sibling cards so they animate in sequence */
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }
.stagger > .reveal:nth-child(9) { transition-delay: 0.64s; }
.stagger > .reveal:nth-child(10) { transition-delay: 0.72s; }
.stagger > .reveal:nth-child(11) { transition-delay: 0.80s; }
.stagger > .reveal:nth-child(12) { transition-delay: 0.88s; }

/* ---------- Misc helpers ---------- */
.text-sage { color: var(--sage-dark); }
.bg-sage-light { background: var(--sage-light); }
.border-sage { border-color: var(--sage) !important; }
.text-magenta { color: var(--magenta); }
.bg-magenta { background: var(--magenta); color: var(--white); }
.text-gold { color: var(--royal-gold); }
.text-royal-gold { color: var(--royal-gold); }
.text-bright-gold { color: var(--bright-gold); }
.text-rosegold { color: var(--rosegold); }
.text-rosegold-light { color: var(--rosegold-light); }
.bg-rich-black { background: var(--rich-black); color: var(--white); }
.bg-rosegold { background: var(--rosegold); color: var(--white); }
.max-w-sm { max-width: 40rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .loader-logo { animation: none; }
    .card-hover, .back-to-top, .site-header, .hero, .navbar, .reveal { transition: none; }
    #site-loader { display: none; }
}

/* ---------- Page hero with background photo ---------- */
.page-hero-img { position: relative; }
.page-hero-img::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(115deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.89) 42%, rgba(10, 10, 10, 0.68) 76%, rgba(10, 10, 10, 0.55) 100%),
        var(--ph-img, transparent) center / cover no-repeat;
    z-index: 0; pointer-events: none;
}
.page-hero-img > .container { position: relative; z-index: 1; }

.page-hero-yoga        { --ph-img: url('../img/content/yoga-asanas.jpg'); }
.page-hero-beach       { --ph-img: url('../img/content/yoga-beach.jpg'); }
.page-hero-pranayama   { --ph-img: url('../img/content/pranayama.jpg'); }
.page-hero-meditation  { --ph-img: url('../img/content/meditation.jpg'); }
.page-hero-restorative { --ph-img: url('../img/content/restorative.jpg'); }
.page-hero-group       { --ph-img: url('../img/content/group-class.jpg'); }
.page-hero-studio      { --ph-img: url('../img/content/studio.jpg'); }
.page-hero-brain       { --ph-img: url('../img/content/brain.jpg'); }
.page-hero-science     { --ph-img: url('../img/content/science.jpg'); }
.page-hero-lab         { --ph-img: url('../img/content/lab.jpg'); }
.page-hero-sleep       { --ph-img: url('../img/content/sleep.jpg'); }
.page-hero-fitness     { --ph-img: url('../img/content/fitness.jpg'); }
.page-hero-wellbeing   { --ph-img: url('../img/content/wellbeing.jpg'); }
.page-hero-corporate   { --ph-img: url('../img/content/corporate.jpg'); }
.page-hero-workshop    { --ph-img: url('../img/content/workshop.jpg'); }
.page-hero-books       { --ph-img: url('../img/content/books.jpg'); }
.page-hero-stress      { --ph-img: url('../img/content/stress.jpg'); }
.page-hero-zen         { --ph-img: url('../img/content/zen.jpg'); }
.page-hero-mountains   { --ph-img: url('../img/content/mountains.jpg'); }

/* ---------- Card images ---------- */
.card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Section image (photo beside text) ---------- */
.section-img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-md); display: block;
}
.section-img-standalone { height: auto; aspect-ratio: 4 / 3; }
.section-img-frame {
    border-radius: calc(var(--radius) + 0.6rem);
    background: var(--white); border: 1px solid var(--border);
    padding: 0.6rem; box-shadow: var(--shadow-sm);
}
.section-img-frame .section-img { border-radius: calc(var(--radius) + 0.1rem); box-shadow: none; }

/* ---------- Full-width photo banner ---------- */
.photo-banner {
    position: relative; overflow: hidden;
    background-size: cover; background-position: center;
    color: var(--off-white);
    padding: clamp(4rem, 9vw, 7rem) 0;
    text-align: center;
}
.photo-banner::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.84), rgba(10, 10, 10, 0.62));
}
.photo-banner > .container { position: relative; z-index: 1; }
.photo-banner h2 { color: var(--white); }
.photo-banner p { color: rgba(253, 252, 250, 0.85); max-width: 44rem; margin: 0 auto; }
.photo-banner .eyebrow { color: var(--gold-light); }
.photo-banner .btn { margin-top: 1.5rem; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 575.98px) {
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-legal { justify-content: center; }
    .feed-item { flex-direction: column; }
}
