/* ═══════════════════════════════════════════════════════════════
   Mudzini School — Main Stylesheet
   Professional, responsive, modern design
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary: #79319a;
    --primary-light: #b56f98;
    --primary-dark: #5a2070;
    --secondary: #f9a825;
    --secondary-light: #fdd835;
    --accent: #b56f98;
    --accent-light: #c98db0;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #2d0f3e;
    --border: #e0e0e0;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1200px;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Announcement Bar ──────────────────────────────────────── */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 100;
    overflow: hidden;
}
.announcement-bar .marquee {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.announcement-bar .ann-item { display: inline-flex; align-items: center; gap: 8px; }
.announcement-bar .ann-dot { width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; }

/* ── Header / Navigation ──────────────────────────────────── */
.site-header {
    position: relative;
    z-index: 1000;
    background: linear-gradient(135deg, #4a1a6b 0%, #6b2d8b 50%, #8b3daf 100%);
    box-shadow: 0 2px 20px rgba(74,26,107,0.3);
    border: none;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    max-width: var(--max-w);
    margin: 0 auto;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}
.nav-logo .logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.2;
}
.nav-logo .logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    margin-top: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links > li > a {
    display: block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-links > li > a:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.nav-links > li > a.active {
    color: #fff;
    background: rgba(255,255,255,0.18);
    font-weight: 600;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    z-index: 100;
    margin-top: 5px;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}
.dropdown-menu a {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    display: block;
    color: #333 !important;
    transition: all 0.2s ease;
    text-decoration: none;
    background: transparent !important;
}
.dropdown-menu a:hover {
    background: #f5f2fa !important;
    color: #6b2d8b !important;
    transform: translateX(4px);
}

/* CTA button in nav — hidden */
.nav-cta {
    display: none !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 800px;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 32px;
    font-weight: 300;
}
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.hero-dots button.active { background: #fff; border-color: #fff; transform: scale(1.2); }

/* Page Hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 100px 24px 60px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.15rem; opacity: 0.85; max-width: 650px; margin: 0 auto; font-weight: 300; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(121,49,154,0.3); }
.btn-secondary { background: var(--secondary); color: var(--text); }
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }

/* ── Section Utilities ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }
.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    margin: 16px auto 0;
}

/* ── Card Grid ─────────────────────────────────────────────── */
.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.card-body p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* Pathway cards (home) */
.pathway-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-top: 4px solid transparent;
}
.pathway-card:hover { transform: translateY(-4px); border-top-color: var(--primary); box-shadow: var(--shadow-lg); }
.pathway-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.pathway-card p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 16px; }

/* ── Stats Row ─────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-item .stat-label { font-size: 0.95rem; opacity: 0.8; }

/* ── Content Block (about page two-col) ────────────────────── */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-block h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.content-block h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--primary-dark); }
.content-block p { color: var(--text-light); margin-bottom: 12px; }
.content-block ul { list-style: none; padding: 0; }
.content-block ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}
.content-block ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.content-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.content-img img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

/* ── Timeline (admissions process) ─────────────────────────── */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
    content: attr(data-step);
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.timeline-item h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.timeline-item p { color: var(--text-light); font-size: 0.95rem; }

/* ── Levels Table ──────────────────────────────────────────── */
.levels-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.levels-table thead { background: var(--primary); color: #fff; }
.levels-table th { padding: 14px 20px; font-weight: 600; text-align: left; font-size: 0.95rem; }
.levels-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.levels-table tbody tr:hover { background: rgba(121,49,154,0.04); }
.levels-table tbody tr:last-child td { border-bottom: none; }

/* ── Contact Form ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .ci-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(121,49,154,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}
.contact-info-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.contact-info-item p { color: var(--text-light); font-size: 0.93rem; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { background: #f3e8f9; color: var(--primary-dark); padding: 16px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-success.show { display: block; }

/* ── Map ───────────────────────────────────────────────────── */
.map-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 48px; }
.map-wrapper iframe { width: 100%; height: 400px; border: none; }

/* ── Quick Links Bar ───────────────────────────────────────── */
.quick-links {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 32px 0;
}
.quick-links-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.quick-links-grid a {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.15);
}
.quick-links-grid a:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 3px; background: var(--secondary); border-radius: 3px; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: all var(--transition); }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--secondary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--secondary); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
}
.footer-socials a:hover { background: var(--secondary); color: var(--text); }

/* ── Student Life cards ────────────────────────────────────── */
.student-life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sl-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border-left: 4px solid var(--primary);
}
.sl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sl-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.sl-card p { font-size: 0.93rem; color: var(--text-light); }

/* ── News Cards ────────────────────────────────────────────── */
.news-card .card-body .meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }

/* ── Loading Skeleton ──────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-block { grid-template-columns: 1fr; gap: 32px; }
    .content-block.reverse { direction: ltr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #4a1a6b 0%, #6b2d8b 100%);
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 2px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 100;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links > li > a {
        padding: 12px 16px;
        width: 100%;
        font-size: 0.95rem;
        border-radius: 8px;
        color: rgba(255,255,255,0.85);
    }
    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        background: rgba(255,255,255,0.12);
        color: #fff;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.15);
        margin: 4px 0 4px 12px;
        padding: 6px;
        border-radius: 8px;
        display: none;
        min-width: auto;
    }
    .nav-dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu a {
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.88rem;
    }
    .dropdown-menu a:hover {
        background: rgba(255,255,255,0.1) !important;
        color: #fff !important;
    }

    .hero { min-height: 70vh; }
    .section { padding: 48px 0; }
    .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
    .student-life-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item .stat-value { font-size: 2rem; }
    .page-hero { padding: 80px 24px 40px; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding: 0 16px; }
    .nav-wrapper { padding: 0 16px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
    z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── Hero text transition ──────────────────────────────────── */
.hero-content h1, .hero-content p {
    transition: opacity 0.5s ease;
}

/* ── Fade-in Animation ─────────────────────────────────────── */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
