/*
Theme Name: Daven Saugus
Description: A complete residential garage door repair website for Daven in Saugus, Massachusetts.
Version: 1.0.2
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: daven-saugus
*/
:root {
    color-scheme: light;
    --ink: #142b36;
    --deep: #0c2935;
    --muted: #475f6a;
    --teal: #006b83;
    --cyan: #9ee9f9;
    --blue-bg: #ecf8fa;
    --line: #d5e4e7;
    --red: #d9242e;
    --white: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    scroll-padding-top: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: #00475a; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #c11d2c; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: .5rem; left: .5rem; background: white; padding: .75rem; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.utility { background: var(--deep); color: #e2f0f3; font-size: .79rem; letter-spacing: .035em; }
.utility .wrap { display: flex; justify-content: space-between; gap: .5rem; padding-block: .55rem; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand img { width: 40px; height: 45px; object-fit: contain; }
.brand strong { display: block; font-size: 1.55rem; font-weight: 820; letter-spacing: -.055em; }
.brand small { display: block; font-size: .67rem; font-weight: 670; margin-top: .4rem; }
.main-nav { display: flex; align-items: center; gap: clamp(.85rem, 2.4vw, 2.3rem); font-size: .91rem; font-weight: 690; }
.main-nav a, .main-nav summary { color: var(--ink); text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav summary:hover, .main-nav [aria-current] { color: var(--teal); text-decoration: underline; }
.services-nav { position: relative; }
.services-nav summary { padding-block: .85rem; cursor: pointer; list-style: none; }
.services-nav summary::-webkit-details-marker { display: none; }
.services-nav summary::after { content: "⌄"; margin-left: .4rem; }
.subnav { position: absolute; z-index: 5; min-width: 205px; top: 100%; left: -.85rem; display: grid; background: white; padding: .45rem; border: 1px solid var(--line); box-shadow: 0 10px 22px #11344118; border-radius: 9px; }
.subnav a { padding: .65rem .7rem; border-radius: 5px; }
.subnav a:hover { background: var(--blue-bg); }
.menu-toggle { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; align-self: flex-start; min-height: 51px; padding: .75rem 1.15rem; border-radius: 7px; background: var(--teal); color: white; text-decoration: none; font-size: .98rem; font-weight: 760; white-space: nowrap; }
.button:hover { background: #005266; color: white; }
.header-call { align-self: center; min-height: 43px; border: 1px solid var(--line); background: var(--white); color: var(--teal); }
.header-call span { font-size: .93rem; }
.hero { background: var(--blue-bg); }
.hero-layout { display: grid; grid-template-columns: minmax(280px, .94fr) minmax(0, 1.06fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 5.1vw, 4.75rem); }
.hero-copy { padding-block: .5rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .73rem; color: #005d72; margin-bottom: 1.3rem; }
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--red); }
.hero h1 { font-size: clamp(2.25rem, 4.33vw, 4.25rem); line-height: 1.025; letter-spacing: -.064em; text-wrap: balance; }
.hero-inner h1 { font-size: clamp(2rem, 4vw, 3.65rem); text-wrap: initial; }
.hero-intro { color: var(--muted); font-size: clamp(1.03rem, 1.5vw, 1.2rem); line-height: 1.65; max-width: 46ch; margin: 1.4rem 0 1.55rem; }
.hero-figure { border-bottom: 5px solid #0086a4; border-radius: 14px 14px 12px 12px; box-shadow: 0 18px 44px #12384524; overflow: hidden; }
.hero-figure img { width: 100%; aspect-ratio: 1.6; height: auto; display: block; object-fit: cover; object-position: center; }
.hero-home .hero-figure img { aspect-ratio: 1.43; object-position: 22% center; }
.hero-text-only { grid-template-columns: minmax(0, 760px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .7rem; padding-block: .7rem; font-size: .84rem; }
.fact-strip { border-bottom: 1px solid var(--line); background: #f8fbfb; }
.fact-strip .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.5rem; padding-block: .95rem; font-size: .87rem; color: var(--muted); }
.fact-strip b { color: var(--ink); }
.content { padding-block: clamp(2.25rem, 5vw, 4rem); }
.content > :where(p, h2, h3, ol, ul) { max-width: 76ch; }
.content:not(.home-content) { max-width: 870px; }
.content p { font-size: 1.04rem; line-height: 1.75; color: var(--muted); margin: .65rem 0 1.25rem; }
.content h2 { margin-top: 1.85rem; font-size: clamp(1.55rem, 2.45vw, 2.25rem); line-height: 1.17; letter-spacing: -.04em; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.18rem 0 .25rem; }
.service-grid { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.service-card { color: var(--ink); border: 1px solid var(--line); padding: 1.15rem 1.3rem 1.25rem; border-radius: 10px; background: #fbfefe; text-decoration: none; position: relative; }
.service-card:hover { border-color: #0087a1; background: var(--blue-bg); }
.service-card h3 { margin: .8rem 0 0; }
.service-card p { margin: .4rem 0 0; font-size: .92rem; padding-right: 1.2rem; }
.service-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 8px; background: var(--blue-bg); color: var(--teal); font-size: 1.25rem; }
.card-arrow { position: absolute; right: .95rem; bottom: .95rem; color: var(--teal); }
.repair-photo { margin: 2.2rem 0; max-width: 768px; }
.repair-photo img { display: block; width: 100%; border-radius: 0 0 8px 8px; }
.repair-photo:not(:has(.photo-labels)) img { border-radius: 8px; }
.photo-labels { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px 8px 0 0; overflow: hidden; }
.photo-labels span { padding: .5rem .75rem; background: var(--deep); color: white; font-size: .82rem; font-weight: 750; }
.photo-labels span + span { background: var(--teal); }
.repair-photo figcaption { font-size: .83rem; color: var(--muted); margin-top: .45rem; }
.call-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 12px; padding: clamp(1rem, 3.6vw, 2.4rem); margin-bottom: 1.2rem; }
.call-card { background: var(--blue-bg); }
.call-card h2, .business-map h2 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); letter-spacing: -.032em; }
.call-card p { margin-top: .3rem; }
.call-card .button { align-self: center; }
.business-map { margin: 2rem 0 1.2rem; }
.business-map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 440px); margin: .75rem 0; background: var(--blue-bg); border: 1px solid var(--line); border-radius: 12px; }
.business-map > a { font-size: .9rem; font-weight: 690; }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: white; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr .7fr; gap: 2rem; padding-block: 2.25rem; }
.footer-grid h2 { font-size: 1rem; margin-bottom: .55rem; }
.footer-grid p { line-height: 1.65; margin-bottom: .6rem; color: var(--muted); }
.footer-brand img { width: min(193px, 100%); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.footer-call { font-weight: 740; }
.copyright { font-size: .81rem; color: var(--muted); padding-block: 1rem 1.4rem; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
    .wrap { width: calc(100% - 3rem); }
    .header-call { display: none; }
}
@media (max-width: 710px) {
    .wrap { width: calc(100% - 2rem); }
    .header-inner { min-height: 69px; position: relative; flex-wrap: wrap; column-gap: .5rem; row-gap: 0; padding-block: .65rem; }
    .brand img { width: 33px; height: 37px; }
    .brand strong { font-size: 1.32rem; }
    .brand small { font-size: .62rem; }
    .has-js .menu-toggle { display: inline-flex; gap: .45rem; align-items: center; background: white; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .65rem; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 700; }
    .main-nav { flex: 1 0 100%; align-items: stretch; flex-direction: column; gap: 0; padding-top: .75rem; }
    .has-js .main-nav:not(.is-open) { display: none; }
    .main-nav > a, .services-nav summary { display: block; padding: .65rem .3rem; }
    .subnav { position: static; border: 0; box-shadow: none; min-width: 0; margin-left: .8rem; border-left: 2px solid var(--line); }
    .hero-layout { grid-template-columns: 1fr; gap: 1.25rem; }
    .hero h1 { max-width: 16ch; }
    .hero-home .hero-figure img { aspect-ratio: 1.65; }
    .hero-copy { padding: 0; }
    .eyebrow { margin-bottom: .85rem; }
    .hero-intro { margin-block: .95rem 1.15rem; }
    .fact-strip .wrap { font-size: .78rem; gap: .4rem 1.15rem; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card { padding: .85rem; }
    .service-card h3 { font-size: 1rem; }
    .service-card p { font-size: .86rem; line-height: 1.5; }
    .call-card { flex-direction: column; align-items: flex-start; }
    .call-card .button { align-self: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand img { width: 150px; }
}
@media (max-width: 350px) {
    .service-grid { grid-template-columns: 1fr; }
}
