html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}


/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* FORCING HEADERS TO ORANGE SITEWIDE */
h1, h2, h3, .policy-main-title {
    color: #8B2F0E !important;
    font-weight: bold !important;
    margin-bottom: 20px;
}

/* GLOBAL LINK STYLING (The "Orange" Look) */
a {
    color: #8B2F0E !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline !important;
    color: #b32d00 !important;
}

/* =========================================
   2. HEADER & NAVIGATION (Dark Bar)
   ========================================= */
header { 
    background-color: #D1D1D1 !important; /* Mid-tone grey */
    width: 100%;
    border-bottom: 3px solid #8B2F0E; /* Stronger blood orange base */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* Force Nav Links to stay White/Light */
.nav-links a {
    color: #222 !important; /* Near-black for maximum crispness */
    font-weight: 700 !important; /* Bolder weight to stand out against grey */
}

.nav-links a:hover {
    color: #8B2F0E !important;
    text-decoration: underline !important;
}

/* =========================================
   3. CONTENT WRAPPERS (Unified Width)
   ========================================= */
main.content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px; /* Matched to Header/Footer */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* This keeps your policy text from stretching too wide to read */
.policy-container {
    max-width: 1200; /* Keep the TEXT narrow */
    margin-left: 0; /* Aligned to the left of the centered main container */
    margin-right: auto;
}

/* The Vertical Accent Bar for H2s */
div.policy-section h2 {
    color: #8B2F0E !important;
    border-left: 6px solid #8B2F0E !important;
    padding-left: 15px !important;
    display: block !important;
    margin-top: 40px !important;
    margin-bottom: 15px !important;
}

hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Content List Spacing */
.policy-section ul {
    margin-bottom: 20px;
}

.policy-section li {
    margin-bottom: 10px;
}

/* =========================================
    4. FOOTER STYLES (Compact Version)
   ========================================= */
.main-footer {
    background-color: #8B2F0E !important;
    color: white !important;
    padding: 15px 20px 10px; /* Reduced from 25px/15px */
    margin-top: 20px;         /* Reduced from 30px */
    border-top: 4px solid #333; 
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;               /* Reduced gap from 20px */
}

.footer-block h3 {
    color: #ffffff !important;
    font-size: 1rem;         /* Slightly smaller headers */
    margin-top: 0;
    margin-bottom: 5px;      /* Reduced from 10px */
}

/* Footer Links & Text */
.footer-block a, 
.contact-info-block address,
.contact-info-block p {
    color: #ffccbc !important;
    font-style: normal;
    font-size: 0.9rem;       /* Slightly smaller text for secondary info */
    margin-bottom: 2px;
}

.footer-block a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    
    /* The "White Strip" look */
    background-color: #ffffff !important; 
    color: #333333 !important; /* Dark text for readability on white */
    
    /* Full-width stretch */
    margin-left: -20px;  /* Counteracts the footer's side padding */
    margin-right: -20px; /* Counteracts the footer's side padding */
    padding: 15px 20px;  /* Adds internal breathing room */
    
    border-top: 1px solid #ddd;
}

/* Quick Fix for the policy container typo noticed in your code */
.policy-container {
    max-width: 1200px;       /* Added 'px' which was missing */
    margin-left: 0; 
    margin-right: auto;
}


/* =========================================
   CONTACT FORM STYLES
   ========================================= */
.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Blood Orange focus state */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #8B2F0E;
    box-shadow: 0 0 0 2px rgba(139, 37, 0, 0.1);
}

.submit-btn {
    background-color: #8B2F0E;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s ease;
}

/* 2. Submit Button Hover (Contact Form) */
.submit-btn:hover {
    background-color: #b32d00;           /* Matches the primary button */
    color: #ffffff;
}

/* =========================================
   RADIO BUTTON STYLING
   ========================================= */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: #fff5f2;
    border-radius: 4px;
}

/* Style the actual radio circle */
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: border-color 0.2s;
}

.radio-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: #8B2F0E; /* Blood Orange Dot */
}

.radio-option input[type="radio"]:checked {
    border-color: #8B2F0E;
}

.radio-option input[type="radio"]:checked::before {
    transform: scale(1);
}
/* =========================================
   CHECKBOX STYLING
   ========================================= */
.checkbox-group {
    margin-top: 5px;
    margin-bottom: 5px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    top: 3px;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #8B2F0E;
    border-color: #8B2F0E;
}

/* The "White Check" inside the orange box */
.checkbox-container input[type="checkbox"]:checked::after {
    content: "✔";
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-container a {
    text-decoration: underline !important;
    font-weight: 600;
}

/* =========================================
   LOGO & HEADER IMAGE STYLING
   ========================================= */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    cursor: pointer;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo {
    color: white !important;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.header-logo {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.5));
    image-rendering: -webkit-optimize-contrast;
}

.logo-link:hover .header-logo {
    opacity: 0.8;
}

/* Tighten the success message appearance */
.success-msg {
    background: #f0fdf4;
    color: #166534;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Full page wrapper to center the card */
.thank-you-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* Consistent page background */
    padding: 20px;
}

/* The card now takes the Stone Grey background */
.thank-you-card {
    text-align: center;
    padding: 40px;
    background-color: #D1D1D1; /* Stone Grey card */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 500px;
    width: 90%;
    border-bottom: 4px solid #8B2F0E;
}

/* Success Icon - White pops well against the grey card */
.success-icon {
    font-size: 50px;
    color: #8B2F0E;
    margin-bottom: 15px;
}

.thank-you-card h1 {
    margin-top: 0;
    color: #222; 
    font-size: 1.8rem;
}

.thank-you-card p {
    color: #333;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Reusable Button Class */
.btn-primary {
    display: inline-block;
    background-color: #8B2F0E !important;
    color: #ffffff !important;
    padding: 12px 30px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    text-transform: none; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* 1. Primary Button Hover (Hero & Thank You) */
.btn-primary:hover {
    background-color: #b32d00 !important; /* A brighter, warm deep orange */
    color: #ffffff !important;           /* Ensures text stays pure white */
    transform: translateY(-2px);         /* Keeps the subtle lift effect */
    box-shadow: 0 4px 8px rgba(139, 47, 14, 0.3); /* Adds a soft glow */
}

/* About Page Sections */
.about-section {
    padding: 20px 20px;
    line-height: 1.8;
}

.about-section h2 {
    color: #8B2F0E; 
    margin-bottom: 10px;
    font-size: 2rem;
    text-align: center;
}

/* Specific styling for the Home Page cards */
.stat-card h3 {
    margin-top: 0;
    color: #333;
}

.stat-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.card-icon {
    font-size: 45px; /* Makes them large and clear */
    margin-bottom: 15px;
    display: block;
    line-height: 1;
    color: #333; /* Resets any inherited link colors */
}

.grey-bg { background-color: #D1D1D1; }
.white-bg { background-color: #ffffff; }
.content-wrapper { max-width: 800px; margin: 0 auto; }

/* Home Card Grid */
.home-cards-section { padding: 50px 20px; background: #f9f9f9; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Individual Cards */
.stat-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-top: 4px solid #D1D1D1;
}
.stat-card:hover { transform: translateY(-5px); }
.accent-card { border-top: 4px solid #8B2F0E; } 

.card-icon { font-size: 40px; margin-bottom: 15px; }
.stat-meta { 
    font-size: 13px; 
    font-weight: 700; 
    color: #8B2F0E; 
    text-transform: none; 
    margin-bottom: 10px; 
}

/* Wrapper for the Contact Form Card */
/* 1. Fix the Width */
.form-container-card {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid #8B2F0E;
    margin-top: 20px;
    width: 100%;           /* Ensures it fills the policy-container */
    box-sizing: border-box; /* Prevents padding from pushing it past 100% */
}

/* 2. Make Radio Buttons Visible */
.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #777; /* Darker border for visibility */
    background-color: #fff;  /* White center helps it stand out */
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

/* 3. Make Checkbox Visible */
.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #777; /* Darker border for visibility */
    background-color: #fff;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    top: 3px;
    flex-shrink: 0;
}

/* 4. Improve Text Input Visibility */
.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 2px solid #999; /* Darker borders for all fields */
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Focus state remains Blood Orange */
.form-group input:focus, 
.form-group textarea:focus {
    border-color: #8B2F0E;
    box-shadow: 0 0 0 2px rgba(139, 37, 0, 0.1);
}

/* Hero Section Container */
.hero-section {
    padding: 100px 20px; /* Increased padding for a more "premium" feel */
    background-color: #ffffff;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    color: #222;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Secondary Button - The "Outline" style */
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #8B2F0E;
    color: #8B2F0E;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 15px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* 3. Secondary Button Hover (The "Outline" button) */
.btn-secondary:hover {
    background-color: #8B2F0E;           /* Fills in with Blood Orange */
    color: #ffffff !important;           /* Flips text to white */
    border-color: #8B2F0E;
}

.services-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    background: #fff;
    border-radius: 8px;
}

/* Tab List (Left Side) */
.services-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 250px; /* Fixed width on desktop */
    flex-shrink: 0;
	border-right: 1px solid #eee; /* Adds a clean vertical divider */
}

.tab-link {
    padding: 20px;
    background: #f4f4f4;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    color: #555;
	border-bottom: 1px solid #eee;
    text-align: left;
}

.tab-link.active {
    background: #D1D1D1; /* Stone Grey */
    color: #8B2F0E;      /* Blood Orange */
    border-left: 5px solid #8B2F0E;
	border-bottom: none; /* Cleans up the bottom of the list */
}

/* Content Area (Right Side) */
.services-content-area {
    flex-grow: 1;
    padding: 20px 0;
}

.tab-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block; /* Shown when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .services-wrapper {
        flex-direction: column; /* Stacks Tabs on top of Content */
        gap: 20px;
    }
    .services-tabs {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
}

/* Hidden by default */
.tab-content {
    display: none; 
}

/* Shown only when active */
.tab-content.active {
    display: block !important; 
}

@media (max-width: 768px) {
    .services-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #D1D1D1;
        margin-bottom: 20px;
    }
    
    .services-content-area {
        padding: 0 10px;
    }
}

.services-content-area {
    flex-grow: 1;
    padding: 20px 0;
    min-height: 400px; /* Adjust this to match your longest service description */
}

/* =========================================
   MOBILE NAVIGATION FIX
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stacks Logo above Links */
        padding: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 15px;            /* Tighter gap for mobile */
        margin-top: 15px;
        flex-wrap: wrap;      /* Allows links to wrap to a 2nd line if needed */
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        font-size: 0.9rem;    /* Slightly smaller text for mobile */
        padding: 5px 10px;    /* Larger tap target */
        display: inline-block;
    }
    
    .header-logo {
        height: 50px;         /* Slightly smaller logo on mobile */
    }
}

.about-flex-container {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.image-rotator {
    position: relative;
    width: 400px;
    height: 500px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    border-bottom: 5px solid #8B2F0E;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rotator-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.rotator-img.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .about-flex-container { flex-direction: column; }
    .image-rotator { width: 100%; height: 400px; }
}

/* Center the title and give it some breathing room from the content below */
.full-width-title {
    text-align: center;
    width: 100%;
    margin-bottom: 40px; /* Space between title and the flex columns */
    font-size: 2.5rem;   /* Making it a bit more prominent */
}

.about-flex-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

/* Mobile Fix: Ensure the title stays centered when things stack */
@media (max-width: 768px) {
    .about-flex-container {
        flex-direction: column;
        align-items: center;
    }
    
    .about-text {
        text-align: center;
    }
}

/* Remove bullets and reset alignment for footer lists */
.footer-block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-block li {
    margin-bottom: 4px; /* Reduced from 8px to keep links tight */
    line-height: 1.2;   /* Snugs the text rows closer together */
}

.footer-block h3 {
    margin-bottom: 8px !important; /* Brings the header closer to the links below it */
}