/*
 * iHospi Landing Page Styles
 * Brand: iHospi | "Smart Hospital, Smarter Care"
 * Company: iSoftInt
 *
 * Color Scheme:
 *   --primary:    #0E4DA4  (Deep Blue)
 *   --secondary:  #12B4A0  (Teal Green)
 *   --accent:     #FF6B35  (Orange - CTA)
 *   --dark:       #1A1A2E
 *   --light-bg:   #F8FAFB
 *   --white:      #FFFFFF
 */

/* Suppress browser scroll-anchor warnings caused by AOS layout shifts */
html {
    overflow-anchor: none;
}

/* =========================================================
   PRELOADER
   ========================================================= */
.ih-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ih-preloader.ih-preloader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ih-preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

/* Preloader logo image */
.ih-preloader-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Spinner ring */
.ih-preloader-spinner {
    position: relative;
    width: 48px;
    height: 48px;
}

.ih-spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(14, 77, 164, 0.12);
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: ih-spin 0.85s linear infinite;
}

@keyframes ih-spin {
    to { transform: rotate(360deg); }
}

.ih-preloader-tagline {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(26, 26, 46, 0.45);
    letter-spacing: 0.5px;
    margin: 0;
}

/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
    --primary:        #0E4DA4;
    --secondary:      #12B4A0;
    --accent:         #FF6B35;
    --dark:           #1A1A2E;
    --light-bg:       #F8FAFB;
    --white:          #FFFFFF;

    --font-primary:   'Inter', sans-serif;
    --font-heading:   'Poppins', sans-serif;

    --shadow-sm:      0 2px 8px rgba(14, 77, 164, 0.08);
    --shadow-md:      0 8px 32px rgba(14, 77, 164, 0.14);
    --shadow-lg:      0 20px 60px rgba(14, 77, 164, 0.18);

    --radius-sm:      8px;
    --radius-md:      16px;
    --radius-lg:      24px;

    --transition:     all 0.3s ease;
}

/* =========================================================
   BASE
   ========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   SECTION 1 — NAVBAR
   ========================================================= */
.ih-navbar {
    background-color: var(--white);
    padding: 1rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(14, 77, 164, 0.06);
}

/* Scrolled state — applied via JS */
.ih-navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.ih-navbar.scrolled .ih-logo-img {
    height: 44px;
}

/* Brand logo link */
.ih-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0;
}

/* Navbar logo image */
.ih-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

.ih-logo:hover .ih-logo-img {
    opacity: 0.85;
}

/* Nav links */
.ih-nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark) !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

.ih-nav-link:hover,
.ih-nav-link.active {
    color: var(--primary) !important;
    background-color: rgba(14, 77, 164, 0.06);
}

/* Hamburger toggler */
.ih-toggler {
    border: none;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
}

.ih-toggler:focus {
    box-shadow: none;
}

/* ---- Shared button styles ---- */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}

/* Outline Primary (Login) */
.ih-btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
}

.ih-btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Accent filled (CTA) */
.ih-btn-accent {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
}

.ih-btn-accent:hover {
    background-color: #e85a26;
    border-color: #e85a26;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* Large accent (Hero CTA) */
.ih-btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

/* Outline dark (Watch Demo) */
.ih-btn-outline-dark {
    color: var(--dark);
    border: 2px solid rgba(26, 26, 46, 0.3);
    background: transparent;
    display: inline-flex;
    align-items: center;
}

.ih-btn-outline-dark:hover {
    border-color: var(--dark);
    color: var(--dark);
    background-color: rgba(26, 26, 46, 0.05);
    transform: translateY(-1px);
}

/* Ensure all large hero buttons align icons */
.ih-btn-accent.ih-btn-lg,
.ih-btn-outline-dark.ih-btn-lg {
    display: inline-flex;
    align-items: center;
}

/* =========================================================
   SECTION 2 — HERO
   ========================================================= */
.ih-hero {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f0fb 60%, #d6eaf8 100%);
    padding: 5rem 0 5rem;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background decoration */
.ih-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(18, 180, 160, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ih-hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 77, 164, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Badge pill */
.ih-hero-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(14,77,164,0.1), rgba(18,180,160,0.1));
    border: 1px solid rgba(14, 77, 164, 0.2);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.ih-hero-badge i {
    color: var(--secondary);
    font-size: 0.75rem;
}

/* Heading */
.ih-hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -1px;
}

.ih-hero-heading-accent {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.ih-hero-desc {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(26, 26, 46, 0.72);
    max-width: 480px;
}

/* Trust line */
.ih-trust-line {
    font-size: 0.85rem;
    color: rgba(26, 26, 46, 0.55);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.ih-trust-line i {
    color: var(--secondary);
}

.ih-trust-divider {
    color: rgba(26, 26, 46, 0.25);
    margin: 0 0.25rem;
}

/* ---- Dashboard Mockup ---- */
.ih-hero-mockup {
    width: 100%;
    max-width: 540px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

/* Gradient border via pseudo-element */
.ih-hero-mockup::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    z-index: -1;
}

.ih-mockup-inner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

/* Mockup top bar */
.ih-mockup-topbar {
    background: #f0f0f0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid #e5e5e5;
}

.ih-mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.ih-mockup-title {
    margin-left: 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.5);
    font-family: var(--font-primary);
}

/* Mockup body */
.ih-mockup-body {
    height: 320px;
    background: #f4f8ff;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.ih-mockup-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .ih-hero {
        padding: 4rem 0 3rem;
        min-height: auto;
        text-align: center;
    }

    .ih-hero-desc {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .ih-trust-line {
        justify-content: center;
    }

    /* Centre hero CTA buttons on tablet/mobile */
    .ih-hero .d-flex.flex-wrap {
        justify-content: center;
    }

    .ih-hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .ih-hero-mockup {
        max-width: 420px;
        margin-top: 2rem;
    }

    .ih-logo-img {
        height: 44px;
    }

    /* Mobile nav background */
    #navMenu {
        background-color: var(--white);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
        position: relative;
        z-index: 1031;
    }
}

@media (max-width: 575.98px) {
    .ih-hero {
        padding: 3rem 0 2.5rem;
    }

    .ih-hero-heading {
        font-size: 2rem;
    }

    .ih-hero-desc {
        font-size: 1rem;
    }

    .ih-btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   SHARED — SECTION HEADER (reusable across sections)
   ========================================================= */
.ih-section-header {
    max-width: 640px;
    margin: 0 auto 3rem;
}

.ih-section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 0.6rem;
}

.ih-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 0.9rem;
    letter-spacing: -0.5px;
}

.ih-section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(26, 26, 46, 0.62);
    margin-bottom: 0;
}

.ih-text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================
   SECTION 3 — FEATURES
   ========================================================= */
.ih-features {
    background-color: var(--white);
    padding: 5rem 0 5.5rem;
}

/* Feature Card */
.ih-feature-card {
    background: var(--white);
    border: 1px solid rgba(14, 77, 164, 0.09);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle top-border accent on hover */
.ih-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.ih-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.ih-feature-card:hover::before {
    transform: scaleX(1);
}

/* Icon circle */
.ih-feature-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(18, 180, 160, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.ih-feature-icon-wrap i {
    font-size: 1.35rem;
    color: var(--secondary);
    transition: var(--transition);
}

.ih-feature-card:hover .ih-feature-icon-wrap {
    background: var(--secondary);
}

.ih-feature-card:hover .ih-feature-icon-wrap i {
    color: var(--white);
    transform: scale(1.1);
}

/* Card text */
.ih-feature-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.ih-feature-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(26, 26, 46, 0.6);
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .ih-features {
        padding: 3.5rem 0 4rem;
    }

    .ih-feature-card {
        padding: 1.5rem 1.25rem;
    }
}

/* =========================================================
   SECTION 4 — MODULES
   ========================================================= */
.ih-modules {
    background-color: var(--light-bg);
    padding: 5rem 0 5.5rem;
}

/* ---- Tab Nav (Pills) ---- */
.ih-modules-tabs-wrap {
    margin: 2.5rem 0 2rem;
}

.ih-modules-nav {
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Reset Bootstrap nav-link defaults inside our module tabs */
.ih-modules-nav .nav-link {
    padding: 0;
    color: inherit;
    background: none;
    border: none;
    border-radius: 0;
}

.ih-tab-btn {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.65) !important;
    background: var(--white) !important;
    border: 1.5px solid rgba(14, 77, 164, 0.12) !important;
    border-radius: 50px !important;
    padding: 0.55rem 1.25rem !important;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.ih-tab-btn:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: rgba(14, 77, 164, 0.04) !important;
}

.ih-tab-btn.active {
    background: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 14px rgba(14, 77, 164, 0.28);
}

.ih-tab-btn i {
    font-size: 0.82rem;
}

/* ---- Tab Content Area ---- */
.ih-modules-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(14, 77, 164, 0.07);
    padding: 3rem 2.5rem;
    margin-top: 0.5rem;
}

/* Pane transition — Bootstrap adds fade; we enhance */
.ih-modules-content .tab-pane {
    transition: opacity 0.35s ease;
}

/* ---- Illustration Placeholder ---- */
.ih-module-illustration {
    background: linear-gradient(135deg, rgba(14,77,164,0.06) 0%, rgba(18,180,160,0.1) 100%);
    border-radius: var(--radius-md);
    border: 2px dashed rgba(14, 77, 164, 0.15);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.ih-module-illustration:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(14,77,164,0.09) 0%, rgba(18,180,160,0.15) 100%);
}

.ih-module-illustration-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
}

.ih-module-illustration-inner i {
    font-size: 3.5rem;
    opacity: 0.55;
}

.ih-module-illustration-inner span {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(14, 77, 164, 0.55);
    letter-spacing: 0.5px;
}

/* ---- Pane Text Content ---- */
.ih-module-pane-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.ih-module-pane-desc {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(26, 26, 46, 0.62);
    margin-bottom: 1.5rem;
}

/* ---- Feature Bullet List ---- */
.ih-module-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.ih-module-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
}

.ih-module-features-list li i {
    color: var(--secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .ih-modules-content {
        padding: 2rem 1.5rem;
    }

    .ih-modules-nav {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .ih-tab-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
    }

    .ih-module-pane-title {
        font-size: 1.35rem;
    }

    .ih-modules-content {
        padding: 1.5rem 1rem;
    }
}

/* =========================================================
   SECTION 5 — STATS COUNTER
   ========================================================= */
.ih-stats {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, #0a3a7a 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Decorative blobs */
.ih-stats::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(18, 180, 160, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ih-stats::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ih-stat-item {
    padding: 1.5rem 1rem;
    position: relative;
}

/* Vertical divider between stats on desktop */
.ih-stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.col-lg-3:last-child .ih-stat-item::after {
    display: none;
}

.ih-stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
}

.ih-stat-label {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

@media (max-width: 575.98px) {
    .ih-stat-item::after {
        display: none;
    }

    .ih-stat-number {
        font-size: 2.2rem;
    }
}

/* =========================================================
   SECTION 6 — PRICING
   ========================================================= */
.ih-pricing {
    background-color: var(--light-bg);
    padding: 5rem 0 5.5rem;
}

/* Pricing card base */
.ih-pricing-card {
    background: var(--white);
    border: 1.5px solid rgba(14, 77, 164, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.ih-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Popular card */
.ih-pricing-card-popular {
    border-color: var(--accent);
    border-width: 2px;
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
    background: var(--white);
    z-index: 1;
}

.ih-pricing-card-popular:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Popular badge */
.ih-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent), #e85a26);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
    letter-spacing: 0.3px;
}

/* Pricing header */
.ih-pricing-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(14, 77, 164, 0.08);
}

.ih-plan-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.ih-pricing-card-popular .ih-plan-name {
    color: var(--accent);
}

.ih-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.ih-price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(26, 26, 46, 0.5);
    align-self: flex-start;
    margin-top: 0.4rem;
}

.ih-price-amount {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -1px;
}

.ih-price-period {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(26, 26, 46, 0.5);
}

.ih-plan-price-custom {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.ih-plan-tagline {
    font-size: 0.85rem;
    color: rgba(26, 26, 46, 0.5);
    margin-bottom: 0;
}

/* Feature list */
.ih-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ih-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--dark);
}

.ih-plan-features li i.fa-circle-check {
    color: var(--secondary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ih-plan-feature-off {
    opacity: 0.38;
}

.ih-plan-feature-off i.fa-circle-xmark {
    color: rgba(26, 26, 46, 0.4);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* CTA button */
.ih-plan-cta {
    margin-top: auto;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .ih-pricing-card-popular {
        transform: scale(1);
    }

    .ih-pricing-card-popular:hover {
        transform: translateY(-5px);
    }

    .ih-pricing {
        padding: 4rem 0 4.5rem;
    }
}

@media (max-width: 575.98px) {
    .ih-pricing-card {
        padding: 1.75rem 1.5rem;
    }
}

/* =========================================================
   SECTION 7 — TESTIMONIALS
   ========================================================= */
.ih-testimonials {
    background-color: var(--white);
    padding: 5rem 0 5.5rem;
}

.ih-testimonial-carousel-wrap {
    max-width: 760px;
    margin: 2.5rem auto 0;
    position: relative;
    padding: 0 3rem; /* room for controls */
}

/* Testimonial card */
.ih-testimonial-card {
    background: var(--light-bg);
    border: 1px solid rgba(14, 77, 164, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem 2.25rem;
    text-align: center;
    margin: 0.5rem 0.25rem 3.5rem; /* bottom room for indicators */
}

/* Stars */
.ih-stars i {
    color: #f4c430;
    font-size: 1.05rem;
    margin: 0 1px;
}

/* Quote */
.ih-testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(26, 26, 46, 0.78);
    font-style: italic;
    margin: 0 0 1.75rem;
    font-family: var(--font-primary);
    border: none;
    padding: 0;
}

/* Author row */
.ih-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

/* Avatar circle */
.ih-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ih-avatar i {
    color: var(--white);
    font-size: 1.3rem;
}

.ih-author-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
}

.ih-author-role {
    font-size: 0.8rem;
    color: rgba(26, 26, 46, 0.52);
    text-align: left;
}

/* Carousel controls */
.ih-carousel-ctrl {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1.5px solid rgba(14, 77, 164, 0.15);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-60%);
    transition: var(--transition);
    opacity: 1;
}

.ih-carousel-ctrl:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.ih-carousel-ctrl i {
    font-size: 0.85rem;
    color: var(--primary);
    transition: var(--transition);
}

.ih-carousel-ctrl:hover i {
    color: var(--white);
}

/* Override Bootstrap default icon spans */
.ih-carousel-ctrl .carousel-control-prev-icon,
.ih-carousel-ctrl .carousel-control-next-icon {
    display: none;
}

/* Indicators */
.ih-carousel-indicators {
    bottom: 0.25rem;
}

.ih-carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(14, 77, 164, 0.2);
    border: none;
    margin: 0 3px;
    transition: var(--transition);
}

.ih-carousel-indicators button.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 50px;
}

@media (max-width: 575.98px) {
    .ih-testimonial-carousel-wrap {
        padding: 0 0.25rem;
    }

    .ih-carousel-ctrl {
        display: none;
    }

    .ih-testimonial-card {
        padding: 2rem 1.5rem 2rem;
    }

    .ih-testimonial-quote {
        font-size: 0.95rem;
    }
}

/* =========================================================
   SECTION 8 — FAQ
   ========================================================= */
.ih-faq {
    background-color: var(--light-bg);
    padding: 5rem 0 5.5rem;
}

/* Accordion item */
.ih-accordion-item {
    background: var(--white);
    border: 1px solid rgba(14, 77, 164, 0.09) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.ih-accordion-item:last-child {
    margin-bottom: 0;
}

.ih-accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: rgba(14, 77, 164, 0.22) !important;
    box-shadow: var(--shadow-sm);
}

/* Accordion button */
.ih-accordion-btn {
    font-family: var(--font-primary);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    padding: 1.1rem 1.4rem;
    box-shadow: none !important;
    border-radius: var(--radius-md) !important;
}

.ih-accordion-btn:not(.collapsed) {
    color: var(--primary);
    background: var(--white);
}

/* Hide Bootstrap's default caret; use FA instead via ::after override */
.ih-accordion-btn::after {
    content: '\f078'; /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: rgba(26, 26, 46, 0.4);
    background-image: none;
    width: auto;
    height: auto;
    transition: transform 0.25s ease, color 0.25s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.ih-accordion-btn:not(.collapsed)::after {
    transform: rotate(-180deg);
    color: var(--primary);
}

/* FAQ icon */
.ih-faq-icon {
    color: var(--secondary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ih-accordion-btn:not(.collapsed) .ih-faq-icon {
    color: var(--primary);
}

/* Accordion body */
.ih-accordion-body {
    font-size: 0.93rem;
    line-height: 1.75;
    color: rgba(26, 26, 46, 0.65);
    padding: 0 1.4rem 1.25rem 3.5rem; /* indent under icon */
}

@media (max-width: 575.98px) {
    .ih-faq {
        padding: 3.5rem 0 4rem;
    }

    .ih-accordion-btn {
        font-size: 0.92rem;
        padding: 1rem 1rem;
    }

    .ih-accordion-body {
        padding: 0 1rem 1rem 2.75rem;
    }
}

/* =========================================================
   SECTION 9 — CTA
   ========================================================= */
.ih-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0a7a6e 60%, var(--secondary) 100%);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.ih-cta::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ih-cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Left text column */
.ih-cta-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.9rem;
    letter-spacing: -0.5px;
}

.ih-cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ih-cta-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ih-cta-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.ih-cta-trust-list li i {
    color: #7fffd4; /* light teal */
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Right form card */
.ih-cta-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.ih-cta-form-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.ih-form-input {
    border: 1.5px solid rgba(14, 77, 164, 0.14);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--dark);
    transition: var(--transition);
    background: var(--light-bg);
}

.ih-form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 77, 164, 0.1);
    outline: none;
}

.ih-form-input::placeholder {
    color: rgba(26, 26, 46, 0.38);
}

.ih-cta-submit {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.ih-cta-form-note {
    font-size: 0.78rem;
    color: rgba(26, 26, 46, 0.45);
}

.ih-cta-form-note i {
    color: var(--secondary);
}

@media (max-width: 991.98px) {
    .ih-cta {
        text-align: center;
        padding: 4rem 0;
    }

    .ih-cta-trust-list {
        align-items: center;
    }

    .ih-cta-form-card {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .ih-cta {
        padding: 3rem 0;
    }

    .ih-cta-form-card {
        padding: 1.75rem 1.25rem;
    }
}

/* =========================================================
   SECTION 10 — FOOTER
   ========================================================= */
.ih-footer {
    background-color: var(--dark);
    padding-top: 4.5rem;
}

/* Footer logo link */
.ih-footer-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

/* Footer logo image — white background so invert to show on dark */
.ih-footer-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);  /* makes the coloured logo white on dark bg */
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.ih-footer-logo:hover .ih-footer-logo-img {
    opacity: 1;
}

.ih-footer-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    max-width: 320px;
}

/* Social icons */
.ih-social-links {
    display: flex;
    gap: 0.6rem;
}

.ih-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.ih-social-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer headings */
.ih-footer-heading {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

/* Footer nav links */
.ih-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ih-footer-links li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.ih-footer-links li a:hover {
    color: var(--secondary);
    transform: translateX(3px);
}

/* Contact info list */
.ih-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ih-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.ih-footer-contact li i {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
}

.ih-footer-contact li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.25s;
}

.ih-footer-contact li a:hover {
    color: var(--secondary);
}

/* Bottom bar */
.ih-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.25rem 0;
    margin-top: 0;
}

.ih-footer-bottom p {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.38);
}

.ih-footer-bottom strong {
    color: rgba(255, 255, 255, 0.55);
}

.ih-footer-bottom-links a {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 0.25s;
}

.ih-footer-bottom-links a:hover {
    color: var(--secondary);
}

@media (max-width: 767.98px) {
    .ih-footer {
        padding-top: 3rem;
    }

    .ih-footer-desc {
        max-width: 100%;
    }

    .ih-footer-heading {
        margin-top: 1.5rem;
    }

    .ih-footer-bottom .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .ih-footer-bottom-links {
        justify-content: center;
    }
}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */
.ih-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(14, 77, 164, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
    z-index: 999;
    pointer-events: none;
}

.ih-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ih-back-to-top:hover {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(18, 180, 160, 0.4);
}

@media (max-width: 575.98px) {
    .ih-back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   LEGAL PAGES — Privacy Policy & Terms of Service
   ========================================================= */

/* Body wrapper */
.ih-legal-body {
    background: #f8fafb;
    padding: 60px 0 80px;
    min-height: 60vh;
}

/* Centered content column */
.ih-legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(14, 77, 164, 0.07);
    padding: 52px 56px;
}

@media (max-width: 767.98px) {
    .ih-legal-wrap {
        padding: 32px 20px;
    }
}

/* Intro paragraph */
.ih-legal-intro {
    font-size: 1rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary, #12B4A0);
    padding-left: 1rem;
}

/* Section block */
.ih-legal-section {
    margin-top: 44px;
    padding-top: 36px;
    border-top: 1px solid #e5e7eb;
}

.ih-legal-section:first-of-type {
    margin-top: 40px;
}

/* Section headings */
.ih-legal-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* Numbered badge */
.ih-legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0E4DA4, #12B4A0);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Body text inside sections */
.ih-legal-section p {
    font-size: 0.97rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.ih-legal-section p:last-child {
    margin-bottom: 0;
}

.ih-legal-section a {
    color: var(--primary, #0E4DA4);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ih-legal-section a:hover {
    color: var(--secondary, #12B4A0);
}

/* Bullet lists */
.ih-legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ih-legal-list li {
    font-size: 0.97rem;
    color: #374151;
    line-height: 1.65;
    padding-left: 1.5rem;
    position: relative;
}

.ih-legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0E4DA4, #12B4A0);
}

/* Highlight callout box */
.ih-legal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(14,77,164,.06), rgba(18,180,160,.06));
    border: 1px solid rgba(14,77,164,.15);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: #1e3a5f;
    line-height: 1.65;
}

.ih-legal-highlight i {
    color: #0E4DA4;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Info cards for data collection section */
.ih-legal-card-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.ih-legal-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    transition: box-shadow 0.2s;
}

.ih-legal-card:hover {
    box-shadow: 0 4px 16px rgba(14, 77, 164, 0.08);
}

.ih-legal-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0E4DA4, #12B4A0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.ih-legal-card strong {
    display: block;
    font-size: 0.97rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.ih-legal-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Contact grid */
.ih-legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.ih-legal-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none !important;
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

a.ih-legal-contact-item:hover {
    border-color: #0E4DA4;
    box-shadow: 0 2px 12px rgba(14, 77, 164, 0.1);
    color: #0E4DA4;
}

.ih-legal-contact-item i {
    color: #0E4DA4;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Bottom nav bar */
.ih-legal-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.ih-legal-back-link,
.ih-legal-alt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0E4DA4;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.ih-legal-back-link:hover,
.ih-legal-alt-link:hover {
    color: #12B4A0;
    gap: 12px;
}


/* =========================================================
   MOBILE IMPROVEMENTS — consolidated fixes
   Breakpoints:  ≤991px (tablet)  ≤767px (phablet)  ≤575px (mobile)  ≤375px (small phone)
   ========================================================= */

/* ── Navbar ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Stack CTA buttons vertically in collapsed menu */
    #navMenu .d-flex {
        flex-direction: column;
        width: 100%;
    }

    #navMenu .d-flex .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ── Hero ────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-hero-heading {
        font-size: 1.9rem;
        letter-spacing: -0.5px;
    }

    .ih-hero-desc {
        font-size: 0.97rem;
        max-width: 100%;
    }

    /* Mockup height reduced on small phones */
    .ih-mockup-body {
        height: 200px;
    }

    /* Buttons fill width and stack nicely */
    .ih-hero .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .ih-btn-lg {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }

    /* Trust line wraps cleanly */
    .ih-trust-line {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
}

/* ── Section headers ─────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-section-header {
        margin-bottom: 2rem;
    }

    .ih-section-title {
        font-size: 1.7rem;
    }

    .ih-section-subtitle {
        font-size: 0.95rem;
    }

    /* All section padding normalised */
    .ih-features,
    .ih-modules,
    .ih-testimonials,
    .ih-faq,
    .ih-pricing {
        padding: 3.5rem 0 4rem;
    }

    .ih-stats,
    .ih-cta {
        padding: 3rem 0;
    }
}

/* ── Features ────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-feature-card {
        padding: 1.25rem 1rem;
    }

    .ih-feature-title {
        font-size: 1rem;
    }

    /* Force single column on very small screens */
    .ih-features .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Modules ─────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    /* Tab pills scroll horizontally instead of wrapping */
    .ih-modules-tabs-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .ih-modules-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
    }

    /* Module pane stacks: illustration below text on mobile */
    .ih-modules-content .row {
        flex-direction: column-reverse;
    }

    .ih-modules-content .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ih-module-illustration {
        margin-bottom: 1.25rem;
        aspect-ratio: 16 / 9;
    }

    .ih-module-illustration-inner i {
        font-size: 2.5rem;
    }
}

/* ── Stats ───────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    /* 2 per row on mobile */
    .ih-stats .row > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .ih-stat-item {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 375px) {
    /* 1 per row on very small phones */
    .ih-stats .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Pricing ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Full-width cards stacked on tablet/mobile */
    .ih-pricing .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ih-pricing-card-popular {
        transform: scale(1);
        order: -1; /* show popular card first */
    }
}

@media (max-width: 575.98px) {
    .ih-pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .ih-plan-price {
        font-size: 2.4rem;
    }
}

/* ── Testimonials ────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-testimonial-carousel-wrap {
        padding: 0;
    }

    .ih-testimonial-card {
        padding: 1.75rem 1.25rem 1.75rem;
        margin-bottom: 2.5rem;
    }

    .ih-testimonial-quote {
        font-size: 0.93rem;
    }
}

/* ── FAQ ─────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-accordion-btn {
        font-size: 0.9rem;
        padding: 0.9rem 0.9rem;
        gap: 0.6rem;
    }

    .ih-accordion-body {
        font-size: 0.9rem;
        padding: 0 0.9rem 1rem 2.5rem;
    }
}

/* ── CTA Section ─────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-cta-heading {
        font-size: 1.65rem;
    }

    .ih-cta-form-card {
        padding: 1.5rem 1rem;
    }

    /* Stack trust list items */
    .ih-cta-trust-list {
        align-items: flex-start;
        text-align: left;
    }

    .ih-cta .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-footer {
        padding-top: 2.5rem;
    }

    /* All footer columns full-width */
    .ih-footer .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ih-footer-heading {
        margin-top: 1.75rem;
    }

    .ih-footer-contact li {
        font-size: 0.85rem;
    }

    .ih-social-links {
        justify-content: flex-start;
    }
}

/* ── Legal pages ─────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .ih-legal-wrap {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .ih-legal-section h2 {
        font-size: 1.05rem;
        flex-wrap: wrap;
    }

    .ih-legal-card {
        flex-direction: column;
        gap: 10px;
    }

    .ih-legal-contact-grid {
        grid-template-columns: 1fr;
    }

    .ih-legal-footer-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ── Global small-phone tweaks ───────────────────────────── */
@media (max-width: 375px) {
    body {
        font-size: 15px;
    }

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ih-section-title {
        font-size: 1.5rem;
    }
}
