/* ========================================
   DMVHVAC Appliance Services - Main CSS
   Palette matched to the company logo + invoice app
   (deep blue #08567f, accent red #d32f2f)
   ======================================== */

:root {
    --blue: #08567f;
    --blue-dark: #063f5e;
    --blue-mid: #036ea6;
    --red: #d32f2f;
    --red-dark: #b71c1c;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --tint: #e8f2f8;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
}

/* ---- Top Bar ---- */
.topbar {
    background: var(--blue-dark);
    color: #b9cdd9;
    font-size: 0.82rem;
    padding: 6px 0;
}
.topbar-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.topbar-link:hover { color: #ffd7d7; }

/* ---- Navbar ---- */
.navbar { padding: 4px 0; }
.navbar-logo {
    height: 88px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer-logo {
    height: 58px;
    width: auto;
}
.footer-logo-chip {
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    display: inline-block;
}
.nav-link {
    color: var(--text-dark) !important;
    font-size: 0.93rem;
    padding: 6px 12px !important;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: #f1f5f9; color: var(--blue) !important; }
.dropdown-menu { border-radius: 12px; padding: 8px; min-width: 220px; }
.dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: 0.9rem; }
.dropdown-item:hover { background: #f1f5f9; }
.text-primary { color: var(--blue) !important; }

/* Bootstrap overrides */
.btn-primary { background: var(--blue); border-color: var(--blue); border-radius: 8px; }
.btn-primary:hover { background: var(--blue-mid); border-color: var(--blue-mid); }
.btn-warning { background: var(--red); border-color: var(--red); color: #fff; border-radius: 8px; }
.btn-warning:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline-primary { border-color: var(--blue); color: var(--blue); border-radius: 8px; }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-mid) 100%);
    color: white;
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    background: rgba(211,47,47,0.12);
    border-radius: 50%;
    pointer-events: none; /* decorative only — never intercept clicks */
    z-index: 0;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
/* Keep hero content (and the clickable appliance card) above the circles */
.hero-section .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(211,47,47,0.18);
    border: 1px solid rgba(211,47,47,0.5);
    color: #ffb3b3;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}
.hero-title span { color: #ff8a8a; }
.hero-subtitle { font-size: 1.1rem; color: #cfe0ea; max-width: 520px; }
.hero-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff8a8a;
    text-decoration: none;
}
.hero-phone:hover { color: #ffb3b3; }
.hero-appliance-img {
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.35));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.trust-row { font-size: 0.82rem; color: #cfe0ea; }
.trust-row i { color: #ff8a8a; }

/* Hero appliance quick-select card (replaces the hero photo) */
.hero-select-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 560px;
}
.hero-select-card .hsc-title { color: var(--blue); font-weight: 800; font-size: 1.05rem; }
.hero-select-card .hsc-sub { color: var(--text-muted); font-size: 0.8rem; }
.hero-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 6px;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    height: 100%;
}
.hero-tile:hover {
    border-color: var(--blue);
    background: var(--tint);
    transform: translateY(-3px);
    color: var(--blue);
    box-shadow: 0 6px 18px rgba(8,86,127,0.12);
}
.hero-tile i { font-size: 1.7rem; color: var(--blue); line-height: 1; }
.hero-tile span { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.2; }

/* Floating brands grid (replaces the moving marquee) */
.brands-section { background: #fff; }
.brand-float-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px 44px;
}
.brand-float { animation: float 4s ease-in-out infinite; }

/* ---- Section headings ---- */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--blue); }

/* ---- Appliance Cards ---- */
.appliance-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
}
.appliance-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 30px rgba(8,86,127,0.14);
    transform: translateY(-4px);
    color: var(--blue);
}
.appliance-icon {
    width: 64px; height: 64px;
    background: var(--tint);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--blue);
    margin: 0 auto 14px;
    transition: background 0.25s;
}
.appliance-card:hover .appliance-icon { background: var(--blue); color: white; }
.appliance-card h6 { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.appliance-card small { color: var(--text-muted); font-size: 0.8rem; }

/* ---- How It Works ---- */
.how-section { background: var(--bg-light); }
.step-num {
    width: 52px; height: 52px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}
.step-card { text-align: center; padding: 20px; }
.step-card h5 { font-weight: 700; color: var(--blue); }

/* ---- Trust Stats ---- */
.stat-card { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-label { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* ---- Testimonials ---- */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
    height: 100%;
}
.stars { color: var(--red); font-size: 0.9rem; }
.testimonial-text { font-size: 0.95rem; color: var(--text-dark); line-height: 1.7; font-style: italic; }
.reviewer-avatar {
    width: 44px; height: 44px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.reviewer-name { font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.reviewer-detail { font-size: 0.78rem; color: var(--text-muted); }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: white;
    padding: 70px 0;
}
.cta-banner h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---- Services Page ---- */
.service-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 60px 0 50px;
    color: white;
}
.service-icon-lg {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.service-feature-icon {
    width: 48px; height: 48px;
    background: var(--tint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.issue-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.88rem;
    color: var(--text-dark);
}
.issue-chip i { color: var(--blue); }

/* ---- Booking Form ---- */
.booking-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 50px 0;
    color: white;
}
.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    font-size: 0.93rem;
    transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8,86,127,0.12);
}
.step-indicator { display: flex; gap: 8px; margin-bottom: 28px; }
.step-dot { height: 4px; flex: 1; background: var(--border-color); border-radius: 4px; }
.step-dot.active { background: var(--blue); }

/* ---- About ---- */
.about-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 60px 0;
    color: white;
}
.value-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.value-card:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(8,86,127,0.12); }
.value-icon {
    width: 56px; height: 56px;
    background: var(--tint);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ---- Contact ---- */
.contact-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 60px 0;
    color: white;
}
.contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}
.contact-icon {
    width: 48px; height: 48px;
    background: var(--tint);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---- Privacy / Legal ---- */
.legal-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    padding: 56px 0;
    color: white;
}
.legal-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
    padding: 40px;
}
.legal-card h2 { color: var(--blue); font-weight: 800; font-size: 1.3rem; margin-top: 28px; margin-bottom: 12px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card h3 { color: var(--blue); font-weight: 700; font-size: 1.02rem; margin-top: 18px; margin-bottom: 8px; }
.legal-card p, .legal-card li { color: #334155; line-height: 1.75; font-size: 0.96rem; }
.legal-highlight {
    background: var(--tint);
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 22px 0;
    color: #0f3450;
    font-weight: 500;
}
.legal-highlight strong { color: var(--red); }

/* ---- Confirmation ---- */
.confirmation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 48px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.confirmation-icon {
    width: 80px; height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #16a34a;
}

/* ---- Footer ---- */
.footer-main { background: var(--blue-dark); }
.footer-heading { color: #e2e8f0; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9db6c4; text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.footer-links a:hover { color: #ff8a8a; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; color: #9db6c4; font-size: 0.9rem; margin-bottom: 12px; }
.footer-contact i { color: #ff8a8a; margin-top: 2px; flex-shrink: 0; }
.footer-contact a { color: #9db6c4; text-decoration: none; transition: color 0.15s; }
.footer-contact a:hover { color: #ff8a8a; }
.footer-text { color: #7f9aab; font-size: 0.88rem; line-height: 1.6; }
.footer-hr { border-color: rgba(255,255,255,0.08); margin: 28px 0 20px; }
.footer-legal { color: #7f9aab; text-decoration: none; font-size: 0.85rem; transition: color 0.15s; }
.footer-legal:hover { color: #ff8a8a; }
.social-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9db6c4;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.social-icon:hover { background: var(--red); color: white; }

/* ---- Alert ---- */
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; border-radius: 12px; }

/* ========================================
   HOME APPLIANCE GRID
   ======================================== */
.puls-appliance-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 16px 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    min-height: 150px;
}
.puls-appliance-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    border-color: var(--blue);
    transform: translateY(-3px);
}
.puls-appliance-icon {
    font-size: 2.6rem;
    color: #374151;
    line-height: 1;
    transition: color 0.2s;
}
.puls-appliance-card:hover .puls-appliance-icon { color: var(--blue); }
.puls-appliance-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}
.puls-appliance-card:hover .puls-appliance-label { color: var(--blue); }

/* ---- Service area strip ---- */
.area-strip { background: var(--tint); border-top: 1px solid #d3e4ee; border-bottom: 1px solid #d3e4ee; }

/* ========================================
   BRAND MARQUEE STRIP
   ======================================== */
.brand-strip {
    background: #fff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    overflow: hidden;
}
.brand-marquee-wrapper { overflow: hidden; white-space: nowrap; position: relative; }
.brand-marquee-wrapper::before,
.brand-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
}
.brand-marquee-wrapper::before { left: 0; background: linear-gradient(to right, #fff 0%, transparent 100%); }
.brand-marquee-wrapper::after  { right: 0; background: linear-gradient(to left, #fff 0%, transparent 100%); }
.brand-marquee {
    display: inline-flex;
    align-items: center;
    gap: 56px;
    padding: 8px 0;
    animation: marquee-scroll 28s linear infinite;
}
.brand-marquee:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #374151;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s;
    cursor: default;
    white-space: nowrap;
}
.brand-logo:hover { opacity: 1; }
.brand-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}
.brand-ge .brand-circle        { background: #003087; color: #fff; font-size: 0.7rem; }
.brand-circle-bosch             { background: #e20015; color: #fff; font-size: 0.72rem; }
.brand-circle-lg                { background: #a50034; color: #fff; font-size: 0.65rem; }
.brand-ge         { font-size: 1rem; }
.brand-sharp      { font-size: 1.15rem; letter-spacing: 0.06em; }
.brand-bosch      { font-size: 1.05rem; letter-spacing: 0.03em; }
.brand-samsung    { font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-lg         { font-size: 1.05rem; }
.brand-frigidaire { font-size: 0.95rem; letter-spacing: 0.04em; }
.brand-kenmore    { font-size: 1.1rem; font-style: italic; font-weight: 800; }
.brand-whirlpool  { font-size: 1rem; }
.brand-maytag     { font-size: 1.05rem; letter-spacing: 0.03em; color: #c41e3a; }
.brand-kitchenaid { font-size: 0.95rem; }
.brand-electrolux { font-size: 0.95rem; }
