/* =========================================================
   Dolce Music Institute — main stylesheet
   One file for the whole site. Sections:
   1. Variables & reset      6. Home page sections
   2. Typography & helpers   7. Instrument & course pages
   3. Buttons                8. Footer
   4. Header & navigation    9. Lightbox, reviews, guitar shop,
   5. Heroes                    floating buttons, fade-in
                            10. Responsive
   ========================================================= */

/* 1. Variables & reset ----------------------------------- */
:root {
    --brand: #D2691E;
    --brand-dark: #8B4513;
    --gold: #FFC83D;
    --ink: #2C1810;
    --text: #4A3B33;
    --muted: #7A6A60;
    --cream: #F8F0E8;
    --paper: #FFFAF4;
    --white: #FFFFFF;
    --dark: #141110;
    --dark-2: #1F1915;
    --line: #EADBCB;
    --surface: #FFFFFF;
    --heading: #2C1810;
    --accent-text: #8B4513;

    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 12px;
    --shadow: 0 4px 18px rgba(44, 24, 16, 0.08);
    --shadow-lg: 0 12px 32px rgba(44, 24, 16, 0.16);
    --header-h: 72px;
    --container: 1200px;
    color-scheme: light;
}

/* Dark theme: follows the phone/computer setting, or the toggle button */
:root[data-theme="dark"] {
    --text: #D6CBC2;
    --muted: #A99C92;
    --cream: #1E1814;
    --paper: #17120F;
    --surface: #261F1A;
    --heading: #F5ECE4;
    --accent-text: #E59A5C;
    --line: #3A2F28;
    --dark: #0E0B09;
    --dark-2: #1C1613;
    --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text: #D6CBC2;
        --muted: #A99C92;
        --cream: #1E1814;
        --paper: #17120F;
        --surface: #261F1A;
        --heading: #F5ECE4;
    --accent-text: #E59A5C;
        --line: #3A2F28;
        --dark: #0E0B09;
        --dark-2: #1C1613;
        --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

/* Smooth fade between pages in browsers that support it */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent-text); }

ul { list-style: none; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 2. Typography & helpers -------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--heading);
    line-height: 1.25;
}

h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p + p { margin-top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.section { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); color: #D9CFC7; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header p { max-width: 640px; margin: 1rem auto 0; color: var(--muted); }
.section--dark .section-header p { color: #B9ADA4; }

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--brand);
}

.section-divider::before,
.section-divider::after {
    content: "";
    width: 70px;
    height: 2px;
    background: var(--brand);
    opacity: 0.6;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--gold);
    color: var(--ink);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.check-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--brand);
    font-size: 0.9rem;
}

/* 3. Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); color: var(--white); }

.btn-secondary { border-color: var(--white); color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--ink); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFB300; color: var(--ink); }


/* 4. Header & navigation ---------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(20, 17, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s, box-shadow 0.3s, transform 0.35s ease;
}

.site-header.header-hidden { transform: translateY(-100%); }

.site-header.scrolled {
    background: rgba(20, 17, 16, 0.96);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.logo {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.logo:hover { color: var(--white); }
.logo i { color: var(--brand); font-size: 1.2rem; }
.logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #CDBFB4;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; order: 2; }

.nav-links a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    color: #EFE6DF;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(255, 255, 255, 0.06); }

.nav-toggle {
    order: 4;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--white);
    font-size: 1.4rem;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* 5. Heroes ------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 2rem) 1rem 4rem;
    text-align: center;
    color: var(--white);
    background: url('../images/hero/guitar.webp') center / cover no-repeat;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 7, 0.55) 0%, rgba(10, 8, 7, 0.75) 100%);
}

.hero-content { position: relative; max-width: 820px; }

.hero-preheading {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 200, 61, 0.5);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    margin-bottom: 1.25rem;
}

.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: #EFE6DF; max-width: 640px; margin-inline: auto; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold); line-height: 1.2; }
.hero-stats span { font-size: 0.85rem; color: #CDBFB4; }

/* Banner at the top of inner pages */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 4rem) 1rem 4rem;
    text-align: center;
    color: var(--white);
    background: var(--dark) center / cover no-repeat;
}

.page-hero > * { position: relative; }

.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.75rem; }
.page-hero p { color: #EFE6DF; max-width: 640px; margin-inline: auto; font-size: 1.1rem; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #CDBFB4;
}

.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: var(--white); }

/* 6. Home page sections ------------------------------------ */

/* Benefits */
.benefits { padding: 4rem 0; background: var(--cream); }

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--surface);
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.benefit-card i { font-size: 2.4rem; color: var(--brand); margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.benefit-card p { color: var(--muted); font-size: 0.95rem; }

/* Course cards (home page and guitar courses page) */
.course-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}

.course-item {
    flex: 1 1 300px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    background: var(--dark-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-item:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }

.course-image { aspect-ratio: 4 / 3; overflow: hidden; }

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-item:hover .course-image img { transform: scale(1.06); }

.course-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    text-align: center;
}

.course-body h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 0.5rem; }
.course-body p { color: #CFC4BB; font-size: 0.95rem; flex: 1; margin-bottom: 1.25rem; }
.course-body .btn { align-self: center; }

/* Light variant used on the guitar courses page */
.course-grid--light .course-item { background: var(--surface); box-shadow: var(--shadow); }
.course-grid--light .course-item:hover { box-shadow: var(--shadow-lg); }
.course-grid--light .course-body h3 { color: var(--heading); }
.course-grid--light .course-body p { color: var(--muted); }

/* About — institute */
.institute-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.institute-intro h3 { margin-bottom: 1rem; }

.mission-box {
    background: var(--cream);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    padding: 2rem;
}

.mission-box h3 { margin-bottom: 1rem; }

/* About — instructor */
.instructor-profile {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.instructor-image { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.instructor-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.profile-content h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.profile-content h4 { color: var(--brand); margin: 2rem 0 0.5rem; }

.instructor-quote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--cream);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--heading);
}

.instructor-details { margin-top: 3rem; }
.instructor-details > h3 { text-align: center; margin: 0 0 1.5rem; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--brand);
}

.skill-category h4 { margin-bottom: 1rem; }

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dark-2);
    box-shadow: var(--shadow);
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; }
.gallery-item:hover img { transform: scale(1.06); opacity: 0.9; }

/* Fees */
.fee-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

/* let grid columns shrink so the table scrolls instead of widening the page */
.fee-content > *,
.institute-intro > *,
.instructor-profile > * { min-width: 0; }

.fee-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.fee-card > h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.fee-card > h3 i { color: var(--brand); font-size: 1.2rem; }

.table-wrap { overflow-x: auto; border-radius: 8px; }

.fees-table { width: 100%; border-collapse: collapse; }

.fees-table th,
.fees-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.fees-table td small,
.fee-card h3 small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; color: var(--muted); }

.fees-table th {
    background: var(--ink);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.fees-table td:last-child,
.fees-table th:last-child { text-align: right; white-space: nowrap; }

.fees-table td:last-child { font-weight: 600; color: var(--accent-text); }
.fees-table tbody tr:nth-child(even) { background: var(--paper); }

.fee-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

.instrument-requirements { margin-top: 2rem; }
.instrument-requirements h3,
.exam-books h3 { font-size: 1.3rem; margin-bottom: 1rem; }

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.requirement-card {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--cream);
    border-radius: 10px;
}

.requirement-card .req-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; }
.requirement-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.requirement-card p { font-size: 0.85rem; color: var(--muted); }

.exam-books { margin-top: 2rem; }
.exam-books .check-list { margin-top: 0.75rem; }

/* FAQ */
.faq-list { max-width: 820px; margin-inline: auto; }

.faq-item {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item h3 { font-size: inherit; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 0;
    background: none;
    text-align: left;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading);
}

.faq-question i { color: var(--brand); transition: transform 0.3s; flex-shrink: 0; }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-question:hover { color: var(--brand); }

.faq-answer { padding: 0 1.5rem 1.5rem; color: var(--muted); }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.contact-box {
    background: var(--dark-2);
    padding: 2rem;
    border-radius: var(--radius);
    border-top: 4px solid var(--brand);
}

.contact-box h3 { margin-bottom: 1.25rem; font-size: 1.35rem; }

.contact-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-row i { color: var(--brand); width: 20px; margin-top: 0.3rem; text-align: center; }
.contact-row a { color: #EFE6DF; }
.contact-row address { font-style: normal; }
.contact-row a:hover { color: var(--gold); }

.timing-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.timing-row strong { color: var(--white); font-weight: 500; }

.holiday-note { margin-top: 1rem; font-size: 0.85rem; color: #A99C92; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.map-wrap {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 7;
    background: var(--dark-2);
}

.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 7. Instrument & course pages ----------------------------- */
.course-content { padding: 4rem 0; }

.course-description > h2 { text-align: center; margin-bottom: 2.5rem; }

.info-block {
    background: var(--surface);
    padding: 2.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.info-block > h2,
.info-block > h3 { margin-bottom: 1rem; }
.info-block > h2,
.info-block > h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--accent-text); }
.info-block h4 { margin: 1.5rem 0 0.75rem; color: var(--heading); }
.info-block p { margin-bottom: 1rem; }

/* Standard bullet lists inside content blocks */
.info-block ul:not(.technique-list) { margin: 0.5rem 0 1rem; }

.info-block ul:not(.technique-list) li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
}

.info-block ul:not(.technique-list) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.info-block ul ul { margin: 0.5rem 0 0.5rem; }
.info-block ul ul li::before { background: transparent; border: 2px solid var(--brand); }

/* Intro with highlight cards */
.intro-content { display: grid; gap: 1.5rem; }

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
}

.highlight-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--cream);
    border-radius: 10px;
}

.highlight-card .icon { font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; }
.highlight-card h4 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.highlight-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Technique lists */
.techniques-grid,
.styles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}

.technique-category,
.style-column {
    padding: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.technique-category h4,
.style-column h4 { margin: 0 0 1rem; color: var(--accent-text); }

.technique-list li {
    display: flex;
    gap: 0.6rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px dashed var(--line);
}

.technique-list li:last-child { border-bottom: 0; }
.technique-icon { color: var(--brand); font-size: 0.7rem; }

.style-card { display: flex; gap: 1rem; align-items: flex-start; }
.style-icon { font-size: 1.8rem; line-height: 1; }
.style-details h5 { margin-bottom: 0.5rem; }

/* Curriculum / syllabus */
.curriculum > h4 { margin-top: 1.5rem; }

.lesson-block { margin-top: 1.5rem; }

.lesson-block > h5 {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: var(--brand);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.lesson-block.intermediate > h5 { background: var(--brand-dark); }
.lesson-block.advanced > h5 { background: var(--ink); }

.lesson-block,
.course-syllabus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }

.lesson-block > h5,
.course-syllabus > h2 { grid-column: 1 / -1; justify-self: start; }

.course-syllabus > h2 { margin-bottom: 0.5rem; }

.lesson {
    padding: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
}

.lesson h3,
.lesson h6 { font-size: 1.02rem; margin-bottom: 0.6rem; color: var(--heading); }
.info-block .lesson ul { margin: 0; }
.lesson li { font-size: 0.92rem; }

/* Course levels (instrument pages) */
.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1rem;
}

.level-card { padding: 1.5rem; border-radius: 10px; background: var(--paper); border-top: 4px solid var(--brand); }
.level-card.intermediate { border-top-color: var(--brand-dark); }
.level-card.advanced { border-top-color: var(--ink); }
.level-card h4 { margin-top: 0; }

/* Call to action at the end of course pages */
.course-cta {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 1rem;
    border-radius: var(--radius);
    color: #EFE6DF;
    background: linear-gradient(135deg, var(--ink), var(--brand-dark));
}

.course-cta h3 { color: var(--white); margin-bottom: 0.75rem; }
.course-cta p { max-width: 560px; margin: 0 auto 1.5rem; }
.course-cta .btn + .btn { margin-left: 0.5rem; }

/* 8. Footer -------------------------------------------------- */
.site-footer { background: var(--dark); color: #B9ADA4; padding: 4rem 0 0; font-size: 0.92rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 2.5rem;
}

.site-footer h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer .logo { margin-bottom: 1rem; }
.site-footer a { color: #D9CFC7; }
.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 0.4rem; }
.footer-contact li { display: flex; gap: 0.75rem; margin-bottom: 0.7rem; }
.footer-contact i { color: var(--brand); width: 16px; margin-top: 0.3rem; text-align: center; }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-link i { font-size: 1.3rem; }

.footer-bottom {
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.85rem;
}

/* 9. Lightbox ------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; width: auto; border-radius: 8px; }

.lightbox button {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1.3rem;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Reviews ------------------------------------------------------ */
.rating-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.rating-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.rating-card .score {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}

.stars { color: #F5A623; letter-spacing: 0.15em; margin: 0.5rem 0; font-size: 1.05rem; }
.rating-card p { color: var(--muted); font-size: 0.9rem; }
.rating-card strong { color: var(--heading); font-weight: 600; }

.review-card {
    position: relative;
    padding: 2rem 1.75rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--brand);
}

.review-card::before {
    content: "\201C";
    position: absolute;
    top: -0.2rem;
    right: 1.25rem;
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--brand);
    opacity: 0.2;
}

.review-card blockquote { font-family: var(--font-head); font-size: 1.1rem; font-style: italic; color: var(--heading); }
.review-card figcaption { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

.section-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* Custom guitars & repairs --------------------------------------- */
.shop-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.shop-intro > * { min-width: 0; }
.shop-intro h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.shop-intro p { color: #CFC4BB; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

.shop-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.shop-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.shop-photos img:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.shop-photos img:not(:first-child) { aspect-ratio: 4 / 3; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
}

.service-card {
    padding: 1.75rem;
    background: var(--dark-2);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover { transform: translateY(-4px); border-color: rgba(210, 105, 30, 0.6); }
.service-card i { font-size: 1.6rem; color: var(--brand); margin-bottom: 0.9rem; }
.service-card h4 { color: var(--white); margin-bottom: 0.4rem; }
.service-card p { color: #B9ADA4; font-size: 0.92rem; }

.brand-line { margin-top: 2rem; text-align: center; color: #A99C92; font-size: 0.9rem; }

/* Gallery captions ------------------------------------------------ */
.gallery-item { position: relative; }

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1rem 0.8rem;
    background: linear-gradient(transparent, rgba(10, 8, 7, 0.85));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
}

.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; max-width: 100%; }
.lightbox figcaption { color: #EFE6DF; font-size: 0.95rem; text-align: center; }

/* Floating buttons ------------------------------------------------- */
.whatsapp-float,
.back-to-top {
    position: fixed;
    right: 1.25rem;
    z-index: 900;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
}

.whatsapp-float {
    bottom: 1.25rem;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: var(--white);
    font-size: 1.9rem;
}

.whatsapp-float:hover { color: var(--white); transform: scale(1.08); }

.back-to-top {
    bottom: calc(1.25rem + 70px);
    width: 46px;
    height: 46px;
    border: 0;
    background: var(--ink);
    color: var(--gold);
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand); color: var(--white); }

/* Fade-in on scroll (only when JavaScript runs and motion is allowed) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Theme toggle button (header) ------------------------------------- */
.theme-toggle {
    order: 3;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    font-size: 1rem;
    transition: background 0.2s, transform 0.3s;
}

.theme-toggle:hover { background: rgba(255, 255, 255, 0.08); transform: rotate(20deg); }

/* Reading progress bar (course pages) ------------------------------ */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
}

/* Reviews slider ----------------------------------------------------- */
.review-slider { position: relative; max-width: 820px; margin-inline: auto; }

.review-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: var(--radius);
}

.review-track::-webkit-scrollbar { display: none; }

.review-track .review-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    text-align: center;
    padding: 2.75rem 3.5rem 2rem;
    box-shadow: none;
    border: 1px solid var(--line);
}

.review-track .review-card blockquote { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.5; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--shadow);
    transition: background 0.2s, color 0.2s;
}

.slider-btn:hover { background: var(--brand); color: var(--white); }
.slider-prev { left: -22px; }
.slider-next { right: -22px; }

.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }

.slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50px;
    background: var(--line);
    transition: width 0.3s, background 0.3s;
}

.slider-dots button[aria-current="true"] { width: 28px; background: var(--brand); }

/* Gallery filters ---------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2rem; }

.filter-btn {
    padding: 0.5rem 1.3rem;
    border: 2px solid var(--brand);
    border-radius: 50px;
    background: transparent;
    color: var(--accent-text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn[aria-pressed="true"] { background: var(--brand); color: var(--white); }

.gallery-item[hidden] { display: none; }

/* Before / after slider (repairs) ----------------------------------- */
.ba-slider {
    position: relative;
    max-width: 820px;
    margin: 3rem auto 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
    --pos: 50%;
}

.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--pos)); }

.ba-slider .ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    background: var(--white);
    transform: translateX(-50%);
    pointer-events: none;
}

.ba-slider .ba-handle::after {
    content: "\f337";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
}

.ba-slider input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: 1rem; padding: 0.3rem 0.8rem; border-radius: 50px; background: rgba(0, 0, 0, 0.6); color: var(--white); font-size: 0.8rem; }
.ba-label.before { left: 1rem; }
.ba-label.after { right: 1rem; }

/* Language links (footer) ------------------------------------------- */
.lang-links { margin-top: 1rem; font-size: 0.88rem; }
.lang-links a { margin-right: 0.75rem; }

/* Mobile action bar --------------------------------------------------- */
.mobile-actions { display: none; }

/* 404 page */
.not-found { min-height: 80vh; display: grid; place-content: center; }
.page-hero .not-found-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--gold); margin-bottom: 0.5rem; }

/* 10. Responsive --------------------------------------------- */
@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav-links {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        background: rgba(20, 17, 16, 0.98);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
        display: none;
    }

    .nav-links.open { display: flex; }
    .theme-toggle { margin-left: 0; margin-right: 0.25rem; }
    .nav-links a { padding: 0.85rem 1rem; font-size: 1rem; }

    .institute-intro,
    .shop-intro,
    .fee-content,
    .footer-grid { grid-template-columns: 1fr; }

    .instructor-profile { grid-template-columns: 1fr; padding: 1.75rem; }
    .instructor-image { position: static; max-width: 340px; margin-inline: auto; }
}

@media (max-width: 600px) {
    :root { --header-h: 64px; }

    .section { padding: 3.5rem 0; }
    .logo { font-size: 1.15rem; }
    .logo small { display: none; }
    .hero-stats { gap: 1rem 2rem; }
    .hero-stats strong { font-size: 1.5rem; }
    .info-block, .fee-card, .contact-box, .mission-box { padding: 1.5rem; }
    .map-wrap { aspect-ratio: 4 / 3; }
    .fees-table th, .fees-table td { padding: 0.75rem 0.6rem; font-size: 0.88rem; }
    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; }
    .course-cta .btn + .btn { margin: 0.75rem 0 0; }
    .rating-cards { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .rating-card { padding: 1.1rem 0.4rem; }
    .rating-card .score { font-size: 1.8rem; }
    .rating-card .stars { font-size: 0.7rem; letter-spacing: 0; }
    .rating-card p { font-size: 0.72rem; line-height: 1.4; }

    /* bottom bar with Call / WhatsApp / Directions replaces the floating WhatsApp button */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .whatsapp-float { display: none; }
    .back-to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }

    .mobile-actions {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 950;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(20, 17, 16, 0.97);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    }

    .mobile-actions a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        height: 64px;
        color: #EFE6DF;
        font-size: 0.75rem;
        font-weight: 500;
    }

    .mobile-actions a i { font-size: 1.25rem; color: var(--gold); }
    .mobile-actions a.wa i { color: #25D366; }

    .review-track .review-card { padding: 2.25rem 1.5rem 1.75rem; }
    .slider-btn { display: none; }
}
