/* --- Base Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fcfcfc;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Section Formatting --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1a2a3a;
    margin-bottom: 10px;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: #007bff; /* Primary Accent Color */
    margin: 0 auto 20px auto;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a2a3a;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links .phone-btn {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-links .phone-btn:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Make nav links lay out in a row and keep the phone button from breaking apart */
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-btn {
    white-space: nowrap; /* keep the button text together */
}

/* Hamburger / toggle button (hidden on larger screens) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a2a3a;
    margin: 4px 0;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    /* Placeholder background color - You can replace this with a background-image later */
    background: #1a2a3a url('https://via.placeholder.com/1920x800') no-repeat center center/cover;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darkens the image to make text legible */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-btn {
    display: inline-block;
    background-color: #ffc107; /* Bright attention grabber color */
    color: #1a2a3a;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background-color: #e0a800;
}

/* --- About Section --- */
.about-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.about-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background-color: #f4f7f6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 500px));
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1a2a3a;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- Footer Section --- */
.main-footer {
    background-color: #1a2a3a;
    color: #ffffff;
    padding: 60px 0 20px 0;
    text-align: center;
}

.footer-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.phone-large {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 15px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #aaa;
}

.footer-bottom a {
    color: #fff;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* --- Responsive Layout (Mobile Devices) --- */
@media(max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    /* show hamburger and collapse links into a toggleable column */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        padding: 8px 0;
        text-align: center;
        border-top: 1px solid rgba(0,0,0,0.04);
    }

    /* Ensure the phone button, when moved to its own line, stays as a single block */
    .nav-links .phone-btn {
        display: inline-block;
        margin: 8px auto 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Reduce large vertical spacing and heading sizes for mobile to keep content denser */
@media(max-width: 480px) {
    .about-section, .services-section {
        padding: 40px 0;
    }

    .service-card {
        padding: 20px;
    }

    .services-grid {
        gap: 16px;
    }

    .hero-section {
        min-height: 320px;
        height: auto;
        padding: 40px 0;
    }

    /* Reduce heading sizes and tighten line-height specifically for small screens */
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.08;
        margin-bottom: 12px;
    }

    .section-title h2 {
        font-size: 1.5rem;
        line-height: 1.08;
        margin-bottom: 8px;
    }

    .service-card h3 {
        font-size: 1.05rem;
        line-height: 1.12;
        margin-bottom: 8px;
    }

    /* Slightly reduce paragraph sizes for denser mobile layout */
    .hero-content p,
    .about-section p,
    .service-card p {
        font-size: 0.98rem;
        line-height: 1.3;
    }
}

/* Limit services grid columns: at most 2 columns on medium screens, 1 on small */
/* Services grid: switch to one column on smaller screens */
@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}