/*
Theme Name: Zachary Salem
Description: Residential garage door repair website for Zachary Garage Door Repair in Salem, Massachusetts.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: zachary-salem
*/
:root {
    --navy: #22273d;
    --deep: #171d30;
    --yellow: #ffdf78;
    --ink: #22273a;
    --body: #44495a;
    --paper: #fbfaf6;
    --line: #ddded9;
    --blue: #e8eef2;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.62 system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.035em; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { color: var(--body); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #91711a; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .bottom-call :focus-visible { outline-color: var(--yellow); }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .6rem auto auto .6rem; transform: translateY(-200%); background: var(--yellow); color: var(--deep); padding: .7rem; }
.skip:focus { transform: none; }
.site-header { background: var(--navy); color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 1.2rem; }
.brand { display: inline-flex; color: var(--yellow); gap: .72rem; align-items: center; font: bold 1.02rem/1.18 Georgia, serif; letter-spacing: .011em; text-decoration: none; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.25vw, 2rem); font-size: .92rem; font-weight: 650; }
.site-nav > a, .site-nav summary { padding: .65rem 0; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"], .menu-services summary:hover { color: var(--yellow); }
.menu-services { position: relative; }
.menu-services summary { cursor: pointer; list-style: none; white-space: nowrap; }
.menu-services summary::-webkit-details-marker { display: none; }
.menu-services summary span { margin-left: .2rem; color: var(--yellow); }
.menu-services ul { z-index: 4; position: absolute; top: calc(100% + .1rem); left: 0; width: 17.5rem; margin: 0; padding: .45rem; list-style: none; color: var(--ink); background: var(--paper); box-shadow: 0 .65rem 1.7rem #11172942; border: 1px solid var(--line); border-radius: 7px; }
.menu-services li a { display: block; padding: .55rem .65rem; border-radius: 4px; }
.menu-services li a:hover, .menu-services li a[aria-current="page"] { color: var(--ink); background: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: var(--yellow); color: var(--deep); padding: .78rem 1.24rem; border: 1px solid transparent; border-radius: 5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.button:hover { background: #ffea9d; text-decoration: none; }
.header-call { font-size: .9rem; }
.hero { background: var(--navy); color: white; }
.hero-grid { display: grid; grid-template-columns: 1fr .95fr; align-items: stretch; gap: clamp(1.1rem, 4vw, 4rem); }
.hero-copy { padding: clamp(3rem, 6vw, 5.3rem) 0; align-self: center; }
.home-hero { border-top: 1px solid #ffffff28; }
.hero-photo { background: var(--deep); min-height: 270px; position: relative; overflow: hidden; border-radius: 8px 8px 0 0; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo-roller img { object-position: 19% center; }
.hero-photo-track img { object-position: 76% center; }
.hero-photo-contact img { object-position: 42% center; }
.hero h1 { font-size: clamp(2.18rem, 5.25vw, 4.66rem); font-weight: 790; letter-spacing: -.065em; }
.inner-hero h1 { font-size: clamp(2rem, 4.75vw, 3.9rem); }
.hero p { color: #edf1f6; }
.hero .eyebrow { color: var(--yellow); font-size: .74rem; font-weight: 750; letter-spacing: .15em; margin-bottom: 1.14rem; }
.tagline { margin-top: 1.23rem; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.05rem; margin-top: 1.65rem; }
.hero-actions span { font-size: .9rem; color: #edf1f6; }
.crumb { font-size: .89rem; color: var(--body); padding-block: .8rem; }
.crumb span { margin-inline: .4rem; }
.services { padding-block: clamp(2.5rem, 5vw, 4.6rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-heading a { font-weight: 700; font-size: .93rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 6px; overflow: hidden; }
.service-card { padding: clamp(1.05rem, 2.4vw, 1.85rem); background: var(--paper); text-decoration: none; }
.service-card:hover { background: var(--blue); }
.service-card:focus-visible { outline-offset: -4px; }
.service-card h3 { display: flex; justify-content: space-between; gap: .4rem; }
.service-card h3 span { font-weight: 400; }
.service-card p { margin-top: .62rem; font-size: .91rem; }
.comparison { background: var(--blue); padding: 2.75rem 0 2.5rem; }
.comparison h2 + p { margin: .6rem 0 1.2rem; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comparison figure { background: var(--paper); border: 1px solid #d6dce0; border-radius: 7px; overflow: hidden; }
.comparison img { aspect-ratio: 2.15; width: 100%; object-fit: cover; object-position: center 75%; }
figcaption { padding: .65rem 1rem; font-size: .88rem; font-weight: 700; }
.image-note { font-size: .81rem; margin-top: .7rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); gap: clamp(2.2rem, 7vw, 6.7rem); padding-block: clamp(2.35rem, 6vw, 5rem); align-items: start; }
.reading { max-width: 72ch; }
.reading p { margin-bottom: 1.1rem; }
.reading .intro { color: var(--ink); font-size: 1.14rem; line-height: 1.62; }
.reading h2 { margin: 1.85rem 0 .67rem; font-size: clamp(1.42rem, 3vw, 1.92rem); text-wrap: initial; }
.reading h3 { margin: 1.16rem 0 .47rem; }
.reading p:last-child { margin-bottom: 0; }
.generic { padding-block: 3rem; min-height: 48vh; }
.generic h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3rem); }
.aside img { width: 100%; aspect-ratio: 1.33; object-fit: cover; border-radius: 7px; margin-bottom: 1rem; }
.aside-card { border-radius: 7px; border: 1px solid var(--line); padding: 1.3rem; background: #fff; }
.aside-card h2 { font-size: 1.38rem; margin-bottom: .6rem; }
.aside-card p, .aside-card address { margin-bottom: .68rem; }
.aside-card address a { overflow-wrap: anywhere; }
.aside-card .aside-hours { margin: .6rem 0 0; font-size: .85rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding-block: .75rem; }
.faq p { padding: 0 0 1rem; }
.related { margin-bottom: 2.75rem; }
.related h2 { margin-bottom: 1rem; }
.bottom-call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(1.25rem, 4vw, 2.3rem); border-radius: 7px; }
.bottom-call { background: var(--navy); color: white; margin-bottom: 3rem; }
.bottom-call h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.map-wrap { margin-bottom: clamp(2rem, 5vw, 4rem); }
.business-map { display: block; width: 100%; height: clamp(320px, 43vw, 410px); background: var(--blue); border: 1px solid var(--line); border-radius: 7px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.22fr 1fr .44fr; gap: 1.4rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { border-radius: 5px; }
.footer-brand p, .site-footer address { font-size: .91rem; }
address { font-style: normal; }
.footer-links { display: grid; gap: .23rem; font-weight: 650; }
@media (max-width: 850px) {
    .wrap { width: calc(100% - 38px); }
    .header-inner { flex-wrap: wrap; padding-block: .7rem .4rem; gap: .35rem .7rem; }
    .site-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: .45rem; }
    .header-call { margin-left: auto; }
    .hero-copy { padding-block: 2.6rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 590px) {
    .wrap { width: calc(100% - 30px); }
    .site-nav { font-size: .83rem; }
    .menu-services ul { left: -2.4rem; width: min(17.5rem, calc(100vw - 44px)); }
    .hero-grid, .detail-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 0; }
    .hero-copy { padding: 2.4rem 0 1.6rem; }
    .hero-photo { width: 100%; height: clamp(205px, 63vw, 325px); min-height: 0; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .section-heading { flex-direction: column; gap: .4rem; }
    .comparison-grid { gap: .5rem; }
    .comparison img { aspect-ratio: 1.35; }
    figcaption { font-size: .75rem; padding: .55rem; }
    .footer-links { grid-auto-flow: column; justify-content: start; gap: .9rem; }
}

@media (max-width: 360px) {
    .site-nav { font-size: .76rem; }
    .brand { font-size: .9rem; gap: .4rem; }
    .brand img { width: 40px; }
    .header-call { padding-inline: .55rem; font-size: .81rem; }
}
