/* =========================================
   TRUE FIRE & SECURITY - LANDING PAGE STYLES
   ========================================= */
:root {
    --primary: #0056b3;   /* True Electric Blue */
    --accent: #d63031;    /* Fire/Alarm Red */
    --dark: #1e272e;      /* Deep Charcoal */
    --light: #f5f6fa;
    --white: #ffffff;
    --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: #333; line-height: 1.6; background-color: var(--white); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin-top: 0; color: var(--dark); }

.container { width: 90%; max-width: 1100px; margin: auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* --- HEADER --- */
.lp-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 60px; width: auto; } 

.call-btn {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}
.call-btn:hover { background: #a93226; transform: scale(1.05); }

/* --- HERO & OFFER --- */
.hero-section {
    /* Notice the ../img/ to step up out of the CSS folder */
    background: linear-gradient(rgba(30, 39, 46, 0.9), rgba(30, 39, 46, 0.8)), url('../img/safety-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #222; /* Fallback color if image is missing */
    color: white;
    padding: 80px 0 120px;
    text-align: center;
}
.hero-title { font-size: 3rem; margin-bottom: 20px; line-height: 1.1; color: white; }
.hero-sub { font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px; color: #dcdde1; }

/* THE OFFER BOX */
.offer-wrapper {
    margin-top: -80px; 
    margin-bottom: 0; /* Connected to partners banner */
    position: relative;
    z-index: 10;
}
.offer-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Content vs Form */
}
.offer-content { padding: 40px; border-left: 6px solid var(--accent); }
.offer-badge { background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.ring-highlight { display: flex; align-items: center; gap: 20px; margin-top: 20px; background: #fdfdfd; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.ring-icon { font-size: 2.5rem; color: var(--primary); }

/* LEAD FORM */
.lead-form-col { background: #f1f2f6; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.form-title { font-size: 1.5rem; margin-bottom: 20px; text-align: center; }
.form-input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.submit-btn { background: var(--primary); color: white; border: none; padding: 15px; width: 100%; font-size: 1.1rem; font-weight: 700; border-radius: 5px; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: #004494; }

/* --- PARTNERS BANNER --- */
.partners-banner {
    background: #f8f9fa;
    padding: 80px 0 60px;
    border-bottom: 1px solid #eee;
    margin-top: -40px; /* Pulls slightly under the offer box */
    position: relative;
    z-index: 1; 
}
.desktop-divider { height: 40px; width: 1px; background: #ddd; display: block; }

/* --- SERVICES GRID --- */
.service-section { background: white; }
.section-title { font-size: 2.2rem; margin-bottom: 50px; text-align: center; position: relative; }
.section-title::after { content:''; display: block; width: 60px; height: 4px; background: var(--accent); margin: 15px auto 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.text-content h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.feature-list { list-style: none; padding: 0; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-list li { position: relative; padding-left: 25px; font-weight: 600; color: #555; }
.feature-list li::before { content: '✔'; position: absolute; left: 0; color: var(--accent); }
.service-text { font-size: 1.1rem; color: #666; }

/* --- BUSINESS SOLUTIONS (Gray Background) --- */
.business-section { background: #f8f9fa; border-top: 1px solid #eee; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.biz-card { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--primary); }
.biz-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* --- REVIEWS --- */
.reviews-section { background: var(--dark); color: white; text-align: center; }
.reviews-section .section-title { color: white; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 900px; margin: auto; }
.review-card { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 8px; text-align: left; }
.review-text { font-style: italic; font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; }
.reviewer { font-weight: 700; color: var(--accent); }
.reviewer span { display: block; font-size: 0.85rem; color: #ccc; font-weight: 400; margin-top: 5px; }

/* --- FOOTER --- */
.footer { background: #111; color: #777; padding: 20px 0; text-align: center; font-size: 0.9rem; }

/* --- POPUP MODAL STYLES --- */
.modal-overlay {
    display: none; 
    position: fixed; 
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px 30px;
    border-radius: 12px;
    width: 90%; max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-modal { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: #000; }

.modal-badge { background: #d63031; color: white; text-transform: uppercase; font-size: 0.8rem; padding: 5px 10px; border-radius: 4px; font-weight: bold; display: inline-block; margin-bottom: 15px; }
.modal-title { font-size: 2rem; color: #111; margin: 0 0 10px 0; line-height: 1.1; }
.modal-text { font-size: 1.1rem; color: #555; margin-bottom: 30px; }

.modal-phone-btn {
    background: #0056b3; 
    color: white;
    display: block; width: 100%;
    padding: 18px;
    text-decoration: none;
    font-size: 1.5rem; font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
    transition: 0.3s;
}
.modal-phone-btn:hover { background: #004494; transform: scale(1.02); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .offer-card { grid-template-columns: 1fr; } /* Stack offer */
    .grid-2 { grid-template-columns: 1fr; } /* Stack services */
    .feature-list { grid-template-columns: 1fr; }
    .partners-banner { margin-top: 0 !important; padding-top: 40px !important; }
    .desktop-divider { display: none !important; }
    
    .modal-content { margin: 30% auto; padding: 30px 20px; }
    .modal-title { font-size: 1.6rem; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-btn-primary,
    .hero-btn-secondary { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
    .trust-grid { grid-template-columns: 1fr; }
}

/* --- HERO CTA BUTTONS --- */
.hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 20px;
}
.hero-btn-primary,
.hero-btn-secondary {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}
.hero-btn-primary { background: var(--accent); color: white; }
.hero-btn-primary:hover { background: #a93226; transform: scale(1.03); }
.hero-btn-secondary { background: transparent; color: white; border: 2px solid white; }
.hero-btn-secondary:hover { background: rgba(255,255,255,0.15); }
.hero-audience { font-size: 0.9rem; color: #aaa; margin-top: 10px; }

/* --- TRUST BAR (UPGRADED) --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 40px 0;
}
.trust-item { display: flex; align-items: flex-start; gap: 15px; }
.trust-icon { font-size: 2rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.trust-icon--red { color: var(--accent); }
.trust-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.trust-text span { font-size: 0.85rem; color: #666; }

/* --- COMMERCIAL INTRO --- */
.commercial-intro { max-width: 800px; margin: 0 auto 50px; text-align: center; }

/* --- COMPLIANCE LINK --- */
.compliance-link { margin-top: 25px; font-size: 0.95rem; color: #555; }
.compliance-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
.compliance-link a:hover { text-decoration: underline; }

/* --- GC CARD BUTTON --- */
.biz-cta-btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}
.biz-cta-btn:hover { background: #004494; transform: scale(1.03); }

/* --- REVIEWS FOOTER LINE --- */
.reviews-footer-line { text-align: center; margin-top: 40px; font-size: 0.9rem; color: #aaa; }