/* Base Styles & Variables */
:root {
    --primary: #1A365D; 
    --accent: #E67E22; 
    --accent-hover: #D35400;
    --light: #F8F9FA;
    --dark: #2D3748;
    --text: #4A5568;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { font-family: 'Open Sans', sans-serif; color: var(--text); line-height: 1.7; background-color: var(--light); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary); margin-bottom: 1rem; }
a { text-decoration: none; color: var(--accent); transition: color 0.3s ease; }
a:hover { color: var(--primary); }

/* Top Bar Contact Info */
.top-bar { background-color: var(--dark); color: var(--light); padding: 0.5rem 2rem; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--light); margin-left: 15px; }
.top-bar a:hover { color: var(--accent); }

/* Navigation */
header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--dark); font-weight: 600; position: relative; }
.nav-links a:hover { color: var(--accent); }
.dropdown { position: relative; }

/* Buttons */
.btn-primary { background-color: var(--accent); color: var(--white) !important; padding: 0.8rem 1.5rem; border-radius: 5px; font-weight: 600; transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3); }

/* Mobile Menu */
.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; }

/* Hero Section */
.hero { background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.85)), url('https://images.unsplash.com/photo-1504307651254-35680f356f12?auto=format&fit=crop&w=1920&q=80') center/cover; color: var(--white); padding: 8rem 2rem; text-align: center; }
.hero h1 { color: var(--white); font-size: 3.2rem; max-width: 1000px; margin: 0 auto 1.5rem auto; line-height: 1.3; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 2.5rem auto; }

/* Layout & Sections */
.section-container { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Intro / About */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.intro-text p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.certification-badge { display: inline-block; background: var(--primary); color: var(--white); padding: 0.5rem 1rem; border-radius: 4px; font-weight: 600; margin-top: 1rem; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.4rem; }
.card-content p { margin-bottom: 1.5rem; font-size: 0.95rem; }
.card-content a { margin-top: auto; font-weight: 600; display: inline-block; }

/* Pricing Section */
.pricing-section { background-color: var(--primary); color: var(--white); padding: 5rem 2rem; text-align: center; }
.pricing-section h2 { color: var(--white); }
.pricing-box { background: rgba(255,255,255,0.1); border: 2px solid var(--accent); padding: 3rem; max-width: 800px; margin: 2rem auto 0 auto; border-radius: 8px; }

/* Locations Grid */
.locations-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; background: var(--white); padding: 4rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* Deep Dive Columns */
.services-deep-dive { background: var(--dark); color: var(--light); padding: 5rem 2rem; }
.services-deep-dive h2 { color: var(--white); text-align: center; margin-bottom: 3rem; }
.columns-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.column h4 { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.column ul { list-style: none; }
.column ul li { margin-bottom: 0.8rem; }
.column ul li a { color: #A0AEC0; }
.column ul li a:hover { color: var(--white); }

/* Forms (For Contact Page) */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control { width: 100%; padding: 0.8rem; border: 1px solid #CBD5E0; border-radius: 4px; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2); }

/* Footer Layout */
footer { background: #1A202C; color: #A0AEC0; padding: 4rem 2rem 2rem 2rem; }

.footer-grid { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: grid; 
    /* First column flexible, next two "shrink-wrapped" to their content */
    grid-template-columns: 1fr auto auto; 
    gap: 4rem; 
}

/* Logo Styling */
.footer-logo { 
    font-family: 'Montserrat', sans-serif; /* Ensures the branding font matches your site headers */
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--white); 
    margin-bottom: 1rem; 
}

/* This targets the 'Handyman' part specifically to make it orange */
.footer-logo span { 
    color: var(--accent); 
}


/* Constrain the Brand Text */
.footer-brand { 
    max-width: 350px; 
}

/* Footer Bottom Bar */
.footer-bottom { 
    max-width: 1200px; 
    margin: 3rem auto 0; 
    padding-top: 2rem; 
    border-top: 1px solid #2D3748; 
    display: flex; 
    justify-content: space-between; 
}

/* Ensure links and contact icons look consistent */
.footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { color: #A0AEC0; text-decoration: none; }
.footer-links ul li a:hover { color: var(--accent); }

.footer-contact-item { display: flex; align-items: center; margin-bottom: 1rem; color: #A0AEC0; text-decoration: none; }
.footer-contact-item i { font-size: 1.2rem; width: 35px; color: var(--accent); }
.footer-contact-item:hover { color: var(--white); }


/* Legal Footer Bar */
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 2rem; border-top: 1px solid #2D3748; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer-bottom a { color: #A0AEC0; margin-left: 1rem; }
.footer-bottom a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 900px) {
    .intro-grid, .locations-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .top-bar { flex-direction: column; text-align: center; gap: 0.5rem; }
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 2rem; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-top: 1px solid #eee; }
    .nav-links.active { display: flex; }
    .nav-links a { display: block; width: 100%; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom div { margin: 0; }
}

/* --- Services Page Layout Fixes --- */

/* Section Layout */
.service-row { 
    display: flex; 
    align-items: flex-start; 
    padding: 5rem 2rem; 
    gap: 10%; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.row-reverse { flex-direction: row-reverse; }

/* Backgrounds */
.bg-white { background-color: var(--white); }
.bg-light-blue { background-color: #f4f9ff; }

/* Columns */
.col-text { flex: 0 0 45%; } /* Text takes up ~60% */
.col-img { flex: 0 0 45%; } /* Image takes up ~40% */

/* Image Ratio & Look */
.col-img img { 
    width: 100%; 
    aspect-ratio: 3/4; 
    object-fit: cover; 
    border-radius: 8px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    display: block;
}

/* Spacing & Typography Fixes */
.col-text h2 { 
    margin-bottom: 2rem; 
    font-size: 2.5rem; /* Matches your other h2s */
}

/* More space above h3, very little space between h3 and description */
.col-text h3 { 
    margin-top: 1.2rem; 
    margin-bottom: 0.1rem; 
    font-size: 1.25rem; 
}

.col-text p { 
    margin-bottom: 0.5rem; 
}

/* Mobile responsive - stacks them when screen is small */
@media (max-width: 768px) {
    .service-row { flex-direction: column; padding: 3rem 1rem; }
    .col-text, .col-img { flex: 0 0 100%; }
    .col-img { margin-bottom: 2rem; }
}

/* Coverage Page Specifics */
.coverage-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
    padding: 3rem 0; 
}
.location-card { 
    background: #fff; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 4px solid var(--accent);
}
.location-card h3 { color: var(--primary); margin-bottom: 1rem; }
.map-placeholder { 
    width: 100%; 
    height: 300px; 
    background: #e2e8f0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #4a5568; 
    border-radius: 8px; 
    margin-bottom: 2rem;
}
/* Coverage Grid - 3 Columns */
.coverage-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    padding: 3rem 0; 
}

/* Specific Location Card Style */
.location-card { 
    background: #fff; 
    padding: 2.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 4px solid var(--accent); /* Restored Orange Line */
    transition: transform 0.3s ease;
}

.location-card:hover { transform: translateY(-5px); }
.location-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.4rem; }
.location-card p { font-size: 0.95rem; line-height: 1.6; color: var(--text); }

/* Mobile fallback for 3-column grid */
@media (max-width: 992px) {
    .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .coverage-grid { grid-template-columns: 1fr; }
}
/* Responsive Grid Order */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-areas: "form info"; /* Desktop: Form left, Info right */
    gap: 4rem; 
    padding: 4rem 2rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* On mobile: Swap order so Info is on top */
@media (max-width: 900px) {
    .contact-grid { 
        grid-template-columns: 1fr; 
        grid-template-areas: "info" "form"; /* Mobile: Info top, Form bottom */
    }
}

/* --- Fix Contact Links --- */


/* Fix: Added the missing closing brace '}' below */
.contact-info-block, 
.contact-form-card {
    /* No margin here by default (for mobile) */
}

/* This media query ensures the 4rem spacing only applies on screens 900px or wider */
@media (min-width: 900px) {
    .contact-info-block, 
    .contact-form-card {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }
}

.contact-page-link {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
/* ... rest of your code ... */

.contact-page-link:hover {
    color: var(--accent); /* Orange on hover */
}

.contact-page-link i {
    font-size: 1.1rem;
    width: 25px; /* Reduced width to fix the "too much space" issue */
    margin-right: 10px; /* Reduced margin for tighter alignment */
    color: var(--accent);
}

/* --- Premium Form Styling --- */
/* Ensure the form container is padded */
.contact-form-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Force every field to stack and take full width */
.contact-form input, 
.contact-form select, 
.contact-form textarea {
    display: block; 
    width: 100%;
    margin-bottom: 15px; /* Spacing between fields */
    padding: 12px;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    font-size: 16px; /* Prevents auto-zoom on mobile */
    box-sizing: border-box; /* Important: Ensures padding doesn't break width */
}

/* Style the button */
.contact-form button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}