/*
Theme Name: Rewak Mechanical HVAC
Theme URI: https://www.rewakhvac.com
Author: Rewak Mechanical LLC
Author URI: https://www.rewakhvac.com
Description: SEO-focused red and blue HVAC theme for Rewak Mechanical LLC.
Version: 3.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: Private
Text Domain: rewak-mechanical
*/

:root {
    --blue: #0d47a1;
    --navy: #062d69;
    --red: #d62828;
    --light: #f4f7fb;
    --text: #20242a;
    --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow { max-width: 760px; text-align: center; }

.top-bar {
    background: var(--blue);
    color: var(--white);
    padding: 10px max(20px, calc((100% - 1120px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.top-bar a { color: var(--white); }

.site-header {
    position: static;
    padding: 14px max(20px, calc((100% - 1120px) / 2));
    background: var(--white);
    border-bottom: 4px solid var(--blue);
}

.site-logo {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.button, .btn {
    display: inline-block;
    border: 2px solid var(--red);
    border-radius: 7px;
    background: var(--red);
    color: var(--white);
    padding: 14px 24px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .15s ease, opacity .15s ease;
}

.button:hover, .button:focus, .btn:hover, .btn:focus {
    opacity: .92;
    transform: translateY(-1px);
}

.button-small { padding: 10px 18px; }
.button-light { background: var(--white); color: var(--red); border-color: var(--white); }
.button-outline { background: transparent; border-color: var(--white); }

.floating-book {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .3);
}

.hero {
    padding: 100px 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(6, 45, 105, .94), rgba(6, 45, 105, .68)),
        url('images/install1.jpeg') center/cover;
}

.hero-content { max-width: 850px; margin-left: max(20px, calc((100% - 1120px) / 2)); }
.hero h1 { max-width: 820px; margin: 0 0 12px; font-size: clamp(2.35rem, 6vw, 4rem); line-height: 1.08; }
.hero h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; }
.hero p { max-width: 760px; font-size: 1.18rem; }
.eyebrow { margin: 0 0 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }

.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-weight: 700;
}

.section { padding: 72px 0; }
.section-title { margin: 0 0 18px; color: var(--blue); text-align: center; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; }
.section-title.light { color: var(--white); }
.section-intro { max-width: 820px; margin: 0 auto 36px; text-align: center; font-size: 1.12rem; }
.dark { background: var(--navy); color: var(--white); }
.center { margin-top: 30px; text-align: center; }

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card {
    border-top: 5px solid var(--red);
    border-radius: 8px;
    background: var(--light);
    padding: 26px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
}

.card h3 { margin-top: 0; color: var(--blue); }

.check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.check-grid div {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 7px;
    padding: 18px;
    background: rgba(255, 255, 255, .08);
    font-weight: 700;
}

.gallery-grid, .gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-grid img, .gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .16);
}

.text-link { font-weight: 800; font-size: 1.08rem; }

.service-area { background: var(--light); text-align: center; }
.service-area p { max-width: 900px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

.footer-cta { padding: 55px 0; background: var(--red); color: var(--white); text-align: center; }
.footer-cta h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.footer-cta p { margin: 0 0 25px; font-size: 1.15rem; }

.site-footer { padding: 36px 0 26px; background: var(--blue); color: var(--white); text-align: center; }
.site-footer h2 { margin-top: 0; }
.site-footer a { color: var(--white); }
.backup-link { margin: 24px 0 0; font-size: .72rem; opacity: .58; }
.backup-link a { text-decoration: none; }

.backup-booking-page { min-height: 48vh; display: grid; align-items: center; }
.backup-booking-page h1 { color: var(--blue); font-size: clamp(2rem, 5vw, 3rem); }
.small-note { margin-top: 30px; font-size: .9rem; }

@media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .check-grid, .gallery-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .top-bar { align-items: flex-start; padding: 9px 14px; font-size: .86rem; }
    .top-bar span { display: none; }
    .top-bar div { max-width: 62%; }
    .button-small { padding: 9px 12px; white-space: nowrap; }
    .site-header { padding: 10px 14px; }
    .site-logo { width: 205px; }
    .hero { padding: 66px 0; }
    .hero-content { margin: 0 auto; }
    .section { padding: 52px 0; }
    .cards, .check-grid, .gallery-grid, .gallery { grid-template-columns: 1fr; }
    .floating-book { right: 12px; bottom: 12px; padding: 12px 18px; }
}
