/* ============================================================
   SCHOOL OF CHESS — Main Stylesheet
   schoolofchess.org
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --white:        #ffffff;
    --light:        #EEF5F9;
    --light-2:      #f4f8fc;
    --dark:         #1a2744;
    --dark-2:       #243050;
    --gray:         #4a5568;
    --gray-light:   #718096;
    --blue-gray:    #2d4a6e;
    --accent:       #2563eb;
    --accent-dark:  #1d4ed8;
    --accent-light: #3b82f6;
    --green:        #25D366;
    --gold:         #f59e0b;
    --border:       #e2e8f0;
    --shadow:       0 2px 16px rgba(0,0,0,0.06), 0 6px 28px rgba(0,0,0,0.05);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.10), 0 2px 12px rgba(0,0,0,0.06);
    --shadow-blue:  0 8px 32px rgba(37,99,235,0.20), 0 2px 8px rgba(37,99,235,0.10);
    --radius:       12px;
    --radius-lg:    18px;
    --font-body:    'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Smooth material-inspired ease — more polished than bare 'ease' */
    --ease:         0.22s cubic-bezier(0.4, 0, 0.2, 1);
    /* Spring ease for card lifts — subtle bounce keeps it lively without gimmick */
    --ease-lift:    0.28s cubic-bezier(0.34, 1.30, 0.64, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

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

body {
    font-family: var(--font-body);
    color: var(--gray);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* Remove blue tap-highlight on all mobile browsers */
    -webkit-tap-highlight-color: transparent;
}

/* Faster tap response — removes 300ms click delay on Android/iOS */
a, button, [role="button"], label, .btn, .faq-question,
.program-card, .why-card, .review-card, .classic-card {
    touch-action: manipulation;
}

a { text-decoration: none; color: inherit; transition: var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--dark);
    line-height: 1.22;
    letter-spacing: -0.01em;   /* tighter tracking = more premium heading feel */
}

/* Better anti-aliasing on dark backgrounds */
.hero h1, .hero h2, .hero h3,
.cta-section h2,
.stats-strip h2,
.footer h5 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 100px 0; }

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
    opacity: 0.9;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.65rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.02rem;
    color: var(--gray-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.85;
}

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

.hide-mobile { display: inline; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.65rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s cubic-bezier(0.4,0,0.2,1),
                border-color 0.2s cubic-bezier(0.4,0,0.2,1),
                color 0.2s cubic-bezier(0.4,0,0.2,1),
                transform 0.18s cubic-bezier(0.34,1.30,0.64,1),
                box-shadow 0.2s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    user-select: none;
}
.btn:active { transform: translateY(0) scale(0.975) !important; }
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-lg {
    padding: 0.9rem 2.1rem;
    font-size: 0.97rem;
    border-radius: 14px;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,99,235,0.32), 0 2px 8px rgba(37,99,235,0.18);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}
.btn-whatsapp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,211,102,0.32);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}

.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    transition: background 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
                padding 0.3s cubic-bezier(0.4,0,0.2,1);
    will-change: padding;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.06);
    padding: 0.7rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.nav-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--ease);
    filter: drop-shadow(0 0 6px rgba(255,210,60,0.35));
}
.navbar.scrolled .nav-logo-img {
    filter: drop-shadow(0 0 4px rgba(255,210,60,0.2));
}

.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    transition: var(--ease);
}
.logo-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: var(--ease);
}
.navbar.scrolled .logo-name   { color: var(--dark); }
.navbar.scrolled .logo-tagline { color: var(--gray-light); }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.05rem;
}
.nav-links a {
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
    letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,0.10);
}
.navbar.scrolled .nav-links a         { color: var(--gray); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active  { color: var(--accent); background: rgba(37,99,235,0.07); }

/* Nav actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-cta { padding: 0.55rem 1.3rem; font-size: 0.85rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.55rem;
    /* 44px minimum touch target — iOS HIG requirement */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.18s ease;
}
.hamburger:active { background: rgba(255,255,255,0.12); }
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--ease);
}
.navbar.scrolled .hamburger span { background: var(--dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 9rem 0 5rem;
    background-color: #0d1b34;
    background-image:
        linear-gradient(45deg,  rgba(255,255,255,0.022) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.022) 25%, transparent 25%),
        linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.022) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.022) 75%);
    background-size: 64px 64px;
    background-position: 0 0, 0 32px, 32px -32px, -32px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 25% 50%, rgba(37,99,235,0.13) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 75% 75%, rgba(45,74,110,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    background: rgba(37,99,235,0.14);
    border: 1px solid rgba(37,99,235,0.28);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease both;
}

.hero-heading {
    font-size: clamp(2.05rem, 5vw, 3.65rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.14;
    letter-spacing: -0.025em;
    margin-bottom: 1.4rem;
    animation: fadeInUp 0.7s cubic-bezier(0.34,1.10,0.64,1) 0.1s both;
}

.hero-subheading {
    font-size: clamp(0.95rem, 2.2vw, 1.12rem);
    color: rgba(255,255,255,0.68);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.7s cubic-bezier(0.34,1.10,0.64,1) 0.2s both;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.3s both;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}
.stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,0.12);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: bounce 2.2s infinite;
}

/* ===== ABOUT ===== */
.about-section { background: var(--white); }

.about-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.about-credentials-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1.2rem;
    background: var(--light);
    border-radius: 10px;
    font-size: 0.855rem;
    font-weight: 500;
    color: var(--dark);
    border: 1px solid var(--border);
}
.credential i { color: var(--accent); width: 18px; flex-shrink: 0; }

.about-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-subtitle {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.75rem;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

.about-text {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 1.15rem;
}

.philosophy-pillars { margin-top: 0; }
.philosophy-pillars h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 1rem;
}
.pillars-list { display: flex; flex-direction: column; gap: 0.55rem; }
.pillars-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.94rem;
    color: var(--gray);
}
.pillars-list li i { color: var(--accent); font-size: 0.85rem; margin-top: 0.22rem; flex-shrink: 0; }

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(37,99,235,0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 1.75rem;
}
.about-highlight i { color: var(--accent); font-size: 1.1rem; margin-top: 0.15rem; flex-shrink: 0; }
.about-highlight p { font-size: 0.94rem; color: var(--gray); line-height: 1.7; }

@media (max-width: 768px) {
    .about-body { grid-template-columns: 1fr; gap: 2rem; }
    .about-credentials-row { gap: 0.65rem; }
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: linear-gradient(135deg, #0d1b34 0%, #1a2744 100%);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.stats-strip::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.015) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.015) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.015) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.015) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}
.stats-strip-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.strip-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.strip-num {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.strip-text {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}
.strip-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
    display: inline;
}
.strip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.strip-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.12);
}
@media (max-width: 768px) {
    .stats-strip-grid { gap: 2rem; }
    .strip-divider { display: none; }
    .strip-num { font-size: 2rem; }
}

/* ===== PROGRAMS ===== */
.programs-section { background: var(--light); }

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.85rem 1.65rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.28s cubic-bezier(0.34,1.30,0.64,1),
                box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
                border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}
.program-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-blue);
    border-color: rgba(37,99,235,0.08);
}
.program-card:hover::after { transform: scaleX(1); }

.program-icon {
    font-size: 2.4rem;
    margin-bottom: 1.15rem;
    display: block;
    line-height: 1;
}
.program-icon i { font-size: 1.9rem; color: var(--accent); }
.program-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 0.65rem; }
.program-card p  { font-size: 0.875rem; color: var(--gray-light); line-height: 1.7; }

.program-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.28rem 0.85rem;
    background: rgba(37,99,235,0.08);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.programs-cta { text-align: center; }

/* ===== WHY CHOOSE US ===== */
.why-section { background: var(--white); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

.why-card {
    padding: 1.65rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.28s cubic-bezier(0.34,1.30,0.64,1),
                box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
                border-color 0.2s ease;
}
.why-card:hover {
    border-color: rgba(37,99,235,0.35);
    box-shadow: var(--shadow-blue);
    transform: translateY(-3px);
}

.why-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, rgba(37,99,235,0.07), rgba(37,99,235,0.13));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.15rem;
}
.why-icon i { font-size: 1.2rem; color: var(--accent); }
.why-card h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 0.55rem; }
.why-card p  { font-size: 0.845rem; color: var(--gray-light); line-height: 1.7; }

/* ===== ACHIEVEMENTS ===== */
.achievements-section { background: var(--light); }

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 2rem;
    align-items: start;
}

.achievement-col-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}
.col-icon { font-size: 1.65rem; }
.achievement-col-header h3 { font-size: 1.1rem; color: var(--dark); }
.achievement-col-featured .achievement-col-header { justify-content: center; }

.achievement-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    transition: transform 0.28s cubic-bezier(0.34,1.30,0.64,1),
                box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}
.achievement-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray-light);
    text-align: center;
    padding: 1.5rem;
}
.img-placeholder span  { font-size: 2.4rem; }
.img-placeholder small { font-size: 0.7rem; opacity: 0.5; display: block; margin-top: 0.2rem; }

.rating-placeholder { background: linear-gradient(135deg, #eef5ff, #dbeafe); }
.fide-placeholder   { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.trophy-placeholder { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }

.achievement-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.achievement-card:hover .achievement-img {
    transform: scale(1.03);
}

.achievement-caption {
    padding: 1rem 1.25rem;
    font-size: 0.83rem;
    color: var(--gray-light);
    line-height: 1.65;
    font-style: italic;
}

.achievement-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.15rem;
}
.achievement-actions .btn { justify-content: center; }

/* FIDE rating pills inside achievement card */
.fide-img { aspect-ratio: 16/9; object-fit: cover; }

.fide-ratings-bar {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--dark);
}

.fide-rating-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    flex: 1;
}

.fide-pill-gold {
    background: rgba(245,158,11,0.18);
    border: 1px solid rgba(245,158,11,0.35);
}

.fide-pill-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.fide-pill-gold .fide-pill-num { color: #fbbf24; }

.fide-pill-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-top: 0.2rem;
}

.fide-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem 1.25rem;
    background: rgba(37,99,235,0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.fide-highlight i { color: var(--accent); font-size: 0.95rem; margin-top: 0.15rem; flex-shrink: 0; }
.fide-highlight p { font-size: 0.855rem; color: var(--gray); line-height: 1.65; }

/* ===== PHILOSOPHY ===== */
.philosophy-section { background: var(--white); }

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.philosophy-item {
    display: flex;
    gap: 1.4rem;
    padding: 2.25rem 2.5rem;
    background: var(--white);
    transition: background var(--ease);
}
.philosophy-item:hover { background: var(--light-2); }

.philosophy-num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(37,99,235,0.1);
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.75rem;
}

.philosophy-content h4 { font-size: 1.02rem; color: var(--dark); margin-bottom: 0.55rem; }
.philosophy-content p  { font-size: 0.875rem; color: var(--gray-light); line-height: 1.7; }

/* ===== FAQ ===== */
.faq-section { background: var(--white); }

.faq-grid {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--ease);
}
.faq-item.open {
    border-color: rgba(37,99,235,0.25);
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--ease);
}
.faq-question:hover { background: var(--light); }
.faq-item.open .faq-question { background: var(--light); color: var(--accent); }

.faq-icon {
    font-size: 0.8rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.25s ease;
    padding: 0 1.5rem;
}
.faq-answer p {
    font-size: 0.93rem;
    color: var(--gray);
    line-height: 1.8;
    padding-bottom: 1.25rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem; }

/* ===== REVIEWS ===== */
.reviews-section { background: var(--light); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.28s cubic-bezier(0.34,1.30,0.64,1),
                box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.review-card-featured {
    border: 1px solid rgba(37,99,235,0.18);
    box-shadow: var(--shadow-lg);
}
.review-card-featured:hover { transform: translateY(-5px); }

.review-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 1.15rem; }
.review-text  { font-size: 0.94rem; color: var(--gray); line-height: 1.8; margin-bottom: 1.4rem; font-style: italic; }

.review-author { display: flex; align-items: center; gap: 0.85rem; }
.author-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--accent), var(--blue-gray));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.author-name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.author-role { display: block; font-size: 0.78rem; color: var(--gray-light); margin-top: 0.1rem; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(145deg, #0d1b34 0%, #1a2744 55%, #1f3060 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(45deg,  rgba(255,255,255,0.015) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.015) 25%, transparent 25%),
        linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.015) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.015) 75%);
    background-size: 52px 52px;
    background-position: 0 0, 0 26px, 26px -26px, -26px 0;
}
.cta-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.1) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-chess-icon { font-size: 3rem; display: block; margin-bottom: 1.25rem; }
.cta-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); color: var(--white); margin-bottom: 1rem; }
.cta-section p  {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== ENQUIRY SECTION ===== */
.enquiry-section { background: var(--white); }

.enquiry-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 4rem;
    align-items: start;
}

.enquiry-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 1.4rem;
}

.trial-benefits { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 2.25rem; }
.trial-benefits li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.93rem; color: var(--gray); }
.trial-benefits li i { color: var(--accent); flex-shrink: 0; margin-top: 0.18rem; }

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: var(--dark);
    margin-bottom: 0.85rem;
}

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
    transition: var(--ease);
    border: 1px solid transparent;
}
.contact-link i { flex-shrink: 0; margin-top: 0.12rem; font-size: 0.95rem; }
.contact-link span { display: block; }

.whatsapp-link { background: rgba(37,211,102,0.07); color: #16a34a; border-color: rgba(37,211,102,0.2); }
.whatsapp-link:hover { background: rgba(37,211,102,0.14); }
.phone-link    { background: var(--light); color: var(--gray); border-color: var(--border); }
.phone-link:hover { border-color: var(--accent); color: var(--accent); }
.email-link    { background: var(--light); color: var(--gray); border-color: var(--border); }
.email-link:hover { border-color: var(--accent); color: var(--accent); }
.map-link      { background: var(--light); color: var(--gray); border-color: var(--border); align-items: flex-start; }
.map-link:hover { border-color: var(--accent); color: var(--accent); }

/* Map embed */
.map-embed { margin-top: 1.75rem; }
.map-embed iframe { width: 100%; }
.map-directions-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.855rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.6rem 0;
    transition: var(--ease);
}
.map-directions-btn:hover { color: var(--accent-dark); gap: 0.75rem; }

/* Enquiry form */
.enquiry-form-wrap {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.enquiry-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--ease);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.09);
}
.form-group input::placeholder { color: var(--gray-light); opacity: 0.75; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.radio-group { display: flex; gap: 1.75rem; padding: 0.25rem 0; flex-wrap: wrap; }
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.93rem;
    color: var(--gray);
    cursor: pointer;
}
.radio-label input[type="radio"] {
    width: 17px; height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
    padding: 0;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.form-note { font-size: 0.78rem; color: var(--gray-light); text-align: center; }

/* Google Form embed */
.gform-wrap {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
}
.gform-wrap iframe {
    display: block;
    border-radius: var(--radius-lg);
}

/* ===== FOOTER ===== */
.footer { background: var(--dark); }

.footer-top { padding: 5rem 0 3rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}
.footer-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255,210,60,0.4));
}
.footer-logo > span:last-child {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 270px;
}

.footer-social { display: flex; gap: 0.65rem; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.48);
    font-size: 0.88rem;
    transition: background 0.18s ease, color 0.18s ease,
                transform 0.2s cubic-bezier(0.34,1.30,0.64,1), border-color 0.18s ease;
    border: 1px solid rgba(255,255,255,0.07);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.footer-links h5,
.footer-programs h5,
.footer-contact h5 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.2rem;
}

.footer-links ul,
.footer-programs ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a,
.footer-programs a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: var(--ease); }
.footer-links a:hover,
.footer-programs a:hover { color: var(--white); padding-left: 4px; }

.contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-list i { color: rgba(255,255,255,0.3); font-size: 0.85rem; width: 16px; flex-shrink: 0; margin-top: 0.18rem; }
.contact-list a { font-size: 0.845rem; color: rgba(255,255,255,0.55); transition: var(--ease); line-height: 1.6; }
.contact-list a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    right: 2rem;
    width: 58px; height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.55rem;
    z-index: 998;
    box-shadow: 0 4px 22px rgba(37,211,102,0.5);
    transition: var(--ease);
    animation: waPulse 3s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
                transform 0.55s cubic-bezier(0.34,1.10,0.64,1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(9px); }
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 22px rgba(37,211,102,0.5); }
    50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.75); }
}
@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.96); }
    to   { opacity: 1; transform: translateY(0)     scaleY(1); }
}

/* ===== RESPONSIVE — TABLET (≤1100px) ===== */
@media (max-width: 1100px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-wrap { position: static; max-width: 360px; }

    .achievements-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .achievement-col-featured .achievement-col-header { justify-content: flex-start; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ===== RESPONSIVE — MOBILE (≤768px) ===== */
@media (max-width: 768px) {
    .section { padding: 58px 0; }
    .hide-mobile { display: none; }

    /* Tighter container gutter on phones */
    .container { padding: 0 1.35rem; }

    /* Section header */
    .section-header { margin-bottom: 2.5rem; }
    .section-desc { font-size: 0.95rem; }

    /* Mobile nav — slide-down animation when opened */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0.85rem 1rem;
        gap: 0.15rem;
        box-shadow: 0 12px 40px rgba(0,0,0,0.14);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        border-top: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
        animation: navSlideDown 0.22s cubic-bezier(0.34, 1.15, 0.64, 1);
    }
    .nav-links a {
        color: var(--gray) !important;
        padding: 0.82rem 1rem;
        width: 100%;
        border-radius: 8px;
        font-size: 0.92rem;
    }
    .nav-links a:hover  { background: var(--light)   !important; color: var(--accent) !important; }
    .nav-links a:active { background: rgba(37,99,235,0.1) !important; color: var(--accent) !important; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }

    /* Hero — tighter on mobile */
    .hero { padding: 6.5rem 0 3.5rem; }
    .hero-badge { margin-bottom: 1.4rem; font-size: 0.74rem; }
    .hero-heading { margin-bottom: 1.1rem; }
    .hero-subheading { margin-bottom: 2rem; font-size: 0.97rem; }
    .hero-stats { flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-ctas { flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-ctas .btn { min-width: 220px; justify-content: center; }

    /* Buttons — touch-friendly minimum height */
    .btn { min-height: 44px; }
    .btn-lg { min-height: 48px; }

    /* Cards */
    .review-card { padding: 1.45rem; }
    .review-card-featured { box-shadow: var(--shadow); }

    /* Grids */
    .philosophy-grid  { grid-template-columns: 1fr; }
    .reviews-grid     { grid-template-columns: 1fr; }

    /* FAQ */
    .faq-question { padding: 1.05rem 1.2rem; font-size: 0.93rem; }

    /* Enquiry */
    .enquiry-wrapper  { grid-template-columns: 1fr; gap: 2rem; }
    .form-row         { grid-template-columns: 1fr; }
    /* Prevent iOS auto-zoom on input focus (requires ≥16px font) */
    .form-group input,
    .form-group select { font-size: 1rem; }

    /* Contact tap targets */
    .contact-link { padding: 0.95rem 1.1rem; min-height: 52px; }

    /* Footer */
    .footer-top { padding: 3.5rem 0 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { grid-column: auto; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .footer-links ul,
    .footer-programs ul { gap: 0.75rem; }
    .footer-links a,
    .footer-programs a { font-size: 0.9rem; padding: 0.15rem 0; }

    /* WhatsApp float — smaller, safe area aware */
    .whatsapp-float {
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        right: 1.25rem;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
}

/* ===== RESPONSIVE — SMALL MOBILE (≤480px) ===== */
@media (max-width: 480px) {
    .section { padding: 48px 0; }
    .container { padding: 0 1.1rem; }

    .programs-grid { grid-template-columns: 1fr; }
    .why-grid      { grid-template-columns: 1fr; }

    /* Hero */
    .hero { padding: 6rem 0 3rem; }
    .hero-heading { font-size: 1.95rem; }
    /* Full-width CTAs on very small screens */
    .hero-ctas .btn { width: 100%; max-width: 300px; }

    /* Cards */
    .program-card { padding: 1.5rem 1.3rem; }
    .review-card  { padding: 1.25rem; }

    /* Stats strip — 2-column grid on small phones */
    .stats-strip-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        justify-items: center;
    }
    .strip-num { font-size: 1.85rem; }

    /* Buttons */
    .btn-lg { padding: 0.9rem 1.75rem; }

    /* Forms */
    .enquiry-form-wrap { padding: 1.35rem 1.1rem; }

    /* Philosophy */
    .philosophy-item { padding: 1.5rem 1.25rem; gap: 1rem; }
    .philosophy-num  { font-size: 2rem; min-width: 2.25rem; }

    /* Section headers */
    .section-header { margin-bottom: 2rem; }
}
