/* ==========================================================
   TURBO HOME SECURITY — Main Stylesheet (Bootstrap Enhanced)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --primary:       #0F2835;
    --primary-light: #1b455c;
    --cta:           #17824A;
    --cta-hover:     #126b3c;
    --white:         #FFFFFF;
    --bg-light:      #F8FAFC;
    --text-main:     #334155;
    --text-dark:     #0F172A;
    --text-muted:    #64748B;
    --border:        #E2E8F0;
    --shadow:        0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg:     0 20px 40px -10px rgba(0,0,0,0.15);
    --transition:    all 0.3s ease;
    --navbar-h:      72px;
    --radius:        16px;
}

/* --- Global Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-h);
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--white);
    overflow-x: hidden;
    padding-top: var(--navbar-h); /* offset for fixed navbar */
}

h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; font-weight: 700; line-height: 1.2; color: var(--text-dark); }
p { line-height: 1.7; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* Phone SVG icon — consistent across all buttons */
.phone-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
#main-nav {
    height: var(--navbar-h);
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 1px 12px rgba(15,40,53,0.06);
    transition: box-shadow 0.3s ease;
    z-index: 1030;
}

#main-nav .container { max-width: 1200px; }

/* Brand */
.navbar-brand .nav-brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
    white-space: nowrap;
}

/* Nav links */
.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted) !important;
    padding: 0.3rem 0.5rem !important;
    position: relative;
    transition: color 0.25s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0.5rem; right: 0.5rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* CTA Button in Nav */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--cta);
    color: var(--white) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.35rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(23,130,74,0.35);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.nav-cta-btn:hover {
    background: var(--cta-hover);
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(23,130,74,0.4);
}

/* Custom Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler:not(.collapsed) .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler:not(.collapsed) .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile dropdown panel */
.navbar-collapse {
    border-top: 1px solid var(--border);
    background: var(--white);
}

@media (min-width: 992px) {
    .navbar-collapse {
        border-top: none;
        background: transparent;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
        gap: 0 !important;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
    }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-link:last-child { border-bottom: none; }
}

/* ─── HERO ───────────────────────────────────────────────── */
#home.hero-section {
    background: radial-gradient(ellipse at 70% 50%, rgba(15,40,53,0.05) 0%, transparent 70%),
                linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(23,130,74,0.1);
    color: var(--cta);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(23,130,74,0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(140deg, var(--primary) 0%, #2c5364 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cta);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 24px rgba(23,130,74,0.4);
    transition: var(--transition);
    margin-bottom: 2.5rem;
}

.btn-hero-cta:hover {
    background: var(--cta-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(23,130,74,0.45);
}

.trust-items { display: flex; flex-direction: column; gap: 10px; }

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
}

.trust-item i { color: var(--cta); font-size: 1rem; flex-shrink: 0; }

.hero-img-wrap {
    position: relative;
}

.hero-img-wrap img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: -16px -16px 16px 16px;
    border-radius: 24px;
    background: var(--primary);
    opacity: 0.08;
    z-index: -1;
}

/* ─── SECTION COMMON ─────────────────────────────────────── */
/* All sections use the same vertical padding for consistency  */
.section-pad    { padding: 5rem 0; }
.section-pad-lg { padding: 5rem 0; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cta);
    background: rgba(23,130,74,0.08);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── BENEFITS / SERVICES ────────────────────────────────── */
#services { background: var(--bg-light); }

.benefit-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15,40,53,0.2);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: rgba(15,40,53,0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.benefit-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ─── WHY CHOOSE US ──────────────────────────────────────── */
#why-us { background: var(--primary); }

.why-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cta);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-item-text h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.why-item-text p  { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin: 0; }

.why-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.why-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SOCIAL PROOF / STATS ───────────────────────────────── */
#social-proof { background: var(--bg-light); }

.stat-card {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

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

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card .stars { color: #FBBF24; font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-card p { font-size: 0.92rem; color: var(--text-muted); font-style: italic; }
.testimonial-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-top: 1.25rem; margin-bottom: 0; }

/* ─── FAQ ────────────────────────────────────────────────── */
#faq { background: var(--white); }

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--border) !important;
    background: transparent;
    border-radius: 0 !important;
}

.accordion-button {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary) !important;
    background: transparent !important;
    padding: 1.25rem 0;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) { color: var(--cta) !important; }

.accordion-button::after {
    filter: invert(13%) sepia(50%) saturate(666%) hue-rotate(159deg) brightness(97%) contrast(93%);
}

.accordion-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0 0 1.25rem 0;
    line-height: 1.7;
}

/* ─── CONTACT / CTA SECTION ─────────────────────────────── */
#contact {
    background: linear-gradient(rgba(15,40,53,0.92), rgba(15,40,53,0.92)),
                url('https://images.unsplash.com/photo-1558002038-1055907df827?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}

.btn-cta-xl {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--cta);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 30px rgba(23,130,74,0.45);
    transition: var(--transition);
}

.btn-cta-xl:hover {
    background: var(--cta-hover);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(23,130,74,0.5);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
}

footer h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

footer p, footer li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 2;
}

footer a {
    color: rgba(255,255,255,0.55);
    transition: color 0.25s;
}

footer a:hover { color: #fff; }

.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* ─── STICKY CALL BUTTON (Mobile) ────────────────────────── */
.sticky-call-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1040;
    background: var(--cta);
    color: var(--white);
    padding: 0.85rem 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

@media (max-width: 767.98px) {
    .sticky-call-bar { display: flex; }
    body { padding-bottom: 56px; } /* prevent overlap with sticky bar */

    #home.hero-section {
        padding: 2.5rem 0;
        text-align: center;
    }

    .hero-sub { margin-left: auto; margin-right: auto; }
    .trust-items { align-items: flex-start; }
    .hero-img-wrap { margin-top: 2rem; }
    .hero-img-wrap::before { display: none; }
}

/* ─── Scroll Reveal (JS Applied) ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── LEGAL PAGES ────────────────────────────────────────── */
.legal-hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}

.legal-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }

.legal-hero .section-label {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.legal-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.15;
}

.legal-page-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Legal content body */
.legal-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.legal-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.legal-section a {
    color: var(--cta);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover { color: var(--cta-hover); }

/* Navigation links at bottom of legal pages */
.legal-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cta);
    padding: 0.6rem 1.25rem;
    border: 1.5px solid var(--cta);
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
}

.legal-nav-link:hover {
    background: var(--cta);
    color: var(--white);
}

.legal-nav-link.back {
    color: var(--primary);
    border-color: var(--primary);
}

.legal-nav-link.back:hover {
    background: var(--primary);
    color: var(--white);
}

/* Responsive legal body padding */
@media (max-width: 767.98px) {
    .legal-body { padding: 1.75rem 1.25rem; }
    .legal-hero { padding: 4rem 0 3rem; }
    .legal-links-row { flex-direction: column-reverse; align-items: stretch; }
    .legal-nav-link { justify-content: center; }
}
