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

/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */

html {
    scroll-behavior: smooth;
}

:root {
    --primary-green: #1e4620; 
    --soft-green: #cbdccb;    
    --houndstooth-dark: #cbdccb; 
    --houndstooth-light: #eef4ee; 
    --warm-beige: #f4f0ea;
    --pure-white: #ffffff;
    --text-dark: #2d312e;
    --text-muted: #5c625e;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;

    /* Seamless CSS Houndstooth Pattern */
    background-color: var(--houndstooth-light);
    background-image: 
        linear-gradient(-45deg, transparent 52%, var(--houndstooth-dark) 52%, var(--houndstooth-dark) 55%, transparent 55%),
        linear-gradient(45deg, transparent 52%, var(--houndstooth-dark) 52%, var(--houndstooth-dark) 55%, transparent 55%),
        linear-gradient(-45deg, var(--houndstooth-dark) 25%, transparent 25%, transparent 75%, var(--houndstooth-dark) 75%),
        linear-gradient(45deg, var(--houndstooth-dark) 25%, transparent 25%, transparent 75%, var(--houndstooth-dark) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 0, 0 0, 15px 15px;
}

/* ==========================================
   2. ORGANIC BACKGROUND BLOBS
   ========================================== */
.bg-shape {
    position: fixed;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.75; 
    pointer-events: none;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background-color: var(--soft-green);
    border-radius: 45% 55% 70% 30% / 45% 30% 70% 55%;
}

.shape-2 {
    bottom: -10%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background-color: var(--warm-beige);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-3 {
    top: 30%;
    right: 20%;
    width: 40vw;
    height: 40vw;
    background-color: var(--pure-white);
    border-radius: 50%;
}

/* ==========================================
   3. STICKY HEADER & LOGO NAVIGATION
   ========================================== */
.main-header {
    position: -webkit-sticky; 
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; 
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo {
    max-height: 48px; 
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px; 
}

.nav-item {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--primary-green);
    background-color: rgba(30, 70, 32, 0.05);
}

.nav-contact-btn {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid var(--primary-green);
    transition: all 0.2s ease;
}

.nav-contact-btn:hover {
    background-color: var(--primary-green);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(30, 70, 32, 0.15);
}

/* ==========================================
   4. TWO-COLUMN HERO COMPONENTS
   ========================================== */
.hero-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* Default mobile behavior */
    align-items: center;
    justify-content: center;
    gap: 30px; 
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.88); 
    padding: 50px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content h1 .highlight-text {
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    font-size: 2.4rem; 
    margin-top: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* High Noticeability Smoke Detector Prompt Card */
.hero-alert-box {
    width: 100%;
    max-width: 600px;
    background-color: var(--primary-green); 
    color: var(--pure-white);
    padding: 50px;
    border-radius: 24px; 
    box-shadow: 0 20px 45px rgba(30, 70, 32, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-alert-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.alert-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.alert-quote {
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.alert-subtext {
    font-size: 0.9rem;
    color: var(--soft-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Primary Action Pill UI */
.cta-booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-green);
    color: var(--pure-white);
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(30, 70, 32, 0.25);
}

.cta-booking-btn:hover {
    background-color: #122b13;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(30, 70, 32, 0.35);
}

.cta-booking-btn svg {
    transition: transform 0.2s ease;
}

.cta-booking-btn:hover svg {
    transform: translateX(4px);
}

/* ==========================================
   5. DESKTOP MESH LAYOUT (THE STACKING FIX)
   ========================================== */
@media (min-width: 901px) {
    .hero-container {
        flex-direction: row;
        align-items: stretch; /* Forces equal heights on both containers */
        justify-content: space-between;
        gap: 40px;
    }
    .hero-content {
        flex: 1.2;
        max-width: 580px;
    }
    .hero-alert-box {
        flex: 0.8;
        max-width: 500px;
    }
}

/* ==========================================
   6. EDUCATIONAL STYLES (ABOUT-RADON PAGE)
   ========================================== */
.educational-content h1 {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--soft-green);
    padding-bottom: 10px;
}

.science-accent {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 30px 0;
}

/* ==========================================
   7. CORE SERVICES & TRUST SECTIONS
   ========================================== */
.services-section, .trust-section {
    max-width: 1200px;
    width: 90%;
    margin: 60px auto;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 40px 30px;
    border-radius: 20px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 70, 32, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.testimonial-container {
    background: rgba(244, 240, 234, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.testimonial-container .quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-container .author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   8. MODERN BOOKING ENGINE STYLES 
   ========================================== */
.booking-container {
    max-width: 550px;
    width: 90%;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
    padding: 5px 10px;
    transition: transform 0.2s;
}

.nav-btn:hover {
    transform: scale(1.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px;
    margin-top: 15px;
}

.day-name {
    font-weight: 600;
    color: var(--primary-green);
    padding-bottom: 5px;
    font-size: 0.85rem;
    text-align: center;
}

.calendar-day {
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background-color: rgba(45, 90, 39, 0.1);
    color: var(--primary-green);
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0; 
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #f8fafc; 
    color: #333333;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.15); 
}

textarea {
    resize: vertical;
}

.time-slots {
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: left;
}

.time-slots h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
}

#slotsContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.slot {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.slot:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: rgba(45, 90, 39, 0.02);
}

button[type="submit"].slot {
    background-color: var(--primary-green);
    color: #ffffff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
    margin-top: 30px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.2);
}

button[type="submit"].slot:hover {
    background-color: #20401b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.25);
}

.calendar-day.disabled, .slot.disabled {
    background-color: #f1f5f9 !important;
    color: #cbd5e1 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.6;
}

/* ==========================================
   9. GLOBAL FOOTER
   ========================================== */
.main-footer {
    padding: 30px 5%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    margin-top: auto; /* Keeps footer pinned to page bottom */
}

/* ==========================================
   EDUCATIONAL PAGE ADVANCED STATS STYLES
   ========================================= */
.stat-banner {
    background-color: var(--primary-green);
    color: var(--pure-white);
    padding: 25px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(30, 70, 32, 0.15);
}

.stat-banner p {
    margin: 0;
    color: var(--pure-white) !important;
    font-size: 1.05rem;
    line-height: 1.5;
}

.stat-alert-icon {
    font-size: 2rem;
}

/* Side-by-Side Mini Grid for Regional Stats */
.stats-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Highlights the specific Outaouais local market risk factor */
.stat-card.regional-highlight {
    background: rgba(244, 240, 234, 0.9);
    border: 1px solid var(--soft-green);
    box-shadow: 0 8px 20px rgba(30, 70, 32, 0.03);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    color: var(--text-dark);
    line-height: 1.5;
}

.stat-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* Language Switcher Button UI */
.lang-switch-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.lang-switch-btn:hover {
    color: var(--primary-green);
    background-color: var(--soft-green);
    border-color: transparent;
}

/* ==========================================
   INTERACTIVE DETAILS MODAL (POP-UP)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

/* Smooth fade-in for the quiz win screen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}