/* ==========================================================================
   CARVOX — Site V2 design layer
   Bold redesign of the public site. Loads AFTER style.css / responsive.css
   and overrides the shared shell + components. Brand palette unchanged:
   orange #FF6B35 · navy #0f172a.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Foundation + mobile stability
   -------------------------------------------------------------------------- */
::selection { background: rgba(255, 107, 53, 0.22); color: inherit; }

/* Kill sideways wobble and the trailing white space mobile browsers create
   when hidden horizontal overflow becomes scrollable area. `clip` (unlike
   `hidden`) never creates a scroll container, so iOS/Android can't pan into
   clipped content or extend the page past the footer. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

body {
    font-feature-settings: "kern" 1, "liga" 1;
    min-height: 100vh;
}

img, svg, video, iframe { max-width: 100%; }

/* the testimonials marquee track is thousands of px wide — keep it caged */
.testimonials-marquee-outer,
.testimonials-marquee { overflow: hidden; max-width: 100%; }

.container { max-width: 1240px; }

/* --------------------------------------------------------------------------
   1. Header — floating glass pill navbar
   -------------------------------------------------------------------------- */
.header {
    padding: 14px 0 0;
    background: transparent !important;
    box-shadow: none !important;
}

/* slim utility strip above the pill */
.header-top-bar {
    background: transparent;
    border-bottom: none;
}
.header-top { padding: 2px 14px 10px; }
.header-contact {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    letter-spacing: 0.2px;
}
.header-contact i { color: var(--primary-light, #FF8C5A); }

.header-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-style: italic;
    font-weight: 500;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-help {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 16px;
    font-size: 12.5px;
}
.btn-help:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* the pill itself */
.header-main { padding: 0; }
.navbar {
    background: rgba(9, 13, 25, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 9px 10px 9px 22px;
    box-shadow: 0 14px 44px rgba(2, 6, 23, 0.28);
    gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-fallback { flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-fallback b {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.4px;
}
.brand-fallback small {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2.6px;
    margin-top: 3px;
}
.header.scrolled .brand-fallback small { color: var(--text-light); }

.nav-menu { gap: 4px; }
.nav-link {
    padding: 9px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: 0.1px;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}

.nav-cta { display: flex; align-items: center; }
.nav-cta .btn-quote {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.35);
    transition: var(--transition);
}
.nav-cta .btn-quote i { font-size: 12px; transition: transform 0.25s ease; }
.nav-cta .btn-quote:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 107, 53, 0.45); }
.nav-cta .btn-quote:hover i { transform: translateX(3px); }

/* scrolled: pill goes white-glass, text goes dark */
.header.scrolled {
    padding: 10px 0;
    background: transparent !important;
    box-shadow: none !important;
}
.header.scrolled .header-top-bar { display: none; }
.header.scrolled .header-main { background: transparent; }
.header.scrolled .navbar {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.14);
}
.header.scrolled .nav-link { color: var(--text-gray); }
.header.scrolled .nav-link:hover {
    color: var(--text-dark);
    background: rgba(15, 23, 42, 0.05);
}
.header.scrolled .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* --------------------------------------------------------------------------
   2. Inner page hero (.page-header)
   -------------------------------------------------------------------------- */
.page-header {
    padding: 190px 0 110px;
    background-color: #0b1220;
}
.page-header::before {
    background:
        radial-gradient(760px 380px at 88% 10%, rgba(255, 107, 53, 0.22), transparent 65%),
        linear-gradient(118deg, rgba(8, 12, 22, 0.94) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.42) 100%);
}
.page-header .container::before {
    content: '';
    display: block;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin-bottom: 22px;
    box-shadow: 0 0 18px rgba(255, 107, 53, 0.55);
}
.page-header.text-center .container::before { margin-left: auto; margin-right: auto; }
.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.035em;
}
.page-header p { font-size: 18px; color: rgba(255, 255, 255, 0.78); }

/* --------------------------------------------------------------------------
   3. Section system
   -------------------------------------------------------------------------- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.24);
    color: var(--primary-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}
.section-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.18);
}
.section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    letter-spacing: -0.03em;
    line-height: 1.16;
}

/* --------------------------------------------------------------------------
   4. Homepage hero
   -------------------------------------------------------------------------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11.5px;
    letter-spacing: 0.24em;
}
.hero-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.9);
}
.hero-title { font-size: clamp(42px, 5.6vw, 70px); letter-spacing: -0.03em; }
.hero-watermark { color: rgba(255, 255, 255, 0.05); }
.hero-description { font-size: 18.5px; color: rgba(255, 255, 255, 0.86); }

.btn-hero-pill-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.btn-hero-pill-outline {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.hero-features { border-top: none; gap: 10px 10px; }
.hero-feature-item {
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
    font-size: 12.5px;
}
.hero-feature-item i { font-size: 13px; }

/* --------------------------------------------------------------------------
   5. Shared card language (elevated, classy)
   -------------------------------------------------------------------------- */
.trusted-feature-card,
.about-feature-box,
.why-choose-card,
.blog-card,
.blog-card-2,
.pricing-card,
.contact-info-tile,
.service-spec-card,
.location-item,
.timeline-item,
.contact-form-panel {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.32s ease;
}
.trusted-feature-card:hover,
.about-feature-box:hover,
.why-choose-card:hover,
.blog-card:hover,
.blog-card-2:hover,
.pricing-card:hover,
.contact-info-tile:hover,
.service-spec-card:hover,
.location-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.28);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

/* icon tiles get the gradient treatment */
.trusted-icon,
.about-feature-icon,
.why-choose-icon,
.contact-tile-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.3);
}
.trusted-icon i,
.about-feature-icon i,
.why-choose-icon i,
.contact-tile-icon i { color: #fff !important; }

/* service showcase (homepage) */
.service-showcase-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.07);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
.service-showcase-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.14);
}

/* pricing */
.pricing-card.featured {
    border-color: rgba(255, 107, 53, 0.45);
    box-shadow: 0 24px 60px rgba(255, 107, 53, 0.16);
}
.btn-pricing {
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.28);
    transition: var(--transition) !important;
}
.btn-pricing:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4); }

/* --------------------------------------------------------------------------
   6. CTA bands
   -------------------------------------------------------------------------- */
.cta-section,
.cta-section-2 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(720px 320px at 90% 0%, rgba(255, 107, 53, 0.3), transparent 65%),
        linear-gradient(135deg, #0b1220 0%, #0f172a 60%, #16213c 100%) !important;
}
.cta-section h2, .cta-section-2 h2 { color: #fff; letter-spacing: -0.02em; }
.btn-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    transition: var(--transition) !important;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 107, 53, 0.5); }

/* --------------------------------------------------------------------------
   7. Buttons (generic)
   -------------------------------------------------------------------------- */
.btn-secondary,
.contact-submit-btn {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border: none;
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.28);
    transition: var(--transition);
}
.btn-secondary:hover,
.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.contact-input,
.contact-textarea {
    border-radius: 14px !important;
    border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
    background: #fafbfd !important;
    transition: var(--transition) !important;
}
.contact-input:focus,
.contact-textarea:focus {
    outline: none !important;
    border-color: var(--primary-color) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.09) !important;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 340px at 92% 0%, rgba(255, 107, 53, 0.13), transparent 60%),
        radial-gradient(560px 300px at 0% 100%, rgba(255, 107, 53, 0.07), transparent 65%),
        #0b1220;
    padding: 92px 0 34px;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color) 30%, var(--primary-light) 55%, var(--primary-color) 70%, transparent);
    opacity: 0.85;
}
.footer-section h3 {
    font-size: 26px;
    letter-spacing: -0.03em;
}
.footer-section h4 {
    position: relative;
    padding-bottom: 12px;
    font-size: 16px;
    letter-spacing: 0.4px;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}
.footer-phone { letter-spacing: -0.02em; }
.footer-links a { transition: color 0.22s ease, gap 0.22s ease, transform 0.22s ease; }
.footer-links a:hover { color: var(--primary-light); }
.newsletter-form input { border-radius: 999px; padding: 13px 22px; }
.newsletter-form button { border-radius: 999px; padding: 13px 22px; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }
.footer-bottom { letter-spacing: 0.3px; }

/* --------------------------------------------------------------------------
   10. Misc polish
   -------------------------------------------------------------------------- */
.back-to-top { border-radius: 999px; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); }

.testimonial-bubble-card {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.location-item { padding: 26px 24px; background: #fff; }
.location-item h4 { color: var(--text-dark); }
.location-item h4::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 9px;
    font-size: 14px;
}

/* journey timeline years as gradient chips */
.timeline-year {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff !important;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.3);
}

/* smooth reveal used by script.js IntersectionObserver targets */
.service-card, .blog-card, .pricing-card, .testimonial-item, .why-choose-card, .about-feature-box {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   11a. Tablet — keep the pill from overflowing before the hamburger kicks in
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1180px) {
    .nav-cta { display: none; }
    .nav-link { padding: 8px 11px; font-size: 13px; }
    .navbar { padding: 9px 16px; gap: 10px; }
    .header-tagline { display: none; }
}

/* --------------------------------------------------------------------------
   11. Mobile — re-assert over responsive.css !importants
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header { padding: 10px 0 0; }
    .navbar {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 6px 4px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .nav-cta { display: none; }
    .brand-logo { height: 36px; }

    /* mobile menu: dark navy glass panel, left-aligned, orange active pill */
    .nav-menu {
        background: rgba(11, 18, 32, 0.97) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        width: 300px;
        padding: 14px;
        box-shadow: 0 30px 70px rgba(2, 6, 23, 0.5);
    }
    .nav-item { border-bottom: none !important; }
    .nav-link {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 13px 18px !important;
        border-radius: 12px !important;
        font-size: 14.5px;
    }
    .nav-link:hover { background: rgba(255, 255, 255, 0.08) !important; }
    .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
    }
    .hamburger { border-radius: 12px !important; }

    .page-header { padding: 128px 0 72px; }
    .footer { padding: 64px 0 28px; }

    /* huge decorative watermark can poke past the viewport on small screens */
    .hero-heading-block { overflow: hidden; }
    .hero-watermark { font-size: clamp(52px, 15vw, 84px); left: 0; }
}

@media (max-width: 480px) {
    .nav-menu { width: calc(100vw - 32px); }
    .page-header h1 { font-size: 1.9rem; }
}
