/* =============================================
   LEARNOVA GLOBAL — Custom Stylesheet
   ============================================= */

/* ===== SELF-HOSTED FONTS ===== */
/* Roboto latin-ext (covers Spanish accented chars: á é í ó ú ñ ü) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Roboto latin (base set: a-z, 0-9, standard punctuation) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --color-navy:       #0f172a;
    --color-navy-light: #1e293b;
    --color-amber:      #f59e0b;
    --color-amber-dark: #d97706;
    --color-amber-soft: rgba(245,158,11,0.10);
    --color-white:      #ffffff;
    --color-gray-alt:   #f1f5f9;
    --color-text-muted: #64748b;
    --font-main:        'Roboto', sans-serif;
    --transition-base:  0.3s ease;
    --radius-base:      0.75rem;

    /* Contact info — update here to propagate everywhere */
    --contact-email:    info@learnovaglobal.com;
    --contact-phone:    +51 999 999 999;
    --contact-wa:       51999999999;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-main); }

/* ===== NAVBAR ===== */
.navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); }
.navbar-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

/* Logo */
.nav-logo-wrap {
    height: 4.5rem;
    display: flex;
    align-items: center;
    overflow: visible;
}
.nav-logo {
    height: 10.5rem;
    width: auto;
    margin-top: 1.5rem;
    transition: height var(--transition-base), margin-top var(--transition-base);
}
.navbar.scrolled .nav-logo      { height: 8rem; margin-top: 1rem; }
.navbar.scrolled .nav-logo-wrap { height: 4.5rem; }

/* Language toggle */
.lang-btn {
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: background-color var(--transition-base), color var(--transition-base);
}
.lang-btn.active { background-color: var(--color-amber); color: var(--color-navy); border-color: var(--color-amber); }
.lang-btn:not(.active):hover { color: #334155; }

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 40%, var(--color-navy) 100%);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(245,158,11,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,158,11,0.25), transparent);
}

/* Hero decorative dots */
.hero-dots-p1 {
    position: absolute;
    width: 180px; height: 180px;
    opacity: 0.04;
    background-image: radial-gradient(circle, var(--color-amber) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    pointer-events: none;
}

/* Hero ambient glow */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

/* Hero highlight word */
.hero-highlight { color: var(--color-amber); position: relative; }
.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-amber), var(--color-amber-dark));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: highlightLine 1s ease-out 0.8s forwards;
}
@keyframes highlightLine { to { transform: scaleX(1); } }

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,158,11,0.10);
    border: 1px solid rgba(245,158,11,0.20);
    color: #fbbf24;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: badgeFadeIn 0.6s ease-out 0.3s both;
}
@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero form card glow */
.hero-form-card { position: relative; }
.hero-form-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,0.30), transparent 40%, transparent 60%, rgba(245,158,11,0.15));
    z-index: -1;
    opacity: 0;
    animation: formGlow 1.2s ease-out 1s forwards;
}
@keyframes formGlow { to { opacity: 1; } }

/* Hero floating stat badges (XL screens only) */
.hero-stat-float {
    position: absolute;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #fff;
    display: none;
}
@media (min-width: 1280px) { .hero-stat-float { display: flex; } }
@keyframes statFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.stat-float-1 { animation: statFloat 5s ease-in-out infinite; }
.stat-float-2 { animation: statFloat 6s ease-in-out 1s infinite; }

/* ===== COMMON ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== SECTION LABEL ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-amber);
    margin-bottom: 0.75rem;
}
.section-label::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--color-amber);
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn-amber {
    background: var(--color-amber);
    color: var(--color-navy);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background var(--transition-base), transform var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn-amber:hover { background: var(--color-amber-dark); transform: translateY(-1px); }
.btn-amber:disabled,
button[type="submit"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* ===== FORM FEEDBACK MESSAGES ===== */
.form-msg-success,
.form-msg-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}
.form-msg-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.form-msg-success .fas {
    font-size: 18px;
    color: #16a34a;
    flex-shrink: 0;
}
.form-msg-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.form-msg-error .fas {
    font-size: 18px;
    color: #dc2626;
    flex-shrink: 0;
}

/* ===== FORM ===== */
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-main);
    transition: border-color var(--transition-base);
    outline: none;
    background: #fff;
}
.form-input:focus {
    border-color: var(--color-amber);
    box-shadow: 0 0 0 2px rgba(245,158,11,0.15);
}
.form-input::placeholder { color: #9ca3af; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ===== CAROUSEL ===== */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide { flex-shrink: 0; padding: 0 8px; }
.carousel-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    cursor: pointer;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(15,23,42,0.70);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color var(--transition-base);
    z-index: 10;
}
.carousel-arrow:hover { background: rgba(15,23,42,0.95); }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }

/* ===== CARDS ===== */
.service-card { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.pain-card { transition: transform var(--transition-base); }
.pain-card:hover { transform: translateY(-2px); }

.pillar-card {
    border: 1px solid rgba(255,255,255,0.10);
    transition: border-color var(--transition-base);
}
.pillar-card:hover { border-color: var(--color-amber); }

/* ===== FAQ ===== */
.faq-section {
    background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, rgba(245,158,11,0.02) 100%);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 300px; }
.accordion-chevron { transition: transform 0.3s ease; }
.accordion-chevron.rotated { transform: rotate(180deg); }

/* ===== MODALS (shared pattern) ===== */
/* Contact modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
    transform: scale(0.90); opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
    max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal-card { transform: scale(1); opacity: 1; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; z-index: 6000;
    background: rgba(0,0,0,0.90);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 85vh;
    border-radius: var(--radius-base);
    box-shadow: 0 20px 60px rgba(0,0,0,0.50);
    object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2rem; cursor: pointer;
    background: rgba(255,255,255,0.10); border: none;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-base);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 1.5rem; cursor: pointer;
    background: rgba(255,255,255,0.10); border: none;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-base);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.70); font-size: 0.85rem;
}

/* ===== POLICY MODAL ===== */
.policy-overlay {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(15,23,42,0.65);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.policy-overlay.active { opacity: 1; visibility: visible; }

.policy-card {
    width: 100%; max-width: 620px; max-height: 88vh;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 1px 3px rgba(0,0,0,0.08);
    display: flex; flex-direction: column;
    transform: translateY(16px); opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
    overflow: hidden;
}
.policy-overlay.active .policy-card { transform: translateY(0); opacity: 1; }

/* ── Header ── */
.policy-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.policy-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.policy-header-text { flex: 1; }
.policy-header-icon { display: none; }
.policy-header h3 {
    font-size: 1.05rem; font-weight: 700;
    color: var(--color-navy); margin: 0 0 0.15rem;
}
.policy-header-sub {
    font-size: 0.73rem; color: var(--color-text-muted);
    letter-spacing: 0.04em; text-transform: uppercase;
}
.policy-close {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc; color: var(--color-text-muted);
    font-size: 0.9rem; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.policy-close:hover { background: #e2e8f0; color: var(--color-navy); }

/* ── Date strip ── */
.policy-date {
    padding: 0.5rem 1.75rem;
    font-size: 0.75rem; color: var(--color-text-muted);
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.policy-date strong { color: #475569; font-weight: 600; }

/* ── Scrollable body ── */
.policy-body {
    padding: 1.5rem 1.75rem;
    overflow-y: auto; flex: 1;
    display: flex; flex-direction: column; gap: 0;
}
.policy-body::-webkit-scrollbar { width: 4px; }
.policy-body::-webkit-scrollbar-track { background: transparent; }
.policy-body::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* ── Sections ── */
.policy-section {
    padding: 1.1rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.policy-section:last-child { border-bottom: none; }
.policy-body h2 {
    display: flex; align-items: center; gap: 0.6rem;
    color: var(--color-navy); font-size: 0.85rem; font-weight: 700;
    margin: 0 0 0.5rem; border: none; padding: 0;
}
.policy-body h2 .policy-icon {
    width: 22px; height: 22px; border-radius: 5px;
    background: var(--color-amber-soft);
    color: var(--color-amber-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; flex-shrink: 0;
}
.policy-body p {
    margin: 0; font-size: 0.855rem;
    line-height: 1.75; color: #64748b;
}

/* ── List ── */
.policy-body ul {
    list-style: none; padding: 0; margin: 0.6rem 0 0;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.policy-body li {
    display: flex; align-items: baseline; gap: 0.5rem;
    font-size: 0.845rem; line-height: 1.6; color: #64748b;
    padding: 0.2rem 0;
}
.policy-body li::before {
    content: '—';
    color: var(--color-amber); font-weight: 700;
    font-size: 0.7rem; flex-shrink: 0;
}

/* ── Footer ── */
.policy-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-shrink: 0; background: #f8fafc;
}
.policy-footer-note {
    font-size: 0.73rem; color: var(--color-text-muted);
}
.policy-footer button {
    background: var(--color-navy); color: #fff;
    border: none; border-radius: 0.5rem;
    padding: 0.55rem 1.4rem; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; letter-spacing: 0.02em;
    transition: background 0.2s ease;
    white-space: nowrap;
}
.policy-footer button:hover { background: #1e293b; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.40);
    cursor: pointer;
    z-index: 9999;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: whatsappBounce 3s infinite;
}
.whatsapp-float:hover {
    animation: none;
    transform: scale(1.10);
    box-shadow: 0 6px 24px rgba(37,211,102,0.50);
}
@keyframes whatsappBounce {
    0%, 100% { transform: translateY(0); }
    15%       { transform: translateY(-8px); }
    30%       { transform: translateY(0); }
    45%       { transform: translateY(-4px); }
    60%       { transform: translateY(0); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 90px; right: 28px; z-index: 9999;
    width: 44px; height: 44px;
    background: var(--color-navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-amber);
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer; border: none;
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-navy-light); transform: scale(1.10); }

/* ===== PRINT ===== */
@media print { body { display: none; } }
