/* ============================================================================
   iTelVoIP – Public Website Stylesheet
   Loaded after Bootstrap 5 and app.css.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------------------- */
:root {
    /* Brand */
    --itv-primary:        #1a56db;
    --itv-primary-dark:   #1240a8;
    --itv-primary-light:  #3b82f6;
    --itv-secondary:      #00b4d8;
    --itv-accent:         #7c3aed;
    --itv-dark:           #0f172a;
    --itv-dark-2:         #1e293b;
    --itv-body:           #334155;
    --itv-muted:          #64748b;
    --itv-border:         #e2e8f0;
    --itv-success:        #10b981;
    --itv-warning:        #f59e0b;

    /* Gradients */
    --itv-gradient:       linear-gradient(135deg, #1a56db 0%, #0284c7 60%, #00b4d8 100%);
    --itv-gradient-2:     linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
    --itv-gradient-dark:  linear-gradient(135deg, #0f172a 0%, #1e2d4f 100%);

    /* Typography */
    --itv-font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --itv-font-display:   'Inter', sans-serif;

    /* Sizing */
    --itv-radius:         0.625rem;
    --itv-radius-lg:      1rem;
    --itv-radius-xl:      1.5rem;
    --itv-shadow:         0 4px 24px rgba(15,23,42,.08);
    --itv-shadow-lg:      0 12px 48px rgba(15,23,42,.14);
    --itv-shadow-card:    0 2px 12px rgba(15,23,42,.06);

    /* Navbar */
    --itv-navbar-h:       70px;
    --itv-topbar-h:       36px;

    /* Transitions */
    --itv-ease:           cubic-bezier(.4,0,.2,1);
}

[data-bs-theme="dark"] {
    --itv-body:     #cbd5e1;
    --itv-muted:    #94a3b8;
    --itv-border:   #334155;
    --itv-dark:     #0f172a;
    --itv-dark-2:   #1e293b;
    --itv-shadow:   0 4px 24px rgba(0,0,0,.3);
    --itv-shadow-lg:0 12px 48px rgba(0,0,0,.4);
}

/* ----------------------------------------------------------------------------
   2. Base / Reset
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: var(--itv-font);
    color: var(--itv-body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

[data-bs-theme="dark"] body {
    background: var(--itv-dark);
    color: var(--itv-body);
}

.itv-main { padding-top: calc(var(--itv-navbar-h) + var(--itv-topbar-h)); }

/* ----------------------------------------------------------------------------
   3. Announcement Top Bar (fixed above the sticky header)
   ---------------------------------------------------------------------------- */
.itv-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1041;
    height: var(--itv-topbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.itv-topbar-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding-left: 2rem;
    animation: itv-marquee 22s linear infinite;
}

.itv-topbar-track span { flex-shrink: 0; }

@keyframes itv-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 576px) {
    .itv-topbar-track { animation-duration: 16s; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .itv-topbar-track { animation: none; }
    .itv-topbar { overflow-x: auto; }
}

/* ----------------------------------------------------------------------------
   4. Sticky Header
   ---------------------------------------------------------------------------- */
.itv-header {
    position: fixed;
    top: var(--itv-topbar-h); left: 0; right: 0;
    z-index: 1040;
    background: #fff;
    transition: background .3s var(--itv-ease), box-shadow .3s var(--itv-ease), backdrop-filter .3s;
}

[data-bs-theme="dark"] .itv-header {
    background: var(--itv-dark, #0d1117);
}

.itv-header.scrolled {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.08);
}

[data-bs-theme="dark"] .itv-header.scrolled {
    background: rgba(15,23,42,.9);
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(0,0,0,.4);
}

.itv-navbar {
    min-height: var(--itv-navbar-h);
    padding: 0;
}

.itv-brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    font-family: var(--itv-font-display);
}

.itv-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: var(--itv-radius);
    background: var(--itv-gradient);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.itv-brand-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--itv-dark);
    letter-spacing: -.02em;
}

[data-bs-theme="dark"] .itv-brand-text { color: #fff; }

.itv-brand-accent { color: var(--itv-primary); }

/* Nav links */
.itv-nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--itv-body) !important;
    padding: .5rem .75rem !important;
    border-radius: var(--itv-radius);
    transition: color .2s, background .2s;
    position: relative;
}

.itv-nav-link:hover,
.itv-nav-link.active {
    color: var(--itv-primary) !important;
    background: rgba(26,86,219,.06);
}

/* Dropdown */
.itv-dropdown {
    border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius-lg);
    box-shadow: var(--itv-shadow-lg);
    padding: .5rem;
    min-width: 260px;
    background: #fff;
}

[data-bs-theme="dark"] .itv-dropdown {
    background: var(--itv-dark-2);
    border-color: #334155;
}

.itv-dd-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: var(--itv-radius);
    transition: background .15s;
    color: var(--itv-body) !important;
}

.itv-dd-item:hover { background: rgba(26,86,219,.06); color: var(--itv-dark) !important; }

.itv-dd-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: .5rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Hamburger */
.itv-toggler {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: pointer;
}
.itv-toggler span {
    display: block;
    width: 22px; height: 2px;
    background: var(--itv-body);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* Theme button */
.itv-theme-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: var(--itv-radius);
    border: 1px solid var(--itv-border);
    background: transparent;
    color: var(--itv-body);
    padding: 0;
    font-size: .9rem;
    transition: background .2s, color .2s;
}
.itv-theme-btn:hover { background: rgba(26,86,219,.08); color: var(--itv-primary); }

/* Nav buttons */
.itv-btn-ghost {
    color: var(--itv-body);
    border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius);
    font-size: .8125rem;
    font-weight: 500;
    padding: .375rem .75rem;
    transition: all .2s;
    white-space: nowrap;
}
.itv-btn-ghost:hover { background: var(--itv-primary); color: #fff; border-color: var(--itv-primary); }

.itv-btn-primary {
    background: var(--itv-gradient);
    color: #fff !important;
    border: none;
    border-radius: var(--itv-radius);
    font-size: .8125rem;
    font-weight: 600;
    padding: .4rem .9rem;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
    text-decoration: none;
}
.itv-btn-primary:hover { opacity: .9; transform: translateY(-1px); }

/* Flash */
.itv-flash-wrapper { padding: .75rem 0 0; }
.itv-alert-success { background: #ecfdf5; border-color: #10b981; color: #065f46; }
.itv-alert-error   { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
[data-bs-theme="dark"] .itv-alert-success { background: #064e3b; color: #a7f3d0; }
[data-bs-theme="dark"] .itv-alert-error   { background: #7f1d1d; color: #fecaca; }

/* Breadcrumb */
.itv-breadcrumb-nav {
    background: transparent;
    padding: .5rem 0 0;
}
.itv-breadcrumb {
    font-size: .8125rem;
    background: transparent;
    margin: 0;
    padding: 0;
    --bs-breadcrumb-divider-color: var(--itv-muted);
}
.itv-breadcrumb .breadcrumb-item a { color: var(--itv-primary); text-decoration: none; }
.itv-breadcrumb .breadcrumb-item.active { color: var(--itv-muted); }

/* ----------------------------------------------------------------------------
   4. Hero Section
   ---------------------------------------------------------------------------- */
.itv-hero {
    position: relative;
    padding: 6rem 0 5rem;
    overflow: hidden;
    background: var(--itv-gradient-dark);
    color: #fff;
}

.itv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,86,219,.35) 0%, transparent 70%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0,180,216,.2) 0%, transparent 60%);
}

.itv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 100px;
    padding: .3rem .9rem;
    font-size: .8125rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.itv-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.itv-hero-title span { color: var(--itv-secondary); }

.itv-hero-sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

.itv-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.itv-btn-hero-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff;
    color: var(--itv-primary) !important;
    border: 2px solid #fff;
    border-radius: var(--itv-radius);
    font-size: .9375rem;
    font-weight: 700;
    padding: .75rem 1.75rem;
    text-decoration: none;
    transition: all .2s;
}
.itv-btn-hero-primary:hover { background: transparent; color: #fff !important; }

.itv-btn-hero-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.1);
    color: #fff !important;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: var(--itv-radius);
    font-size: .9375rem;
    font-weight: 600;
    padding: .75rem 1.75rem;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all .2s;
}
.itv-btn-hero-secondary:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }

.itv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
}

.itv-hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.itv-hero-stat-label {
    font-size: .8125rem;
    color: rgba(255,255,255,.65);
    margin-top: .15rem;
}

.itv-hero-visual {
    position: relative;
    z-index: 1;
}

.itv-hero-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--itv-radius-xl);
    padding: 2rem;
    backdrop-filter: blur(12px);
    color: #fff;
}

/* Floating cards */
.itv-float-card {
    position: absolute;
    background: rgba(255,255,255,.95);
    border-radius: var(--itv-radius-lg);
    padding: .75rem 1rem;
    box-shadow: var(--itv-shadow-lg);
    animation: itv-float 4s ease-in-out infinite;
    z-index: 2;
}

[data-bs-theme="dark"] .itv-float-card { background: var(--itv-dark-2); }

.itv-float-card-1 { top: 10%; right: -5%; animation-delay: 0s; }
.itv-float-card-2 { bottom: 20%; left: -5%; animation-delay: 1.5s; }

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

/* ----------------------------------------------------------------------------
   5. Section Styles
   ---------------------------------------------------------------------------- */
.itv-section {
    padding: 5rem 0;
}

.itv-section-sm { padding: 3rem 0; }
.itv-section-lg { padding: 7rem 0; }

.itv-section-dark {
    background: var(--itv-gradient-dark);
    color: #fff;
}

.itv-section-muted {
    background: #f8fafc;
}
[data-bs-theme="dark"] .itv-section-muted { background: var(--itv-dark-2); }

.itv-section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--itv-primary);
    margin-bottom: .75rem;
    background: rgba(26,86,219,.08);
    padding: .25rem .75rem;
    border-radius: 100px;
}

.itv-section-dark .itv-section-label {
    color: var(--itv-secondary);
    background: rgba(0,180,216,.1);
}

.itv-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.2;
    color: var(--itv-dark);
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .itv-section-title { color: #f1f5f9; }
.itv-section-dark .itv-section-title      { color: #fff; }

.itv-section-sub {
    font-size: 1.0625rem;
    color: var(--itv-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.itv-section-dark .itv-section-sub { color: rgba(255,255,255,.7); }

/* ----------------------------------------------------------------------------
   6. Cards
   ---------------------------------------------------------------------------- */
.itv-card {
    background: #fff;
    border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius-lg);
    padding: 2rem;
    transition: transform .25s var(--itv-ease), box-shadow .25s var(--itv-ease), border-color .25s;
    height: 100%;
}
[data-bs-theme="dark"] .itv-card {
    background: var(--itv-dark-2);
    border-color: #334155;
}

.itv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--itv-shadow-lg);
    border-color: rgba(26,86,219,.2);
}

.itv-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: var(--itv-radius-lg);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform .25s;
    flex-shrink: 0;
}
.itv-card:hover .itv-card-icon { transform: scale(1.1) rotate(-3deg); }

.itv-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--itv-dark);
    margin-bottom: .5rem;
}
[data-bs-theme="dark"] .itv-card-title { color: #f1f5f9; }

.itv-card-text {
    font-size: .9375rem;
    color: var(--itv-muted);
    line-height: 1.65;
    margin: 0;
}

/* ----------------------------------------------------------------------------
   7. Pricing / Packages
   ---------------------------------------------------------------------------- */
.itv-pkg-card {
    background: #fff;
    border: 2px solid var(--itv-border);
    border-radius: var(--itv-radius-xl);
    padding: 2.25rem 2rem;
    position: relative;
    transition: transform .3s var(--itv-ease), box-shadow .3s, border-color .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
[data-bs-theme="dark"] .itv-pkg-card { background: var(--itv-dark-2); border-color: #334155; }

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

.itv-pkg-card.itv-popular {
    border-color: var(--itv-primary);
    box-shadow: 0 0 0 4px rgba(26,86,219,.1), var(--itv-shadow-lg);
}

.itv-pkg-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--itv-gradient);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: .04em;
}

.itv-pkg-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--itv-dark);
    margin-bottom: .25rem;
}
[data-bs-theme="dark"] .itv-pkg-name { color: #f1f5f9; }

.itv-pkg-tagline {
    font-size: .875rem;
    color: var(--itv-muted);
    margin-bottom: 1.5rem;
}

.itv-pkg-price {
    margin-bottom: 1.5rem;
}

.itv-pkg-price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--itv-dark);
    letter-spacing: -.04em;
    line-height: 1;
}
[data-bs-theme="dark"] .itv-pkg-price-amount { color: #f1f5f9; }

.itv-pkg-price-curr {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--itv-muted);
    align-self: flex-start;
    margin-top: .4rem;
}

.itv-pkg-price-period {
    font-size: .875rem;
    color: var(--itv-muted);
    align-self: flex-end;
    margin-bottom: .5rem;
}

.itv-pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex: 1;
}

.itv-pkg-features li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 0;
    font-size: .9rem;
    color: var(--itv-body);
    border-bottom: 1px solid var(--itv-border);
}
.itv-pkg-features li:last-child { border-bottom: none; }

.itv-pkg-features li .bi-check-circle-fill { color: var(--itv-success); flex-shrink: 0; }
.itv-pkg-features li .bi-x-circle-fill     { color: #cbd5e1; flex-shrink: 0; }
.itv-pkg-features li.itv-feat-excluded     { opacity: .5; }

.itv-btn-pkg {
    display: block;
    text-align: center;
    padding: .75rem;
    border-radius: var(--itv-radius);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    transition: all .2s;
    border: 2px solid var(--itv-primary);
    color: var(--itv-primary);
    background: transparent;
}
.itv-btn-pkg:hover,
.itv-pkg-card.itv-popular .itv-btn-pkg {
    background: var(--itv-gradient);
    color: #fff !important;
    border-color: transparent;
}

/* ----------------------------------------------------------------------------
   8. Reviews / Testimonials
   ---------------------------------------------------------------------------- */
.itv-review-card {
    background: #fff;
    border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow .25s, transform .25s;
}
[data-bs-theme="dark"] .itv-review-card { background: var(--itv-dark-2); border-color: #334155; }
.itv-review-card:hover { box-shadow: var(--itv-shadow-lg); transform: translateY(-3px); }

.itv-review-stars { color: #f59e0b; font-size: .9rem; letter-spacing: .05em; }

.itv-review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    flex-shrink: 0;
}

.itv-review-name  { font-weight: 700; font-size: .9375rem; color: var(--itv-dark); }
[data-bs-theme="dark"] .itv-review-name { color: #f1f5f9; }
.itv-review-country { font-size: .8125rem; color: var(--itv-muted); }

.itv-review-title { font-weight: 600; font-size: 1rem; color: var(--itv-dark); margin-bottom: .4rem; }
[data-bs-theme="dark"] .itv-review-title { color: #e2e8f0; }

.itv-review-body { font-size: .9rem; color: var(--itv-muted); line-height: 1.7; }

/* Rating bar */
.itv-rating-bar { height: 8px; border-radius: 100px; background: var(--itv-border); overflow: hidden; }
.itv-rating-fill { height: 100%; border-radius: 100px; background: var(--itv-gradient); }

/* ----------------------------------------------------------------------------
   9. FAQ / Accordion
   ---------------------------------------------------------------------------- */
.itv-faq-wrap .accordion-item {
    border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
[data-bs-theme="dark"] .itv-faq-wrap .accordion-item { border-color: #334155; background: var(--itv-dark-2); }

.itv-faq-wrap .accordion-button {
    font-weight: 600;
    font-size: .95rem;
    color: var(--itv-dark);
    background: transparent;
    padding: 1.1rem 1.25rem;
}
[data-bs-theme="dark"] .itv-faq-wrap .accordion-button { color: #f1f5f9; background: var(--itv-dark-2); }

.itv-faq-wrap .accordion-button:not(.collapsed) {
    color: var(--itv-primary);
    background: rgba(26,86,219,.04);
    box-shadow: none;
}

.itv-faq-wrap .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231a56db' fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.itv-faq-wrap .accordion-body {
    padding: 0 1.25rem 1.25rem;
    font-size: .9375rem;
    color: var(--itv-muted);
    line-height: 1.7;
}
[data-bs-theme="dark"] .itv-faq-wrap .accordion-body { background: var(--itv-dark-2); }

/* FAQ search */
.itv-faq-search {
    border-radius: var(--itv-radius-lg);
    border: 2px solid var(--itv-border);
    padding: .75rem 1.25rem .75rem 3rem;
    font-size: .9375rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") .9rem 50% / 16px no-repeat;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.itv-faq-search:focus {
    border-color: var(--itv-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    outline: none;
}
[data-bs-theme="dark"] .itv-faq-search { background-color: var(--itv-dark-2); color: #f1f5f9; }

/* ----------------------------------------------------------------------------
   10. Contact Form
   ---------------------------------------------------------------------------- */
.itv-contact-card {
    background: #fff;
    border: 1px solid var(--itv-border);
    border-radius: var(--itv-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--itv-shadow);
}
[data-bs-theme="dark"] .itv-contact-card { background: var(--itv-dark-2); border-color: #334155; }

.itv-form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--itv-dark);
    margin-bottom: .4rem;
    display: block;
}
[data-bs-theme="dark"] .itv-form-label { color: #e2e8f0; }

.itv-form-control {
    border: 1.5px solid var(--itv-border);
    border-radius: var(--itv-radius);
    padding: .625rem .9rem;
    font-size: .9375rem;
    color: var(--itv-dark);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
}
.itv-form-control:focus {
    border-color: var(--itv-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    outline: none;
}
[data-bs-theme="dark"] .itv-form-control { background: var(--itv-dark); color: #f1f5f9; border-color: #334155; }
[data-bs-theme="dark"] .itv-form-control:focus { border-color: var(--itv-primary-light); }

.itv-form-error { font-size: .8125rem; color: #ef4444; margin-top: .3rem; display: block; }

/* Contact info box */
.itv-contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--itv-border);
}
.itv-contact-info-item:last-child { border-bottom: none; }
.itv-contact-info-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--itv-radius);
    background: rgba(26,86,219,.08);
    color: var(--itv-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.itv-contact-info-label { font-size: .8125rem; color: var(--itv-muted); font-weight: 500; }
.itv-contact-info-value { font-size: .9375rem; font-weight: 600; color: var(--itv-dark); text-decoration: none; }
[data-bs-theme="dark"] .itv-contact-info-value { color: #f1f5f9; }
a.itv-contact-info-value:hover { color: var(--itv-primary); }

/* WhatsApp CTA */
.itv-whatsapp-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #25D366;
    color: #fff !important;
    border-radius: var(--itv-radius);
    font-weight: 600;
    font-size: .9375rem;
    padding: .75rem 1.5rem;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.itv-whatsapp-btn:hover { opacity: .9; transform: translateY(-2px); }

/* ----------------------------------------------------------------------------
   11. How It Works – Timeline
   ---------------------------------------------------------------------------- */
.itv-timeline {
    position: relative;
    padding-left: 0;
}

.itv-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--itv-primary), var(--itv-secondary));
    opacity: .25;
}

@media (min-width: 768px) {
    .itv-timeline::before { left: 50%; transform: translateX(-50%); }
}

.itv-timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.itv-timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--itv-gradient);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px rgba(26,86,219,.1);
    flex-shrink: 0;
    z-index: 1;
}

.itv-timeline-content {
    padding-top: .5rem;
    flex: 1;
}

.itv-timeline-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--itv-dark);
    margin-bottom: .4rem;
}
[data-bs-theme="dark"] .itv-timeline-title { color: #f1f5f9; }

.itv-timeline-text {
    font-size: .9375rem;
    color: var(--itv-muted);
    line-height: 1.7;
    margin: 0;
}

/* ----------------------------------------------------------------------------
   12. Page Hero (inner pages)
   ---------------------------------------------------------------------------- */
.itv-page-hero {
    background: var(--itv-gradient-dark);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.itv-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(26,86,219,.3) 0%, transparent 70%);
}

.itv-page-hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.025em;
    margin-bottom: .75rem;
}

.itv-page-hero-sub {
    font-size: 1.0625rem;
    color: rgba(255,255,255,.75);
    max-width: 560px;
    line-height: 1.7;
    margin: 0 auto;
}

/* ----------------------------------------------------------------------------
   13. Feature list (product pages)
   ---------------------------------------------------------------------------- */
.itv-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.itv-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--itv-border);
    font-size: .9375rem;
    color: var(--itv-body);
}
.itv-feature-list li:last-child { border-bottom: none; }

.itv-feature-list li .bi {
    color: var(--itv-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ----------------------------------------------------------------------------
   14. Stat Counter Cards
   ---------------------------------------------------------------------------- */
.itv-stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--itv-radius-lg);
}

.itv-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1;
}

.itv-stat-label {
    font-size: .875rem;
    color: rgba(255,255,255,.7);
    margin-top: .4rem;
}

/* ----------------------------------------------------------------------------
   15. CTA Sections
   ---------------------------------------------------------------------------- */
.itv-cta-section {
    background: var(--itv-gradient);
    padding: 5rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.itv-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 70% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
}

.itv-cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.025em;
    margin-bottom: .75rem;
}

/* ----------------------------------------------------------------------------
   16. Newsletter
   ---------------------------------------------------------------------------- */
.itv-newsletter-bar {
    background: var(--itv-dark-2);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
}

.itv-newsletter-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .25rem;
}

.itv-newsletter-sub { color: rgba(255,255,255,.6); font-size: .9375rem; }

.itv-newsletter-input {
    border: 1.5px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: #fff;
    border-radius: var(--itv-radius);
    padding: .625rem 1rem;
    font-size: .9375rem;
    flex: 1;
}
.itv-newsletter-input::placeholder { color: rgba(255,255,255,.45); }
.itv-newsletter-input:focus {
    border-color: var(--itv-primary-light);
    background: rgba(255,255,255,.1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,.25);
    color: #fff;
}

.itv-btn-primary-fill {
    background: var(--itv-primary);
    color: #fff;
    border: none;
    border-radius: var(--itv-radius);
    font-weight: 600;
    font-size: .9375rem;
    padding: .625rem 1.25rem;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.itv-btn-primary-fill:hover { background: var(--itv-primary-dark); transform: translateY(-1px); color: #fff; }

/* Outline variant — used on product cards and step sections */
.itv-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem 1.25rem;
    background: transparent;
    color: var(--itv-primary);
    border: 2px solid var(--itv-primary);
    border-radius: var(--itv-radius);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
    cursor: pointer;
    white-space: nowrap;
}
.itv-btn-outline:hover {
    background: var(--itv-primary);
    color: #fff;
    transform: translateY(-1px);
}
[data-bs-theme="dark"] .itv-btn-outline {
    color: var(--itv-primary-light, #60a5fa);
    border-color: var(--itv-primary-light, #60a5fa);
}
[data-bs-theme="dark"] .itv-btn-outline:hover {
    background: var(--itv-primary);
    color: #fff;
    border-color: var(--itv-primary);
}

/* Performance: allow browser to skip off-screen section paint/layout */
.itv-section { content-visibility: auto; contain-intrinsic-size: auto 500px; }
.itv-section-muted { content-visibility: auto; contain-intrinsic-size: auto 500px; }

/* ----------------------------------------------------------------------------
   17. Footer
   ---------------------------------------------------------------------------- */
.itv-footer { background: var(--itv-dark); }

.itv-footer-main {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.itv-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    margin-bottom: .5rem;
}

.itv-footer-tagline {
    font-size: .9375rem;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    max-width: 320px;
}

.itv-footer-heading {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
}

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

.itv-footer-links li { margin-bottom: .6rem; }

.itv-footer-links a {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .15s;
}
.itv-footer-links a:hover { color: #fff; }

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

.itv-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: rgba(255,255,255,.65);
    margin-bottom: .75rem;
}

.itv-footer-contact li .bi {
    color: var(--itv-primary-light);
    flex-shrink: 0;
    margin-top: .1rem;
}

.itv-footer-contact a { color: rgba(255,255,255,.65); text-decoration: none; }
.itv-footer-contact a:hover { color: #fff; }

.itv-social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--itv-radius);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .9rem;
    transition: background .2s, color .2s, transform .15s;
}
.itv-social-btn:hover { background: var(--itv-primary); color: #fff; transform: translateY(-2px); }
.itv-social-whatsapp:hover { background: #25D366; }

.itv-trust-badge {
    display: inline-flex; align-items: center;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    padding: .2rem .7rem;
}

.itv-footer-bottom {
    padding: 1.5rem 0;
}

.itv-copyright {
    font-size: .875rem;
    color: rgba(255,255,255,.4);
}

.itv-footer-legal-link {
    font-size: .8125rem;
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color .15s;
}
.itv-footer-legal-link:hover { color: rgba(255,255,255,.85); }

/* ----------------------------------------------------------------------------
   18. Back to Top
   ---------------------------------------------------------------------------- */
.itv-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--itv-gradient);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: var(--itv-shadow-lg);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}

.itv-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.itv-back-to-top:hover { opacity: .9; }

/* ----------------------------------------------------------------------------
   19. Utility / Helpers
   ---------------------------------------------------------------------------- */
/* Soft background colors */
.bg-primary-soft  { background: rgba(26,86,219,.1); }
.bg-success-soft  { background: rgba(16,185,129,.1); }
.bg-warning-soft  { background: rgba(245,158,11,.1); }
.bg-danger-soft   { background: rgba(239,68,68,.1); }
.bg-info-soft     { background: rgba(14,165,233,.1); }
.bg-purple-soft   { background: rgba(124,58,237,.1); }
.bg-secondary-soft{ background: rgba(100,116,139,.1); }

.text-purple { color: #7c3aed !important; }

/* Divider with text */
.itv-divider {
    display: flex; align-items: center; gap: 1rem;
    color: var(--itv-muted);
    font-size: .8125rem;
    margin: 2.5rem 0;
}
.itv-divider::before, .itv-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--itv-border);
}

/* Animate on scroll */
[data-itv-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--itv-ease), transform .6s var(--itv-ease);
}
[data-itv-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-itv-animate][data-delay="1"] { transition-delay: .1s; }
[data-itv-animate][data-delay="2"] { transition-delay: .2s; }
[data-itv-animate][data-delay="3"] { transition-delay: .3s; }
[data-itv-animate][data-delay="4"] { transition-delay: .4s; }
[data-itv-animate][data-delay="5"] { transition-delay: .5s; }

/* Legal page */
.itv-legal-body { line-height: 1.8; color: var(--itv-body); }
.itv-legal-body h2 { font-size: 1.375rem; font-weight: 700; color: var(--itv-dark); margin: 2rem 0 .75rem; }
.itv-legal-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--itv-dark); margin: 1.5rem 0 .5rem; }
.itv-legal-body p { margin-bottom: 1rem; }
.itv-legal-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.itv-legal-body ul li { margin-bottom: .4rem; }
[data-bs-theme="dark"] .itv-legal-body h2,
[data-bs-theme="dark"] .itv-legal-body h3 { color: #f1f5f9; }

/* Map placeholder */
.itv-map-placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: var(--itv-radius-lg);
    height: 300px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: .5rem;
    color: var(--itv-muted);
}
[data-bs-theme="dark"] .itv-map-placeholder { background: var(--itv-dark-2); }

/* Product screenshot placeholder */
.itv-screenshot-placeholder {
    background: linear-gradient(135deg, var(--itv-dark-2) 0%, #1e3a5f 100%);
    border-radius: var(--itv-radius-xl);
    aspect-ratio: 16/10;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: .75rem;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.08);
}

/* Step icon */
.itv-step-icon {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    border-radius: var(--itv-radius-lg);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Product badge */
.itv-product-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: .3rem .75rem;
    border-radius: 100px;
}

/* ----------------------------------------------------------------------------
   20. Responsive overrides
   ---------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .itv-timeline::before { left: 28px; transform: none; }
}

@media (max-width: 767.98px) {
    .itv-hero         { padding: 4rem 0 3.5rem; }
    .itv-section      { padding: 3.5rem 0; }
    .itv-section-lg   { padding: 4.5rem 0; }
    .itv-hero-title   { font-size: 2rem; }
    .itv-pkg-card     { padding: 1.75rem 1.5rem; }
    .itv-contact-card { padding: 1.75rem 1.25rem; }
    .itv-back-to-top  { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
}

@media (max-width: 575.98px) {
    .itv-hero-actions { flex-direction: column; }
    .itv-btn-hero-primary,
    .itv-btn-hero-secondary { justify-content: center; }
}

/* ============================================================================
   PROMPT 8B — MOBILE PERFORMANCE & ACCESSIBILITY ADDITIONS
   ============================================================================ */

/* --------------------------------------------------------------------------
   Touch targets — eliminate 300 ms tap delay on mobile browsers
   (touch-action:manipulation disables double-tap-zoom on interactive elements)
   -------------------------------------------------------------------------- */
a,
button,
label,
select,
summary,
[role="button"],
[type="button"],
[type="submit"],
[type="reset"],
[type="checkbox"],
[type="radio"] {
    touch-action: manipulation;
}

/* --------------------------------------------------------------------------
   Focus-visible — accessible keyboard / screen-reader focus rings
   (replaces browser default :focus which fires on mouse click too)
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--itv-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Remove focus ring from mouse clicks (browsers that support :focus-visible) */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reinstate high-contrast for interactive itv-* components */
.itv-btn-hero-primary:focus-visible,
.itv-btn-hero-secondary:focus-visible,
.itv-btn-primary-fill:focus-visible,
.itv-btn-outline:focus-visible,
.itv-nav-link:focus-visible,
.itv-pkg-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(26,86,219,.5);
}

/* --------------------------------------------------------------------------
   Reduced motion — respect OS preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .itv-float-card {
        animation: none !important;
    }

    [data-itv-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Content-visibility fine-tuning
   Off-screen sections skip layout/paint until scroll proximity.
   contain-intrinsic-size reserves a known height so scroll thumb is stable.
   -------------------------------------------------------------------------- */
.itv-section,
.itv-section-muted,
.itv-section-dark {
    contain-intrinsic-size: auto 600px;
}

/* Hero is above-fold — must NOT use content-visibility */
.itv-hero {
    content-visibility: visible;
    contain-intrinsic-size: none;
}

/* --------------------------------------------------------------------------
   Minimum tap target size — WCAG 2.5.5 (44 × 44 dp)
   -------------------------------------------------------------------------- */
.itv-nav-link,
.itv-social-btn,
.itv-back-to-top,
.itv-hamburger {
    min-width: 44px;
    min-height: 44px;
}

/* --------------------------------------------------------------------------
   Image optimization helpers — prevent layout shift (CLS)
   -------------------------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    /* Reserve space while lazy image loads to prevent CLS */
    min-height: 1px;
}

/* --------------------------------------------------------------------------
   Font loading optimisation — swap prevents invisible text while font loads
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: local('Inter');
}

/* --------------------------------------------------------------------------
   Mobile responsive additions (smallest screens / slow 3G)
   -------------------------------------------------------------------------- */
@media (max-width: 359.98px) {
    .itv-hero-title   { font-size: 1.65rem; }
    .itv-pkg-card     { padding: 1.25rem 1rem; }
    .itv-section      { padding: 2.5rem 0; }
}

/* --------------------------------------------------------------------------
   High-contrast mode support (Windows / forced colours)
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
    .itv-btn-hero-primary,
    .itv-btn-primary-fill {
        forced-color-adjust: none;
        border: 2px solid ButtonText;
    }
}

/* --------------------------------------------------------------------------
   Print — hide decorative elements, keep content readable
   -------------------------------------------------------------------------- */
@media print {
    .itv-header,
    .itv-footer,
    .itv-back-to-top,
    .itv-newsletter-bar,
    .itv-flash-wrapper,
    [data-itv-animate],
    .itv-float-card {
        display: none !important;
    }
    body { color: #000 !important; background: #fff !important; }
    a::after { content: ' (' attr(href) ')'; }
}
