@layer base, components, utilities, route;
@layer route {
    #home-index-page {
    }

.container { 
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 1rem; 
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Section Spacing */
.section-v2 { padding: 40px 0; content-visibility: auto; contain-intrinsic-size: 600px; }

@media (min-width: 768px) {
    .section-v2 { padding: 80px 0; }
}

.bg-surface-alt { background-color: var(--surface-alt); }

/* Grid System */
.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

@media (min-width: 1024px) {
    .grid.col-2 { grid-template-columns: 1fr 1fr; }
    .gap-huge { gap: 6rem; }
    .gap-xl { gap: 3rem; }
}

/* Typography Overrides */
.display-1 { 
    font-size: 32px; 
    font-weight: 600; 
    line-height: 1.2; 
    color: var(--text-main); 
    text-shadow: 0 2px 8px rgba(0,0,0,0.2); 
}

@media (min-width: 768px) {
    .display-1 { font-size: 44px; }
}

.label-primary { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1rem; display: block; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mt-12 { margin-top: 3rem !important; }

.lead { font-size: 1.1rem; color: var(--text-main); opacity: 0.95; line-height: 1.6; max-width: 650px; text-shadow: 0 1px 3px rgba(0,0,0,0.2); }

@media (min-width: 768px) {
    .label-primary { font-size: 0.85rem; margin-bottom: 1.5rem; }
    .lead { font-size: 1.25rem; }
}

.badge-accent {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdropfilter: blur(8px);
    color: var(--surface);
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hero redesign */
.hero-v2 { 
    min-height: 120dvh; 
    display: flex; 
    align-items: center; 
    position: relative; 
    background: var(--text-main); 
    overflow: hidden; 
    text-align: center;
    padding-top: 0;
}

@media (min-width: 1024px) {
    .hero-v2 { text-align: left; padding-top: 0; }
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); filter: brightness(0.7) contrast(0.95); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(74, 144, 226, 0.75) 0%, rgba(47, 58, 69, 0.5) 100%); }

.hero-content-v2 { margin: 0 auto; max-width: 800px; }

@media (min-width: 1024px) {
    .hero-content-v2 { margin: 0; max-width: 700px; }
}

.btn-glass-v2 {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdropfilter: blur(12px);
    color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-glass-v2:hover {
    background: var(--surface) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.btn-hero-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    background: #fff !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(74, 144, 226, 0.3);
}

.btn-hero-secondary {
    background: #fff !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(74, 144, 226, 0.2);
}

.hero-v2 .btn:hover {
    transform: none !important;
}

/* Trust Indicators */
.overlap-section { margin-top: -30px; position: relative; z-index: 20; }

@media (min-width: 768px) {
    .overlap-section { margin-top: -60px; }
}

.trust-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
}

@media (min-width: 640px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.trust-card-v2 {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

@media (min-width: 768px) {
    .trust-card-v2 { padding: 1.5rem 1.25rem; }
}

.trust-card-v2:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); }
.trust-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.trust-icon-v2 {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .trust-icon-v2 { width: 42px; height: 42px; }
}

.trust-stat { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-family: 'Inter', sans-serif; }

@media (min-width: 768px) {
    .trust-stat { font-size: 1.75rem; }
}

.trust-label { font-size: 0.85rem; display: block; color: var(--text-dark); margin-bottom: 2px; }
.trust-value { font-size: 0.75rem; color: var(--text-muted); }

/* Our Approach Icons */
.approach-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 768px) {
    .approach-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
}

.approach-card-inner {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {
    .approach-card-inner { padding: 3rem 2.25rem; }
}

.approach-card-inner:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.approach-num {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.05;
    line-height: 1;
    transition: 0.4s;
}

.approach-card-inner:hover .approach-num {
    opacity: 0.12;
    transform: scale(1.1);
}

.approach-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--surface-alt) 0%, #fff 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 1.25rem;
    transition: 0.3s;
}

.approach-card-inner:hover .approach-icon-wrap {
    background: var(--primary);
    color: #fff;
    transform: rotate(5deg) scale(1.1);
}

.approach-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.approach-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
    margin: 0;
}

.approach-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.approach-card-inner:hover .approach-bar {
    width: 100%;
}

/* Programs Grid */
.programs-grid-v2 { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
}

@media (min-width: 768px) {
    .programs-grid-v2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
}

/* CTA Redesign */
.cta-v2 { padding: 60px 0; background: var(--bg-main); overflow: hidden; }

@media (min-width: 768px) {
    .cta-v2 { padding: 120px 0; }
}

.cta-inner { 
    background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%); 
    border-radius: var(--radius-lg); 
    padding: 3rem 2rem; 
    position: relative; 
    overflow: hidden; 
    border: 1px solid rgba(74, 144, 226, 0.15);
    box-shadow: 0 30px 60px -15px rgba(18, 22, 59, 0.05); 
}

@media (min-width: 768px) {
    .cta-inner { padding: 5rem; }
}

.cta-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-v2 {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.step-v2:last-child {
    padding-bottom: 0;
}

.step-line {
    position: absolute;
    left: 21px;
    top: 45px;
    bottom: -5px;
    width: 2px;
    background: rgba(74, 144, 226, 0.1);
}

.step-v2:last-child .step-line {
    display: none;
}

.s-num {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 2;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.step-v2:hover .s-num {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

.step-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-box strong {
    color: var(--text-dark);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 2px;
}

.step-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Home UI Utilities */
.flex { display: flex; flex-wrap: wrap; gap: 1rem; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

@media (min-width: 640px) {
    .sm-flex-row { flex-direction: row; }
    .sm-w-auto { width: auto; }
}

@media (min-width: 1024px) {
    .flex { flex-wrap: nowrap; }
    .lg-justify-start { justify-content: flex-start; }
}

/* Accessibility Panel */
.a11y-fab-container { position: fixed; bottom: 100px; right: 1rem; z-index: 1000; }
@media (min-width: 768px) {
    .a11y-fab-container { right: 2rem; }
}

.fab { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; z-index: 1002; position: relative; }
.fab:hover { transform: scale(1.1); box-shadow: var(--shadow-premium); }

#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 1rem;
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    #scroll-top {
        right: 2rem;
    }
}

.a11y-tooltip {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.a11y-fab-container:hover .a11y-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.a11y-panel { 
    position: absolute; 
    bottom: 60px; 
    right: 0; 
    width: 280px; 
    padding: 1.5rem; 
    display: none; 
    flex-direction: column; 
    gap: 1.25rem; 
    z-index: 1001;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdropfilter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-md);
}

.a11y-panel.show { display: flex; }

.a11y-panel h5 { 
    margin: 0 0 0.5rem; 
    font-size: 1rem; 
    color: var(--primary); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.a11y-option { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.95rem; 
    font-weight: 600;
    color: var(--text-main); 
}

/* Switch UI */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { 
    position: absolute; cursor: pointer; inset: 0; 
    background-color: #CBD5E1; transition: .4s; border-radius: 24px; 
}
.slider:before { 
    position: absolute; content: ""; height: 18px; width: 18px; 
    left: 3px; bottom: 3px; background-color: white; 
    transition: .4s; border-radius: 50%; 
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Accessibility Implementations */
.a11y-high-contrast {
    --primary: #000;
    --primary-light: var(--surface);
    --secondary: #00ff00;
    --accent: #ffff00;
    --text-main: #000;
    --text-dark: #000;
    --bg-main: var(--surface);
    --surface: var(--surface);
    --surface-alt: #eeeeee;
    --border: #000;
}

.a11y-high-contrast .hero-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

.a11y-high-contrast .text-white {
    color: #ffff00 !important;
}

.a11y-large-text {
    font-size: 1.25em !important;
}

.a11y-large-text .display-1 { font-size: 3.5rem; }
.a11y-large-text .lead { font-size: 1.5rem; }
.a11y-large-text p { font-size: 1.2rem; }

.a11y-reduced-motion * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.tc-primary .trust-card-accent { background: var(--primary); }
.tc-primary .trust-icon-v2 { background: var(--primary-light); color: var(--primary); }
.tc-primary .trust-stat { color: var(--primary); }
.tc-secondary .trust-card-accent { background: var(--secondary); }
.tc-secondary .trust-icon-v2 { background: var(--secondary-light); color: var(--secondary); }
.tc-secondary .trust-stat { color: var(--secondary); }
.tc-warning .trust-card-accent { background: var(--accent); }
.tc-warning .trust-icon-v2 { background: var(--accent); color: var(--text-main); }
.tc-warning .trust-stat { color: var(--primary-dark); }
.tc-accent .trust-card-accent { background: var(--primary-dark); }
.tc-accent .trust-icon-v2 { background: var(--primary-light); color: var(--primary-dark); }
.tc-accent .trust-stat { color: var(--primary-dark); }

.program-card-v2 { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease; }
.p-card-header { height: 220px; position: relative; }
.p-card-header img { width: 100%; height: 100%; object-fit: cover; }
.p-card-icon-back { position: absolute; bottom: -20px; right: 30px; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); }
.p-card-body { padding: 2.5rem 2rem; }
.pill-soft { background: var(--primary-light); color: var(--primary); padding: 4px 12px; font-weight: 700; font-size: 0.75rem; border-radius: 20px; }
.clean-list { list-style: none; padding: 0; }
.clean-list li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }

.contact-card-v2 { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
@media (min-width: 768px) { .contact-card-v2 { padding: 2.5rem; } }
.c-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.c-icon { width: 44px; height: 44px; background: var(--primary-light); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-text strong { display: block; font-size: 0.95rem; margin-bottom: 2px; color: var(--text-main); }
.c-text p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.image-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 480px) { .image-grid { grid-template-columns: 1fr 1fr; } }

/* Animation Utilities */
.reveal, .reveal-left, .reveal-right {
    opacity: 0;
    transition: var(--transition-base);
}

.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.active-reveal {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Image & Text Utilities */
.main-img { border-radius: var(--radius-lg); transition: transform 0.6s ease; }
.main-img:hover { transform: scale(1.02); }
.w-100 { width: 100%; }
.desc-text { font-size: 1.1rem; line-height: 1.7; color: var(--text-main); margin-bottom: 1.5rem; }
.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Utility Classes */
.text-white { color: var(--surface) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

.shadow-soft { box-shadow: var(--shadow-soft) !important; }
.shadow-premium { box-shadow: var(--shadow-premium) !important; }

.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.max-600 { max-width: 600px; }
.max-800 { max-width: 800px; }
.max-700 { max-width: 700px; }
.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Page Specific Utilities */
.hero-main-img { height: 480px; object-fit: cover; }
.approach-intro { max-width: 620px; margin: 0 0 3rem; text-align: left; }
.image-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.img-cover-350 { height: 350px; object-fit: cover; }
.img-offset-350 { height: 350px; object-fit: cover; transform: translateY(40px); }
.diff-item { font-size: 1.1rem; display: flex; align-items: center; gap: 12px; }
.check-icon-circle { background: rgba(16, 185, 129, 0.15); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.section-primary { background: var(--primary); }
.center-800 { margin: 0 auto; max-width: 800px; }
.center-700 { margin: 0 auto; max-width: 700px; }
.quote-icon { margin-bottom: 1.5rem; color: rgba(255, 255, 255, 0.3); }
.cta-body { font-size: 1.15rem; line-height: 1.7; }
.map-placeholder { width: 100%; height: 450px; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.map-border-none { border: 0; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; }
.btn-link .icon-xs { width: 14px; height: 14px; }
