/* =====================================================
   TRI-COUNTY LEADS — "Corporate Blue" light theme
   Light sections + navy hero / CTA / footer.
   Variable names are kept from the original template so the
   inline styles in the PHP pages keep working:
     --white      = heading text colour (navy on light, white on dark)
     --text       = body paragraph colour
     --gray-light = muted text
     --dark..5    = surface / background tones
   ===================================================== */
:root {
    --primary: #0B63CE;
    --primary-dark: #084C9E;
    --primary-light: #2F86F0;
    --primary-rgb: 11, 99, 206;
    --primary-glow: rgba(11, 99, 206, 0.12);
    --accent: #12B886;
    --accent-rgb: 18, 184, 134;
    --navy: #0B1F3A;
    --navy-2: #102B52;

    --dark: #FFFFFF;
    --dark-2: #F4F7FB;
    --dark-3: #FFFFFF;
    --dark-4: #F1F5FA;
    --dark-5: #E3E9F2;
    --white: #0B1F3A;
    --text: #33415C;
    --gray: #8A97AB;
    --gray-light: #5B6B84;
    --light: #F4F7FB;
    --border: #E3E9F2;

    --font: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
    --shadow-sm: 0 6px 24px rgba(11, 31, 58, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark (navy) sections re-map the same variables */
.hero-section,
.page-hero,
.cta-section,
.treasure-section,
.site-footer,
.about-img-placeholder {
    --white: #FFFFFF;
    --text: rgba(255, 255, 255, 0.86);
    --gray-light: #B6C2D6;
    --gray: #8FA0BA;
    --dark-3: rgba(255, 255, 255, 0.06);
    --dark-4: rgba(255, 255, 255, 0.09);
    --dark-5: rgba(255, 255, 255, 0.16);
    --border: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Scroll-in (AOS) animations start ~100px off-screen; clip them so phones
   don't widen the page and push the menu button out of view */
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--white); }

img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: var(--transition); color: var(--primary); }

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    background: #FFFFFF;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-dots { display: flex; gap: 8px; justify-content: center; }

.preloader-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: dot-bounce 1.4s ease-in-out infinite both;
}

.preloader-dots span:nth-child(1) { animation-delay: 0s; }
.preloader-dots span:nth-child(2) { animation-delay: 0.2s; background: var(--primary-light); }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; background: var(--accent); }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.3); }
    50% { box-shadow: 0 0 0 18px transparent; }
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    padding: 14px 0;
    background: #FFFFFF;
    transition: var(--transition);
    border-bottom: 1px solid #E3E9F2;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
}

.navbar-logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.nav-link {
    color: var(--navy) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px; left: 14px; right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-item:hover .nav-link, .nav-link.active { color: var(--primary) !important; }

.nav-item:hover .nav-link::before, .nav-link.active::before { transform: scaleX(1); }

.dropdown-menu {
    background: #FFFFFF;
    border: 1px solid #E3E9F2;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
    min-width: 240px;
    margin-top: 8px !important;
}

.dropdown-item {
    color: var(--text);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: normal;
    transition: var(--transition);
}

.dropdown-item i { color: var(--primary); width: 18px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--primary-glow); color: var(--primary); }

.mega-menu {
    min-width: 280px;
    max-height: 72vh;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0 !important;
    }
}

.mega-menu::-webkit-scrollbar { width: 4px; }
.mega-menu::-webkit-scrollbar-track { background: var(--dark-4); }
.mega-menu::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    background: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.navbar-toggler:focus { box-shadow: none; }

.toggler-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary-custom {
    background: var(--primary);
    color: #FFFFFF !important;
    border: 2px solid var(--primary);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.25);
    white-space: nowrap;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.35);
    color: #FFFFFF !important;
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--dark-5);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.hero-section .btn-outline-custom,
.cta-section .btn-outline-custom,
.page-hero .btn-outline-custom { border-color: rgba(255, 255, 255, 0.4); }

.btn-outline-custom:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-lg-custom {
    padding: 15px 34px;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0B4FA8 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 80% 40%, rgba(var(--accent-rgb), 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 0% 100%, rgba(var(--primary-rgb), 0.35) 0%, transparent 65%);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    animation: float-orb 9s ease-in-out infinite;
}

.hero-orb-1 {
    width: 420px; height: 420px;
    background: rgba(var(--accent-rgb), 0.18);
    top: -120px; right: -80px;
}

.hero-orb-2 {
    width: 300px; height: 300px;
    background: rgba(47, 134, 240, 0.25);
    bottom: -60px; left: 15%;
    animation-delay: 3s;
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.04); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 150px 0 90px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 26px;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.25);
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-title .accent,
.section-title .accent,
.cta-title .accent {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title .accent {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--gray-light);
    max-width: 560px;
    margin-bottom: 38px;
    line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-stat { position: relative; }

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-stat + .hero-stat { padding-left: 40px; border-left: 1px solid var(--border); }

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 90px;
}

.hero-card-stack {
    position: relative;
    width: 380px;
    height: 460px;
}

/* Hero cards are solid white "dashboard" cards on the navy hero */
.hero-card {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #E3E9F2;
    border-radius: var(--radius-lg);
    padding: 26px;
    color: var(--navy);
    --white: #0B1F3A;
    --gray-light: #5B6B84;
    --dark-5: #E3E9F2;
}

.hero-card-main {
    width: 320px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.hero-card-back1 {
    width: 280px;
    top: 20px; left: 38%;
    transform: translateX(-50%) rotate(-7deg);
    z-index: 2;
    opacity: 0.9;
}

.hero-card-back2 {
    width: 270px;
    top: 30px; left: 62%;
    transform: translateX(-50%) rotate(7deg);
    z-index: 1;
    opacity: 0.6;
}

.card-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 16px;
}

.card-title-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.card-value {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
}

.card-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.card-bar-wrap { margin-top: 18px; }

.card-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gray-light);
    margin-bottom: 6px;
}

.card-bar {
    height: 6px;
    background: var(--dark-5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.card-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.floating-badge {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #E3E9F2;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    --white: #0B1F3A;
    --gray-light: #5B6B84;
}

.floating-badge-1 {
    top: -18px; right: 10px;
    animation: float-down 4s ease-in-out infinite;
}

.floating-badge-2 {
    bottom: -18px; left: 10px;
    animation: float 4s ease-in-out infinite 2s;
}

.badge-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.badge-icon.orange { background: var(--primary-glow); color: var(--primary); }
.badge-icon.green { background: rgba(var(--accent-rgb), 0.14); color: var(--accent); }

.badge-info strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--white); }
.badge-info span { font-size: 0.7rem; color: var(--gray-light); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ============================
   SECTION COMMONS
   ============================ */
section { position: relative; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-label.justify-content-center { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

.section-label::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.page-hero .section-label,
.cta-section .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--white);
}

.section-text {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 620px;
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    padding: 110px 0;
    background: var(--dark);
}

.about-image-wrap { position: relative; }

.about-img-main {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.about-img-placeholder {
    width: 100%; min-height: 480px;
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(var(--accent-rgb), 0.3), transparent 70%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
}

.about-img-icon {
    font-size: 3.5rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.about-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.about-stat {
    text-align: center;
    padding: 0 20px;
}

.about-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.7rem;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 500;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--accent);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(var(--accent-rgb), 0.35);
}

.about-experience-badge .num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.about-experience-badge .text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.about-features { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-feature:hover { transform: translateX(6px); box-shadow: var(--shadow); }

.about-feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature-text strong { display: block; color: var(--white); font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.about-feature-text span { color: var(--gray-light); font-size: 0.86rem; }

/* ============================
   SERVICES SECTION
   ============================ */
.services-section {
    padding: 110px 0;
    background: var(--dark-2);
}

.service-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    color: inherit;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-card-icon {
    background: var(--primary);
    color: #fff;
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.service-card-text {
    font-size: 0.875rem;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.service-card:hover .service-card-link { gap: 12px; }

/* ============================
   WHY CHOOSE US
   ============================ */
.why-section {
    padding: 110px 0;
    background: var(--dark);
    overflow: hidden;
}

.why-bg-shape {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 70% at 100% 50%, rgba(var(--primary-rgb), 0.06), transparent 70%);
    pointer-events: none;
}

.feature-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.feature-card:hover::after { opacity: 1; }

.feature-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.1);
    line-height: 1;
    position: absolute;
    top: 20px; right: 24px;
}

.feature-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.25);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonials-section {
    padding: 110px 0;
    background: var(--dark-2);
    overflow: hidden;
}

.testimonial-slide {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    height: 340px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.testimonial-slide::before {
    content: '\201C';
    position: absolute;
    top: 14px; right: 26px;
    font-size: 5.5rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.12;
    line-height: 1;
}

.testimonial-stars {
    color: #F5A524;
    font-size: 0.875rem;
    margin-bottom: 18px;
}

.testimonial-text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
}

.author-name { font-weight: 700; font-size: 0.92rem; color: var(--white); }
.author-title { font-size: 0.76rem; color: var(--gray-light); }

.testimonials-swiper { padding-bottom: 50px; }
.testimonials-swiper .swiper-pagination { bottom: 0; }

.swiper-pagination-bullet {
    background: #C5D0E0;
    opacity: 1;
    width: 8px; height: 8px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 55%, #0E8F9A 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 80%);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.18;
}

.cta-section .cta-title .accent {
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 4px;
    text-underline-offset: 6px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.cta-section .btn-primary-custom {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--primary) !important;
}

.cta-section .btn-primary-custom:hover { background: var(--navy); border-color: var(--navy); color: #fff !important; }

/* ============================
   CONTACT FORM
   ============================ */
.contact-section {
    padding: 110px 0;
    background: var(--dark);
}

.contact-info-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-sm);
}

.contact-info-card-fill { height: 100%; }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.contact-info-value {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-info-value a { color: var(--white); }
.contact-info-value a:hover { color: var(--primary); }

.contact-form-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-label {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-control, .form-select {
    background-color: #FFFFFF;
    border: 1px solid #D5DEEA;
    border-radius: var(--radius);
    color: var(--navy);
    padding: 13px 16px;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus, .form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    color: var(--navy);
    outline: none;
}

.form-control::placeholder { color: var(--gray); }
.form-select { cursor: pointer; }
.form-select option { background: #FFFFFF; color: var(--navy); }

textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================
   PAGE HERO (Inner Pages)
   ============================ */
.page-hero {
    padding: 170px 0 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0B4FA8 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 70% at 90% 0%, rgba(var(--accent-rgb), 0.2), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: auto, 24px 24px;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-hero .page-hero-title span[style*="--primary"] { color: #5FD3B5 !important; }

.page-hero-subtitle {
    font-size: 1rem;
    color: var(--gray-light);
    margin-top: 16px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.breadcrumb-wrap {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.breadcrumb {
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 0;
}

.breadcrumb-item { color: var(--gray-light); font-size: 0.85rem; }
.breadcrumb-item a { color: #FFFFFF; }
.breadcrumb-item a:hover { color: #5FD3B5; }
.breadcrumb-item.active { color: #5FD3B5; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray); }

/* ============================
   SERVICE DETAIL
   ============================ */
.service-detail-section {
    padding: 80px 0 110px;
    background: var(--dark-2);
}

.service-intro-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.service-types-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }

.service-type-item {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.service-type-item:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--shadow-sm);
}

.service-type-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.service-type-desc {
    color: var(--gray-light);
    font-size: 0.86rem;
    line-height: 1.6;
}

.service-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.service-why-item {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: var(--transition);
}

.service-why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.why-check {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* ============================
   BLOG / SUCCESS
   ============================ */
.blog-section {
    padding: 80px 0 110px;
    background: var(--dark-2);
}

.blog-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: inherit;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.blog-card.flex-row, .blog-card[style*="flex-direction:row"] { flex-direction: row !important; }

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    color: inherit;
}

.blog-card.flex-row:hover,
.blog-card[style*="flex-direction:row"]:hover { transform: translateX(5px) translateY(-2px); }

.blog-card-img {
    height: 200px;
    background: linear-gradient(145deg, #EAF1FB, #DCE7F6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(var(--primary-rgb), 0.08), transparent 70%);
}

/* Post picture fills the card's image area */
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.04); }

/* Picture at the top of a blog article */
.article-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.blog-card-body { padding: 24px 28px; }

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.blog-category {
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.blog-date, .blog-read-time { color: var(--gray-light); font-size: 0.75rem; }

@media (max-width: 575.98px) {
    .blog-card.flex-row,
    .blog-card[style*="flex-direction:row"] { flex-direction: column !important; }
    .blog-card-img[style*="min-width"] {
        min-width: unset !important;
        width: 100% !important;
        height: 140px;
    }
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-text {
    color: var(--gray-light);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-read-more {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-card:hover .blog-read-more { gap: 12px; }

/* ============================
   SUCCESS STORIES
   ============================ */
.story-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.story-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.story-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }

.story-num {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.08);
    position: absolute;
    top: 20px; right: 24px;
    line-height: 1;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.story-text {
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ============================
   TEAM
   ============================ */
.team-section {
    padding: 110px 0;
    background: var(--dark);
}

.team-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.team-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
}

.team-avatar-img {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    border: 4px solid #FFFFFF;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.35), var(--shadow-sm);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.7;
}

/* ============================
   ABOUT PAGE CONTENT
   ============================ */
.about-content-section {
    padding: 80px 0 110px;
    background: var(--dark-2);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.industry-tag {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.industry-tag i { color: var(--primary); font-size: 0.75rem; }
.industry-tag:hover { border-color: rgba(var(--primary-rgb), 0.35); color: var(--primary); }

/* ============================
   FOOTER
   ============================ */
.site-footer { background: var(--navy); }

.footer-top { padding: 80px 0; }

.footer-logo-img {
    height: 86px;
    width: auto;
    display: block;
}

.footer-desc {
    color: var(--gray-light);
    font-size: 0.875rem;
    line-height: 1.8;
    margin-top: 8px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: 22px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-links-columns { column-count: 2; column-gap: 24px; }
.footer-links-columns li { break-inside: avoid; }

.footer-links a {
    color: var(--gray-light);
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

.footer-links a:hover { color: #FFFFFF; padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

/* The "Explore Other Services" sidebar reuses .footer-links on light cards */
.service-detail-section .footer-links a { color: var(--text); }
.service-detail-section .footer-links a:hover { color: var(--primary); }

.footer-contact { list-style: none; padding: 0; margin: 0; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--gray-light);
    font-size: 0.875rem;
}

.footer-contact li:last-child { border-bottom: none; }
.footer-contact li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; width: 16px; }
.footer-contact a { color: var(--gray-light); }
.footer-contact a:hover { color: #FFFFFF; }

.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.18);
    color: var(--gray-light);
    font-size: 0.8rem;
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--gray-light); }
.footer-bottom a:hover { color: #FFFFFF; }

/* ============================
   SCROLL TO TOP
   ============================ */
.scroll-top {
    position: fixed;
    bottom: 92px; right: 30px; /* sits above the Read Aloud button */
    width: 46px; height: 46px;
    border-radius: var(--radius);
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.35);
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px); background: var(--primary-dark); }

/* ============================
   MISC UTILITIES
   ============================ */
.text-primary-custom { color: var(--primary) !important; }
.bg-dark-2 { background: var(--dark-2) !important; }
.bg-dark-3 { background: var(--dark-3) !important; }
.border-custom { border-color: var(--border) !important; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--text);
    font-size: 0.92rem;
}

.check-list li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* jQuery Validate error text */
label.error, .error-message { color: #D92D20; font-size: 0.8rem; margin-top: 6px; display: block; }
.form-control.error, .form-select.error { border-color: #D92D20; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991.98px) {
    .hero-visual { display: none; }
    .hero-content { padding: 130px 0 70px; }
    .hero-stats { gap: 24px; }
    .hero-stat + .hero-stat { padding-left: 24px; }
    .service-types-grid, .service-why-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }

    .navbar-collapse {
        background: #FFFFFF;
        border-radius: var(--radius-lg);
        padding: 16px;
        margin-top: 12px;
        border: 1px solid #E3E9F2;
        box-shadow: var(--shadow);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-collapse li a::before { content: initial; }
    .dropdown-menu { box-shadow: none; border-top-width: 1px; border-radius: var(--radius); }
    .nav-link::after { display: none; }
}

@media (max-width: 767.98px) {
    .about-experience-badge { padding: 10px; bottom: -10px; right: -10px; }
    .about-experience-badge .num { font-size: 1.5rem; }
    .about-experience-badge .text { font-size: 10px; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn-lg-custom { width: 100%; justify-content: center; }
    .cta-section .text-center { text-align: left !important; }
    .cta-section .cta-text { max-width: 100%; }
    .cta-section .section-label.justify-content-center { margin-left: 0; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-card { padding: 24px; }
    .service-intro-card { padding: 26px; }
}

@media (max-width: 575.98px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat + .hero-stat { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 16px; }
    .industries-grid { grid-template-columns: 1fr; }
}

/* Services mega menu: 25 lead types in two columns on desktop */
@media (min-width: 992px) {
    .navbar .mega-menu {
        min-width: 580px;
        column-count: 2;
        column-gap: 0;
        right: 0;
        left: auto;
    }
    .navbar .mega-menu li { break-inside: avoid; }
}

/* ============================
   READ ALOUD FLOATING BUTTON
   (bottom-right corner; scroll-to-top button sits above it)
   ============================ */
#footer-read-aloud-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 50px;
    height: 50px;
    z-index: 999;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.35);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

#footer-read-aloud-btn:hover,
#footer-read-aloud-btn:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.4);
}

#footer-read-aloud-btn svg {
    width: 24px;
    height: 24px;
}

#footer-read-aloud-btn .tooltip-text {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.35rem 0.75rem;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

#footer-read-aloud-btn:hover .tooltip-text,
#footer-read-aloud-btn:focus-visible .tooltip-text {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 576px) {
    #footer-read-aloud-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ============================
   SIENNA ACCESSIBILITY WIDGET (wheelchair button, bottom-left)
   ============================ */
.asw-widget > .asw-menu-btn {
    outline: none !important;
    border: none !important;
    background: var(--primary) !important;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.35) !important;
}

.asw-widget > .asw-menu-btn svg {
    display: none;
}

.asw-widget > .asw-menu-btn::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f193";
    color: #fff;
    font-size: 20px;
}

.asw-footer {
    position: relative;
}

.asw-footer::before {
    content: "Powered by Tri-County Leads";
    font-weight: bold;
    color: #fff;
    background: var(--primary);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
}

.asw-menu {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15) !important;
    font-family: inherit;
    top: initial !important;
    bottom: 0;
    height: 80% !important;
}

/* ============================
   FOOTER — OWNER CREDIT (Bright Network)
   ============================ */
.footer-bottom-inner {
    padding: 0 76px; /* keep clear of the floating wheelchair (left) and read-aloud (right) buttons */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.footer-owner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-owner img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1); /* white version of the purple logo on the navy footer */
    opacity: 0.85;
    transition: var(--transition);
}

.footer-owner:hover img { opacity: 1; }

@media (max-width: 767.98px) {
    .footer-bottom-inner { flex-direction: column; text-align: center; padding: 0 0 64px; }
}

/* ============================
   NIGHT / DAY TOGGLE
   ============================ */
.theme-toggle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--dark-2);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }

.theme-icon-sun,
.logo-night { display: none !important; }

@media (max-width: 991.98px) {
    .theme-toggle { margin-right: 8px; }
}

/* ============================
   NIGHT MODE
   Re-maps the same surface/text variables the light theme uses,
   then fixes the few places that hard-code white.
   ============================ */
html[data-theme="dark"] {
    color-scheme: dark;
    --dark: #08121F;
    --dark-2: #0D1A2C;
    --dark-3: #112238;
    --dark-4: #142843;
    --dark-5: #22385A;
    --white: #EEF3FA;
    --text: #C3CEDF;
    --gray: #8495AE;
    --gray-light: #A2B0C5;
    --light: #0D1A2C;
    --border: #1F3352;
    --primary-glow: rgba(47, 134, 240, 0.16);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .theme-icon-moon,
html[data-theme="dark"] .logo-day { display: none !important; }
html[data-theme="dark"] .theme-icon-sun,
html[data-theme="dark"] .logo-night { display: block !important; }

html[data-theme="dark"] #preloader { background: var(--dark); }

html[data-theme="dark"] .navbar {
    background: var(--dark-2);
    border-bottom-color: var(--border);
}
html[data-theme="dark"] .navbar.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .nav-link { color: var(--white) !important; }
html[data-theme="dark"] .nav-item:hover .nav-link,
html[data-theme="dark"] .nav-link.active { color: var(--primary-light) !important; }
html[data-theme="dark"] .toggler-line { background: var(--white); }
html[data-theme="dark"] .theme-toggle { color: #F5C451; }

html[data-theme="dark"] .dropdown-menu {
    background: var(--dark-3);
    border-color: var(--border);
    border-top-color: var(--primary);
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: var(--dark-3);
    border-color: var(--border);
    color: var(--white);
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus { border-color: var(--primary); }
html[data-theme="dark"] .form-select option { background: var(--dark-3); color: var(--white); }

@media (max-width: 991.98px) {
    html[data-theme="dark"] .navbar-collapse {
        background: var(--dark-3);
        border-color: var(--border);
    }
}

html[data-theme="dark"] .blog-card-img { background: linear-gradient(145deg, var(--dark-4), var(--dark-2)); }

/* ============================
   POSTS PAGE (client promo posts gallery)
   ============================ */
.posts-section {
    padding: 80px 0 110px;
    background: var(--dark-2);
}

.post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    text-align: left;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover,
.post-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: var(--shadow);
}

.post-card-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.post-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;            /* show wide and tall posts whole, not cropped to a square */
    position: relative;
    z-index: 1;
}

/* Fill the empty bands beside wide/tall posts with a soft blurred copy of the same
   picture, so every card looks full (square posts cover it completely) */
.post-card-img::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: var(--post-bg) center / cover no-repeat;
    filter: blur(22px) saturate(1.2) brightness(0.8);
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-zoom {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 31, 58, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.post-card:hover .post-card-zoom,
.post-card:focus-visible .post-card-zoom { opacity: 1; }

.post-card-title {
    display: block;
    padding: 14px 16px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--white);
}

@media (max-width: 575.98px) {
    .post-card-title { padding: 10px 12px; font-size: 0.8rem; }
}

/* Full-size viewer */
.post-modal .modal-content {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-modal .modal-header,
.post-modal .modal-footer { border-color: var(--border); }

.post-modal .modal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--white);
}

.post-modal .modal-body { padding: 0; position: relative; }

.post-modal .modal-body img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    background: var(--navy);
}

/* Previous / next arrows over the picture */
.post-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 24, 56, 0.8);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.post-modal-nav:hover,
.post-modal-nav:focus-visible { background: var(--primary); }

.post-modal-prev { left: 12px; }
.post-modal-next { right: 12px; }

.post-modal-count {
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.post-modal .modal-footer { gap: 10px; }
.post-modal .btn-outline-custom { padding: 10px 22px; font-size: 0.875rem; }

html[data-theme="dark"] .post-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* Post shown at the top of a service page sidebar */
.service-post {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-post img { display: block; width: 100%; height: auto; }
.service-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ============================
   TREASURE CHEST BAND (home page, below the hero)
   ============================ */
.treasure-section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 25% 50%, #1A2F52 0%, var(--navy) 60%);
}

.treasure-section .section-text { color: var(--text); }

.treasure-img-wrap {
    position: relative;
    text-align: center;
}

/* soft gold glow behind the chest */
.treasure-img-wrap::before {
    content: '';
    position: absolute;
    inset: 15% 10%;
    background: radial-gradient(ellipse, rgba(245, 180, 40, 0.35), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.treasure-img {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

@media (max-width: 991.98px) {
    .treasure-section { padding: 70px 0; text-align: center; }
    .treasure-section .section-label { justify-content: center; }
    .treasure-section .d-flex { justify-content: center; }
}

/* ============================
   NAVBAR LOGO (gold mascot + toll-free number)
   ============================ */
.navbar-brand { padding: 0; margin-right: 12px; }

.navbar .navbar-logo-img {
    height: 86px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-logo-img { height: 66px; }
.navbar { padding: 8px 0; }

@media (max-width: 575.98px) {
    .navbar .navbar-logo-img,
    .navbar.scrolled .navbar-logo-img { height: 56px; }
}

/* ============================
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ============================ */
.legal-section {
    padding: 80px 0 120px;
    background: var(--dark-2);
}

.legal-content {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    line-height: 1.85;
    font-size: 0.95rem;
}

.legal-content .legal-lead {
    font-size: 1.02rem;
    color: var(--white);
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 32px 0 12px;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 18px 0 8px;
}

.legal-content p { margin-bottom: 14px; }

.legal-content ul {
    padding-left: 1.3rem;
    margin-bottom: 16px;
}

.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--primary); }
.legal-content strong { color: var(--white); }
.legal-content a { text-decoration: underline; text-underline-offset: 2px; }

.legal-content .legal-contact {
    list-style: none;
    padding: 20px 24px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.legal-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-contact i { color: var(--primary); width: 18px; text-align: center; }

@media (max-width: 575.98px) {
    .legal-content { padding: 26px 20px; }
}

/* Privacy / Terms links in the footer bottom bar */
.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a { color: var(--gray-light); }
.footer-legal a:hover { color: #FFFFFF; }

/* Privacy / Terms agreement checkbox on the quote forms */
.form-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-agree input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-agree label {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--gray-light);
    cursor: pointer;
}

.form-agree label a { text-decoration: underline; }

.form-agree input.is-invalid { outline: 2px solid #D92D20; outline-offset: 2px; }

/* ============================
   FOOTER SMS SIGN-UP (compact)
   ============================ */
.sms-subscribe {
    max-width: 340px;
    margin-top: 22px;
}

.sms-subscribe-title {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFFFFF;
}

.sms-subscribe-title i { color: var(--accent); margin-right: 4px; }

.sms-subscribe-row {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease;
}

.sms-subscribe-row:focus-within { border-color: var(--primary-light); }

.sms-subscribe-row input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 0.8rem;
    outline: none;
}

.sms-subscribe-row input::placeholder { color: rgba(255, 255, 255, 0.45); }

.sms-subscribe-row button {
    padding: 7px 14px;
    border: 0;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sms-subscribe-row button:hover { background: var(--primary-light); }
.sms-subscribe-row button:disabled { opacity: 0.7; cursor: wait; }

.sms-subscribe-terms {
    margin: 8px 0 0;
    font-size: 0.65rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.sms-subscribe-terms a { color: rgba(255, 255, 255, 0.7); text-decoration: underline; }

.sms-subscribe-msg { margin: 6px 0 0; font-size: 0.75rem; }
.sms-subscribe-msg:empty { display: none; }
.sms-subscribe-msg.is-ok { color: #4ADE80; }
.sms-subscribe-msg.is-error { color: #F87171; }

/* honeypot field: off-screen for people, still visible to bots */
.sms-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 991.98px) {
    .sms-subscribe { max-width: 100%; }
}

/* Open page highlighted inside its dropdown menu (set by main.js) */
.dropdown-item.active,
.dropdown-item.active:hover,
.dropdown-item.active:focus {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 600;
}

/* Services mega menu: 28 lead types. Three columns on wide screens and tighter rows on
   smaller laptops, so every item is visible without scrolling inside the menu. */
@media (min-width: 992px) {
    .navbar .mega-menu .dropdown-item { padding: 6px 12px; }
}
@media (min-width: 1200px) {
    .navbar .mega-menu {
        min-width: 840px;
        column-count: 3;
    }
}
/* Anchor the wide mega menu to the navbar's container (not the "Services" link),
   so it always stays inside the screen */
@media (min-width: 992px) {
    #mainNav > .container { position: relative; }
    #mainNav .nav-item.dropdown:has(> .mega-menu) { position: static; }
    #mainNav .mega-menu { right: 12px; left: auto; top: 100%; }
}
@media (min-width: 992px) {
    /* invisible bridge over the gap between "Services" and the menu, so it stays open while the mouse moves down */
    #mainNav .mega-menu::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -40px;
        height: 40px;
    }
}
@media (min-width: 992px) {
    /* everything fits now, so no inner scrolling (it would also clip the hover bridge above) */
    #mainNav .mega-menu { max-height: none; overflow: visible; }
}

/* "Our Leads" menu: a grid that fills row by row, left to right — 4 columns across the
   full container on desktops, 3 on small laptops, 2 on tablets, 1 on phones.
   (Replaces the older column-count layouts above, which filled top to bottom.) */
#mainNav .mega-menu.show,
#mainNav .dropdown:hover > .mega-menu {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 8px;
    column-count: auto;
}
#mainNav .mega-menu li { min-width: 0; }
#mainNav .mega-menu .dropdown-item {
    white-space: normal;            /* long names wrap instead of overflowing the column */
    line-height: 1.35;
    border-radius: 6px;
}
@media (min-width: 576px) and (max-width: 991.98px) {
    #mainNav .mega-menu.show { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    #mainNav .mega-menu {
        left: 12px;
        right: 12px;
        min-width: 0;
        padding: 14px;
    }
    #mainNav .mega-menu.show,
    #mainNav .dropdown:hover > .mega-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    #mainNav .mega-menu.show,
    #mainNav .dropdown:hover > .mega-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* About Us menu: 13 guides, two columns on desktop so it fits on laptop screens */
@media (min-width: 992px) {
    .navbar .about-menu {
        min-width: 600px;
        column-count: 2;
        column-gap: 0;
    }
    .navbar .about-menu li { break-inside: avoid; }
    .navbar .about-menu .dropdown-item { padding: 6px 12px; }
}

/* Category · date line under blog post titles */
.article-meta {
    margin: -6px 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
}



/* ============================
   HOME HERO: full-width banner + overlapping headline card (client layout)
   Uses the normal page colours: white in day mode, dark in night mode.
   ============================ */
.hero-banner-section {
    position: relative;
    padding: 0 0 80px;
    background: var(--dark);
}

.hero-banner-img {
    position: relative;
    height: clamp(240px, 36vw, 500px);
    margin-top: 103px;              /* height of the fixed menu bar */
    overflow: hidden;
}

.hero-banner-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* soft fade from the banner into the page */
.hero-banner-img::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to bottom, transparent, var(--dark));
    pointer-events: none;
}

.hero-banner-card {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: -130px auto 0;
    padding: 46px 56px 36px;
    text-align: center;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-banner-label { margin-bottom: 18px; }

.hero-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.6vw, 2.9rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 18px;
}

.hero-banner-title .accent {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner-intro {
    max-width: 760px;
    margin: 0 auto 30px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text);
}

.hero-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-banner-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin: 30px 0 0;
    padding: 22px 0 0;
    list-style: none;
    border-top: 1px solid var(--border);
}

.hero-banner-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-light);
}

.hero-banner-trust i { color: var(--accent); }

@media (max-width: 991.98px) {
    .hero-banner-img { margin-top: 73px; }   /* smaller menu bar on phones/tablets */
}

@media (max-width: 767.98px) {
    .hero-banner-section { padding-bottom: 50px; }
    .hero-banner-card { margin-top: -50px; padding: 30px 20px 24px; }
    .hero-banner-intro { font-size: 0.95rem; }
    .hero-banner-actions .btn { width: 100%; justify-content: center; }
    .hero-banner-trust { gap: 10px 18px; }
    .hero-banner-trust li { font-size: 0.8rem; }
}
/* keep the top of the banner (its "Database Leads" heading) in view on wide screens */
.hero-banner-img img { object-position: center top; }
@media (max-width: 767.98px) {
    .hero-banner-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; justify-items: start; text-align: left; }

    /* Phones: show the mobile banner whole (scaled to the screen width) instead of
       cropping it to a fixed height; overlap it less so the card doesn't hide it */
    .hero-banner-img { height: auto; }
    .hero-banner-img img { height: auto; object-fit: contain; }
    .hero-banner-img::after { height: 25%; }
    .hero-banner-card { margin-top: -20px; }
}

/* Gold bar divider (client artwork) — reusable: <img src=".../images/gold-bar.png" class="gold-divider" alt=""> */
.gold-divider {
    display: block;
    width: min(320px, 70%);
    height: auto;
    margin: 6px auto 22px;
    pointer-events: none;
}
/* bar at the very top of the home headline card, above "Premium Lead Generation" */
.gold-divider-top { margin: -8px auto 16px; }
/* night mode: brighter label text so it reads on dark cards */
html[data-theme="dark"] .section-label { color: var(--primary-light); }

/* ============================
   Q&A MENU (two levels: chapter groups -> chapters)
   ============================ */
.qa-menu { min-width: 230px; }
.qa-menu .dropdown-submenu { position: relative; }
.qa-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa-group-toggle::after {
    content: '\f054';                       /* Font Awesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}
.qa-submenu .dropdown-item { white-space: nowrap; }
.qa-group-toggle.active { background: var(--primary-glow); color: var(--primary); }

@media (min-width: 992px) {
    .qa-submenu {
        position: absolute;
        top: -11px;
        left: 100%;
        margin: 0 0 0 6px !important;
        min-width: 300px;
    }
    .qa-submenu.open-left { left: auto; right: 100%; margin: 0 6px 0 0 !important; }
    /* bridge the 6px gap so the side menu stays open while the mouse crosses it */
    .qa-submenu::before { content: ''; position: absolute; top: 0; bottom: 0; width: 10px; left: -10px; }
    .qa-submenu.open-left::before { left: auto; right: -10px; }
    .qa-menu .dropdown-submenu.show > .qa-submenu { display: block; }
    .qa-menu .dropdown-submenu.show > .qa-group-toggle { background: var(--primary-glow); color: var(--primary); }
}

@media (max-width: 991.98px) {
    .qa-submenu { position: static; border: 0; box-shadow: none; margin: 0 0 4px 12px !important; padding: 0; min-width: 0; }
    .qa-submenu .dropdown-item { white-space: normal; }
    .qa-menu .dropdown-submenu.show > .qa-submenu { display: block; }
    .qa-menu .dropdown-submenu.show > .qa-group-toggle::after { transform: rotate(90deg); }
}

/* ============================
   Q&A PAGES
   ============================ */
.qa-section { padding: 70px 0 110px; background: var(--dark-2); }

.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.qa-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 26px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 120px;
}

.qa-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-glow);
}

.qa-question {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--white);
    margin: 4px 0 6px;
    line-height: 1.45;
}

.qa-answer { margin: 0; color: var(--text); line-height: 1.75; font-size: 0.95rem; }
.qa-answer a { font-weight: 600; }

.qa-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }

.qa-pager-link {
    flex: 1;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.qa-pager-link small { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-light); }
.qa-pager-link span { font-weight: 700; color: var(--white); }
.qa-pager-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.qa-pager-next { text-align: right; margin-left: auto; }

.qa-group-card {
    height: 100%;
    padding: 26px 28px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.qa-group-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.qa-group-list { list-style: none; margin: 0; padding: 0; }
.qa-group-list li + li { border-top: 1px solid var(--border); }
.qa-group-list a { display: block; padding: 10px 0; color: var(--white); font-weight: 600; font-size: 0.92rem; }
.qa-group-list a span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray-light); }
.qa-group-list a:hover { color: var(--primary); }

@media (max-width: 575.98px) {
    .qa-item { padding: 18px; gap: 12px; }
    .qa-pager { flex-direction: column; }
    .qa-pager-link { max-width: 100%; }
}

/* ============================
   SALES SCRIPTS PAGE
   ============================ */
.scripts-section { padding: 70px 0 110px; background: var(--dark-2); }

.scripts-toc {
    position: sticky;
    top: 120px;
    padding: 24px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.scripts-toc-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.scripts-toc ol { margin: 0 0 18px; padding-left: 1.2rem; }
.scripts-toc li { margin-bottom: 8px; font-size: 0.9rem; }
.scripts-toc li::marker { color: var(--primary); font-weight: 700; }
.scripts-toc a { color: var(--text); font-weight: 600; }
.scripts-toc a:hover { color: var(--primary); }
.scripts-toc-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-light); margin-bottom: 6px; }
.scripts-toc .form-select-sm { padding: 8px 12px; font-size: 0.85rem; }

.scripts-part { margin-bottom: 44px; scroll-margin-top: 120px; }

.scripts-part-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
}

.scripts-part-title span {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.script-card {
    padding: 26px 28px;
    margin-bottom: 16px;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 120px;
}

.script-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.script-card-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-heading); font-size: 1.12rem; font-weight: 800; color: var(--primary); }
.script-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: var(--primary); background: var(--primary-glow); }
.script-lead-link { flex-shrink: 0; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.script-lead-link i { font-size: 0.7rem; margin-left: 4px; }

.script-goal { margin: 0 0 14px; font-size: 0.92rem; color: var(--text); }
.script-goal strong { color: var(--accent); }
.script-label { margin: 16px 0 8px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-light); }
.script-text { margin: 0 0 10px; color: var(--text); line-height: 1.8; }

.script-say {
    margin: 0 0 14px;
    padding: 16px 20px;
    background: var(--dark-2);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.script-say p { margin: 0 0 8px; color: var(--white); line-height: 1.75; font-size: 0.96rem; }
.script-say p:last-child { margin-bottom: 0; }
.script-speaker { display: inline-block; margin-bottom: 8px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }

.script-note {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
    background: rgba(245, 165, 36, 0.1);
    border: 1px solid rgba(245, 165, 36, 0.3);
    border-radius: var(--radius);
}
.script-note i { color: #F5A524; }

.script-list { margin: 0 0 6px; padding-left: 0; list-style: none; }
.script-list li { position: relative; padding: 6px 0 6px 28px; color: var(--text); }
.script-list li::before { content: '\f058'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 6px; color: var(--accent); }

@media (max-width: 991.98px) {
    .scripts-toc { position: static; }
}
@media (max-width: 575.98px) {
    .script-card { padding: 20px 18px; }
    .script-card-head { flex-direction: column; align-items: flex-start; }
}

/* ============================
   MENU BAR FIT (8 menu items): labels never wrap, logo never shrinks;
   tighter spacing on laptops and an icon-only phone button below 1200px
   ============================ */
.navbar-brand { flex-shrink: 0; }
.nav-phone-text { margin-left: 8px; }
@media (min-width: 992px) {
    #navbarMain .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    #navbarMain .nav-link { padding: 8px 10px !important; }
    #navbarMain .nav-link::before { left: 10px; right: 10px; }
    #navbarMain .nav-item.ms-lg-3 { margin-left: 8px !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    #navbarMain .nav-link { padding: 8px 7px !important; font-size: 0.85rem; }
    #navbarMain .nav-link::before { left: 7px; right: 7px; }
    .nav-phone-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
    .nav-phone-text { display: none; }
    .theme-toggle { margin-left: 8px !important; }
}

/* ============================
   WHATSAPP QUOTE BUTTON (header, between the logo and the menu)
   ============================ */
.nav-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-whatsapp-btn i { font-size: 1.3rem; }
.nav-whatsapp-btn:hover,
.nav-whatsapp-btn:focus { background: #1EBE5A; color: #fff; transform: translateY(-1px); }
@media (min-width: 992px) {
    /* menu no longer stretches, so the auto margins centre the button */
    #navbarMain { flex-grow: 0; margin-left: 10px; }
}
@media (min-width: 1100px) and (max-width: 1199.98px) {
    .nav-whatsapp-btn { padding: 8px 14px; font-size: 0.82rem; gap: 6px; }
    .nav-whatsapp-btn i { font-size: 1.15rem; }
}
/* small laptops: icon-only circle (like the phone button) so the menu still fits */
@media (min-width: 992px) and (max-width: 1099.98px) {
    .nav-whatsapp-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; }
    .nav-whatsapp-text { display: none; }
}
/* phones: smaller, text on two lines so the night toggle and menu button still fit */
@media (max-width: 575.98px) {
    .nav-whatsapp-btn { max-width: 112px; padding: 6px 10px; gap: 6px; font-size: 0.7rem; line-height: 1.15; white-space: normal; text-align: left; }
    .nav-whatsapp-btn i { font-size: 1.15rem; }
}
@media (max-width: 379.98px) {
    .navbar-brand { margin-right: 6px; }
    .nav-whatsapp-btn { max-width: 100px; padding: 5px 8px; gap: 5px; font-size: 0.66rem; }
    .theme-toggle { margin-right: 4px; }
}

/* ============================
   AI CHAT ASSISTANT (includes/chatbot.php)
   Launcher sits left of the Read Aloud button; the panel opens above it.
   ============================ */
.chatbot-launcher {
    position: fixed;
    bottom: 28px; right: 92px;
    height: 50px;
    padding: 0 20px;
    z-index: 1000;
    display: flex; align-items: center; gap: 8px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.35);
    transition: var(--transition);
}
.chatbot-launcher i { font-size: 1.2rem; }
.chatbot-launcher:hover { transform: translateY(-2px); }
.chatbot-launcher.is-open i::before { content: "\f00d"; } /* x icon while open */

.chatbot-teaser {
    position: fixed;
    bottom: 90px; right: 92px;
    max-width: 240px;
    z-index: 1000;
    padding: 12px 14px;
    border-radius: var(--radius) var(--radius) 4px var(--radius);
    background: var(--dark-3);
    color: var(--white);
    font-size: 0.88rem;
    line-height: 1.4;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: pointer;
    animation: chatbot-pop 0.3s ease;
}

.chatbot-panel {
    position: fixed;
    bottom: 92px; right: 28px;
    width: min(380px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 120px));
    z-index: 1001;
    display: flex; flex-direction: column;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: chatbot-pop 0.25s ease;
}
.chatbot-panel[hidden], .chatbot-teaser[hidden], .chatbot-chips[hidden] { display: none; }

.chatbot-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    background: var(--navy);
    color: #fff;
}
.chatbot-avatar {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent);
}
.chatbot-title { flex: 1; min-width: 0; line-height: 1.25; }
.chatbot-title strong { display: block; font-family: var(--font-heading); }
.chatbot-title span { font-size: 0.78rem; color: #B6C2D6; }
.chatbot-title a { color: #fff; text-decoration: underline; }
.chatbot-close { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }

.chatbot-log {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--dark-2);
}
.chatbot-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.chatbot-msg-assistant { align-self: flex-start; background: var(--dark-3); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chatbot-msg-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chatbot-msg-assistant a { color: var(--primary); font-weight: 600; text-decoration: underline; }
html[data-theme="dark"] .chatbot-msg-assistant a { color: var(--primary-light); }

.chatbot-typing { display: flex; gap: 4px; }
.chatbot-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); animation: chatbot-dot 1s infinite ease-in-out; }
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }

.chatbot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--dark-2); }
.chatbot-chips button {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    padding: 5px 11px;
    font-size: 0.8rem;
    cursor: pointer;
}
.chatbot-chips button:hover { background: var(--primary); color: #fff; }
html[data-theme="dark"] .chatbot-chips button { border-color: var(--primary-light); color: var(--primary-light); }
html[data-theme="dark"] .chatbot-chips button:hover { color: #fff; background: var(--primary); }

.chatbot-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--dark-3); }
.chatbot-form input {
    flex: 1; min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--dark-2);
    color: var(--white);
    font-size: 16px; /* 16px stops iPhone zooming in on focus */
}
.chatbot-form input:focus { outline: none; border-color: var(--primary); }
.chatbot-form button {
    width: 44px; flex-shrink: 0;
    border: 0; border-radius: var(--radius);
    background: var(--primary); color: #fff;
    cursor: pointer;
}
.chatbot-form button:disabled { opacity: 0.5; cursor: wait; }
.chatbot-note { margin: 0; padding: 0 12px 8px; font-size: 0.7rem; color: var(--gray); background: var(--dark-3); }

@keyframes chatbot-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes chatbot-dot { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* phones: icon-only launcher, panel fills the width */
@media (max-width: 575.98px) {
    .chatbot-launcher { width: 50px; padding: 0; justify-content: center; right: 88px; }
    .chatbot-launcher-text { display: none; }
    .chatbot-teaser { right: 16px; }
    .chatbot-panel { right: 16px; bottom: 88px; height: min(560px, calc(100vh - 110px)); }
}
