/* ==========================================================================
   InsaTEL shared design system
   Included on every page via <link rel="stylesheet" href="assets/theme.css">
   Keep this as the single source of truth for colors, buttons, cards, and
   section framing — page files should only add page-specific CSS on top.
   ========================================================================== */

:root {
    /* Core brand palette — sampled from the InsaTEL logo: deep navy + cyan-blue */
    --brand: #0EA5E9;
    --brand-dark: #0B84BD;
    --brand-light: rgba(14, 165, 233, 0.10);
    --ink: #101B33;
    --ink-soft: #3C4A6B;
    --muted: #64748B;
    --border: rgba(16, 27, 51, 0.13);
    --surface: #ffffff;
    --surface-2: #F1F5F9;
    --bg: #F6F9FC;
    --success: #16a34a;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.11);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

/* ---------- Dark mode — same brand hue, inverted for depth ---------- */
html[data-theme="dark"] {
    --brand: #38BDF8;
    --brand-dark: #0EA5E9;
    --brand-light: rgba(56, 189, 248, 0.16);
    --ink: #F1F5F9;
    --ink-soft: #CBD5E1;
    --muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.16);
    --surface: #17233B;
    --surface-2: #101A2E;
    --bg: #0A1120;
    --success: #22C55E;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Cards blend into the dark background even with a border, since shadows
   don't read on dark-on-dark — add a faint inset top highlight so every
   card keeps a visible edge in dark mode. */
html[data-theme="dark"] .soft-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .pricing-card,
html[data-theme="dark"] .pricing-stat-card,
html[data-theme="dark"] .channel-card,
html[data-theme="dark"] .site-form,
html[data-theme="dark"] .server-address-box,
html[data-theme="dark"] .assistance-card,
html[data-theme="dark"] .modal-content {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--shadow-sm);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background: var(--site-bg, var(--bg));
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.text-muted { color: var(--site-muted, var(--muted)) !important; }

/* ---------- Page header (dark banner for interior pages) ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    margin-top: -78px;
    padding: calc(78px + 64px) 0 64px;
    background: #0A1120;
    color: #fff;
    text-align: center;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #bcd4ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.page-header .eyebrow i { color: #38bdf8; }

.page-header h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.page-header p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto;
}

/* ---------- Slider (dot-indicator carousel) ----------
   Reused for the 1-slide banner on every inner page and the
   5-slide homepage hero. Only .slider-slide content differs. */
.slider {
    position: relative;
}

.slider-track {
    position: relative;
    min-height: 1px;
}

.slider-slide {
    display: none;
    position: relative;
    z-index: 1;
}

.slider-slide.active {
    display: block;
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    position: relative;
    z-index: 2;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, width .2s ease;
}

.slider-dot.active {
    background: var(--brand);
    width: 26px;
    border-radius: 999px;
}

.slider-dot:hover { background: rgba(255, 255, 255, 0.45); }
.slider-dot.active:hover { background: var(--brand); }

/* ---------- Section framing ---------- */
.section-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.section-lead {
    color: var(--muted);
    max-width: 560px;
}

.section-head {
    margin-bottom: 3rem;
}

/* ---------- Cards ---------- */
.soft-card {
    background: var(--site-surface, var(--surface));
    border: 1px solid var(--site-border, var(--border));
    border-radius: var(--radius-md);
    box-shadow: var(--site-shadow-sm, var(--shadow-sm));
}

/* ---------- Service cards ---------- */
.service-card {
    background: var(--site-surface, var(--surface));
    border: 1px solid var(--site-border, var(--border));
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    text-align: left;
    box-shadow: var(--site-shadow-sm, var(--shadow-sm));
    color: var(--site-text, var(--ink));
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.22);
}

.service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.35rem;
    background: var(--brand-light);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--brand);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-icon {
    background: var(--brand);
    color: #fff;
    transform: scale(1.06);
}

.service-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Pricing cards (used on pricing.php, packages.php, and homepage) ---------- */
.pricing-stats-row{
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.pricing-stat-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.pricing-stat-card h3{
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 2px;
}

.pricing-stat-card p{
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.plan-switch{
    display: inline-flex;
    padding: 5px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.plan-switch .btn{
    border-radius: 8px;
    padding: 10px 26px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    transition: all 0.2s ease;
}

.plan-switch .btn.active{
    background: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(14, 165, 233, .25);
}

.pricing-card {
    background: var(--site-surface, var(--surface));
    border-radius: var(--radius-lg);
    border: 1px solid var(--site-border, var(--border));
    box-shadow: var(--site-shadow-sm, var(--shadow-sm));
    color: var(--site-text, var(--ink));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color .25s ease;
    position: relative;
    padding: 6px;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, .30);
}

.pricing-card.featured {
    border: 2px solid var(--brand);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.18);
}

.pricing-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.24);
}

.pricing-card .badge-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.35);
}

.package-name{
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    letter-spacing: -0.01em;
}

.package-speed {
    text-align: center;
    color: var(--brand);
    font-size: 14.5px;
    font-weight: 700;
    margin: 8px 0 18px;
}

.package-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    letter-spacing: -0.02em;
    margin: 18px 0;
}

.package-price small{
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.feature-list-v2{
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.feature-list-v2 li{
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 13.5px;
    display: flex;
    align-items: center;
}

.feature-list-v2 li:last-child{ border-bottom: none; }

.feature-list-v2 i{
    color: var(--success);
    margin-right: 9px;
    font-size: 14.5px;
    flex: none;
}

.btn-premium{
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-premium:hover{
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.pricing-card.featured .btn-premium{
    background: var(--ink);
}

.pricing-card.featured .btn-premium:hover{
    opacity: .9;
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 11px;
    font-weight: 700;
    padding: 11px 22px;
    font-size: 14.5px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--brand);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.btn-outline-primary {
    border: 1.5px solid var(--brand);
    color: var(--brand);
}

.btn-outline-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
}

.btn-light {
    background: white;
    color: var(--brand);
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.btn-hero-primary {
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 14.5px;
    background: #ffffff;
    color: #0b1220;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
    color: #0b1220;
}

.btn-hero-secondary {
    border-radius: 12px;
    padding: 13px 24px;
    font-weight: 700;
    font-size: 14.5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    color: #fff;
}

/* ---------- Feature items ---------- */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    transition: background 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
    background: var(--brand-light);
    filter: brightness(0.97);
    transform: translateX(3px);
}

.feature-icon {
    flex: none;
    width: 42px;
    height: 42px;
    background: var(--brand);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
}

.contact-icon{
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

/* ---------- CTA ---------- */
.cta-section {
    background: var(--brand);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    color: white;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    padding: 1.6rem;
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 10px;
}

.testimonial-quote {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

.testimonial-body {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 8px;
    line-height: 1.6;
}

.testimonial-author {
    margin-top: 14px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ---------- FAQ accordion ---------- */
.faq-accordion .accordion-item{
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--surface);
}

.faq-accordion .accordion-button{
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    padding: 18px 20px;
    background: var(--surface);
}

.faq-accordion .accordion-button:not(.collapsed){
    color: var(--brand);
    background: var(--brand-light);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus{ box-shadow: none; }

html[data-theme="dark"] .faq-accordion .accordion-button::after{
    filter: invert(1) brightness(1.8);
}

.faq-accordion .accordion-body{
    padding: 4px 20px 20px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
    background: var(--surface);
}

/* ---------- Forms (contact / get-started / pay-bill style forms) ---------- */
.site-form{
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.site-form .form-control{
    border-radius: 11px;
    border: 1px solid var(--border);
    padding: 12px 14px;
    font-size: 14.5px;
}

.site-form .form-control:focus{
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.site-form label{
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

/* ---------- Legal / long-form content pages (terms, privacy) ---------- */
.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin: 2rem 0 0.9rem;
    letter-spacing: -0.01em;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1.5rem 0 0.6rem;
}

.legal-content p {
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 15px;
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    color: var(--ink-soft);
    line-height: 1.75;
    font-size: 15px;
    margin: 0 0 1rem 1.4rem;
}

.legal-content li { margin-bottom: 0.4rem; }

.legal-content strong { color: var(--ink); }

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 2rem;
}

/* ---------- Scroll reveal (premium entrance motion) ---------- */
.reveal-section{
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-section.in-view{
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Generic Bootstrap dark-mode support ----------
   Plain Bootstrap elements (not wrapped in our own component classes)
   still need to adapt in dark mode — using our brand colors, not the
   old legacy indigo theme. */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background-color: var(--surface-2);
    border-color: var(--border);
    color: var(--ink);
}

html[data-theme="dark"] .form-control::placeholder {
    color: var(--muted);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: var(--surface-2);
    border-color: var(--brand);
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
}

html[data-theme="dark"] .modal-content {
    background-color: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--border);
}

html[data-theme="dark"] .dropdown-menu {
    background-color: var(--surface);
    border-color: var(--border);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--ink-soft);
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--brand-light);
    color: var(--brand);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) brightness(1.8);
}

html[data-theme="dark"] .table {
    color: var(--ink);
    border-color: var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .page-header { padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}