/* ============================================
   Crystal Clear Pro — Styles
   Mobile-first, lightweight, no frameworks
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}

/* ---------- Utility ---------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 3.5rem 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition:
        background 0.2s,
        color 0.2s,
        box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0072ce;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: #005fa3;
    box-shadow: 0 2px 8px rgba(0, 114, 206, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #0072ce;
    border: 2px solid #0072ce;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #0072ce;
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    color: #0072ce;
    letter-spacing: -0.5px;
}
.logo-text strong {
    color: #333;
}

/* Header phone */
.header-phone {
    display: none;
    font-weight: 600;
    color: #0072ce;
    font-size: 0.95rem;
    white-space: nowrap;
}
.header-phone:hover {
    text-decoration: underline;
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 4px;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.social-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Hamburger */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}
.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
}
.hamburger::before {
    transform: translateY(-7px);
}
.hamburger::after {
    transform: translateY(7px);
}

/* Open state */
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
}

/* Nav */
.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.primary-nav.open {
    display: block;
}

.primary-nav ul {
    display: flex;
    flex-direction: column;
}
.primary-nav a {
    display: block;
    padding: 0.9rem 5%;
    font-weight: 500;
    color: #333;
    transition: background 0.15s;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: #f0f7ff;
    color: #0072ce;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: url("../images/bgs/westfloridacleaning_bluesky.webp") center
        center / cover no-repeat fixed;
    color: #fff;
    text-align: center;
    padding: 4rem 0 4.5rem;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 114, 206, 0.8) 0%,
        rgba(0, 78, 140, 0.85) 100%
    );
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    display: block;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffff6a;
}

.motto {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.hero .motto {
    opacity: 1;
}

.about .motto {
    color: #0072ce;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.92;
}

.hero .btn-primary {
    background: #ffff6a;
    color: #004e8c;
    font-size: 1.1rem;
}
.hero .btn-primary:hover,
.hero .btn-primary:focus-visible {
    background: #fff05a;
    box-shadow: 0 2px 12px rgba(255, 255, 106, 0.3);
}

/* ---------- About ---------- */
.about {
    background: #f8fafc;
}
.about-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.about h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #0072ce;
}
.about p {
    margin-bottom: 1rem;
}
.about .btn-secondary {
    margin-top: 0.5rem;
}

/* ---------- Services ---------- */
.services h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: #0072ce;
}

/* ---------- Card Grid ---------- */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 1.75rem;
    text-align: center;
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.card-icon {
    color: #0072ce;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

/* ---------- Promise ---------- */
.promise {
    background: #f8fafc;
}
.promise h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: #0072ce;
}

.card--highlight {
    border-top: 3px solid #0072ce;
}

/* ---------- Area ---------- */
.area-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.area h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #0072ce;
}

/* ---------- Contact ---------- */
.contact {
    position: relative;
    background: url("../images/bgs/westfloridacleaning_bluesky.webp") center
        center / cover no-repeat fixed;
    color: #fff;
    text-align: center;
}
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 78, 140, 0.85) 0%,
        rgba(0, 114, 206, 0.8) 100%
    );
    z-index: 0;
}
.contact-inner {
    position: relative;
    z-index: 1;
}
.contact h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.contact > .container > p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.phone-number {
    display: block;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.contact .btn-primary {
    background: #ffff6a;
    color: #004e8c;
}
.contact .btn-primary:hover {
    background: #fff05a;
}
.contact .btn-secondary {
    border-color: #ffff6a;
    color: #ffff6a;
}
.contact .btn-secondary:hover {
    background: #ffff6a;
    color: #004e8c;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #004e8c;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.footer-links a:hover {
    color: #ffff6a;
}

.site-footer .social-icons {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-motto-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-motto {
    font-size: 1.05rem;
    color: #fff;
}

.footer-phone {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #ffff6a;
    margin-bottom: 0;
}
.footer-phone:hover {
    text-decoration: underline;
}

.footer-hours {
    margin-bottom: 0.75rem;
}
.footer-hours strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}
.footer-hours p {
    margin: 0;
    line-height: 1.5;
}

.footer-copy {
    opacity: 0.6;
}

/* ============================================
   Responsive — Tablet (600px+)
   ============================================ */
@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Responsive — Desktop (900px+)
   ============================================ */
@media (min-width: 900px) {
    /* Header phone visible on desktop */
    .header-phone {
        display: block;
    }

    /* Nav */
    .nav-toggle {
        display: none;
    }

    .primary-nav {
        display: flex;
        position: static;
        box-shadow: none;
    }
    .primary-nav ul {
        flex-direction: row;
        gap: 0.25rem;
    }
    .primary-nav a {
        padding: 0.5rem 0.85rem;
        border-radius: 4px;
    }

    /* Grids */
    .card-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .card-grid--three {
        grid-template-columns: repeat(3, 1fr);
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding: 6rem 0 6.5rem;
    }
}
