/* =========================================================
   ZABANE ABI — COMPONENTS.CSS
   All .za-* component classes
   v1.3.1 — Reverted backdrop to v1.0.0 (aurora blob style)
   ========================================================= */

/* ============== CINEMATIC BACKDROP (v1.3.1 — reverted to v1.0.0) ============== */
.za-atmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg);
}

.za-atmos__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
}

.za-atmos__blob-a {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--teal), transparent 70%);
    top: -10vw;
    inset-inline-start: -10vw;
    animation: za-aurora-a 28s ease-in-out infinite alternate;
}

.za-atmos__blob-b {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--blue), transparent 70%);
    bottom: -10vw;
    inset-inline-end: -10vw;
    animation: za-aurora-b 34s ease-in-out infinite alternate;
}

.za-atmos__blob-c {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--indigo), transparent 70%);
    top: 40%;
    inset-inline-start: 30%;
    animation: za-aurora-a 40s ease-in-out infinite alternate-reverse;
    opacity: 0.25;
}

@keyframes za-aurora-a {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vw, 6vw) scale(1.15); }
}

@keyframes za-aurora-b {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-6vw, -4vw) scale(1); }
}

/* Grain — subtle */
.za-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============== LAYOUT HELPERS ============== */
.za-wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
    z-index: 2;
}

/* v1.3.0: Global icon sizing — prevent icons from being too large */
/* Icons in icon containers should be 20px (standard) or 24px (in large containers) */
.za-usp-card__icon svg,
.za-about-value-card__icon svg,
.za-course-stats svg,
.za-planner-helper svg,
.za-planner-login__icon svg,
.za-cta-band svg,
.za-card svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Larger icons in 48px+ containers */
.za-usp-card__icon svg,
.za-about-value-card__icon svg {
    width: 24px;
    height: 24px;
}

/* v1.3.0: Contact page icon containers (44px) — icons should be 20px */
.za-card > div[style*="width:44px"] svg,
.za-card > div[style*="width: 44px"] svg {
    width: 20px;
    height: 20px;
}

/* v1.3.0: Guarantee page step icons (40px) — icons should be 16px */
.za-card > div[style*="width:40px"] svg,
.za-card > div[style*="width: 40px"] svg {
    width: 16px;
    height: 16px;
}

/* Smaller icons in 32-36px containers (contact info, etc.) */
.za-footer__contact svg {
    width: 14px;
    height: 14px;
}

/* Icon in button — should match text size */
.za-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Icon in eyebrow — small */
.za-eyebrow svg {
    width: 14px;
    height: 14px;
}

/* v1.3.0: Inline SVGs with explicit stroke (course stats, etc.) */
.za-card svg[viewBox="0 0 24 24"] {
    max-width: 24px;
    max-height: 24px;
}

.za-section {
    padding-block: 6rem;
    position: relative;
    z-index: 2;
}

.za-section--tight {
    padding-block: 4rem;
}

/* ============== EYEBROW ============== */
.za-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 1rem;
}

.za-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--teal);
    display: inline-block;
}

/* ============== DISPLAY HEADLINES ============== */
.za-display-fa {
    font-family: var(--sans-fa);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.za-display-en {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.2rem, 4.9vw, 3.65rem);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.za-h3 {
    font-family: var(--sans-fa);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--ink);
}

.za-lead {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.85;
    color: var(--muted);
    max-width: 65ch;
}

.za-metal {
    background: var(--gradient-metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.za-num {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3.4rem);
    background: var(--gradient-metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

/* ============== BUTTONS ============== */
.za-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--sans-fa);
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.za-btn--primary {
    background: var(--gradient-teal);
    color: var(--bg);
    box-shadow: 0 10px 30px -10px rgba(22, 210, 212, 0.5);
}

.za-btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: inset-inline-start 0.6s ease;
}

.za-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(22, 210, 212, 0.7);
}

.za-btn--primary:hover::after {
    inset-inline-start: 150%;
}

.za-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--hair);
}

.za-btn--ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.za-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ============== CHIPS ============== */
.za-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.za-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(22, 210, 212, 0.08);
    border: 1px solid rgba(22, 210, 212, 0.2);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 500;
}

/* ============== CARD ============== */
.za-card {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.za-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 210, 212, 0.4);
    box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 0 40px -20px rgba(22, 210, 212, 0.3);
}

.za-card--tight {
    padding: 1rem;
}

/* ============== HAIRLINE ============== */
.za-hair {
    height: 1px;
    background: var(--hair);
    width: 100%;
}

/* ============== SCROLL REVEAL ============== */
.za-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.za-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============== CURSOR SPOTLIGHT (v1.3.1 — reverted to v1.0.0) ============== */
.za-fx__spot {
    position: fixed;
    pointer-events: none;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 210, 212, 0.06), transparent 70%);
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

/* ============== SCROLL PROGRESS ============== */
.za-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 2px;
    background: var(--gradient-teal);
    z-index: 100;
    transition: width 0.1s linear;
}

/* ============== MARQUEE ============== */
.za-marquee {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.za-marquee__track {
    display: flex;
    gap: 3rem;
    animation: za-marq 38s linear infinite;
    padding-inline-end: 3rem;
    align-items: center;
}

@keyframes za-marq {
    to { transform: translateX(50%); }
}

/* ============== ACCORDION (v1.2.0 — fixed close bug + smooth animation) ============== */
.za-acc {
    border: 1px solid var(--hair);
    border-radius: var(--radius-sm);
    background: var(--panel);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.za-acc:hover {
    border-color: rgba(22, 210, 212, 0.25);
}

.za-acc.is-open {
    border-color: rgba(22, 210, 212, 0.4);
    box-shadow: 0 8px 24px -12px rgba(22, 210, 212, 0.2);
}

.za-acc__head {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    transition: color 0.2s;
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    font-family: var(--sans-fa);
}

.za-acc__head:hover { color: var(--teal); }
.za-acc.is-open .za-acc__head { color: var(--teal); }

.za-acc__body {
    /* Default: closed — max-height: 0 + overflow hidden + no padding */
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--muted);
    line-height: 1.85;
    /* Smooth transition — max-height animated by JS, padding & opacity by CSS */
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out), opacity 0.3s var(--ease);
    opacity: 0;
}

.za-acc.is-open .za-acc__body {
    padding: 0 1.5rem 1.25rem;
    opacity: 1;
}

.za-acc__icon {
    width: 20px;
    height: 20px;
    color: var(--teal);
    transition: transform 0.4s var(--ease-out);
    flex-shrink: 0;
}

.za-acc.is-open .za-acc__icon {
    transform: rotate(180deg);
}

/* FAQ container — width matching Next.js design */
.za-faq-accordion {
    max-width: 768px;
    margin-inline: auto;
}

/* ============== PAGE HERO ============== */
.za-pagehero {
    padding-top: 9rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* ============== STAT BAND ============== */
.za-statband {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2.5rem;
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
}

.za-statband__item {
    text-align: center;
}

.za-statband__item .za-num {
    margin-bottom: 0.5rem;
}

.za-stat-label {
    color: var(--muted);
    font-size: 0.875rem;
}

/* ============== TOAST ============== */
.za-toast {
    position: fixed;
    bottom: 2rem;
    inset-inline-end: 2rem;
    z-index: 1000;
    padding: 1rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--teal);
    border-radius: var(--radius-sm);
    color: var(--ink);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    animation: za-toast-in 0.3s ease;
    max-width: 360px;
}

.za-toast--error { border-color: #ef4444; }
.za-toast--success { border-color: var(--teal); }

@keyframes za-toast-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============== PROGRESS BAR ============== */
.za-progress-bar {
    height: 8px;
    background: var(--panel-2);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.za-progress-bar > div {
    height: 100%;
    background: var(--gradient-teal);
    border-radius: 999px;
    transition: width 0.5s var(--ease);
}

/* ============== COURSES GRID ============== */
.za-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.za-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.za-faq-accordion {
    max-width: 768px;
    margin-inline: auto;
}

/* ============== EMPTY STATE ============== */
.za-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
}

.za-empty-state p {
    margin-bottom: 1rem;
}

/* ============== THANK YOU MESSAGE ============== */
.za-thankyou-message {
    text-align: center;
    padding: 3rem 1.5rem;
}

.za-thankyou-message h2 {
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.za-thankyou-message p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .za-section { padding-block: 4rem; }
    .za-wrap { padding-inline: 1rem; }
    .za-statband { padding: 1.5rem; gap: 1.5rem; }
    .za-courses-grid,
    .za-testimonials-grid {
        grid-template-columns: 1fr;
    }
    .za-btn {
        width: 100%;
    }
    .za-toast {
        bottom: 1rem;
        inset-inline: 1rem;
        max-width: none;
    }
}
