/* ============================================================
   Ätheria Balance – Premium Wellness Design System
   ============================================================ */

:root {
    --primary: #0F172A;
    --secondary: #C4B5FD;
    --accent: #E8D5B5;
    --bg: #FAFAF8;
    --text: #1F2937;
    --text-muted: #6B7280;
    --gradient: linear-gradient(135deg, #0F172A, #312E81, #C4B5FD);
    --gradient-soft: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(49,46,129,0.85), rgba(196,181,253,0.6));
    --glass: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 0 40px rgba(196, 181, 253, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-btn: 'Poppins', sans-serif;
    --header-height: 80px;
}

[data-theme="dark"] {
    --bg: #0B1120;
    --text: #E5E7EB;
    --text-muted: #9CA3AF;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(196, 181, 253, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #F3F4F6;
}

a {
    color: #312E81;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

.section-label {
    display: inline-block;
    font-family: var(--font-btn);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

/* ---- Skeleton Loader ---- */
.skeleton-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    transition: opacity 0.5s, visibility 0.5s;
}

.skeleton-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-nav {
    height: var(--header-height);
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-hero {
    height: 70vh;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content { padding: 3rem 2rem; }

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Header / Navbar ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(11, 17, 32, 0.9);
}

.site-header .navbar {
    height: var(--header-height);
    padding: 0 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 14px;
    color: #fff;
    font-size: 1.1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .brand-name { color: #F3F4F6; }

.brand-sub {
    font-family: var(--font-btn);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary);
}

.navbar-nav .nav-link {
    font-family: var(--font-btn);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    transition: all var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(196, 181, 253, 0.15);
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.btn-theme-toggle {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(196, 181, 253, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

[data-theme="dark"] .btn-theme-toggle {
    color: var(--accent);
    background: rgba(196, 181, 253, 0.1);
}

.btn-theme-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: rotate(15deg);
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
}

.toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

[data-theme="dark"] .toggler-bar { background: #E5E7EB; }

/* ---- Buttons ---- */
.btn {
    font-family: var(--font-btn);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(49, 46, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #fff;
    filter: brightness(1.05);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--secondary);
    color: var(--primary);
    background: transparent;
}

[data-theme="dark"] .btn-outline-primary { color: var(--secondary); }

.btn-outline-primary:hover {
    background: var(--secondary);
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background: #D4C4A5;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-nav-cta {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem;
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: calc(var(--header-height) + 4rem) 0 6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll i { font-size: 1.25rem; }

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero-stats-float {
    position: absolute;
    right: 5%;
    bottom: 15%;
    z-index: 2;
    display: none;
}

@media (min-width: 1200px) {
    .hero-stats-float { display: block; }
}

.hero-stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    color: #fff;
    text-align: center;
}

.hero-stat-card .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

/* ---- Sections ---- */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered { text-align: center; }

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.05rem;
}

.section-header.centered p { margin: 0 auto; }

/* ---- Philosophy Split ---- */
.philosophy-section {
    position: relative;
    overflow: hidden;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 5rem;
    }
}

.philosophy-content { position: relative; z-index: 2; }

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

[data-theme="dark"] .philosophy-quote { color: var(--accent); }

.philosophy-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.philosophy-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(196, 181, 253, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.philosophy-feature i {
    color: #312E81;
    font-size: 1.1rem;
}

.philosophy-visual {
    position: relative;
}

.philosophy-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}

.philosophy-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-img-accent {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 45%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg);
}

/* ---- Benefits Bento Grid ---- */
.benefits-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .benefits-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .benefits-bento { grid-template-columns: 1fr; }
}

.benefit-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .benefit-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.benefit-card:hover::before { transform: scaleX(1); }

.benefit-card:nth-child(1) { grid-column: span 1; }
.benefit-card:nth-child(4) { grid-column: span 1; }

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196,181,253,0.2), rgba(232,213,181,0.3));
    border-radius: 16px;
    font-size: 1.4rem;
    color: #312E81;
    margin-bottom: 1.25rem;
}

.benefit-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Programs Carousel Grid ---- */
.programs-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .programs-showcase { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .programs-showcase { grid-template-columns: 1fr; }
}

.program-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: program;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover img { transform: scale(1.08); }

.program-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
}

.program-card-overlay h4 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.program-card-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.program-card-link {
    font-family: var(--font-btn);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.program-card-link i { transition: transform var(--transition); }
.program-card:hover .program-card-link i { transform: translateX(4px); }

/* ---- Trainers ---- */
.trainers-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .trainers-row { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

.trainer-card {
    text-align: center;
    position: relative;
}

.trainer-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    margin-bottom: 1.5rem;
}

.trainer-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.trainer-card:hover .trainer-img-wrap img { transform: scale(1.05); }

.trainer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-btn);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trainer-card h4 { margin-bottom: 0.25rem; }

.trainer-role {
    color: var(--secondary);
    font-family: var(--font-btn);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.trainer-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trainer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.trainer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 181, 253, 0.15);
    color: var(--primary);
    transition: all var(--transition);
}

.trainer-social a:hover {
    background: var(--gradient);
    color: #fff;
}

/* ---- Statistics ---- */
.stats-section {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 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");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 2rem 1rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .testimonials-slider { grid-template-columns: 1fr; }
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

[data-theme="dark"] .testimonial-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    opacity: 0.4;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info strong {
    display: block;
    font-family: var(--font-btn);
    font-size: 0.9rem;
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ---- FAQ Accordion ---- */
.faq-section { background: rgba(196, 181, 253, 0.05); }

[data-theme="dark"] .faq-section { background: rgba(15, 23, 42, 0.4); }

.faq-accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 1rem;
}

.faq-accordion .accordion-button {
    font-family: var(--font-btn);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    background: #fff;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
}

[data-theme="dark"] .faq-accordion .accordion-button {
    background: rgba(15, 23, 42, 0.6);
    color: #E5E7EB;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.faq-accordion .accordion-button::after {
    filter: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(10);
}

.faq-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---- Newsletter ---- */
.newsletter-section {
    position: relative;
    overflow: hidden;
}

.newsletter-box {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(232, 213, 181, 0.15);
    border-radius: 50%;
}

.newsletter-box h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.newsletter-box p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: var(--primary);
}

.newsletter-form .btn:hover {
    background: #fff;
}

.newsletter-form .form-check-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
}

.newsletter-form .form-check-label a { color: var(--accent); }

/* ---- CTA Banner ---- */
.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-xl);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .cta-banner { background: #1E293B; }

.cta-banner::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(196,181,253,0.1));
}

.cta-banner h3 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb-nav {
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-nav a:hover { color: var(--accent); }

.breadcrumb-nav .separator { opacity: 0.4; }

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* ---- Timeline (About) ---- */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .timeline::before { left: 20px; }
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

@media (max-width: 767px) {
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

@media (max-width: 767px) {
    .timeline-dot { left: 20px; }
}

.timeline-content {
    width: 45%;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .timeline-content {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

@media (max-width: 767px) {
    .timeline-content { width: 100%; }
}

.timeline-year {
    font-family: var(--font-btn);
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ---- Services / Pricing ---- */
.service-detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    height: 100%;
}

[data-theme="dark"] .service-detail-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.service-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-detail-img {
    height: 220px;
    overflow: hidden;
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.service-detail-card:hover .service-detail-img img { transform: scale(1.05); }

.service-detail-body { padding: 2rem; }

.service-detail-body h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i { color: var(--secondary); font-size: 0.75rem; }

.pricing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    position: relative;
    height: 100%;
}

[data-theme="dark"] .pricing-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.pricing-card.featured {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.03);
}

.pricing-card.featured h4,
.pricing-card.featured .pricing-amount { color: #fff; }

.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.85); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-btn);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.pricing-amount span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Blog ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .blog-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-btn);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}

.blog-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.blog-read-more {
    font-family: var(--font-btn);
    font-weight: 600;
    font-size: 0.85rem;
    color: #312E81;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

@media (max-width: 991px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}

[data-theme="dark"] .contact-info-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 14px;
    color: #fff;
}

.contact-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .contact-form-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid rgba(196, 181, 253, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    transition: border-color var(--transition);
    background: var(--bg);
    color: var(--text);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2);
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Legal Pages ---- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    background: rgba(196, 181, 253, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

/* ---- Values Grid (About) ---- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 767px) {
    .values-grid { grid-template-columns: 1fr; }
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(196, 181, 253, 0.06);
    transition: all var(--transition);
}

.value-card:hover {
    background: rgba(196, 181, 253, 0.12);
    transform: translateY(-4px);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 20px;
    color: #fff;
    font-size: 1.5rem;
}

/* ---- Certifications ---- */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.cert-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 180px;
    transition: all var(--transition);
}

[data-theme="dark"] .cert-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(196, 181, 253, 0.1);
}

.cert-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.cert-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-top: 5rem;
}

.footer-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.footer-heading {
    font-family: var(--font-btn);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact i { color: var(--secondary); margin-top: 4px; }

.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: var(--accent); }

.footer-hours strong {
    color: var(--accent);
    font-family: var(--font-btn);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-hours p {
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-legal-nav a {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-legal-nav a:hover { color: var(--accent); }

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

/* ---- Scroll Top ---- */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--primary);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h6 {
    color: var(--accent);
    font-family: var(--font-btn);
    margin-bottom: 0.25rem;
}

.cookie-text p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0;
    max-width: 700px;
}

.cookie-text a { color: var(--accent); }

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ---- Newsletter Popup ---- */
.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.newsletter-popup.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.newsletter-popup-inner {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .newsletter-popup-inner {
    background: #1E293B;
}

.newsletter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(196, 181, 253, 0.15);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.newsletter-close:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* ---- Mobile Menu ---- */
.mobile-menu { background: var(--primary) !important; }

.mobile-menu .offcanvas-title { color: #fff; }

.mobile-menu .btn-close { filter: invert(1); }

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li { margin-bottom: 0.5rem; }

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-btn);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-nav-list a:hover {
    background: rgba(196, 181, 253, 0.15);
    color: #fff;
}

.mobile-nav-list a i { color: var(--secondary); width: 20px; }

/* ---- Lazy Load ---- */
img.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

img.lazy.loaded { opacity: 1; }

/* ---- Form Success ---- */
.form-success {
    display: none;
    padding: 1rem 1.5rem;
    background: rgba(196, 181, 253, 0.15);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 500;
    margin-top: 1rem;
}

.form-success.show { display: block; }

/* ---- Responsive Utilities ---- */
@media (max-width: 991px) {
    .section-padding { padding: 4rem 0; }
    .newsletter-box { padding: 2.5rem; }
    .cta-banner { padding: 2.5rem; text-align: center; justify-content: center; }
}

@media (max-width: 767px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .philosophy-img-accent { display: none; }
    .philosophy-features { grid-template-columns: 1fr; }
}

/* ---- Accessibility ---- */
:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
