/*
 * Base styles for Advent Air Solutions
 *
 * The following stylesheet defines a clean and modern layout for our HVAC
 * website. It uses a responsive grid, simple typography and subtle
 * shadows to create a professional appearance. The same CSS is shared
 * across all pages in the site to maintain consistency.
 */

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    /* Space for sticky header */
    padding-top: 80px;
}
header {
    background-color: #002244;
    color: #fff;
    padding: 1rem;
    /* Make the header stick to the top */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header nav a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
    font-weight: bold;
}
header nav a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
/* Hero section with background image overlay */
.hero {
    position: relative;
    background: url('../images/worker.jpg') no-repeat center center/cover;
    color: #fff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}
.section {
    margin: 2rem 0;
}
/* Grid for services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.service-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.service-card h3 {
    margin-top: 0;
}
/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}
/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
.contact-form button {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
/* Footer styles */
footer {
    background-color: #002244;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}
footer p {
    margin: 0.25rem 0;
}

/* Brand styling in header */
.brand {
    display: flex;
    align-items: center;
}
.brand img {
    height: 40px;
    margin-right: 0.5rem;
}
.company-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}
/* Navigation links container to provide spacing */
.nav-links a {
    margin-left: 0.75rem;
}
/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.testimonial-card p.quote {
    font-style: italic;
    margin-bottom: 0.5rem;
}
.testimonial-card p.name {
    font-weight: bold;
    margin-top: 0;
}
/* Utility class to hide elements (used for Netlify honeypot) */
.hidden {
    display: none;
}

/* Call-to-action button in header */
.btn-cta {
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}
.btn-cta:hover {
    background-color: #cc0000;
}

/* Social media icons styling */
.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: #007bff;
}