/* ==========================================================================
   CLARKSVILLE PREMIUM MASTER FRAMEWORK STYLESHEET
   ========================================================================== */
:root {
    --primary-blue: #0A3D62;       
    --primary-blue-light: #154D74; 
    --accent-orange: #FF5E00;      
    --accent-orange-hover: #E05300;
    --dark-neutral: #1E293B;       
    --light-neutral: #F8FAFC;      
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    color: #475569;
    background-color: var(--light-neutral);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--dark-neutral);
    font-weight: 700;
    line-height: 1.25;
}

/* 1. STICKY CALL BAR */
.sticky-call-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0c1e36;
    color: var(--white);
    z-index: 1000;
    padding: 12px 15px;
    height: 56px;
    display: flex;
    align-items: center;
}

.sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.sticky-btn {
    background-color: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
}

/* 2. MAIN NAVIGATION */
.main-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 56px;
    z-index: 999;
    margin-top: 56px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-bold { color: var(--primary-blue); }
.logo-orange { color: var(--accent-orange); }

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 24px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-orange); }

.nav-quote-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
}

/* 3. HERO SECTION & CALCULATOR */
.hero-section {
    background-color: #0b1329;
    background-image: radial-gradient(circle at top right, rgba(255, 94, 0, 0.08), transparent 50%);
    color: var(--white);
    padding: 60px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    background-color: rgba(255, 94, 0, 0.12);
    color: #ff7a28;
    border: 1px solid rgba(255, 94, 0, 0.25);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.highlight-text {
    color: #ff7a28;
}

.hero-content p {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 30px;
}

.usp-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.usp-item {
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* THE INTAKE INLINE CARD */
.hero-form-card {
    background-color: var(--white);
    color: var(--dark-neutral);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-top: 6px solid var(--accent-orange);
    position: relative;
}

.form-header-badge {
    position: absolute;
    top: 0;
    right: 24px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 0 0 10px 10px;
    letter-spacing: 0.5px;
}

.hero-form-card h3 { font-size: 1.5rem; margin-bottom: 4px; color: #0f172a; }
.hero-form-card p { font-size: 0.85rem; color: #64748b; margin-bottom: 20px; }

.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.75rem; font-weight: 700; color: #334155; text-transform: uppercase; }

.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* STATIC CALCULATOR LAYOUT BUTTONS */
.calculator-embed {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.calc-step-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.calc-grid-selectors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.calc-grid-selectors.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.calc-btn-option {
    position: relative;
    cursor: pointer;
}

.calc-btn-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.calc-btn-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 1px solid #cbd5e1;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
}

.calc-btn-option input:checked + span {
    background-color: #0c1e36;
    border-color: #0c1e36;
    color: var(--white);
}

.calc-grid-selectors.columns-3 .calc-btn-option input:checked + span {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.live-price-display {
    border-top: 1px solid #cbd5e1;
    margin-top: 12px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-title { font-size: 0.7rem; font-weight: 800; color: #64748b; block: true; }
.price-subtitle { font-size: 0.65rem; color: #94a3b8; font-style: italic; display: block; }
.price-value { font-size: 1.4rem; font-weight: 900; color: #0c1e36; }

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--accent-orange), #ff7a28);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 94, 0, 0.3);
}

.secure-text { text-align: center; font-size: 0.7rem; color: #94a3b8; margin-top: 10px; }

/* 4. SERVICES SECTION */
.services-section { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.section-title { text-align: center; max-width: 600px; margin: 0 auto 50px auto; }

.section-badge {
    background-color: rgba(10, 61, 98, 0.06);
    color: var(--primary-blue);
    padding: 5px 14px;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-badge.orange { background-color: rgba(255, 94, 0, 0.08); color: var(--accent-orange); }
.section-badge.sky { background-color: rgba(14, 165, 233, 0.1); color: #0ea5e9; }

.section-title h2 { font-size: 2.2rem; margin-bottom: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.img-wrapper { height: 220px; position: relative; overflow: hidden; background-color: #cbd5e1; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.card-img-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.card-img-badge.orange { background-color: var(--accent-orange); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { font-size: 0.9rem; line-height: 1.6; color: #64748b; }

/* 5. INTERACTIVE BEFORE/AFTER SLIDER STYLING */
.slider-section { background-color: #0f172a; color: var(--white); padding: 80px 20px; }
.slider-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }

.slider-steps { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.slider-steps p { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }

.slider-cta-btn {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-top: 10px;
}

.slider-display-box { width: 100%; text-align: center; }

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    border: 4px solid #334155;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.slider-img-after, .slider-img-before {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    pointer-events: none;
}

.slider-label {
    position: absolute;
    bottom: 16px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--white);
    z-index: 10;
}

.slider-label.after { right: 16px; background-color: #059669; }
.slider-label.before { left: 16px; background-color: var(--accent-orange); }

/* The invisible input cover overlay layer that captures mouse drag actions */
.slider-input-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 30;
}

.slider-line-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--white);
    z-index: 20;
    pointer-events: none;
}

.slider-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -50%);
    width: 36px;
    height: 36px;
    background-color: var(--accent-orange);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-hint-text { font-size: 0.75rem; color: #576880; margin-top: 12px; font-weight: 700; }

/* 6. PRICING SECTIONS */
.pricing-section { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.text-center-wrapper { text-align: center; max-width: 600px; margin: 0 auto 50px auto; }
.text-center-wrapper h2 { font-size: 2.2rem; margin-bottom: 10px; }

.pricing-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.pricing-card.highlighted {
    border-color: var(--accent-orange);
    position: relative;
    box-shadow: 0 15px 30px rgba(255, 94, 0, 0.06);
    transform: scale(1.02);
}

.highlight-top-tag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 900;
    text-align: center;
    padding: 6px 0;
    text-transform: uppercase;
}

.pricing-card.highlighted .p-card-header { margin-top: 10px; }

.p-card-header h3 { font-size: 1.3rem; margin-bottom: 4px; }
.p-card-header span { font-size: 0.75rem; color: #94a3b8; font-weight: 600; }

.p-card-price {
    background-color: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-orange);
    text-align: center;
    margin: 20px 0;
}

.p-card-features { list-style: none; margin-bottom: 30px; }
.p-card-features li { font-size: 0.85rem; color: #475569; margin-bottom: 10px; padding-left: 20px; position: relative; }
.p-card-features li::before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 900; }

.p-card-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: #f1f5f9;
    color: #334155;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 12px;
}

.p-card-btn.color {
    background-color: var(--accent-orange);
    color: var(--white);
}

/* 7. GUARANTEE COMPLIANCE BLOCK */
.guarantee-section { background: linear-gradient(to bottom right, #091930, #030a14); color: var(--white); padding: 80px 20px; }
.guarantee-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.8fr; gap: 60px; align-items: center; }

.guarantee-badge-box {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
}

.g-crown { font-size: 2.5rem; margin-bottom: 14px; }
.guarantee-badge-box h4 { color: var(--white); margin-bottom: 10px; }
.g-quote { font-size: 0.85rem; font-style: italic; color: #cbd5e1; line-height: 1.6; }
.g-footer-tag { background-color: rgba(255, 94, 0, 0.15); color: var(--accent-orange); font-size: 0.65rem; font-weight: 800; padding: 6px; border-radius: 8px; margin-top: 20px; text-transform: uppercase; }

.guarantee-text h2 { color: var(--white); font-size: 2.2rem; margin-top: 10px; margin-bottom: 16px; }
.guarantee-text p { color: #cbd5e1; font-size: 1rem; line-height: 1.6; }

.g-subcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.g-subcard { background-color: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; }
.g-subcard strong { display: block; color: var(--white); font-size: 0.9rem; margin-bottom: 6px; }
.g-subcard p { font-size: 0.8rem; color: #94a3b8; }

/* 8. FAQ STACK */
.faq-section { max-width: 800px; margin: 80px auto; padding: 0 20px; }
.faq-stack { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background-color: var(--white); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; }
.faq-item h4 { font-size: 1rem; margin-bottom: 8px; display: flex; gap: 6px; }
.faq-item h4 span { color: var(--accent-orange); }
.faq-item p { font-size: 0.85rem; color: #64748b; line-height: 1.6; padding-left: 20px; }

/* 9. REASSURANCE CTA BANNER */
.cta-banner { background-color: var(--primary-blue); color: var(--white); padding: 60px 20px; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.cta-actions { display: flex; justify-content: center; gap: 20px; margin-top: 24px; }
.cta-phone-link { background-color: var(--accent-orange); color: var(--white); text-decoration: none; padding: 14px 28px; font-weight: 700; border-radius: 8px; }
.cta-secondary-link { background-color: transparent; border: 1px solid var(--white); color: var(--white); text-decoration: none; padding: 14px 28px; font-weight: 700; border-radius: 8px; }

/* 10. FOOTER STRUCTURE */
.main-footer { background-color: #0b0f19; color: #94a3b8; padding: 60px 20px 30px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); margin-bottom: 14px; }
.footer-grid p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-copy { text-align: center; font-size: 0.8rem; margin-top: 30px; color: #4b5563; }

/* 11. RESPONSIVE LAYER MEDIA VIEWPORTS */
@media (max-width: 968px) {
    .hero-container, .slider-container, .guarantee-container, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid, .pricing-grid-container { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .sticky-text { display: none; }
    .sticky-container { justify-content: center; }
    .form-row, .g-subcards { grid-template-columns: 1fr; gap: 14px; }
}