/* ============================================================
   AskAnzal 2026 — Main Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #0a1628;
    --navy-mid: #0d2b5e;
    --blue: #1a4fad;
    --blue-light: #3b82f6;
    --accent: #00d4aa;
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-grey: #f1f5f9;
    --mid-grey: #64748b;
    --dark-grey: #1e293b;
    --text: #334155;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(10,22,40,0.10);
    --shadow-lg: 0 8px 48px rgba(10,22,40,0.16);
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.7; font-size: 16px; background: #fff; }

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============ UTILS ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark-alt { background: var(--dark-grey); color: #fff; }
.section-tag { display: inline-block; background: var(--blue-light); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px; }
.section-tag.light { background: rgba(255,255,255,0.15); color: #fff; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; color: inherit; margin-bottom: 16px; line-height: 1.2; }
.section-header p { font-size: 18px; color: inherit; opacity: 0.8; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,79,173,0.35); }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--off-white); color: var(--navy); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-ai { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.btn-ai:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.4); color: #fff; }

/* ============ HEADER ============ */
#site-header { position: sticky; top: 0; z-index: 1000; background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.site-logo img { height: 40px; width: auto; }
#primary-nav { margin-left: auto; }
#primary-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
#primary-nav a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); transition: all 0.2s; display: block; }
#primary-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.has-dropdown { position: relative; }
.has-dropdown .dropdown { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--navy-mid); border-radius: var(--radius); padding: 8px; min-width: 240px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.1); }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { color: rgba(255,255,255,0.85); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.dropdown li a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.dropdown-divider { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding-top: 8px; }
.header-cta { margin-left: 16px; padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.2s; }

/* ============ HERO ============ */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%); color: #fff; padding: 100px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.15) 0%, transparent 60%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-credentials { font-size: 13px; color: rgba(255,255,255,0.65); letter-spacing: 0.5px; margin-bottom: 20px; font-weight: 500; }
.hero h1 { font-size: clamp(36px,5vw,60px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.hero-accent { color: var(--accent); }
.hero-sub { font-size: 19px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px 24px; text-align: center; backdrop-filter: blur(10px); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-number { font-size: 44px; font-weight: 800; color: #fff; line-height: 1; }
.stat-number span { font-size: 28px; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 8px; font-weight: 500; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 40px; }

/* ============ RESOURCE BANNER ============ */
.resource-banner { background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; padding: 20px 0; }
.resource-banner-inner { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.resource-icon { font-size: 24px; }
.resource-text { font-size: 16px; font-weight: 500; }
.resource-banner .btn { background: #fff; color: var(--blue); border-color: #fff; padding: 10px 20px; font-size: 14px; }
.resource-banner .btn:hover { background: var(--off-white); }

/* ============ TWO COLUMN ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-text h2 { font-size: clamp(28px,3.5vw,40px); font-weight: 800; margin-bottom: 20px; }
.two-col-text p { color: var(--mid-grey); margin-bottom: 16px; font-size: 16px; }
.credential-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.credential-item { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--dark-grey); }
.check { color: var(--blue); font-weight: 700; font-size: 16px; }
.about-image-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image-wrap img { width: 100%; display: block; }

/* ============ SERVICES GRID ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; transition: all 0.25s; display: block; color: #fff; }
.service-card:hover { background: rgba(255,255,255,0.09); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); border-color: rgba(59,130,246,0.4); color: #fff; }
.service-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.service-card h3 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 20px; }
.service-link { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.5px; }

/* ============ AI SECTION ============ */
.section-ai { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: #fff; }
.ai-feature .two-col-text h2 { color: #fff; }
.ai-feature .two-col-text p { color: rgba(255,255,255,0.75); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; }
.feature-list li { font-size: 15px; color: rgba(255,255,255,0.85); font-weight: 500; }
.ai-cta-group { display: flex; gap: 12px; flex-wrap: wrap; }
.ai-preview-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.ai-preview-header { background: rgba(255,255,255,0.08); padding: 14px 20px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.1); }
.ai-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.ai-preview-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.ai-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; max-width: 90%; }
.ai-msg.user { background: var(--blue); color: #fff; margin-left: auto; border-radius: var(--radius-sm) var(--radius-sm) 4px var(--radius-sm); }
.ai-msg.bot { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 4px; }
.ai-typing { display: flex; gap: 4px; padding: 12px 16px; }
.ai-typing span { width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; animation: typing 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: scale(1); } 30% { opacity: 1; transform: scale(1.2); } }
.ai-preview-footer { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 12px; font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; }

/* ============ POSTS GRID ============ */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.25s; display: block; color: var(--text); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); color: var(--text); }
.post-card-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.post-card-body { padding: 24px; }
.post-card-date { font-size: 12px; color: var(--mid-grey); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.post-card h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; color: var(--dark-grey); }
.post-card p { font-size: 14px; color: var(--mid-grey); line-height: 1.5; margin-bottom: 16px; }
.post-card-link { font-size: 13px; font-weight: 600; color: var(--blue); }

/* ============ TESTIMONIALS ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.testimonial-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; }
.testimonial-stars { color: #fbbf24; font-size: 18px; margin-bottom: 16px; }
.testimonial-card p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-name { font-weight: 700; color: #fff; font-size: 14px; }
.testimonial-company { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* ============ CTA SECTION ============ */
.section-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--navy-mid) 100%); color: #fff; }
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; margin-bottom: 20px; }
.cta-inner p { font-size: 18px; opacity: 0.9; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
#site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { margin-bottom: 16px; display: block; height: 36px !important; width: auto !important; max-width: 160px !important; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-social a:hover { color: #fff; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-badge { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.footer-badge span { display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.75); width: fit-content; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }

/* ============ GENERAL PAGE STYLES ============ */
.page-hero { background: var(--navy); color: #fff; padding: 72px 0; }
.page-hero h1 { font-size: clamp(32px,4vw,52px); font-weight: 800; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.8); margin-top: 16px; max-width: 600px; }
.page-content { padding: 64px 0; }
.page-content .container { max-width: 860px; }

/* ============ BLOG ============ */
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); transition: all 0.2s; }
.pagination a:hover, .pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============ SINGLE POST ============ */
.single-post-hero { background: var(--navy); color: #fff; padding: 64px 0; }
.single-post-content { padding: 56px 0; max-width: 780px; margin: 0 auto; }
.single-post-content h2 { font-size: 26px; margin: 36px 0 16px; }
.single-post-content h3 { font-size: 20px; margin: 28px 0 12px; }
.single-post-content p { margin-bottom: 20px; font-size: 17px; line-height: 1.8; color: var(--text); }
.single-post-content ul, .single-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.single-post-content li { margin-bottom: 8px; font-size: 17px; line-height: 1.8; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }
    .hero { padding: 72px 0 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    #primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
    #primary-nav.open { display: block; }
    #primary-nav ul { flex-direction: column; gap: 0; }
    #primary-nav a { padding: 12px 16px; }
    .has-dropdown .dropdown { position: static; display: none; background: rgba(255,255,255,0.05); box-shadow: none; border: none; border-radius: 0; margin-top: 4px; }
    .has-dropdown.open .dropdown { display: block; }
    .nav-toggle { display: flex; margin-left: auto; }
    .header-cta { display: none; }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .ai-cta-group { flex-direction: column; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .resource-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 36px; }
    .header-inner { gap: 16px; }
}

/* ============ CONTACT PAGE ============ */
@media (max-width: 768px) {
    .contact-grid-inner { grid-template-columns: 1fr !important; }
}

/* ============ SERVICE PAGES ============ */
@media (max-width: 768px) {
    .service-inner { grid-template-columns: 1fr !important; }
}

/* ============ CASE POST SECTIONS ============ */
.case-section-card .case-section-body a { color: var(--blue); text-decoration: underline; }
.case-section-card .case-section-body table { width: 100%; border-collapse: collapse; }
.case-section-card .case-section-body th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-size: 13px; font-weight: 600; }
.case-section-card .case-section-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }

/* ============ FLUENT BOOKING MOBILE FIX ============ */
@media (max-width: 480px) {
    .fluent-booking-wrap,
    .fl-booking-calendar-wrap,
    .fcal-booking-wrap,
    .fc-booking-wrap {
        padding-right: 12px !important;
        padding-left: 4px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .fluent-booking-wrap *,
    .fl-booking-calendar-wrap *,
    .fcal-booking-wrap * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ============ FLUENT BOOKING MOBILE FIX v2 ============ */
@media (max-width: 768px) {
    .fluent-booking-wrap,
    .fl-booking-calendar-wrap,
    .fcal-booking-wrap,
    .fc-booking-wrap {
        padding-right: 20px !important;
        padding-left: 4px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .fluent-booking-wrap *,
    .fl-booking-calendar-wrap *,
    .fcal-booking-wrap *,
    .fc-booking-wrap * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Ensure the booking container card doesn't overflow */
    .contact-main-grid > div:first-child > div {
        overflow: hidden !important;
    }
}

/* ============ INSIGHTS MOBILE FIXES ============ */
@media (max-width: 640px) {
    /* Homepage insights dark grid */
    .insights-grid { grid-template-columns: 1fr !important; }

    /* Featured insight card stacks */
    .featured-insight-card { grid-template-columns: 1fr !important; }
    .featured-insight-card > div { padding: 24px !important; }
    .featured-insight-card > div:first-child { min-height: 180px !important; }

    /* Insight archive card padding */
    .insight-card > div:last-child { padding: 18px !important; }

    /* Single insight body */
    .insight-layout { grid-template-columns: 1fr !important; }
    .insight-sidebar { position: static !important; }
}

/* ============ FLUENT BOOKING MOBILE FIX ============ */
.fcal_cal_wrap,
.fcal_cal_wrap * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.fcal_cal_wrap {
    overflow-x: hidden !important;
    width: 100% !important;
}
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .fcal_cal_wrap { padding: 0 !important; }
    .fluent_booking_app { padding: 10px 0 !important; }
}
