/* =============================================
   EXIGENT — Școala de Șoferi | Baia Mare
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input { font-family: inherit; font-size: inherit; }
::selection { background: var(--red); color: white; }

/* --- Custom Properties --- */
:root {
    --red: #C41E2A;
    --red-dark: #9B1722;
    --red-light: #E63946;
    --red-glow: rgba(196, 30, 42, 0.12);
    --charcoal: #1A1A2E;
    --charcoal-mid: #222240;
    --charcoal-light: #2A2A48;
    --cream: #F8F7F4;
    --cream-dark: #EFEEE9;
    --white: #FFFFFF;
    --text: #2D2D3F;
    --text-muted: #6B6B80;
    --text-light: #9B9BB0;
    --border: #E5E5EC;
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 12px 48px rgba(26, 26, 46, 0.12);
    --shadow-red: 0 4px 20px rgba(196, 30, 42, 0.25);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.3s var(--ease);
    --nav-h: 72px;
    --container: 1200px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
}
h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.025em;
}
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
p { max-width: 60ch; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    display: inline-block;
    margin-bottom: 0.75rem;
}
.section-tag--light { color: rgba(255,255,255,0.6); }
.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-note {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 1rem auto 0;
    max-width: 50ch;
}
.section-note strong {
    color: var(--red);
}

/* =============================================
   SERIES ANNOUNCEMENT BANNER (inside hero)
   ============================================= */
.topbar {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: calc(var(--nav-h) + 4.5rem);
}
.topbar__inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    background: var(--red);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    box-shadow: 0 4px 24px rgba(196, 30, 42, 0.35);
    animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}
.topbar__icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
}
.topbar__text {
    opacity: 0.92;
}
.topbar__text strong {
    color: white;
    font-weight: 700;
}
.topbar__cta {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    transition: background var(--transition);
}
.topbar__cta:hover {
    background: rgba(255,255,255,0.35);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    height: var(--nav-h);
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}
.nav__logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.4s var(--ease);
}
.nav--scrolled .nav__logo img { filter: none; }
.nav__links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav__links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color var(--transition);
    position: relative;
    padding: 0.25rem 0;
}
.nav--scrolled .nav__links a { color: var(--text); }
.nav__links a:hover,
.nav--scrolled .nav__links a:hover { color: var(--red); }
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav__cta {
    background: var(--red) !important;
    color: white !important;
    padding: 0.5rem 1.4rem !important;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: background var(--transition), transform 0.2s var(--ease) !important;
}
.nav__cta:hover {
    background: var(--red-dark) !important;
    transform: translateY(-1px);
}
.nav__cta::after { display: none !important; }
.nav--scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 10;
}
.nav__toggle span {
    display: block;
    width: 22px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}
.nav--scrolled .nav__toggle span { background: var(--charcoal); }
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: var(--charcoal);
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 50%, #1e1e38 100%);
}
/* Wave lines */
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' fill='none'%3E%3Cpath d='M0 300c200-60 400 40 600 0s400-80 600 0 300 50 300 50' stroke='rgba(196,30,42,0.07)' stroke-width='1'/%3E%3Cpath d='M0 400c200-50 350 60 600 10s350-70 550-10 350 40 350 40' stroke='rgba(196,30,42,0.05)' stroke-width='1'/%3E%3Cpath d='M0 500c250-40 400 50 650 5s300-60 500-5 350 35 350 35' stroke='rgba(196,30,42,0.04)' stroke-width='1'/%3E%3Cpath d='M0 250c180-30 380 35 580 5s420-50 580 5 340 30 340 30' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cpath d='M0 550c220-35 370 45 620 8s380-55 540-8 340 28 340 28' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3Cpath d='M0 650c200-45 420 30 640 0s360-40 520 0 340 25 340 25' stroke='rgba(196,30,42,0.03)' stroke-width='1'/%3E%3C/svg%3E") center/cover no-repeat;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 75% 25%, rgba(196, 30, 42, 0.08), transparent 70%),
        radial-gradient(ellipse 45% 35% at 20% 75%, rgba(100, 100, 180, 0.04), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' fill='none'%3E%3Ccircle cx='80' cy='420' r='200' stroke='rgba(196,30,42,0.06)' stroke-width='1'/%3E%3Ccircle cx='80' cy='420' r='280' stroke='rgba(196,30,42,0.04)' stroke-width='1'/%3E%3Ccircle cx='80' cy='420' r='360' stroke='rgba(196,30,42,0.025)' stroke-width='1'/%3E%3Ccircle cx='80' cy='420' r='140' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") left bottom/500px 500px no-repeat;
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -3rem;
}
.hero__logo {
    width: clamp(180px, 30vw, 280px);
    height: auto;
    margin: 0 auto 2rem;
    filter: brightness(0) invert(1);
    animation: fadeUp 0.8s var(--ease-out) both;
}
.hero__title {
    font-family: 'Bebas Neue', 'Outfit', sans-serif;
    font-size: clamp(3rem, 10vw, 6.5rem);
    color: white;
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.8s var(--ease-out) 0.15s both;
}
.hero__subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    max-width: 40ch;
    margin: 0 auto 2rem;
    animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}
.hero__cta-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
    animation: fadeUp 0.8s var(--ease-out) 0.5s both;
}
.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    background: var(--red);
    color: white;
    transition: background var(--transition), transform 0.2s var(--ease);
    box-shadow: var(--shadow-red);
}
.hero__cta:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}
.hero__cta--outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: none;
    color: rgba(255,255,255,0.85);
}
.hero__cta--outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.35);
    animation: bounce 2.5s infinite, fadeUp 0.8s var(--ease-out) 0.6s both;
    transition: color var(--transition);
}
.hero__scroll:hover { color: rgba(255,255,255,0.7); }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   ABOUT / STATS
   ============================================= */
.about {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--cream);
    position: relative;
}
.about::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 80px;
    background: var(--charcoal);
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { color: var(--text-muted); margin-bottom: 1rem; }
.about__text p strong { color: var(--text); }
.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.stat { text-align: center; }
.stat__ring {
    width: clamp(80px, 10vw, 110px);
    height: clamp(80px, 10vw, 110px);
    border-radius: 50%;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    position: relative;
    transition: border-color 0.5s var(--ease);
}
.stat__ring::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid var(--red);
    clip-path: inset(0 0 50% 0);
    transition: clip-path 1s var(--ease-out);
}
.stat.counted .stat__ring { border-color: var(--cream-dark); }
.stat.counted .stat__ring::after { clip-path: inset(0 0 0 0); }
.stat__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--charcoal);
    line-height: 1;
}
.stat__plus {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red);
}
.stat__label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* =============================================
   STEPS (How it Works)
   ============================================= */
.steps {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--charcoal);
    color: white;
    position: relative;
}
.steps .section-header h2 { color: white; }
.steps__grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
}
.step {
    background: var(--charcoal-light);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    flex: 1;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.step:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 30, 42, 0.2);
}
.step__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 8vw, 6rem);
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: -0.15em;
    right: 0.15em;
    line-height: 1;
    pointer-events: none;
}
.step__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: rgba(196, 30, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--red-light);
}
.step h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}
.step__meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.step__hours {
    color: var(--red-light);
    font-weight: 600;
}
.step p {
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    line-height: 1.6;
}
.step p strong { color: rgba(255,255,255,0.85); }
.step__profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.06);
}
.step__profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(196, 30, 42, 0.4);
}
.step__profile strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: white;
    display: block;
    margin-bottom: 0.2rem;
}
.step__profile p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin: 0;
}
.step__price {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(196, 30, 42, 0.15);
    border-left: 3px solid var(--red-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}
.step__price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-light);
}
.step__price-note {
    font-weight: 400;
    font-size: 0.82rem;
}
.step__connector {
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* =============================================
   INSTRUCTORS
   ============================================= */
.instructors {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--white);
}
.instructors__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    flex: 1;
    min-width: 220px;
    max-width: 360px;
    transition: border-color var(--transition), box-shadow var(--transition);
    color: var(--text-muted);
}
.search-box:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
.search-box input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    color: var(--text);
}
.search-box input::placeholder { color: var(--text-light); }
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.filter-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--white);
    transition: all var(--transition);
}
.filter-btn:hover {
    border-color: var(--red);
    color: var(--red);
}
.filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
}
.instructors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.instructors__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Instructor Card */
.instructor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.instructor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.instructor-card__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.instructor-card__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: white;
}
.instructor-card__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.instructor-card__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.2;
}
.instructor-card__car {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.instructor-card__car svg { flex-shrink: 0; color: var(--text-light); }
.instructor-card__fuel {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    display: inline-block;
}
.instructor-card__fuel--diesel { background: #E8F4FD; color: #1565C0; }
.instructor-card__fuel--gasoline { background: #FFF3E0; color: #E65100; }
.instructor-card__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.instructor-card__tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
}
.instructor-card__tag--automatic { background: #E8F5E9; color: #2E7D32; }
.instructor-card__tag--manual { background: #E3F2FD; color: #1565C0; }
.instructor-card__tag--cat { background: #F3E5F5; color: #6A1B9A; }
.instructor-card__tag--cat-a { background: #FFF8E1; color: #F57F17; }
.instructor-card__tag--cat-b { background: #F3E5F5; color: #6A1B9A; }
.instructor-card__tag--cat-b1 { background: #E0F2F1; color: #00695C; }
.instructor-card__phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    transition: color var(--transition);
}
.instructor-card__phone:hover { color: var(--red); }
.instructor-card__phone svg { color: var(--red); flex-shrink: 0; }

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--charcoal);
    color: white;
}
.gallery .section-header h2 { color: white; }
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.gallery__item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.3);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:nth-child(5n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* =============================================
   USEFUL LINKS
   ============================================= */
.useful {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--cream);
}
.useful__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.useful__card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.useful__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.useful__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    background: var(--red-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
}
.useful__text h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.useful__text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.useful__arrow {
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform var(--transition), color var(--transition);
    margin-left: auto;
}
.useful__card:hover .useful__arrow {
    transform: translateX(4px);
    color: var(--red);
}

/* =============================================
   FAQ
   ============================================= */
.faq {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: var(--white);
}
.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.faq__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq__item[open] {
    border-color: var(--red);
}
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s var(--ease), color var(--transition);
}
.faq__item[open] summary::after {
    content: '−';
    color: var(--red);
}
.faq__item summary:hover { color: var(--red); }
.faq__item__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
}
.faq__item[open] .faq__item__body {
    grid-template-rows: 1fr;
}
.faq__item.closing .faq__item__body {
    grid-template-rows: 0fr;
}
.faq__item__body > div {
    overflow: hidden;
}
.faq__item p {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.faq__item p a { color: var(--red); font-weight: 500; }
.faq__item p a:hover { text-decoration: underline; }

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
    background: var(--white);
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact__info h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.contact__info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.92rem;
    color: var(--text);
    transition: color var(--transition);
}
a.contact__item:hover { color: var(--red); }
.contact__item svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 2px;
}
.contact__social {
    display: flex;
    gap: 0.75rem;
}
.contact__social a {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition), transform 0.2s var(--ease);
}
.contact__social a:hover {
    background: var(--red);
    color: white;
    transform: translateY(-2px);
}
.contact__map {
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.contact__map iframe {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--charcoal);
    padding: 3rem 0 2rem;
    color: rgba(255,255,255,0.5);
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer__brand img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}
.footer__brand p {
    font-size: 0.82rem;
    line-height: 1.5;
}
.footer__links {
    display: flex;
    gap: 1.5rem;
}
.footer__links a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}
.footer__links a:hover { color: white; }
.footer__social {
    display: flex;
    gap: 0.75rem;
}
.footer__social a {
    color: rgba(255,255,255,0.4);
    transition: color var(--transition), transform 0.2s var(--ease);
}
.footer__social a:hover {
    color: white;
    transform: translateY(-2px);
}
.footer__copy p {
    font-size: 0.78rem;
}
.footer__credit {
    margin-top: 0.25rem;
    font-size: 0.72rem;
    opacity: 0.6;
}
.footer__credit a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.footer__credit a:hover {
    color: var(--red-light);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s var(--ease);
    pointer-events: none;
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox[hidden] { display: flex; }
.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
    transition: transform 0.35s var(--ease);
    transform: scale(0.92);
}
.lightbox.active .lightbox__img { transform: scale(1); }
.lightbox__close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    line-height: 1;
}
.lightbox__close:hover { color: white; }
.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    padding: 1rem;
    transition: color var(--transition);
}
.lightbox__prev:hover,
.lightbox__next:hover { color: white; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* =============================================
   FLOATING SOCIAL BAR
   ============================================= */
.social-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.social-float.visible {
    opacity: 1;
    transform: translateY(0);
}
.social-float__link {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.25s var(--ease-spring), box-shadow var(--transition);
}
.social-float__link:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.social-float__link--fb { background: #1877F2; }
.social-float__link--ig { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.social-float__link--phone { background: var(--red); }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }

/* Card stagger */
.instructor-card {
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}
.instructor-card.show {
    animation: cardIn 0.4s var(--ease-out) both;
}
@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about__stats {
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
        margin: 0 auto;
    }
    .contact__grid {
        grid-template-columns: 1fr;
    }
    .contact__map { min-height: 320px; }
    .gallery__item:nth-child(5n+1) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav__toggle { display: flex; }
    .nav__links {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        background: var(--charcoal);
        padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }
    .nav__links.open { transform: translateX(0); }
    .nav__links li { width: 100%; }
    .nav__links a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.1rem;
        color: rgba(255,255,255,0.8) !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav__links a:hover { color: var(--red-light) !important; }
    .nav__cta {
        margin-top: 1rem;
        text-align: center;
    }
    .steps__grid { flex-direction: column; align-items: center; }
    .step { max-width: 100%; }
    .step__connector { transform: rotate(90deg); padding: 1rem 0; }
    .instructors__filters {
        flex-direction: column;
    }
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    .instructors__grid {
        grid-template-columns: 1fr;
    }
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .useful__grid {
        grid-template-columns: 1fr;
    }
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .footer__brand { flex-direction: column; }
    .footer__links { justify-content: center; }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__title { font-size: 2.8rem; }
    .topbar__inner { font-size: 0.78rem; padding: 0.65rem 1rem; max-width: 85%; }
    .about__stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .stat__ring { width: 80px; height: 80px; }
    .stat__number { font-size: 1.4rem; }
    .stat__label { font-size: 0.68rem; }
    .filter-btn { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .instructors__grid { gap: 0.75rem; }
    .instructor-card { padding: 1rem; gap: 0.5rem; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .lightbox__prev { left: 0.25rem; }
    .lightbox__next { right: 0.25rem; }
}
