/* ============================================
   Walter's Woodwind Shop — Styles
   Classic & Elegant · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #059669;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
    --text-dark: #1a1a1a;
    --text-body: #2d2d2d;
    --text-muted: #5c5c5c;
    --text-light: #f5f0e8;
    --gold: #b8860b;
    --gold-light: #d4a843;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--emerald-600);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--emerald-700);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--emerald-800);
    color: var(--cream);
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 1000;
    font-family: var(--font-body);
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--emerald-800);
    line-height: 1.25;
    font-weight: 700;
}

/* ---------- Section Utilities ---------- */
.section {
    padding: 96px 0;
}

.section-alt {
    background-color: var(--cream-light);
}

.section-header {
    margin-bottom: 64px;
}

.section-header.center {
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--gold);
    transform: translateY(-50%);
}

.section-header.center .section-label {
    padding-left: 0;
}

.section-header.center .section-label::before {
    display: none;
}

.section-header.center .section-label::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin-bottom: 16px;
    color: var(--emerald-800);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--cream);
    border-color: var(--emerald-700);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(245, 240, 232, 0.6);
}

.btn-outline-light:hover {
    background: rgba(245, 240, 232, 0.12);
    border-color: var(--cream);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-700);
}

.btn-outline-dark:hover {
    background: var(--emerald-700);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--emerald-800);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--emerald-700);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--emerald-700);
    background: rgba(6, 78, 59, 0.06);
}

.nav-cta {
    background: var(--emerald-700) !important;
    color: var(--cream) !important;
    font-weight: 600 !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--emerald-800) !important;
    color: var(--cream) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 2px;
    background: var(--emerald-800);
    box-shadow: 0 -7px 0 var(--emerald-800), 0 7px 0 var(--emerald-800);
    transition: all var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    box-shadow: 0 0 0 transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 22px;
    height: 2px;
    background: var(--emerald-800);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--emerald-900) 0%,
        #0a3d2f 25%,
        #0d4f3d 40%,
        #1a6b4f 55%,
        #0f5c42 70%,
        var(--emerald-800) 85%,
        #032720 100%
    );
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(184, 134, 11, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(5, 150, 105, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(6, 78, 59, 0.3) 0%, transparent 70%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f5f0e8' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
}

.hero-greeting {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gold-light);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.75rem);
    color: var(--cream);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(245, 240, 232, 0.85);
    line-height: 1.75;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-address {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.55);
    letter-spacing: 0.04em;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--emerald-700);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.15;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-body);
    font-size: 1rem;
}

.about-text p:first-child {
    font-size: 1.05rem;
    color: var(--text-dark);
}

/* ========== INSTRUMENTS ========== */
.instrument-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.instrument-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(6, 78, 59, 0.06);
}

.instrument-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.instrument-img-wrap {
    overflow: hidden;
    height: 200px;
}

.instrument-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.instrument-card-body {
    padding: 24px;
}

.instrument-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--emerald-800);
}

.instrument-card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    border: 1px solid rgba(6, 78, 59, 0.06);
    transition: all var(--transition);
}

.service-card:hover {
    background: var(--cream);
    border-color: rgba(6, 78, 59, 0.12);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--emerald-700), var(--emerald-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--cream);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--emerald-800);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== VISIT ========== */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.visit-info .section-subtitle {
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 78, 59, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--emerald-700);
}

.contact-item dt {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 4px;
}

.contact-item dd {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

.contact-item dd a {
    color: var(--text-body);
}

.contact-item dd a:hover {
    color: var(--emerald-700);
    text-decoration: underline;
}

.contact-item dd br {
    display: none;
}

.visit-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.visit-map {
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--emerald-900);
    color: rgba(245, 240, 232, 0.7);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-brand .logo-text {
    color: var(--cream);
}

.footer-brand .logo-icon {
    color: var(--gold-light);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--cream);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(245, 240, 232, 0.7);
}

.footer-contact a:hover {
    color: var(--cream);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(245, 240, 232, 0.4);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--emerald-700);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(245, 240, 232, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 16px 24px 24px;
        border-bottom: 1px solid rgba(6, 78, 59, 0.08);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        min-height: 100svh;
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrap img {
        height: 320px;
    }

    .about-accent {
        display: none;
    }

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

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

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

    .gallery-item img {
        height: 200px;
    }

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .visit-map {
        min-height: 300px;
    }

    .contact-item dd br {
        display: block;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .visit-cta {
        flex-direction: column;
    }

    .visit-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

    .hero-actions {
        gap: 12px;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .back-to-top {
        transition: none;
    }
}
