/*
 * Stylesheet for Eagle Eye Backflow company website.
 *
 * The palette draws inspiration from the deep blues of Vancouver's coastal waters.
 * A fixed navigation bar sits atop the page with the company logo and quick
 * links to each section. Sections are spaced generously for readability and
 * accessibility on both mobile and desktop devices. The hero section uses
 * a custom generated abstract water image as a backdrop to evoke a sense
 * of flow and motion, tying in with the company’s service offering.
 */

:root {
    --primary-color: #003d5b;
    --secondary-color: #006da4;
    --accent-color: #00a6fb;
    --light-color: #f6f9fc;
    --text-color: #333333;
    --white: #ffffff;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: var(--light-color);
    line-height: 1.6;
}

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

ul {
    list-style-type: none;
}

/* Top call bar */
.call-bar {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Navigation */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

nav .logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    position: relative;
    background: url('images/hero.jpg') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.hero .content {
    position: relative;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.hero .btn:hover {
    background: var(--secondary-color);
}

/* Section base */
section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Why choose us section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Services section */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.service {
    flex: 1 1 300px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.service p {
    font-size: 1rem;
}

/* Service area */
.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.service-area-item {
    background: var(--white);
    padding: 1rem;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

/* Process */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.process-step {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.process-step h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Contact section */
.contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form form .full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    grid-column: 1 / -1;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    nav .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-color);
    }
    .contact-form form {
        grid-template-columns: 1fr;
    }
}