/* ==========================================================================
   Sai Muskaan Net Solution Pvt. Ltd. — Custom Stylesheet
   Brand Palette derived from official logo:
   - Brand Red:  #E1252B
   - Brand Blue: #156CB5
   - Deep Navy:  #0B172A
   ========================================================================== */

:root {
    --brand-red: #E1252B;
    --brand-red-dark: #B91C22;
    --brand-blue: #156CB5;
    --brand-blue-dark: #0E4F8A;
    --brand-blue-light: #EBF4FC;
    --brand-navy: #0B172A;
    --brand-navy-light: #132542;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --border-color: #E2E8F0;
    --shadow-sm: 0 4px 12px rgba(11, 23, 42, 0.05);
    --shadow-md: 0 12px 28px rgba(11, 23, 42, 0.08);
    --shadow-lg: 0 20px 45px rgba(11, 23, 42, 0.14);
    --radius-md: 14px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-blue) var(--brand-navy);
}

/* Custom Branded Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--brand-navy);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-red) 100%);
    border-radius: 999px;
    border: 2px solid var(--brand-navy);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1E82D6 0%, #F0353B 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Utility & Brand Colors */
.text-brand-red { color: var(--brand-red) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.bg-brand-red { background-color: var(--brand-red) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; }
.bg-brand-navy { background-color: var(--brand-navy) !important; }
.bg-soft-blue { background-color: var(--brand-blue-light) !important; }

.btn-brand-red {
    background-color: var(--brand-red);
    color: #FFFFFF;
    border: 2px solid var(--brand-red);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.65rem 1.6rem;
    transition: all 0.25s ease;
}

.btn-brand-red:hover {
    background-color: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 37, 43, 0.3);
}

.btn-brand-blue {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    border: 2px solid var(--brand-blue);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.65rem 1.6rem;
    transition: all 0.25s ease;
}

.btn-brand-blue:hover {
    background-color: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 108, 181, 0.3);
}

.btn-outline-light-pill {
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    border-radius: 50px;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline-light-pill:hover {
    background-color: #FFFFFF;
    color: var(--brand-navy);
    border-color: #FFFFFF;
}

.btn-brand-red.btn-sm,
.btn-brand-blue.btn-sm {
    padding: 0.42rem 0.95rem;
    font-size: 0.85rem;
}

/* Top Utility Bar */
.top-bar {
    background-color: var(--brand-navy);
    color: #CBD5E1;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: #F87171;
}

/* Navbar */
.navbar-main {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 0.35rem 0;
    transition: box-shadow 0.3s ease;
}

.navbar-main.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.navbar-main .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.5rem 0.95rem !important;
    font-size: 1.03rem;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--brand-red);
}

.navbar-main .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.15rem;
    height: 2.5px;
    background-color: var(--brand-red);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.82) 0%, rgba(11, 23, 42, 0.72) 50%, rgba(5, 12, 24, 0.90) 100%),
        url('../images/hero-fiber.jpg') center center / cover no-repeat;
    color: #FFFFFF;
    padding: 5.5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(11, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #E2E8F0;
    padding: 0.45rem 1.15rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.35rem;
}

.hero-title {
    font-size: clamp(2.15rem, 4.5vw, 3.6rem);
    line-height: 1.14;
    margin-bottom: 1.25rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero-title span {
    background: linear-gradient(90deg, #60A5FA 0%, #38BDF8 45%, #F87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-box {
    background: rgba(11, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.hero-stat-box:hover {
    background: rgba(21, 108, 181, 0.28);
    border-color: rgba(96, 165, 250, 0.55);
}

.hero-stat-box h3 {
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 0.15rem;
}

.hero-stat-box p {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 0;
}

/* Section Headers */
.section-padding {
    padding: 4.5rem 0;
}

.section-tag {
    display: inline-block;
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-tag-red {
    background-color: rgba(225, 37, 43, 0.1);
    color: var(--brand-red);
}

/* Special Offer Cards */
.offer-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.offer-card.featured {
    border: 2px solid var(--brand-blue);
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%);
}

.router-price-pill {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s;
}

.router-price-pill:hover {
    border-color: var(--brand-blue);
}

.router-price-pill .band-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}

/* Duration Switcher Tabs */
.duration-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    background: #E2E8F0;
    padding: 0.35rem;
    border-radius: 50px;
}

.duration-btn {
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.duration-btn.active {
    background: var(--brand-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(21, 108, 181, 0.25);
}

/* Broadband Plan Cards */
.plan-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.plan-card.popular {
    border: 2px solid var(--brand-red);
    box-shadow: var(--shadow-md);
}

.popular-ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--brand-red);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
}

.plan-speed {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1.1;
}

.plan-price {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--brand-navy);
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Rate Card Table & Accordion */
.tariff-accordion .accordion-button {
    background-color: #FFFFFF;
    color: var(--brand-navy);
    font-size: 1rem;
    box-shadow: none;
}

.tariff-accordion .accordion-button:not(.collapsed) {
    background-color: var(--brand-blue-light);
    color: var(--brand-blue);
    box-shadow: none;
}

.tariff-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-blue-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.tariff-title {
    font-size: 0.98rem;
}

.rate-table th {
    background-color: var(--brand-navy);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    padding: 0.9rem 1rem;
}

.rate-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* OTT Combo Cards */
.ott-card {
    background: linear-gradient(145deg, #0B172A 0%, #162B4D 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ott-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.5);
}

.ott-badge {
    background: rgba(225, 37, 43, 0.2);
    color: #FCA5A5;
    border: 1px solid rgba(225, 37, 43, 0.4);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
}

/* Feature / Service Cards */
.feature-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

/* Why Us Cards */
.why-us-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    position: relative;
    transition: all 0.25s ease;
}

.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.why-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(21, 108, 181, 0.14);
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
}

/* Customer Review Cards */
.review-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #F59E0B;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.reviewer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.rating-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem 0.75rem;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.65rem 1.35rem;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

/* Policy / Legal Pages */
.policy-hero {
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.88) 0%, rgba(11, 23, 42, 0.92) 100%),
        url('../images/hero-fiber.jpg') center center / cover no-repeat;
    color: #FFFFFF;
    padding: 3.5rem 0;
}

.policy-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
}

.policy-block {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.policy-block h2 {
    font-size: 1.25rem;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

.policy-block p,
.policy-block li {
    color: var(--text-dark);
    font-size: 0.96rem;
    line-height: 1.75;
}

.policy-nav-pills .nav-link {
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.policy-nav-pills .nav-link:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.policy-nav-pills .nav-link.active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF;
}

/* Contact & Address Cards */
.contact-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.address-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.address-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Footer */
.footer-main {
    background-color: var(--brand-navy);
    color: #CBD5E1;
    padding: 4rem 0 1.5rem;
}

.footer-main h5 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 1.15rem;
}

.footer-main a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-main a:hover {
    color: #FFFFFF;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 22px;
    right: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1040;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.float-btn:hover {
    transform: scale(1.08);
    color: #FFFFFF;
}

.float-whatsapp { background-color: #25D366; }
.float-call { background-color: var(--brand-red); }

/* Responsive adjustments (Laptop, Tablet & Mobile) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-main .nav-link {
        padding: 0.5rem 0.65rem !important;
        font-size: 0.96rem;
    }
    .navbar-brand img {
        height: 60px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0 4rem;
    }
    #mainNav.offcanvas-lg {
        width: 290px;
        max-width: 85vw;
        height: 100vh;
        background-color: #FFFFFF;
        box-shadow: -8px 0 30px rgba(11, 23, 42, 0.18);
        z-index: 1060;
    }
    #mainNav .offcanvas-body {
        padding: 1.25rem 1.25rem 2rem;
    }
    #mainNav .nav-link {
        padding: 0.65rem 0.9rem !important;
        border-radius: 10px;
        margin-bottom: 0.2rem;
    }
    #mainNav .nav-link.active {
        background-color: rgba(225, 37, 43, 0.08);
    }
    #mainNav .nav-link.active::after {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3.25rem 0 3.25rem;
    }
    .section-padding {
        padding: 3.25rem 0;
    }
    .btn-brand-red,
    .btn-brand-blue,
    .btn-outline-light-pill {
        padding: 0.5rem 1.15rem;
        font-size: 0.88rem;
    }
    .btn-lg {
        padding: 0.58rem 1.25rem !important;
        font-size: 0.92rem !important;
    }
    .router-price-pill {
        padding: 0.8rem 0.55rem;
    }
    .router-price-pill .btn-sm {
        padding: 0.38rem 0.55rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }
    .rating-summary-pill {
        border-radius: 16px;
        padding: 0.75rem 1rem;
    }
    #inquiryPlan {
        font-size: 0.88rem !important;
        max-width: 100%;
    }
    .duration-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
    }
    .navbar-brand img {
        height: 56px;
    }
    .navbar-main .nav-link.active::after {
        display: none;
    }
}

/* Smooth Scroll Reveal Animation */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
