/* ========================================
   AIXPERTZ - Light Theme (Figma Redesign)
   Loaded AFTER styles.css — overrides the dark
   palette and adds redesign components.
   Dark sections are preserved via .section-dark.
   ======================================== */
:root {
    --bg-primary: #f6f7f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f5;
    --bg-card: #ffffff;
    --accent-primary: #2563eb;
    --accent-secondary: #1d4ed8;
    --accent-tertiary: #1e40af;
    --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    --text-primary: #0b0d12;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: rgba(15, 23, 42, 0.10);
    --border-hover: rgba(37, 99, 235, 0.45);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 12px 24px -6px rgba(15, 23, 42, 0.10), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 10px 16px -8px rgba(15, 23, 42, 0.06);
    /* Dark palette kept for scoped dark sections */
    --dark-bg: #0a0f1a;
    --dark-bg-2: #0f1524;
    --dark-card: #141c2e;
    --dark-text: #e2e8f0;
    --dark-text-2: #94a3b8;
    --dark-border: rgba(148, 163, 184, 0.14);
}

body { background: var(--bg-primary); color: var(--text-primary); }

::-webkit-scrollbar-track { background: var(--bg-tertiary); }
::selection { background: var(--accent-primary); color: #ffffff; }

/* Soft grid + hero glow adapted for light bg */
.bg-grid {
    background-image: linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}
.bg-gradient-orb { opacity: 0.35; }
.orb-1 { background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%); }
.orb-2 { background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%); }

/* ========================================
   NAVIGATION — light glass, black pill CTA
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-color);
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-md); }
.logo-img, .logo-img-footer { filter: none; }
.nav-link { color: var(--text-secondary); }
.nav-link:hover, .nav-link:focus { color: var(--text-primary); }
.nav-cta {
    background: #0b0d12;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 13, 18, 0.25);
}
.nav-cta:hover, .nav-cta:focus { box-shadow: 0 6px 20px rgba(11, 13, 18, 0.32); }
.nav-contact {
    padding: 0.7rem 1.5rem; border: 1px solid var(--border-color); border-radius: var(--radius-full);
    color: var(--text-primary); font-weight: 600; font-size: 0.95rem;
    transition: all var(--transition-normal); margin-right: 0.75rem;
    background: transparent;
}
.nav-contact:hover, .nav-contact:focus { border-color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; }
.nav-dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
}
.nav-dropdown-menu li a { color: var(--text-secondary); }
.nav-dropdown-menu li a:hover { color: var(--text-primary); background: rgba(37, 99, 235, 0.07); }
.nav-dropdown-menu li a strong { display: block; color: var(--text-primary); font-size: 0.95rem; }
.nav-dropdown-menu li a span { display: block; font-size: 0.8rem; color: var(--text-muted); white-space: normal; max-width: 240px; }
.mobile-toggle span { background: var(--text-primary); }

/* ========================================
   BUTTONS — black primary pill per design
   ======================================== */
.btn-primary {
    background: #0b0d12;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 13, 18, 0.22);
}
.btn-primary:hover, .btn-primary:focus { box-shadow: 0 8px 25px rgba(11, 13, 18, 0.3); }
.btn-secondary { background: #ffffff; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--bg-tertiary); border-color: var(--text-primary); }
.section-dark .btn-primary { background: var(--accent-gradient); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3); }
.section-dark .btn-secondary { background: transparent; color: var(--dark-text); border-color: var(--dark-border); }
.section-dark .btn-secondary:hover, .section-dark .btn-secondary:focus { background: rgba(148, 163, 184, 0.08); border-color: var(--accent-primary); }

/* ========================================
   HERO — light, soft blue gradient wash
   ======================================== */
.hero {
    min-height: 88vh;
    background:
        radial-gradient(ellipse 70% 55% at 60% 8%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 30% 25%, rgba(59, 130, 246, 0.10) 0%, transparent 65%),
        var(--bg-primary);
}
.hero-badge { background: #ffffff; border: 1px solid var(--border-color); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.hero-badge-dot { background: var(--accent-primary); }
.hero-title { color: var(--text-primary); }
.hero-stats { border-top-color: var(--border-color); }

/* ========================================
   STATS BAND — dark strip under hero (design)
   ======================================== */
.stats-band {
    position: relative; z-index: 1;
    background: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    padding: 3.5rem 0;
}
.stats-band-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.stats-band .hero-stat-label { color: var(--dark-text-2); }
.stats-band .trusted-by-label { color: var(--dark-text-2); text-align: center; margin-bottom: 1.5rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }
.stats-band .trusted-by-logos { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.stats-band .trusted-logo { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text-2); }
.stats-band .trusted-logo:hover { color: var(--dark-text); }

/* ========================================
   SCOPED DARK SECTIONS (design keeps these dark)
   ======================================== */
.section-dark {
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-bg-2);
    --bg-tertiary: #141c2e;
    --bg-card: var(--dark-card);
    --text-primary: var(--dark-text);
    --text-secondary: var(--dark-text-2);
    --text-muted: #64748b;
    --border-color: var(--dark-border);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    background: var(--dark-bg);
    color: var(--dark-text);
}
.section-dark.case-studies, .section-dark.contact { background: var(--dark-bg); }
.footer.section-dark { background: var(--dark-bg-2); }

/* Light-surface section alternation */
.about, .agentic-definition, .comparison, .philosophy { background: var(--bg-primary); }
.services, .industries, .testimonials, .process, .team, .why-choose, .faq { background: var(--bg-primary); }

/* Cards get white surfaces + soft borders on light bg */
.service-card, .industry-card, .why-card, .testimonial-card, .team-card,
.process-step, .about-card-main, .about-card-float, .definition-block,
.faq-item, .philosophy-card, .cta-banner-content, .resource-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.service-card:hover, .industry-card:hover, .why-card:hover, .resource-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}
.section-dark .faq-item, .section-dark .why-card, .section-dark .service-card,
.section-dark .industry-card, .section-dark .case-study-card, .section-dark .process-step,
.section-dark .testimonial-card, .section-dark .team-card {
    background: var(--dark-card); border-color: var(--dark-border); box-shadow: var(--shadow-md);
}

.comparison-table { background: #ffffff; }
.comparison-table th { background: var(--bg-tertiary); }
.comparison-table .highlight-col { background: rgba(37, 99, 235, 0.06); }

/* Forms on dark contact section keep dark styling via section-dark vars */
.contact-form input, .contact-form select, .contact-form textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ========================================
   OFFERINGS — 4-card section (feedback: add
   Innovation Lab as a fourth offering)
   ======================================== */
.offerings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.offering-card {
    background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow-sm); transition: all var(--transition-normal);
    display: flex; flex-direction: column;
}
.offering-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.offering-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.10) 0%, rgba(59, 130, 246, 0.12) 100%);
    display: flex; align-items: center; justify-content: center; color: var(--accent-primary);
    margin-bottom: 1.25rem;
}
.offering-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.offering-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; flex: 1; }
.offering-model {
    margin-top: 1.25rem; display: inline-block; align-self: flex-start;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
    color: var(--accent-primary); background: rgba(37, 99, 235, 0.08);
    padding: 0.35rem 0.9rem; border-radius: var(--radius-full);
}

/* ========================================
   AI AVATAR PRODUCTS — home section + cards
   ======================================== */
.avatar-products { background: var(--bg-secondary); position: relative; z-index: 1; }
.avatar-products .section-header { text-align: left; margin-left: 0; }
.avatar-products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.product-card {
    background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 2.25rem; box-shadow: var(--shadow-sm); transition: all var(--transition-normal);
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.25rem;
    background: #f4efe6;
}
.product-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.product-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; flex: 1; }
.product-card-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; align-items: center; }
.product-link { font-weight: 600; color: var(--text-primary); font-size: 0.95rem; }
.product-link:hover { color: var(--accent-primary); }
.badge-soon {
    display: inline-block; padding: 0.45rem 1.1rem; border: 1px dashed var(--border-color);
    border-radius: var(--radius-full); color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
}

/* ========================================
   PAGE HERO — interior pages (light)
   ======================================== */
.page-hero {
    padding: 11rem 5% 5rem; text-align: center; position: relative; z-index: 1;
    background:
        radial-gradient(ellipse 65% 55% at 55% 0%, rgba(99, 102, 241, 0.13) 0%, transparent 60%),
        var(--bg-primary);
}
.page-hero .hero-badge { margin-bottom: 1.5rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -1.5px; max-width: 900px; margin: 0 auto 1.5rem; }
.page-hero .lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 680px; margin: 0 auto 2.25rem; line-height: 1.8; }
.page-hero .hero-buttons { justify-content: center; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--accent-primary); }

/* ========================================
   PRODUCT PAGES — cream/serif theme (avatars)
   ======================================== */
.product-theme { background: #f4efe8; }
.product-theme .page-hero, .product-hero {
    background: #f4efe8;
    text-align: left;
}
.product-hero { padding: 10rem 5% 5rem; position: relative; z-index: 1; }
.product-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; max-width: 1400px; margin: 0 auto; }
.serif, .product-hero h1, .product-section h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: -0.5px; }
.product-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; margin-bottom: 1.5rem; color: #171512; }
.product-hero .lead { color: #55504a; font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; max-width: 520px; }
.product-label { font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; color: #a08a5f; font-weight: 600; display: inline-block; margin-bottom: 1.25rem; }
.btn-gold { background: #c9a86a; color: #171512; box-shadow: 0 4px 14px rgba(160, 138, 95, 0.35); }
.btn-gold:hover, .btn-gold:focus { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(160, 138, 95, 0.45); }
.btn-outline-dark { background: transparent; border: 1px solid rgba(23, 21, 18, 0.25); color: #171512; }
.btn-outline-dark:hover { border-color: #171512; }

.product-chat-mock {
    background: #101623; border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow-xl); color: var(--dark-text);
    min-height: 320px; display: flex; flex-direction: column; justify-content: space-between;
}
.chat-avatar-ring {
    width: 84px; height: 84px; border-radius: 50%; margin: 2rem auto;
    border: 2px solid #c9a86a; display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; color: #e8dcc2;
}
.chat-bubble { background: #1c2740; border-radius: 14px; padding: 0.8rem 1rem; font-size: 0.85rem; color: #d7deeb; margin-top: 0.6rem; max-width: 85%; }
.chat-bubble.user { margin-left: auto; background: #2a3348; }
.chat-live { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #7ee2a8; }

.product-section { padding: 5.5rem 5%; position: relative; z-index: 1; }
.product-section .container { max-width: 1100px; }
.product-section h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: #171512; margin-bottom: 0.75rem; }
.product-section > .container > p.section-sub { color: #55504a; max-width: 640px; margin-bottom: 3rem; }
.product-section.alt { background: #efe8dd; }
.product-steps { list-style: none; display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.product-steps li { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(23, 21, 18, 0.10); }
.product-steps .step-dot {
    width: 34px; height: 34px; border-radius: 50%; background: #171512; color: #e8dcc2;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.product-steps h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: #171512; }
.product-steps p { color: #55504a; font-size: 0.95rem; line-height: 1.7; }
.product-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.product-feature-card {
    background: #ffffff; border: 1px solid rgba(23, 21, 18, 0.08); border-radius: var(--radius-md);
    padding: 1.75rem; box-shadow: 0 1px 3px rgba(23, 21, 18, 0.05);
}
.product-feature-card .pf-icon { font-size: 1.3rem; margin-bottom: 0.9rem; }
.product-feature-card h3 { font-size: 1rem; color: #171512; margin-bottom: 0.5rem; }
.product-feature-card p { color: #55504a; font-size: 0.9rem; line-height: 1.65; }
.product-section.dark {
    background: #101623; color: var(--dark-text);
}
.product-section.dark h2 { color: #f1ede6; }
.product-section.dark p { color: var(--dark-text-2); }
.product-cta-panel {
    background: linear-gradient(135deg, #17202f 0%, #1d2a1f 100%);
    border: 1px solid rgba(201, 168, 106, 0.35);
    border-radius: var(--radius-lg); padding: 3rem; text-align: center; max-width: 760px; margin: 0 auto;
}
.product-cta-panel h2 { color: #f1ede6; margin-bottom: 1rem; }
.product-cta-panel p { color: #b9c2d0; margin-bottom: 2rem; }

/* ========================================
   TEAM — placeholder card (Tarik, pending bio)
   ======================================== */
.team-card-placeholder { border: 1px dashed var(--border-color); }
.team-avatar-initials {
    width: 100%; height: 100%; border-radius: 50%;
    color: #ffffff; display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800;
    position: relative; z-index: 1;
}

/* ========================================
   RESOURCES GRID
   ======================================== */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.resource-card {
    border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition-normal);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.resource-card .resource-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-primary); }
.resource-card h3 { font-size: 1.15rem; }
.resource-card p { color: var(--text-secondary); font-size: 0.95rem; flex: 1; }
.resource-card a.industry-link { margin-top: 0.5rem; }

/* ========================================
   BOOKING PAGE
   ======================================== */
.booking-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .booking-grid, .product-hero-grid { grid-template-columns: 1fr; } }

/* Mobile nav on light theme */
@media (max-width: 968px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }
    .nav-contact { display: none; }
}
