/*
Theme Name: Brett Garage Door Company
Description: Residential garage door repair website for Desert Hot Springs, California.
Version: 1.0.6
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: brett-garage-door
*/
:root {
    --ink: #102b3c;
    --navy: #09283b;
    --copy: #29485a;
    --brand: #279bd6;
    --link: #09648e;
    --sky: #eaf6fb;
    --paper: #fff;
    --rule: #ccdde5;
    --wrap: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 1rem/1.63 system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, summary { font: inherit; }
:focus-visible { outline: 3px solid #137eb0; outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.035em; }
p { margin: 0; }
figure { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 6.5vw)); margin-inline: auto; }
.skip { position: absolute; z-index: 99; left: 1rem; top: -5rem; padding: .6rem 1rem; background: white; }
.skip:focus { top: .5rem; }
.topline { background: var(--navy); color: white; font-size: .84rem; }
.topline-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 .9rem; padding-block: .43rem; }
.topline a { color: white; }
.topline-divider { color: #9fc7db; margin-inline: .5rem; }
.site-header { border-bottom: 1px solid var(--rule); position: relative; z-index: 3; background: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; min-height: 88px; }
.brand img { width: 166px; border-radius: 3px; }
.site-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.6vw, 2.25rem); }
.site-nav a, .site-nav summary { color: var(--ink); font-weight: 680; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"], .service-menu[open] summary { color: var(--link); text-decoration: underline; }
.service-menu { position: relative; }
.service-menu summary { cursor: pointer; list-style: none; }
.service-menu summary::-webkit-details-marker { display: none; }
.service-menu summary::after { content: "⌄"; padding-left: .4rem; }
.service-items { position: absolute; width: max-content; min-width: 205px; top: calc(100% + .85rem); left: -.75rem; display: grid; background: white; border: 1px solid var(--rule); padding: .5rem; box-shadow: 0 10px 24px #102b3c1a; }
.service-items a { padding: .5rem .8rem; }
.nav-toggle { display: none; }
.button {
    display: inline-flex;
    justify-content: center;
    gap: .6rem;
    align-items: center;
    background: #91d6f7;
    color: var(--navy);
    text-decoration: none;
    padding: .75rem 1.25rem;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 760;
    line-height: 1.28;
}
.button:hover { background: #b4e3fa; }
.button-dark, .header-call { color: white; background: var(--navy); }
.button-dark:hover, .header-call:hover { color: white; background: #164b66; }
.eyebrow { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; color: var(--link); }
.home-hero { background: var(--sky); border-bottom: 1px solid var(--rule); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: stretch; gap: clamp(1.75rem, 4vw, 4rem); }
.home-hero .hero-layout { min-height: 460px; }
.hero-copy { align-self: center; padding-block: clamp(2rem, 5vw, 4.4rem); }
h1 { font-size: clamp(2.6rem, 4.5vw, 4.25rem); letter-spacing: -.062em; line-height: 1.02; margin-top: .65rem; text-wrap: balance; }
.hero-lead { color: var(--copy); margin: 1rem 0 1.55rem; font-size: clamp(1rem, 1.5vw, 1.17rem); max-width: 55ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.35rem; }
.home-hero .hero-photo { overflow: hidden; position: relative; width: 100%; min-height: 320px; }
.home-hero .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.inline-link { font-weight: 680; }
.section-heading h2, .closing h2 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); }
.section-heading p, .closing p { margin-top: .55rem; color: var(--copy); }
.service-section { padding-block: clamp(2.5rem, 5vw, 4.7rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.service-card { display: block; padding: 1.25rem 1.3rem; min-height: 115px; text-decoration: none; background: #f7fbfd; color: var(--ink); border: 1px solid var(--rule); border-radius: 5px; }
.service-card:hover { border-color: #2c93bb; background: var(--sky); }
.service-card h3 { display: flex; justify-content: space-between; gap: .5rem; font-size: 1.24rem; margin-bottom: .45rem; }
.service-card span, .related span { color: var(--link); }
.service-card p { color: var(--copy); font-size: .94rem; }
.compare-band { background: var(--navy); color: white; }
.compare-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; padding-block: clamp(2rem, 5vw, 4.25rem); }
.compare-layout .section-heading p { color: #d6eaf4; margin: .9rem 0 1rem; }
.compare-layout a { color: #a9dcf6; }
.compare-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.compare-photos img { width: 100%; aspect-ratio: 1.33; object-fit: cover; object-position: center 69%; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; padding-block: .75rem; gap: .5rem; font-size: .87rem; }
.inner-hero { background: var(--sky); border-block: 1px solid var(--rule); }
.inner-hero .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 375px; }
.inner-hero .no-photo { grid-template-columns: 1fr; min-height: 300px; }
.inner-hero h1 { max-width: 19ch; }
.inner-hero .hero-photo { position: relative; min-height: 320px; }
.inner-hero .hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 41%; }
.body-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 345px); padding-block: clamp(2.5rem, 6vw, 5.4rem); gap: clamp(1.5rem, 6vw, 6rem); align-items: start; }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 2.1rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.4rem 0 .7rem; }
.prose p { margin-block: 0 1rem; color: var(--copy); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: .75rem 0; font-weight: 710; }
.faq p { padding-left: 1rem; }
.sidebar { display: grid; gap: 1.25rem; }
.sidebar h2 { font-size: 1.3rem; }
.detail-photo img { width: 100%; aspect-ratio: 1.22; object-fit: cover; }
.sidebar-card { background: var(--sky); border: 1px solid var(--rule); padding: 1.3rem; border-radius: 4px; }
.sidebar-card p { margin: .75rem 0; overflow-wrap: anywhere; }
.sidebar-card p:last-child { margin-bottom: 0; }
.related ul, .site-footer ul { padding: 0; margin: .6rem 0 0; list-style: none; }
.related li { border-bottom: 1px solid var(--rule); }
.related a { display: flex; align-items: center; justify-content: space-between; padding-block: .46rem; }
.closing { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.4rem; background: var(--sky); border: 1px solid var(--rule); border-left: 5px solid var(--brand); padding: clamp(1.35rem, 4vw, 2.8rem); margin-bottom: clamp(2rem, 5vw, 4.7rem); }
.business-map { margin-bottom: clamp(2rem, 5vw, 4.7rem); }
.business-map iframe { display: block; width: 100%; height: clamp(300px, 34vw, 420px); border: 0; }
.site-footer { background: white; border-top: 1px solid var(--rule); color: var(--copy); }
.footer-grid { display: grid; grid-template-columns: 1fr .8fr 1.12fr; gap: 1.5rem; padding-block: 2rem; }
.footer-grid h2 { font-size: 1.1rem; color: var(--ink); margin-bottom: .65rem; }
.footer-grid p { margin-bottom: .65rem; overflow-wrap: anywhere; }
.footer-brand img { width: 155px; margin-bottom: .7rem; border-radius: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; align-items: baseline; border-top: 1px solid var(--rule); padding-block: .9rem; font-size: .85rem; }
.fallback { min-height: 42vh; padding-block: 3rem; }
.fallback article + article { margin-top: 2rem; }
.fallback p { margin-top: 1rem; }
@media (max-width: 950px) {
    .header-call { display: none; }
    .site-nav { gap: 1.2rem; }
    .hero-layout { gap: 1.3rem; }
}
@media (max-width: 700px) {
    .wrap { width: calc(100% - 2rem); }
    .topline-inner { font-size: .77rem; }
    .topline-divider, .topline .text-phone { display: none; }
    .header-inner { min-height: 71px; gap: .7rem; }
    .brand img { width: 128px; }
    .nav-toggle { display: inline-flex; align-items: center; gap: .45rem; color: var(--navy); background: var(--sky); border: 1px solid var(--rule); padding: .4rem .7rem; min-height: 44px; border-radius: 4px; cursor: pointer; font-weight: 700; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: white; border-bottom: 1px solid var(--rule); box-shadow: 0 10px 15px #102b3c1a; padding: .6rem 1rem; }
    .site-nav.is-open { display: grid; gap: 0; }
    .site-nav > a, .site-nav summary { padding: .6rem .4rem; }
    .service-items { position: static; padding: 0 .6rem .35rem; border: 0; box-shadow: none; }
    .service-items a { padding: .45rem .65rem; }
    .hero-layout, .inner-hero .hero-layout, .compare-layout, .body-layout { grid-template-columns: 1fr; }
    .hero-layout { gap: 0; }
    .hero-copy { padding-block: 1.8rem; }
    .hero-photo, .home-hero .hero-photo, .inner-hero .hero-photo { min-height: 0; width: auto; margin: 0 -1rem; aspect-ratio: 1.68; }
    .inner-hero .hero-photo img { object-position: center 38%; }
    .home-hero .hero-photo img { object-position: center 49%; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card { padding: .9rem; }
    .compare-layout { gap: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 365px) {
    h1 { font-size: 2.2rem; }
    .service-grid { grid-template-columns: 1fr; }
}

.inner-hero .hero-photo:is(.spring-photo, .roller-photo) { min-height: clamp(360px, 43vw, 560px); }
.inner-hero .hero-photo:is(.spring-photo, .roller-photo) img { object-position: center 72%; }
@media (max-width: 700px) {
    .inner-hero .hero-photo:is(.spring-photo, .roller-photo) { min-height: 0; aspect-ratio: 1.04; }
}
