:root {
    --primary-color: #003366;
    /* Navy Blue */
    --secondary-color: #FF8F00;
    /* Amber/Orange */
    --accent-color: #F4F4F4;
    /* Light Gray */
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e68100;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 90px;
    /* Increased from 70px */
    margin-right: 15px;
}

/* ... existing nav styles ... */

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.cta-phone {
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.6)), url('hero_image.png');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Tools/Calculators */
.tools-section {
    padding: 60px 0;
    background-color: var(--accent-color);
}

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

.tool-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.tool-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tool-card p {
    margin-bottom: 20px;
    color: #666;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
}

.calc-result {
    margin-top: 15px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 5px;
    border-left: 5px solid var(--secondary-color);
    font-weight: bold;
    display: none;
    /* Hidden by default */
}

/* Promo Banner */
.promo-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Keep uniform shape */
    object-fit: contain;
    /* Show whole image, don't crop */
    background-color: #f9f9f9;
    /* Fill empty space */
    padding: 10px;
    /* "Make the border bigger" - adds space inside the edges */
}

.service-card-content {
    padding: 40px 30px;
    /* Increased vertical padding to prevent cut-off */
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Specific spacing for buttons within cards */
.service-card .btn {
    margin-top: 25px;
    margin-bottom: 10px;
    /* Slight bottom margin just in case */
}

/* Contact Section (Home) */
.contact-preview {
    padding: 80px 0;
    text-align: center;
}

/* Service Area Section */
.service-area-section {
    padding: 80px 0;
    background-color: var(--white);
}

.service-area-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.cities-list-container {
    flex: 1;
    min-width: 300px;
}

.cities-list-container h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    list-style: none;
}

.cities-list li {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    /* Clickable */
}

.cities-list li:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.map-container {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    /* Ensure container is relative */
    overflow: hidden;
    /* Prevent images spilling out */
}

.hero-container {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Floating Corner Images */
.hero-logo-corner {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 120px;
    /* Adjust size as needed */
    width: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.hero-image-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 250px;
    /* Adjust size to look good */
    width: auto;
    z-index: 10;
    border-radius: 10px 0 0 0;
    /* Slight curve on inner corner */
    border: 3px solid var(--white);
    box-shadow: -5px -5px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments for Hero */
@media (max-width: 768px) {
    .hero-container {
        min-height: auto;
        padding-bottom: 150px;
        /* Space for images */
    }

    .hero-logo-corner {
        height: 80px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        /* Stacked on mobile? Or keep corners? Let's stack for safety layout */
        left: 10px;
        transform: none;
    }

    .hero-image-corner {
        height: 120px;
        right: 10px;
    }
}

/* Fixed Bottom Right Logo */
.fixed-corner-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    /* Adjust based on preference */
    height: auto;
    z-index: 9999;
    /* Higher than modal */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fixed-corner-logo:hover {
    transform: scale(1.05);
}

.fixed-corner-logo-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    /* Slightly larger as it is the main brand logo */
    height: auto;
    z-index: 9999;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Clickable */
}

.fixed-corner-logo-left:hover {
    transform: scale(1.05);
}

/* Responsive adjustment if needed */
@media (max-width: 768px) {
    .fixed-corner-logo {
        width: 80px;
        bottom: 10px;
        right: 10px;
    }

    .fixed-corner-logo-left {
        width: 100px;
        bottom: 10px;
        left: 10px;
    }
}

/* Services Page Specifics */
.services-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.service-detail {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.service-detail:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail img {
    width: 50%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-info {
    width: 50%;
}

/* Contact Page Specifics */
.contact-container {
    display: flex;
    gap: 50px;
    padding: 80px 0;
}

.contact-info,
.contact-form-wrapper {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input,
select,
textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        flex-wrap: wrap;
        /* Allow items to wrap */
    }

    .cta-phone {
        width: 100%;
        text-align: center;
        order: 3;
        /* Ensure it drops to bottom */
        margin-top: 10px;
        font-size: 1.1rem;
        /* Restore readable size */
    }

    /* --- Mobile Header Fix --- */
    /* Hides the text 'Thurgood Handyman Services' on phones */
    .company-name {
        display: none;
    }

    /* Optional: Adjusts the logo size slightly if needed */
    .logo img {
        max-height: 60px;
        /* Adjusted to 60px to ensure visibility, user suggested 40px but that might be too small */
        height: auto;
        /* Allow auto width */
    }

    .logo {
        flex-grow: 1;
        /* Allow logo to take available space */
    }

    /* 
    .cta-phone {
       Removed - handled in nav wrap block
    } */

    .hero h1 {
        font-size: 2.5rem;
    }

    .service-detail {
        flex-direction: column !important;
        text-align: center;
    }

    .service-detail img,
    .service-info {
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
    }
}