/*
Theme Name: Ribotical
Theme URI: https://ribotical.co.za
Author: Ribotical - Riana du Plooy
Author URI: https://ribotical.co.za
Description: CAPS-aligned robotics, coding and digital innovation curriculum theme for South African schools. Mobile-first, fast-loading design.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ribotical
Tags: education, one-column, custom-logo, responsive
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ═══════════════════════════════════════════
   RIBOTICAL v2 — Professional Redesign
   Mobile-First · Polished · Modern
   ═══════════════════════════════════════════ */

:root {
    --teal: #0D9488;
    --teal-lt: #CCFBF1;
    --teal-dk: #115E59;
    --teal-deep: #042F2E;
    --orange: #EA580C;
    --orange-lt: #FFF7ED;
    --purple: #7C3AED;
    --green: #16A34A;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    --shadow-teal: 0 4px 16px rgba(13, 148, 136, 0.2);
    --trans: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-head: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--gray-700); background: var(--white); line-height: 1.75; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--trans); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Accessibility ── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    font-family: var(--font-body);
    text-align: center;
    justify-content: center;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}
.btn--lg { padding: 15px 32px; font-size: 0.95rem; border-radius: 12px; }
.btn--fill {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    box-shadow: var(--shadow-teal);
}
.btn--fill:hover {
    background: var(--teal-dk);
    border-color: var(--teal-dk);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.3);
    transform: translateY(-1px);
}
.btn--fill:active { transform: translateY(0); }
.btn--ghost {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn--ghost:hover {
    background: var(--teal);
    color: var(--white);
    box-shadow: var(--shadow-teal);
    transform: translateY(-1px);
}
.btn--ghost:active { transform: translateY(0); }
.btn--white {
    background: var(--white);
    color: var(--teal-dk);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn--white:hover {
    background: var(--teal-lt);
    border-color: var(--teal-lt);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════
   MOBILE BASE STYLES (< 768px)
   ══════════════════════════════════════ */

/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 14px 0;
    transition: var(--trans);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo__img { height: 46px; width: auto; transition: var(--trans); }
.nav { display: none; }
.nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    gap: 4px;
}
.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 12px 16px;
    border-radius: var(--radius);
    transition: var(--trans);
}
.nav a:hover { color: var(--teal); background: var(--teal-lt); }
.header .btn--header { display: none; }
.burger {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    border-radius: 6px;
    transition: var(--trans-fast);
}
.burger:hover { background: var(--gray-100); }
.burger span { width: 22px; height: 2px; background: var(--gray-800); display: block; border-radius: 2px; transition: var(--trans); }

/* ── Hero ── */
.hero {
    padding: 48px 0 40px;
    background: linear-gradient(160deg, #042F2E 0%, #115E59 40%, #0D9488 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(234, 88, 12, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero__grid { display: flex; flex-direction: column; gap: 28px; text-align: center; position: relative; z-index: 1; }
.hero__img { order: -1; display: flex; justify-content: center; position: relative; }
.hero__img::before {
    content: '';
    position: absolute;
    inset: -12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(13,148,136,0.2) 100%);
    border-radius: var(--radius-2xl);
    transform: rotate(3deg);
    z-index: -1;
}
.hero__img img {
    max-height: 240px;
    width: auto;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.15);
}
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero__tag svg { stroke: var(--teal-lt); }
.hero h1 {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero__desc { font-size: 1rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 28px; line-height: 1.7; }
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__btns .btn--fill { background: var(--orange); border-color: var(--orange); color: var(--white); }
.hero__btns .btn--fill:hover { background: #c2410c; border-color: #c2410c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35); }
.hero__btns .btn--ghost { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.hero__btns .btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.hero__creds {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.cred {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cred svg { stroke: var(--teal-lt); }
.cred strong {
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ── Why Section ── */
.why { padding: 56px 0; background: var(--white); }
.why__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-card {
    padding: 24px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--trans);
    background: var(--white);
    position: relative;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dk));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--trans);
}
.why-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.why-card:hover::before { opacity: 1; }
.why-card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--teal-lt), #e0faf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.why-card__icon svg { stroke: var(--teal); }
.why-card h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.why-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; }

/* ── Section Heads ── */
.sec-head { margin-bottom: 32px; }
.sec-head h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.sec-head p { font-size: 0.95rem; color: var(--gray-500); line-height: 1.6; max-width: 560px; }

/* ── Programmes ── */
.programmes { padding: 56px 0; background: var(--gray-50); }
.phase-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.phase {
    padding: 28px 22px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: var(--trans);
    position: relative;
    overflow: hidden;
}
.phase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    transition: var(--trans);
    opacity: 0.06;
}
.phase:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.phase:hover::after { height: 100%; }
.phase[data-phase="foundation"] { border-top: 4px solid var(--green); }
.phase[data-phase="foundation"]::after { background: var(--green); }
.phase[data-phase="intermediate"] { border-top: 4px solid var(--orange); }
.phase[data-phase="intermediate"]::after { background: var(--orange); }
.phase[data-phase="senior"] { border-top: 4px solid var(--purple); }
.phase[data-phase="senior"]::after { background: var(--purple); }
.phase__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; position: relative; z-index: 1; }
.phase__mascot { width: 52px; height: 52px; object-fit: contain; }
.phase__mascot-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.phase__mascot-icon--foundation { background: #dcfce7; color: var(--green); }
.phase__mascot-icon--intermediate { background: var(--orange-lt); color: var(--orange); }
.phase__mascot-icon--senior { background: #ede9fe; color: var(--purple); }
.phase__top h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; }
.phase__label { font-size: 0.76rem; font-weight: 600; color: var(--teal); letter-spacing: 0.3px; }
.phase p { font-size: 0.88rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.7; position: relative; z-index: 1; }
.phase__skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.phase__skills li {
    padding: 5px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--trans-fast);
}
.phase:hover .phase__skills li { background: var(--teal-lt); color: var(--teal-dk); }

/* ── Offerings ── */
.offerings { padding: 56px 0; background: var(--white); }
.offer-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.offer {
    padding: 28px 22px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--trans);
    display: flex;
    flex-direction: column;
    background: var(--white);
    position: relative;
}
.offer:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.offer__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--teal-lt), #e0faf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--trans);
}
.offer:hover .offer__icon {
    background: linear-gradient(135deg, var(--teal), var(--teal-dk));
}
.offer:hover .offer__icon svg { stroke: var(--white); }
.offer__icon svg { stroke: var(--teal); transition: var(--trans); }
.offer h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}
.offer p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; }

/* ── Video Showcase ── */
.videos { padding: 56px 0; background: var(--gray-50); }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.video-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: none;
    transition: var(--trans);
    background: var(--white);
    box-shadow: var(--shadow);
}
.video-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.video-card--main { grid-row: auto; }
.video-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-900);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    transition: var(--trans);
    cursor: pointer;
}
.video-card__play::before {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: var(--trans-spring);
}
.video-card:hover .video-card__play::before {
    transform: scale(1.1);
    background: var(--white);
    box-shadow: 0 6px 32px rgba(0,0,0,0.3);
}
.video-card__play svg {
    position: relative;
    z-index: 1;
    fill: var(--teal);
    filter: none;
    transition: var(--trans);
}
.video-card:hover .video-card__play svg { fill: var(--teal-dk); }
.video-card:hover .video-card__play { background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%); }
.video-card h4 { padding: 16px 20px 6px; font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--gray-900); }
.video-card p { padding: 0 20px 16px; font-size: 0.85rem; color: var(--gray-500); line-height: 1.5; }

/* ── Video Facade (click-to-play) ── */
.video-facade { cursor: pointer; }
.video-facade:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.video-facade--playing { cursor: default; }
.video-facade--playing .video-card__play { display: none; }
.video-credit { margin-top: 24px; font-size: 0.78rem; color: var(--gray-400); text-align: center; font-style: italic; }
.video-credit a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.video-credit a:hover { color: var(--teal-dk); }

/* ── Shorts / Portrait Videos ── */
.video-shorts-heading {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 40px 0 16px;
}
.video-grid--landscape { display: grid; grid-template-columns: 1fr; gap: 20px; }
.video-grid--shorts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-card--portrait { max-width: 280px; margin: 0 auto; width: 100%; }
.video-card__thumb--portrait { aspect-ratio: 9/16; }
.video-card__thumb--portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ── Gallery ── */
.gallery { padding: 56px 0; background: var(--white); }
.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery__item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 0;
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery__item:hover img { transform: scale(1.04); }

/* ── Teacher Training ── */
.training {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--teal-dk) 0%, var(--teal) 50%, #0f766e 100%);
    position: relative;
    overflow: hidden;
}
.training::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.training::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.training__grid { display: flex; flex-direction: column; gap: 32px; position: relative; z-index: 1; }
.training__img { order: -1; }
.training__img img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 3px solid rgba(255,255,255,0.15);
}
.training__text h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.training__text > p { color: rgba(255,255,255,0.95); font-size: 0.95rem; margin-bottom: 22px; line-height: 1.7; }
.training__text ul { list-style: none; margin-bottom: 16px; }
.training__text li {
    padding: 12px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.training__text li:last-child { border-bottom: none; }
.training__text li strong { color: var(--white); font-weight: 700; }
.training__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.15);
}
.training__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 4px;
}
.training__icon svg { stroke: rgba(255,255,255,0.85); }

/* ── About ── */
.about { padding: 56px 0; background: var(--white); }
.about__grid { display: flex; flex-direction: column; gap: 32px; }
.about__text h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.about__text p {
    font-size: 0.92rem;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.8;
}
.about__text .btn { margin-top: 8px; }
.about__img { position: relative; }
.about__img img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.about__mascot {
    position: absolute;
    bottom: -20px;
    right: -10px;
    width: 100px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
    z-index: 2;
    border-radius: var(--radius-lg);
    background: var(--white);
    padding: 6px;
}

/* ── CTA ── */
.cta {
    padding: 56px 0;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    position: relative;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.3;
}
.cta__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
    align-items: center;
}
.cta__img {
    max-height: 200px;
    width: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--white);
}
.cta__text h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.cta__text p { font-size: 0.95rem; color: var(--gray-600); margin-bottom: 24px; line-height: 1.7; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ── */
.footer {
    background: linear-gradient(180deg, var(--gray-900) 0%, #0a0f1a 100%);
    color: var(--gray-400);
    padding: 48px 0 0;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__brand p { font-size: 0.88rem; color: var(--gray-400); margin-top: 8px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 6px;
}
.footer__col a {
    font-size: 0.88rem;
    color: var(--gray-400);
    transition: var(--trans-fast);
    padding: 2px 0;
}
.footer__col a:hover { color: var(--teal-lt); padding-left: 4px; }
.footer__bottom { padding: 20px 0; }
.footer__bottom p { font-size: 0.8rem; color: var(--gray-500); }

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
    transition: var(--trans-spring);
    animation: whatsapp-pulse 3s ease-in-out 3;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
    animation: none;
}
@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0); }
}

/* ── Scroll Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════
   TABLET (min-width: 768px)
   ══════════════════════════════════════ */
@media (min-width: 768px) {
    .wrap { padding: 0 32px; }

    /* Header */
    .nav {
        display: flex;
        gap: 4px;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    .nav a { font-size: 0.88rem; padding: 8px 14px; border-radius: 8px; }
    .header .btn--header { display: inline-flex; }
    .burger { display: none; }
    .logo__img { height: 50px; }

    /* Hero */
    .hero { padding: 72px 0 56px; }
    .hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; text-align: left; }
    .hero__img { order: 0; }
    .hero__img img { max-height: 360px; width: 100%; max-width: 400px; object-fit: cover; }
    .hero h1 { font-size: 2.2rem; }
    .hero__btns { justify-content: flex-start; }
    .hero__creds { flex-direction: row; gap: 32px; align-items: flex-start; text-align: left; }

    /* Why */
    .why { padding: 64px 0; }
    .why__grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Programmes */
    .programmes { padding: 72px 0; }
    .phase-row { grid-template-columns: 1fr 1fr; }

    /* Offerings */
    .offerings { padding: 72px 0; }
    .offer-row { grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Videos */
    .videos { padding: 72px 0; }
    .video-grid--landscape { grid-template-columns: 1.5fr 1fr; gap: 24px; }
    .video-grid--shorts { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .video-card--portrait { max-width: none; }
    .video-card--main { grid-row: 1 / 3; }
    .video-card--main .video-card__thumb { aspect-ratio: auto; height: 100%; }
    .video-card--main .video-card__play::before { width: 72px; height: 72px; }

    /* Gallery */
    .gallery { padding: 72px 0; }
    .gallery__grid { grid-template-columns: 1.5fr 1fr; gap: 20px; }
    .gallery__item--wide { grid-column: 1 / -1; }
    .gallery__item { height: 280px; }

    /* Training */
    .training { padding: 72px 0; }
    .training__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
    .training__img { order: 0; }

    /* About */
    .about { padding: 72px 0; }
    .about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

    /* CTA */
    .cta { padding: 72px 0; }
    .cta__inner { display: grid; grid-template-columns: 0.35fr 1fr; gap: 40px; text-align: left; align-items: center; }
    .cta__btns { justify-content: flex-start; }

    /* Footer */
    .footer { padding: 56px 0 0; }
    .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }

    /* WhatsApp */
    .whatsapp-float { width: 58px; height: 58px; bottom: 28px; right: 28px; }
}

/* ══════════════════════════════════════
   DESKTOP (min-width: 1024px)
   ══════════════════════════════════════ */
@media (min-width: 1024px) {
    .wrap { max-width: 1200px; }

    /* Hero */
    .hero { padding: 88px 0 64px; }
    .hero__grid { gap: 64px; }
    .hero__img img { max-height: 420px; max-width: 460px; }
    .hero h1 { font-size: clamp(2.4rem, 4vw, 3rem); }
    .hero__creds { gap: 40px; }

    /* Why */
    .why { padding: 80px 0; }
    .why__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .why-card { padding: 28px 22px; }

    /* Programmes */
    .programmes { padding: 88px 0; }
    .phase-row { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .phase { padding: 32px 26px; }

    /* Offerings */
    .offerings { padding: 88px 0; }
    .offer-row { grid-template-columns: repeat(4, 1fr); gap: 24px; }

    /* Videos */
    .videos { padding: 88px 0; }
    .video-grid--shorts { grid-template-columns: repeat(5, 1fr); }

    /* Gallery */
    .gallery { padding: 88px 0; }
    .gallery__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
    .gallery__item--wide { grid-column: 1 / 2; grid-row: 1 / 2; }
    .gallery__item { height: 320px; }

    /* Training */
    .training { padding: 88px 0; }
    .training__grid { gap: 60px; }
    .training__text h2 { font-size: 2rem; }

    /* About */
    .about { padding: 88px 0; }
    .about__grid { gap: 60px; }
    .about__text h2 { font-size: 1.9rem; }

    /* CTA */
    .cta { padding: 88px 0; }
    .cta__inner { gap: 48px; }
    .cta__text h2 { font-size: 1.8rem; }

    /* Sec Heads */
    .sec-head { margin-bottom: 48px; }
    .sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
}

/* ══════════════════════════════════════
   WIDE DESKTOP (min-width: 1280px)
   ══════════════════════════════════════ */
@media (min-width: 1280px) {
    .wrap { max-width: 1280px; padding: 0 40px; }
    .hero h1 { font-size: 3.2rem; }
    .hero__img img { max-height: 420px; }
}

/* ── WordPress Specific ── */
.wp-block-image img { border-radius: var(--radius-lg); }
.entry-content { padding: 56px 0; }
.entry-content h1, .entry-content h2, .entry-content h3 {
    font-family: var(--font-head);
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* ── Print ── */
@media print {
    .header, .whatsapp-float, .burger { display: none; }
    .hero, .training, .cta { background: none; color: #000; }
    body { font-size: 12pt; color: #000; }
}
