/* ============================================================
   TOGABE SCHOOLS — Homepage Stylesheet
   ============================================================ */

/* ── Hero Section ── */
.hero {
    background-image:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 50%,
            rgba(0, 0, 0, 0.20) 100%
        ),
        url('/images/school-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

/* Remove the dot texture — real photo handles texture */
.hero::before { display: none; }

.hero-shape-1 {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49,149,202,0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero-shape-2 {
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(49,149,202,0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Star canvas — keep but reduce opacity over real photo */
.hero-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

/* ── Hero two-column layout ── */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(49,149,202,0.25);
    border: 1px solid rgba(49,149,202,0.45);
    color: #7ec8e8;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.hero-eyebrow [data-lucide] { width: 13px; height: 13px; }

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero h1 span { color: #60b8e8; }

.hero-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 540px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
}
.hero-badge-item [data-lucide] { width: 15px; height: 15px; color: #3195ca; }

/* ── Right column ── */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* ── Logo ── */
.hero-logo-wrap {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 30px rgba(49,149,202,0.5))
            drop-shadow(0 4px 24px rgba(0,0,0,0.5));
    animation: hero-logo-float 4s ease-in-out infinite;
}

@keyframes hero-logo-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* ── Stat cards ── */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    width: 100%;
}

.hero-card {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.25rem;
    color: #fff;
    transition: border-color 0.25s, background 0.25s;
}
.hero-card:hover {
    background: rgba(0,0,0,0.55);
    border-color: rgba(49,149,202,0.5);
}

.hero-card-wide {
    grid-column: 1 / -1;
}

.hero-card-stat {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.hero-card-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.hero-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(49,149,202,0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    color: #60b8e8;
}
.hero-card-wide .hero-card-icon { margin-bottom: 0; }
.hero-card-icon [data-lucide] { width: 18px; height: 18px; }

/* ── Welcome Section ── */
.welcome-section {
    background: #fff;
    padding: 5rem 0;
}
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.welcome-visual {
    position: relative;
}
.welcome-img-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.welcome-img-box::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(49,149,202,0.15) 0%, transparent 70%);
}
.welcome-img-icon {
    width: 100px; height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(49,149,202,0.35);
}
.welcome-img-icon [data-lucide] { width: 48px; height: 48px; color: #fff; }
.welcome-badge-float {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: #fff;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.welcome-badge-float-icon {
    width: 36px; height: 36px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.welcome-badge-float-icon [data-lucide] { width: 18px; height: 18px; }
.welcome-badge-float-value { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.welcome-badge-float-label { font-size: 0.72rem; color: var(--text-muted); }

.welcome-content .section-label { margin-bottom: 1rem; }
.welcome-content h2 { margin-bottom: 1.5rem; }
.welcome-content p  { margin-bottom: 1rem; color: var(--text-body); }

.welcome-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.welcome-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
}
.welcome-list-icon {
    width: 26px; height: 26px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.welcome-list-icon [data-lucide] { width: 13px; height: 13px; }

/* ── Features Section ── */
.features-section {
    background: var(--bg-section);
    padding: 5rem 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
    width: 54px; height: 54px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.feature-icon [data-lucide] { width: 24px; height: 24px; }
.feature-icon-primary { background: var(--primary-light); color: var(--primary); }
.feature-icon-success { background: #d1fae5; color: #059669; }
.feature-icon-warning { background: #fef3c7; color: #d97706; }
.feature-icon-info    { background: #dbeafe; color: #2563eb; }
.feature-icon-purple  { background: #ede9fe; color: #7c3aed; }
.feature-icon-danger  { background: #fee2e2; color: #dc2626; }

.feature-card h4 { margin-bottom: 0.75rem; font-size: 1.05rem; }
.feature-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── Stats Section ── */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.stat-item { text-align: center; }
.stat-icon-wrap {
    width: 60px; height: 60px;
    background: rgba(49,149,202,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(49,149,202,0.3);
}
.stat-icon-wrap [data-lucide] { width: 26px; height: 26px; color: #60b8e8; }
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}
.stats-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
    margin: auto 0;
    display: none;
}

/* ── Careers Teaser ── */
.careers-teaser {
    background: var(--primary);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.careers-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.careers-teaser-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.careers-teaser-text { flex: 1; min-width: 280px; }
.careers-teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    padding: 0.3rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.careers-teaser-badge [data-lucide] { width: 12px; height: 12px; }
.careers-teaser h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.875rem;
}
.careers-teaser p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}
.careers-teaser-count {
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    flex-shrink: 0;
    min-width: 180px;
}
.careers-teaser-count-value {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.careers-teaser-count-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* ── CTA Banner ── */
.cta-section {
    background: #fff;
    padding: 5rem 0;
}
.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-box-content { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: 2.25rem; margin-bottom: 1rem; }
.cta-box p  { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hero-layout    { grid-template-columns: 1fr 340px; gap: 2.5rem; }
    .hero h1        { font-size: 2.75rem; }
    .hero-logo-wrap { width: 180px; height: 180px; }
}

@media (max-width: 900px) {
    /* Stack vertically on tablet */
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    /* Disable parallax on tablet/mobile — causes jank */
    .hero {
        background-attachment: scroll;
        background-position: center top;
    }
    .hero-content  { max-width: 100%; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta      { justify-content: center; }
    .hero-badges   { justify-content: center; }
    .hero-right    { width: 100%; max-width: 400px; margin: 0 auto; }
    .hero-logo-wrap { width: 160px; height: 160px; }
    .features-grid  { grid-template-columns: repeat(2,1fr); }
    .stats-grid     { grid-template-columns: repeat(2,1fr); gap: 2rem; }
    .welcome-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
    .welcome-visual { display: none; }
}

@media (max-width: 600px) {
    .hero {
        padding: 5rem 0 3rem;
        min-height: auto;
        /* Shift background focus to show building on mobile */
        background-position: 60% center;
        background-attachment: scroll;
    }
    .hero h1        { font-size: 2rem; }
    .hero-subtitle  { font-size: 0.95rem; }
    .hero-layout    { gap: 2rem; }
    .hero-logo-wrap { width: 130px; height: 130px; }
    .hero-cta       { flex-direction: column; }
    .hero-cta .btn  { width: 100%; justify-content: center; }
    .hero-right     { max-width: 100%; }
    .hero-stats     { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .hero-card      { padding: 1rem; }
    .hero-card-stat { font-size: 1.6rem; }
    .features-grid  { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: 1fr 1fr; }
    .careers-teaser-inner { flex-direction: column; text-align: center; }
    .careers-teaser-count { width: 100%; }
    .cta-box        { padding: 2.5rem 1.25rem; }
    .cta-box h2     { font-size: 1.75rem; }
}

@media (max-width: 400px) {
    .hero h1        { font-size: 1.75rem; }
    .hero-logo-wrap { width: 110px; height: 110px; }
    .hero-stats     { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: 1fr; }
}