/* ============================================================
   Jonathan Wright Music — stylesheet
   ============================================================ */

/* 1. Variables
   ---------------------------------------------------------- */
:root {
    --bg:           #ffffff;
    --bg-alt:       #fdf2f4;
    --bg-dark:      #0a0f1e;
    --text:         #0f1117;
    --text-muted:   #5a6070;
    --accent:       #e0475b;
    --accent-dark:  #c4334a;
    --border:       rgba(0, 0, 0, 0.09);
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --width:        750px;
    --gap:          clamp(24px, 4vw, 60px);
    --nav-h:        110px;
    --radius:       4px;
    --ease:         0.2s ease;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1.7rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* 3. Utilities
   ---------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* 4. Navigation
   ---------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: auto;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

.nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    max-width: var(--width);
    margin: 0 auto;
    padding: 2rem var(--gap);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 3.2rem;
}

.nav-links a {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Buttons
   ---------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 1.4rem 3.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 71, 91, 0.35);
}

.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.85);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* 6. Hero (home page)
   ---------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/header.jpg');
    background-size: cover;
    background-position: center 30%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 30, 0.6) 0%,
        rgba(10, 15, 30, 0.45) 50%,
        rgba(10, 15, 30, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: calc(var(--nav-h) + 60px) var(--gap) 80px;
}

.hero-eyebrow {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2.4rem;
}

.hero h1 {
    font-size: clamp(3.8rem, 6vw, 6.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 2.4rem;
}

.hero-sub {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 580px;
    margin: 0 auto 4.8rem;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 1.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 7. Logos strip
   ---------------------------------------------------------- */
.logos-section {
    padding: 6rem 0;
    background: var(--bg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logos-label {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3.2rem;
}

.logos-img {
    max-width: 100%;
    margin: 0 auto;
    opacity: 0.65;
    filter: grayscale(1);
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.logos-img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 8. Page header (inner pages)
   ---------------------------------------------------------- */
.page-header {
    padding: calc(var(--nav-h) + 7rem) var(--gap) 5.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(3.4rem, 5vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.6rem;
}

.page-header p {
    font-size: 1.8rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* 9. General section
   ---------------------------------------------------------- */
.section {
    padding: 8rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

/* 10. Music page
   ---------------------------------------------------------- */
.music-intro {
    font-size: 1.8rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 4rem;
    line-height: 1.7;
}

.soundcloud-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 6rem;
    border: 1px solid var(--border);
}

.soundcloud-wrap iframe {
    display: block;
    width: 100%;
    border: none;
}

.licensing-intro {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 3.2rem;
    line-height: 1.7;
}

.licensing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    margin-bottom: 4rem;
}

.licensing-card {
    padding: 3.2rem 2.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.licensing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.licensing-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.licensing-card p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.licensing-note {
    font-size: 1.6rem;
    color: var(--text-muted);
}

.licensing-note a {
    color: var(--text);
    border-bottom: 1px solid var(--accent);
    transition: color var(--ease);
}

.licensing-note a:hover {
    color: var(--accent);
}

/* 11. Video page
   ---------------------------------------------------------- */
.video-list {
    display: flex;
    flex-direction: column;
    gap: 6.4rem;
}

.video-item {}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.8rem;
}

.video-item p {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 12. Testimonials
   ---------------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.2rem;
}

.testimonial-card {
    padding: 4.8rem 4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: box-shadow var(--ease), transform var(--ease);
}

.testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.testimonial-quote-mark {
    font-size: 7rem;
    line-height: 1;
    color: var(--accent);
    font-family: Georgia, serif;
    opacity: 0.35;
    margin-bottom: 1.6rem;
    display: block;
}

.testimonial-card blockquote {
    font-size: 1.8rem;
    line-height: 1.75;
    font-style: italic;
    color: var(--text);
    margin-bottom: 3.2rem;
}

.testimonial-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 2rem;
}

.testimonial-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.testimonial-role {
    font-size: 1.4rem;
    color: var(--text-muted);
}

/* 13. Contact
   ---------------------------------------------------------- */
.contact-body {
}

.contact-body p {
    font-size: 1.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 4rem;
}

.contact-email-link {
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3rem;
    transition: color var(--ease);
}

.contact-email-link:hover {
    color: var(--accent);
}

/* 14. Privacy
   ---------------------------------------------------------- */
.prose {
    max-width: 720px;
}

.prose h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 4rem 0 1.2rem;
    letter-spacing: -0.01em;
}

.prose p {
    font-size: 1.7rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.prose a {
    color: var(--text);
    border-bottom: 1px solid var(--accent);
    transition: color var(--ease);
}

.prose a:hover {
    color: var(--accent);
}

/* 15. Footer
   ---------------------------------------------------------- */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
}

.footer-copy {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2.4rem;
    align-items: center;
}

.footer-links a {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: color var(--ease);
}

.footer-links a:hover {
    color: var(--text);
}

/* 16. Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .licensing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .nav-links {
        display: none;
        position: fixed;
        inset: var(--nav-h) 0 0 0;
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3.6rem;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 2rem;
        letter-spacing: 0.08em;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .licensing-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }
}
