/*
Theme Name: IT Skills Enterprise
Theme URI: https://itskillsinstitution.com/
Description: Standalone Independent Premium Theme for IT Skills Institution
Author: Senior Pro Dev
Version: 1.0.0
Text Domain: itskills-enterprise
*/

:root {
    /* 5-Color System */
    --bg: #ffffff;
    --text: #0f172a;       /* slate-900 */
    --text-muted: #64748b; /* slate-500 */
    --border: #e2e8f0;     /* slate-200 */
    --primary: #0ea5e9;    /* sky-500 */
    --primary-light: rgba(14, 165, 233, 0.2);
    
    /* Fluid Typography Clamps */
    --font-size-base: clamp(1rem, 1vw + 0.5rem, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
    --font-size-xl: clamp(1.5rem, 2vw + 1rem, 2rem);
    --font-size-display: clamp(2.5rem, 6vw, 4rem);

    /* Safe Area Insets for Mobile */
    --sab: env(safe-area-inset-bottom);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BASE FLUID STYLES & RESETS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO: VIEWPORT FIT — fills screen, zero scroll on desktop
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.min-h-\[750px\].lg\:h-\[100dvh\],
.min-h-\[100dvh\].lg\:h-\[100dvh\] {
    min-height: 100dvh;
    height: 100dvh;
}

.hero-messaging {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.8vh, 1.4rem);
}

#hero-description {
    margin-bottom: 0;
    font-size: var(--font-size-base);
}

.container-hero {
    padding-top: clamp(0.5rem, 2vh, 2rem);
    padding-bottom: clamp(0.5rem, 2vh, 2rem);
    max-width: 1280px;
    margin: 0 auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CTA BUTTON — "btn-premium"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: clamp(10px, 2vh, 14px) clamp(24px, 4vw, 32px);
    background: var(--primary);
    color: #ffffff;
    border-radius: 100px;
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        0 0 0 4px var(--primary-light),
        0 8px 24px var(--primary-light);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                background 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.1),
        0 12px 24px rgba(14, 165, 233, 0.25);
    background: #0284c7; /* hover state */
}

.btn-premium:active {
    transform: scale(0.97);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ENTERPRISE BOTTOM-SHEET (Functional Zones)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1023px) {
    .enterprise-bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 40;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        border-top-left-radius: 1.5rem;
        border-top-right-radius: 1.5rem;
        padding-bottom: var(--sab);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}
@media (min-width: 1024px) {
    .enterprise-bottom-sheet {
        position: relative;
        z-index: 10;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TICKER & STATUS BADGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sched-ticker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: clamp(8px, 1vw, 10px);
    border-radius: 14px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(14,165,233,0.08);
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}
.sched-date-bg { background: rgba(14,165,233,0.1); }
.sched-status-new { color: #ea580c; background: rgba(234, 88, 12, 0.1); }
.sched-status-open { color: #059669; background: rgba(5, 150, 105, 0.1); }
.sched-status-limited { color: #2563eb; background: rgba(37, 99, 235, 0.1); }
.sched-status-hot { color: #dc2626; background: rgba(220, 38, 38, 0.1); }

@keyframes ticker-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.sched-ticker-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: ticker-up 18s linear infinite;
}
.sched-ticker-track:hover { animation-play-state: paused; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HARDWARE ACCELERATED KEYFRAMES (CANVAS EFFECTS)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.svg-magnet {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

@keyframes glitch-burst {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4) skewX(20deg); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0; }
}
.animate-glitch {
    animation: glitch-burst 0.35s ease-out forwards;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER SCROLL STATE (VANILLA JS TRIGGER)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    /* Subtle anchor: separates the nav from the hero without being harsh */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* General Layout Utilities */
.hidden { display: none; }
@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MISSING STYLES (Restored from astra-child)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,1), transparent 80%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.btn-white-premium {
    background: #ffffff;
    color: var(--primary) !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-white-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    filter: brightness(1.02);
}
.section-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}
.section-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--primary-light);
    transform: translateY(-5px);
}
#mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 80%;
    max-width: 350px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
}
#mobile-drawer.is-open {
    transform: translateX(0);
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}
.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
button.hamburger-open .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
button.hamburger-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
button.hamburger-open .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DIGITAL ETHER — SVG Floating Animations (Restored)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.animate-float-slow {
    animation: floatAndFade 18s ease-in-out infinite;
}
.animate-float-reverse {
    animation: floatAndFadeReverse 22s ease-in-out infinite;
}

@keyframes floatAndFade {
    0%   { opacity: 0.05; transform: translateY(0px) rotate(0deg); }
    50%  { opacity: 0.3; transform: translateY(-25px) rotate(1deg); }
    100% { opacity: 0.05; transform: translateY(0px) rotate(0deg); }
}
@keyframes floatAndFadeReverse {
    0%   { opacity: 0.05; transform: translateY(0px) rotate(0deg); }
    50%  { opacity: 0.3; transform: translateY(25px) rotate(-1deg); }
    100% { opacity: 0.05; transform: translateY(0px) rotate(0deg); }
}

.animate-glitch {
    animation: bug-shimmer 8s infinite linear;
}
@keyframes bug-shimmer {
    0%, 95%, 100% { opacity: 0.05; transform: translateY(0); }
    96% { opacity: 0.4; transform: translateX(-1px); }
    97% { opacity: 0.1; transform: translateX(1px); }
    98% { opacity: 0.4; transform: translateX(0); }
}

.svg-magnet:hover {
    transform: scale(1.1) !important;
    opacity: 0.8 !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION & MOBILE DRAWER STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
nav {
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg) 80%, transparent); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.4s ease, border-color 0.4s ease;
    position: sticky;
    top: 0;
    z-index: 50;
}
body.admin-bar nav {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar nav {
        top: 46px;
    }
}

/* ─── Mobile Drawer ─────────────────────────────── */
#mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 80%;
    max-width: 350px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
}
#mobile-drawer.is-open {
    transform: translateX(0);
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Hamburger icon lines */
.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
button.hamburger-open .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
button.hamburger-open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
button.hamburger-open .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav register button */
.nav-register-btn {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.nav-register-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ─── WP Dynamic Nav Menu Styling ─────────────────────────────── */
/* Desktop Nav */
.nav-links-desktop ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1280px) {
    .nav-links-desktop ul { gap: 2.5rem; }
}
.nav-links-desktop li {
    margin: 0;
}
.nav-links-desktop a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.nav-links-desktop a:hover,
.nav-links-desktop li.current-menu-item > a {
    color: var(--primary);
}

/* Mobile Drawer Nav */
.nav-links-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links-mobile a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.nav-links-mobile a:hover,
.nav-links-mobile li.current-menu-item > a {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary);
}

@media (max-width: 1023px) {
    .nav-links-desktop { display: none !important; }
    .nav-register-desktop { display: none !important; }
}
@media (min-width: 1024px) {
    #hamburger-btn { display: none !important; }
}



