/* ─────────────────────────────────────────────────────────────
   Music For A Song — Styles
   Palette: Emerald (#047857) + Cream (#FAF8F5)
   Fonts: Instrument Sans (body) + Outfit (display)
──────────────────────────────────────────────────────────── */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Instrument Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #1a2e28;
    background: #FAF8F5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: .5rem 1rem;
    background: #047857;
    color: #fff;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-size: .875rem;
}
.skip-link:focus { top: 0; }

/* ── UTILITY ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #047857;
    margin-bottom: .75rem;
}

.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: #1a2e28;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: #4a6358;
    line-height: 1.7;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.75rem;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .9375rem;
    letter-spacing: .01em;
    transition: all .25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: #047857;
    color: #fff;
}
.btn--primary:hover {
    background: #035c44;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4,120,87,.3);
}

.btn--light {
    background: #fff;
    color: #047857;
}
.btn--light:hover {
    background: #f0faf5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,.2);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
}
.btn--ghost:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
}

.btn--outline {
    background: transparent;
    color: #047857;
    border: 1.5px solid #047857;
}
.btn--outline:hover {
    background: #047857;
    color: #fff;
    transform: translateY(-2px);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 1.5rem;
    transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
    background: rgba(250,248,245,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4,120,87,.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #1a2e28;
}

.logo-icon {
    color: #047857;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-size: .9375rem;
    font-weight: 500;
    color: #4a6358;
    transition: color .2s ease;
    position: relative;
}

.site-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #047857;
    transition: width .25s ease;
}

.site-nav a:not(.btn):hover { color: #047857; }
.site-nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    background: #1a2e28;
    border-radius: 2px;
    transition: all .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #022c22 0%,
        #047857 35%,
        #059669 60%,
        #34d399 85%,
        #6ee7b7 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 60% 40%,
        rgba(5,150,105,.4) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    padding: 8rem 1.5rem 4rem;
    max-width: 780px;
}

.hero-eyebrow {
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.8);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.5);
    font-size: .6875rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: .4; transform: scaleY(.6); }
}

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 6/7;
    background: #e8f5ee;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.about-image-wrap:hover img {
    transform: scale(1.03);
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    color: #4a6358;
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1rem;
    color: #1a2e28;
    font-weight: 500;
}

.about-features svg {
    color: #047857;
    flex-shrink: 0;
}

/* ── INSTRUMENTS ────────────────────────────────────────────── */
.instruments {
    background: #f3f7f4;
}

.instrument-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.instrument-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(4,120,87,.06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: block;
}

.instrument-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(4,120,87,.12);
}

.instrument-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.instrument-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.instrument-card:hover .instrument-card-img img {
    transform: scale(1.05);
}

.instrument-card-body {
    padding: 1.5rem;
}

.instrument-card-body h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a2e28;
    margin-bottom: .5rem;
}

.instrument-card-body p {
    font-size: .9375rem;
    color: #4a6358;
    line-height: 1.65;
}

/* ── SERVICES ───────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(4,120,87,.12);
    border-radius: 20px;
    transition: all .3s ease;
    background: transparent;
}

.service-card:hover {
    border-color: #047857;
    background: #fff;
    box-shadow: 0 12px 32px rgba(4,120,87,.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(4,120,87,.08);
    color: #047857;
    margin-bottom: 1.5rem;
    transition: background .3s ease;
}

.service-card:hover .service-icon {
    background: #047857;
    color: #fff;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a2e28;
    margin-bottom: .75rem;
}

.service-card p {
    font-size: .9375rem;
    color: #4a6358;
    line-height: 1.7;
}

/* ── VISIT ──────────────────────────────────────────────────── */
.visit {
    background: #047857;
    color: #fff;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.visit .label { color: rgba(255,255,255,.6); }

.visit .section-title {
    color: #fff;
    text-align: left;
}

.contact-list {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 1rem;
}

.contact-item dt {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .9375rem;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contact-item dd {
    font-size: 1.0625rem;
    color: #fff;
    line-height: 1.7;
    padding-left: 2.75rem;
}

.contact-item a {
    color: #6ee7b7;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color .2s ease;
}
.contact-item a:hover { color: #a7f3d0; }

.visit-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.visit-actions .btn--outline {
    border-color: rgba(255,255,255,.4);
    color: #fff;
}
.visit-actions .btn--outline:hover {
    background: #fff;
    color: #047857;
    border-color: #fff;
}

.visit-map {
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: #022c22;
    color: rgba(255,255,255,.6);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand .logo {
    color: #fff;
    justify-content: center;
    margin-bottom: .5rem;
}

.footer-brand p {
    font-size: .9375rem;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    font-size: .9375rem;
    color: rgba(255,255,255,.5);
    transition: color .2s ease;
}

.footer-links a:hover { color: #6ee7b7; }

.footer-copy {
    font-size: .8125rem;
    color: rgba(255,255,255,.3);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .instrument-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 5rem 0; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,248,245,.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.5rem;
        border-bottom: 1px solid rgba(4,120,87,.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all .35s ease;
        pointer-events: none;
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav .btn {
        width: 100%;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content .section-title { text-align: center; }
    .about-content { text-align: center; }
    .about-features { align-items: center; }

    .instrument-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    .visit-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .visit .section-title { text-align: center; }
    .visit-actions { justify-content: center; }
    .visit-map { min-height: 300px; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; max-width: 280px; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .hero-inner { padding: 7rem 1.25rem 4rem; }
    .service-card { padding: 2rem 1.5rem; }
}
