/* ===========================================================
   Louder Music School — modern, mobile-first stylesheet
   =========================================================== */

:root {
    --bg:          #14132A;
    --bg-soft:     #1B1A38;
    --surface:     #232048;
    --surface-2:   #2B2752;
    /* --cream* păstrează numele, dar înseamnă acum accentul coral */
    --cream:       #FF7E6B;
    --cream-bright:#FF9C8C;
    --cream-deep:  #F4775F;
    --accent2:     #8B8CF0;
    --accent2-soft:#A7A8F4;
    --text:        #ECECF6;
    --muted:       #B6B4D6;
    --line:        rgba(255, 255, 255, 0.08);
    --shadow-lg:   0 22px 55px -18px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 14px 40px -14px rgba(255, 126, 107, 0.5);
    --glass:       rgba(255, 255, 255, 0.05);
    --glass-line:  rgba(255, 255, 255, 0.12);
    --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    font-weight: 400;
    padding-top: 90px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

/* Editorial display font for every heading */
h1, h2, h3, .hero-title {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
    letter-spacing: -0.015em;
}

/* Fluid heading sizes so nothing overflows on mobile */
section h2 {
    font-size: clamp(1.7rem, 5vw, 2.5rem) !important;
    line-height: 1.15;
}

/* ----------------------------- Navbar ----------------------------- */
.navbar {
    background: rgba(20, 19, 42, 0.72) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: padding 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.navbar.navbar-shrink {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    background: rgba(16, 15, 32, 0.92) !important;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

.logo {
    height: 100px;
    width: auto;
    margin-right: 16px;
    transition: height 0.35s var(--ease);
}
.navbar.navbar-shrink .logo { height: 58px; }

.nav-link {
    position: relative;
    color: var(--muted) !important;
    font-weight: 500;
    font-size: 1.05rem;
    margin-right: 1.1rem;
    transition: color 0.25s var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active,
.nav-link:hover { color: #fff !important; }

.navbar-dark .navbar-toggler { border-color: var(--cream); }
.navbar-dark .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='%23FF7E6B' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ----------------------------- Buttons ----------------------------- */
/* MDB făcea .btn uppercase implicit; păstrăm efectul acum că folosim Bootstrap pur. */
.btn-custom,
.btn-outline-custom {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.btn-custom {
    background: linear-gradient(135deg, var(--cream), var(--cream-deep));
    color: #181818;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.6rem 1.6rem;
    border: none;
    box-shadow: 0 10px 26px -12px rgba(255, 126, 107, 0.7);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn-custom:hover {
    background: linear-gradient(135deg, var(--cream-bright), var(--cream));
    color: #181818;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(255, 126, 107, 0.85);
}
.btn-custom:active { transform: translateY(0); }

.btn-outline-custom {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-radius: 30px;
    padding: 0.55rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 126, 107, 0.55);
    color: #fff;
    transform: translateY(-2px);
}

/* ----------------------------- Hero ----------------------------- */
.hero-title {
    font-size: clamp(2.1rem, 6vw, 3.3rem);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 1.4rem;
}
.hero-desc {
    color: var(--muted);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin-bottom: 2rem;
    max-width: 52ch;
}

.rounded-arch {
    border-radius: 60px 60px 0 120px / 60px 60px 0 120px;
    overflow: hidden;
    position: relative;
    background: var(--surface);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-lg);
}
.rounded-arch img { transition: transform 0.7s var(--ease); }
.rounded-arch:hover img { transform: scale(1.05); }

/* ----------------------------- Badges ----------------------------- */
.badge-custom {
    background: var(--surface);
    color: #fff;
    font-size: 0.95rem;
    border-radius: 20px;
    padding: 0.45rem 1rem;
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.badge-top    { top: 20px;    left: 20px; }
.badge-mid    { top: 60px;    right: 30px; }
.badge-bottom { bottom: 40px; left: 30px; }
.badge-star {
    bottom: 30px;
    right: 30px;
    background: rgba(20, 19, 42, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-line);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: 16px;
    font-size: 1rem;
    text-align: left;
}

/* --------------- Scroll-reveal + hover lift (added by JS) --------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* gentle stagger for items sitting in the same row */
.row [class*="col-"]:nth-child(2) > .reveal { transition-delay: 0.07s; }
.row [class*="col-"]:nth-child(3) > .reveal { transition-delay: 0.14s; }
.row [class*="col-"]:nth-child(4) > .reveal { transition-delay: 0.21s; }
.row [class*="col-"]:nth-child(5) > .reveal { transition-delay: 0.28s; }

.team-photo {
    aspect-ratio: 1 / 1;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 50% 45%;
    background-size: 120%;
}

.card-lift { transition: filter 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card-lift:hover {
    filter: brightness(1.08);
    box-shadow: var(--shadow-lg);
}

.zoom-wrap img { transition: transform 0.7s var(--ease); }
.zoom-wrap:hover img { transform: scale(1.06); }

/* ----------------------------- Accordion ----------------------------- */
.accordion-item {
    overflow: hidden;
    border: 1px solid var(--line) !important;
    transition: border-color 0.3s;
}
.accordion-item:hover { border-color: rgba(255, 126, 107, 0.25) !important; }
.accordion-button { color: #fff; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: var(--surface-2) !important; color: #fff !important; }
.accordion-button:focus { box-shadow: none; }
.accordion-button::after { filter: invert(1) brightness(2) !important; }

/* ----------------------------- Instruments ----------------------------- */
.instruments-section .d-flex > div {
    width: clamp(150px, 40vw, 340px) !important;
    height: clamp(150px, 40vw, 340px) !important;
    box-shadow: var(--shadow-lg);
}
.instruments-section .d-flex > div img { transition: transform 0.7s var(--ease); }
.instruments-section .d-flex > div:hover img { transform: scale(1.07); }

/* ----------------------------- Pricing ----------------------------- */
/* Grilă flexibilă: 1-4 carduri centrate pe rând; de la al 5-lea se înfășoară. */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}
.pricing-card {
    width: 270px;
    max-width: 100%;
    border: 1px solid rgba(20, 19, 42, 0.12);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}
.pricing-card:hover {
    filter: brightness(1.04);
    box-shadow: 0 26px 60px -22px rgba(20, 19, 42, 0.5) !important;
}

/* ----------------------------- Anchor offsets ----------------------------- */
#home, #about, #courses, #teachers, #blog, #pricing, #contact {
    scroll-margin-top: 95px;
}

/* ----------------------------- Mobile-first tuning ----------------------------- */
@media (max-width: 991.98px) {
    body { padding-top: 90px; }

    /* Logo mai mic pe mobil ca navbarul fix să nu acopere conținutul */
    .logo { height: 56px; }
    .navbar.navbar-shrink .logo { height: 48px; }

    #home, #about, #courses, #teachers, #blog, #pricing, #contact {
        scroll-margin-top: 90px;
    }

    .navbar-nav {
        background: rgba(20, 19, 42, 0.96);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        padding: 1.25rem 0 1rem 0;
        border-radius: 0 0 24px 24px;
        box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.5);
        text-align: center;
    }
    .navbar-nav .nav-link { margin: 0.5rem 0; font-size: 1.2rem; }
    .nav-link::after { display: none; }

    .btn-custom.ms-lg-3 {
        margin-left: 0 !important;
        width: 100%;
        display: block;
    }
}

@media (max-width: 575.98px) {
    .rounded-arch { border-radius: 40px 40px 0 70px / 40px 40px 0 70px; }
    .badge-mid { top: 54px; }
}

/* ----------------------------- Studio booking band ----------------------------- */
.studio-band {
    background: var(--cream);
    padding: 3rem 0;
}
.studio-card {
    background: linear-gradient(135deg, #14132A, #241F4D);
    border: 1px solid var(--glass-line);
    border-radius: 28px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
}
.studio-badge {
    display: inline-block;
    background: rgba(255, 126, 107, 0.14);
    border: 1px solid rgba(255, 126, 107, 0.3);
    color: var(--cream);
    font-size: 0.9rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.9rem;
}
.studio-card h2 {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 2.2rem) !important;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.studio-card p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 60ch;
}
.studio-action .btn-custom { font-size: 1.05rem; padding: 0.7rem 1.8rem; }
.studio-form { width: 100%; }
.studio-form form { margin: 0; }

@media (min-width: 768px) {
    .studio-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2.5rem;
        padding: 2.6rem 3rem;
    }
    .studio-action { flex: 0 0 auto; }
    .studio-form { flex: 0 0 380px; max-width: 380px; }
}

/* ----------------------------- Legal / Terms page ----------------------------- */
.legal-section {
    background: var(--bg-soft);
    padding: 4.5rem 0 4rem;
    min-height: 70vh;
}
@media (max-width: 991.98px) {
    .legal-section { padding: 2rem 0 3rem; }
}
.legal-wrap { max-width: 820px; }

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: gap 0.2s var(--ease);
}
.legal-back:hover { color: var(--cream-bright); gap: 0.75rem; }

.legal-head { margin-bottom: 1.5rem; }
.legal-head h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}
.legal-updated { color: var(--muted); font-size: 0.95rem; margin: 0; }

.legal-note {
    background: var(--surface);
    border: 1px solid rgba(255, 126, 107, 0.25);
    border-left: 3px solid var(--cream);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: clamp(1.3rem, 4vw, 1.65rem) !important;
    font-weight: 600;
    color: #fff;
    margin: 2.2rem 0 0.7rem;
}
.legal-body h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #f0f0f0;
    margin: 1.3rem 0 0.4rem;
}
.legal-body p,
.legal-body li {
    color: #cfcfcf;
    line-height: 1.8;
    font-size: 1rem;
}
.legal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}
.legal-body li { margin-bottom: 0.4rem; }
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { color: var(--cream); }

/* ----------------------------- Enroll modal ----------------------------- */
.enroll-modal .modal-content {
    background: #1B1A38;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.enroll-modal .modal-header {
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 1.5rem;
}
.enroll-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.enroll-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(1.6);
    opacity: 0.85;
}
.enroll-modal .modal-body { padding: 1.2rem 1.5rem 1.6rem; }
.enroll-intro {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}

.enroll-field {
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
}
.enroll-field label {
    font-size: 0.9rem;
    color: #e6e6e6;
    margin-bottom: 0.35rem;
    font-weight: 500;
}
.enroll-field label span { color: var(--cream); }
.enroll-field input,
.enroll-field select,
.enroll-field textarea {
    width: 100%;
    background: #232048;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.enroll-field input::placeholder,
.enroll-field textarea::placeholder { color: #8a8a8a; }
.enroll-field input:focus,
.enroll-field select:focus,
.enroll-field textarea:focus {
    outline: none;
    border-color: var(--cream);
    box-shadow: 0 0 0 3px rgba(255, 126, 107, 0.18);
}
.enroll-field textarea { resize: vertical; min-height: 72px; }
.enroll-field select option { background: #232048; color: #fff; }

.enroll-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 0.8rem;
}

.enroll-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.4rem 0 1.1rem;
}
.enroll-check input {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--cream);
    flex: 0 0 auto;
}
.enroll-check label {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}
.enroll-check label a { color: var(--cream); text-decoration: underline; }
.enroll-check label span { color: var(--cream); }
.enroll-check.enroll-remember { margin-top: -0.6rem; }
.enroll-check.enroll-remember label { font-size: 0.82rem; opacity: 0.85; }

.enroll-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 0.7rem 1.5rem;
}
.enroll-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Honeypot — ascuns pentru oameni, completat doar de boți */
.enroll-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.enroll-alert {
    display: none;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.enroll-alert.show { display: block; }
.enroll-alert.is-error {
    background: rgba(220, 80, 80, 0.14);
    border: 1px solid rgba(220, 80, 80, 0.4);
    color: #ffb4b4;
}
.enroll-alert.is-success {
    background: rgba(255, 126, 107, 0.12);
    border: 1px solid rgba(255, 126, 107, 0.4);
    color: var(--cream);
}

@media (max-width: 400px) {
    .enroll-row { grid-template-columns: 1fr; }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .card-lift:hover { transform: none; }
    .rounded-arch:hover img,
    .zoom-wrap:hover img,
    .instruments-section .d-flex > div:hover img { transform: none; }
}

/* ===========================================================
   Refresh nuanțe + carduri "glass / full-bleed" (indigo & coral)
   =========================================================== */

/* Pastila de secțiune devine coral (badge-urile de antet au clasa .mb-3) */
.badge-custom.mb-3 {
    background: rgba(255, 126, 107, 0.15) !important;
    border: 1px solid rgba(255, 126, 107, 0.42) !important;
    color: #ffd9cf !important;
}

/* Punctele din badge-urile hero -> coral / periwinkle */
.badge-top span[style*="border-radius:50%"]    { background: var(--cream) !important; opacity: 1 !important; }
.badge-mid span[style*="border-radius:50%"]    { background: var(--accent2) !important; opacity: 1 !important; }
.badge-bottom span[style*="border-radius:50%"] { background: var(--cream-bright) !important; opacity: 1 !important; }

/* Carduri "glass" frostate: About, Profesori, Recenzii */
#about + section .row > [class*="col-"] > div,
#teachers + section .row [class*="col-"] > div,
#blog + section .row > [class*="col-"] > div {
    background: var(--glass) !important;
    border: 1px solid var(--glass-line) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.55) !important;
}
/* Ramele de imagine (About dreapta, Profesori) rămân pline, nu frostate */
#about + section .row > [class*="col-"] > div:has(> img),
#teachers + section .row [class*="col-"] > div:has(> img) {
    background: var(--surface-2) !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Carduri de cursuri: full-bleed cu gradient coral↔indigo + halou la hover */
#courses + section .row > [class*="col-"] > div {
    position: relative;
    overflow: hidden;
    min-height: 250px !important;
    border-radius: 22px !important;
    border: 1px solid var(--glass-line) !important;
    background: linear-gradient(155deg, rgba(255, 126, 107, 0.22), rgba(139, 140, 240, 0.10)), var(--surface) !important;
    justify-content: space-between;
}
#courses + section .row > [class*="col-"]:nth-child(2n) > div {
    background: linear-gradient(155deg, rgba(139, 140, 240, 0.24), rgba(255, 126, 107, 0.08)), var(--surface) !important;
}
#courses + section .row > [class*="col-"] > div::after {
    content: "";
    position: absolute;
    right: -38%;
    bottom: -55%;
    width: 75%;
    height: 85%;
    background: radial-gradient(circle, rgba(255, 126, 107, 0.4), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
    opacity: 0.75;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
#courses + section .row > [class*="col-"]:nth-child(2n) > div::after {
    background: radial-gradient(circle, rgba(139, 140, 240, 0.45), transparent 68%);
}
#courses + section .row > [class*="col-"] > div:hover::after {
    transform: translate(-12%, -12%) scale(1.15);
    opacity: 1;
}
/* iconița și textul stau peste halou */
#courses + section .row > [class*="col-"] > div > * { position: relative; z-index: 1; }
#courses + section .row > [class*="col-"] > div > div:first-child {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
#courses + section .row > [class*="col-"] > div .btn-outline-custom { margin-top: auto; }

/* Banda de instrumente: tile-uri uniforme, cu ramă glass și colțuri rotunde egale */
.instruments-section .d-flex > div {
    border-radius: 26px !important;
    border: 1px solid rgba(20, 19, 42, 0.18);
    box-shadow: 0 24px 60px -24px rgba(20, 19, 42, 0.55) !important;
}

.footer-nav-link { transition: color 0.2s var(--ease); }
.footer-nav-link:hover { color: #fff !important; }

/* ----------------------------- Credit footer (squey.app) ----------------------------- */
.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}
.footer-credit strong {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, var(--cream), var(--accent2-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-credit-spark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.58rem;
    color: #14132A;
    background: linear-gradient(135deg, var(--cream), var(--cream-deep));
    box-shadow: 0 0 0 0 rgba(255, 126, 107, 0.55);
    transition: box-shadow 0.5s var(--ease), transform 0.4s var(--ease);
}
.footer-credit-arrow {
    font-size: 0.58rem;
    opacity: 0;
    transform: translate(-4px, 2px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-credit:hover {
    color: #fff;
}
.footer-credit:hover .footer-credit-arrow {
    opacity: 1;
    transform: translate(0, 0);
}
@media (max-width: 767.98px) {
    .footer-credit { margin-top: 1.8rem; }
}
