/* ==========================================================
   MusicHub — "A Home For Sound"
   Design tokens
   ========================================================== */
:root {
    --ivory: #F7F3EA;
    --cream: #F1EEE5;
    --forest: #101207;
    --olive: #7D7F68;
    --sage: #A9B79A;
    --muted-green: #556232;
    --gold: #C89E63;
    --earth: #8A6C3B;
    --dark-olive: #544F31;
    --white: #FFFFFF;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&family=Caveat:wght@500;600&display=swap');

* { box-sizing: border-box; }

body {
    background-color: var(--ivory);
    color: var(--dark-olive);
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .font-display {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.01em;
}

.signature {
    font-family: 'Caveat', cursive;
}

a { transition: color 0.2s ease; }

/* ---------- Leaf divider (signature motif) ---------- */
.leaf-divider {
    display: inline-flex;
    margin: 10px 0 6px;
    opacity: 0.8;
}
.leaf-divider svg { width: 34px; height: 16px; }

/* ---------- Navbar ---------- */
.site-navbar {
    background-color: var(--forest) !important;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-navbar .navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.site-navbar .navbar-brand .brand-word {
    color: var(--gold);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}
.site-navbar .navbar-brand .brand-tag {
    color: var(--sage);
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}
.site-navbar .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}
.site-navbar .nav-link.active,
.site-navbar .nav-link:hover {
    color: var(--white) !important;
}
.site-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--sage);
    border-radius: 2px;
}
.site-navbar .btn-register {
    background-color: var(--sage);
    color: var(--forest);
    border: none;
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 22px;
}
.site-navbar .btn-register:hover {
    background-color: var(--muted-green);
    color: var(--white);
}
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1c2410 0%, var(--forest) 65%);
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-wrap::before {
    /* Soft light-ray / canopy texture, in lieu of a photograph */
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 80% 15%, rgba(200,158,99,0.28), transparent 60%),
        radial-gradient(ellipse 500px 400px at 60% 0%, rgba(169,183,154,0.18), transparent 55%);
    pointer-events: none;
}
.hero-wrap .hero-trees {
    position: absolute;
    right: -5%; bottom: -10%;
    width: 60%;
    max-width: 640px;
    opacity: 0.5;
    pointer-events: none;
}
.hero-wrap.has-photo {
    background-size: cover;
    background-position: center;
}
.hero-wrap.has-photo::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(16,18,7,0.86) 0%, rgba(16,18,7,0.55) 45%, rgba(16,18,7,0.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 60px 0; }
.hero-content h1 {
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero-content .hero-lede {
    color: rgba(247,243,234,0.92);
    font-size: 1.15rem;
    max-width: 480px;
    margin-bottom: 26px;
    line-height: 1.6;
}
.hero-content .btn-hero {
    background-color: var(--sage);
    color: var(--forest);
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 40px;
    border: none;
    font-size: 1.02rem;
}
.hero-content .btn-hero:hover {
    background-color: var(--gold);
    color: var(--forest);
}
.hero-caption {
    color: rgba(247,243,234,0.75);
    font-size: 0.9rem;
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-caption .wave {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
}
.hero-caption .wave span {
    width: 2px;
    background: var(--sage);
    display: inline-block;
    animation: wave 1.2s ease-in-out infinite;
}
.hero-caption .wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.hero-caption .wave span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.hero-caption .wave span:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.hero-caption .wave span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.hero-caption .wave span:nth-child(5) { height: 7px; animation-delay: 0.6s; }
@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-caption .wave span { animation: none; }
}

/* ---------- Section shell ---------- */
.section { padding: 70px 0; }
.section.cream { background-color: var(--cream); }
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--earth);
    font-weight: 600;
}
.section-title {
    color: var(--dark-olive);
    font-weight: 600;
    margin-bottom: 4px;
}
.section-subtitle {
    color: var(--olive);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}
.text-center .leaf-divider { justify-content: center; width: 100%; }

/* ---------- Mood grid ---------- */
.mood-tile {
    background: var(--white);
    border: 1px solid rgba(84,79,49,0.08);
    border-radius: 16px;
    padding: 22px 14px;
    text-align: center;
    text-decoration: none;
    display: block;
    color: var(--dark-olive);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    height: 100%;
}
.mood-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(16,18,7,0.08);
    background: var(--cream);
    color: var(--dark-olive);
}
.mood-tile .mood-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.25rem;
    color: var(--earth);
}
.mood-tile span { font-weight: 600; font-size: 0.92rem; }

/* ---------- Journey / category cards ---------- */
.journey-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 260px;
    display: block;
    text-decoration: none;
    color: var(--white);
    background: linear-gradient(160deg, var(--muted-green), var(--forest));
    box-shadow: 0 8px 22px rgba(16,18,7,0.10);
}
.journey-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.journey-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,18,7,0.05) 40%, rgba(16,18,7,0.85) 100%);
}
.journey-card .play-btn {
    position: absolute; top: 44%; left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex; align-items: center; justify-content: center;
    color: var(--forest);
    font-size: 1.2rem;
    z-index: 2;
    transition: transform 0.25s, background 0.25s;
}
.journey-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--sage);
}
.journey-card .journey-info {
    position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
}
.journey-card .journey-info h5 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1.1rem;
}
.journey-card .journey-info small {
    color: var(--sage);
    display: flex; gap: 12px; font-size: 0.8rem;
}

/* ---------- Feature grid (What makes us different / Growing with you) ---------- */
.feature-tile { text-align: center; padding: 10px; }
.feature-tile .feature-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--cream);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    color: var(--muted-green);
    font-size: 1.4rem;
}
.feature-tile h6 {
    font-weight: 700;
    color: var(--dark-olive);
    margin-bottom: 6px;
}
.feature-tile p {
    color: var(--olive);
    font-size: 0.86rem;
    margin: 0;
}

/* ---------- Quote banner ---------- */
.quote-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 70px 30px;
    text-align: center;
    background: radial-gradient(ellipse at center, #2a3318 0%, var(--forest) 75%);
}
.quote-banner blockquote {
    color: var(--white);
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 500;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ---------- Founder / note card ---------- */
.note-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(16,18,7,0.06);
}
.note-avatar {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--sage), var(--muted-green));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 600;
    flex-shrink: 0;
}
.note-card p { color: var(--dark-olive); line-height: 1.7; }
.note-card .signature { font-size: 1.6rem; color: var(--earth); }

/* ---------- Category cards (categories.php / home reuse) ---------- */
.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(16,18,7,0.12);
}
.category-card img { height: 170px; width: 100%; object-fit: cover; }
.category-card .card-body { padding: 18px; }
.category-card h5 { color: var(--dark-olive); font-weight: 700; font-family: 'Fraunces', serif; }
.category-card p { color: var(--olive); font-size: 14px; }
.category-card .badge { background-color: var(--sage); color: var(--forest); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn-brand {
    background-color: var(--sage);
    color: var(--forest);
    border: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.2s;
}
.btn-brand:hover { background-color: var(--muted-green); color: var(--white); }
.btn-outline-brand {
    border: 1.5px solid var(--gold);
    color: var(--earth);
    font-weight: 600;
    background: transparent;
    border-radius: 30px;
}
.btn-outline-brand:hover { background-color: var(--gold); color: var(--white); }

/* ---------- Music rows (category page) ---------- */
.music-item {
    background: var(--white);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}
.music-item .music-info h6 { margin: 0; color: var(--dark-olive); font-weight: 700; }
.music-item .music-info small { color: var(--olive); }
.music-item audio { height: 36px; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(16,18,7,0.08);
}
.form-card h3 { color: var(--dark-olive); font-weight: 700; }
.form-control { border-radius: 10px; border-color: rgba(84,79,49,0.18); }
.form-control:focus { border-color: var(--sage); box-shadow: 0 0 0 0.2rem rgba(169,183,154,0.3); }

/* ---------- Inner page hero (category / list pages) ---------- */
.page-banner {
    background: var(--forest);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.page-banner h2 { color: var(--white); font-weight: 600; margin-bottom: 6px; }
.page-banner p { color: var(--sage); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--dark-olive); color: var(--white); padding-top: 55px; }
.site-footer h5 { color: var(--gold); font-weight: 700; margin-bottom: 18px; font-family: 'Fraunces', serif; }
.site-footer a { color: var(--sage); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer p { color: rgba(255,255,255,0.75); }

.footer-brandbar {
    background: var(--forest);
    margin-top: 45px;
    padding: 18px 0;
}
.footer-brandbar .brand-word {
    color: var(--gold);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.15rem;
}
.footer-brandbar .brand-tag {
    color: var(--sage);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-brandbar .social-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--white);
    margin-left: 8px;
    text-decoration: none;
}
.footer-brandbar .social-icon:hover { background: var(--sage); color: var(--forest); }

@media (max-width: 767px) {
    .hero-content h1 { font-size: 2.2rem; }
    .quote-banner blockquote { font-size: 1.3rem; }
    .note-card { padding: 26px; }
    .note-card .d-flex { flex-direction: column; text-align: center; }
}
