/*
Theme Name: AC Garage Door Repair Los Altos
Description: Residential garage door service website for Los Altos and nearby Peninsula communities.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ac-los-altos
*/
:root {
    --ink: #001a2b;
    --muted: #435667;
    --paper: #fff;
    --warm: #eef7fa;
    --line: #ccdde5;
    --sand: #a6e8f5;
    --shell: min(1240px, calc(100% - 100px));
    color: var(--ink);
    background: var(--paper);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-synthesis: none;
    line-height: 1.65;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #b72654; outline-offset: 4px; }
.wrap { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(44px, 6vw, 88px); }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 4.65vw, 5.15rem); font-weight: 760; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.9rem); font-weight: 720; }
h3 { font-size: 1.3rem; font-weight: 710; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-200%); background: white; padding: .6rem; z-index: 10; }
.skip:focus { transform: none; }

.topbar { background: var(--sand); font-size: .77rem; font-weight: 700; }
.topbar .wrap { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.site-header { color: white; background: var(--ink); }
.head-inner { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; gap: 10px; align-items: center; flex: 0 0 auto; text-decoration: none; line-height: 1.12; }
.identity img { width: 64px; }
.identity strong, .identity small { display: block; }
.identity strong { letter-spacing: .16em; font-size: 1.22rem; }
.identity small { font-size: .76rem; color: #e1e0dd; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.1vw, 29px); font-weight: 650; font-size: .87rem; }
.main-nav a, .main-nav summary { text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav summary:hover, .main-nav [aria-current="page"], .main-nav .active { color: var(--sand); }
.submenu { position: relative; }
.submenu summary { list-style: none; cursor: pointer; }
.submenu summary::-webkit-details-marker { display: none; }
.submenu summary::after { content: ""; display: inline-block; margin: 0 1px 3px 7px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.submenu[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.submenu-items { position: absolute; z-index: 5; top: calc(100% + 12px); left: -16px; display: grid; min-width: 190px; border: 1px solid #50535a; background: var(--ink); padding: 8px; box-shadow: 0 10px 26px #0002; }
.submenu-items a { display: block; padding: 8px; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .62rem 1.13rem; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 4px; font-size: .93rem; font-weight: 740; text-decoration: none; white-space: nowrap; }
.button:hover { background: #343b49; }
.call-header { border-color: #7d7f86; }
.button-main { min-height: 51px; padding-inline: 1.3rem; }
.quiet-link { font-size: .92rem; font-weight: 730; display: inline-flex; gap: .6rem; align-items: center; }
.quiet-link span { text-decoration: none; }
.quiet-link:hover { text-decoration-thickness: 2px; }

.hero { background: var(--warm); }
.hero-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.hero-copy { padding: clamp(40px, 5vw, 74px) clamp(30px, 5vw, 78px) clamp(40px, 5vw, 74px) 0; }
.hero-home .hero-layout { width: 100%; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
.hero-home .hero-copy { padding-left: max(50px, calc((100vw - 1240px) / 2)); padding-right: clamp(20px, 4.5vw, 70px); }
.eyebrow { margin-bottom: 1rem; color: #176172; font-size: .73rem; font-weight: 790; letter-spacing: .13em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); max-width: 55ch; margin-top: 1.3rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.45rem; margin-top: 1.55rem; }
.hero-photo { position: relative; min-width: 0; align-self: stretch; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }
.hero-home .hero-photo { min-height: clamp(350px, 42vw, 590px); }
.hero-inner .hero-copy { padding-block: clamp(34px, 3.4vw, 51px); }
.hero-inner h1 { font-size: clamp(2.2rem, 3.65vw, 4.05rem); }
.hero-inner .lede { font-size: 1.06rem; }
.hero-inner .hero-photo { min-height: 345px; }
.hero-inner .hero-photo img { object-position: 50% 31%; }
.hero-contact .hero-layout { display: block; }
.hero-contact h1 { max-width: 19ch; }
.breadcrumbs { padding-block: 12px; font-size: .83rem; color: var(--muted); }
.breadcrumbs nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.breadcrumbs a { font-weight: 650; }

.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-top p { max-width: 36ch; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 141px; padding: 22px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.service-card:hover, .service-card:focus-within { background: var(--warm); }
.service-card h3 a { display: flex; gap: .6rem; justify-content: space-between; align-items: start; text-decoration: none; }
.service-card h3 a::before { content: ""; position: absolute; inset: 0; }
.service-card h3 span { color: #096378; font-size: 1.06em; }
.service-card p { margin-top: .62rem; color: var(--muted); max-width: 37ch; font-size: .92rem; }
.contrast { background: var(--warm); }
.compare-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 6%; align-items: center; }
.compare-layout p:not(.eyebrow) { margin-top: 1.2rem; max-width: 43ch; color: var(--muted); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.compare figure { position: relative; }
.compare img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.compare figcaption { position: absolute; bottom: 12px; left: 12px; padding: 4px 11px; border-radius: 3px; color: white; background: var(--ink); font-weight: 720; font-size: .76rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 320px); gap: clamp(28px, 7vw, 110px); align-items: start; }
.prose { font-size: 1.035rem; }
.prose p { margin-block: .8rem 1.45rem; max-width: 68ch; color: var(--muted); }
.prose h2 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); margin-top: 2.15rem; text-wrap: pretty; }
.prose h2:first-child { margin-top: 0; }
.sidebar { display: grid; gap: 1rem; position: sticky; top: 22px; min-width: 0; }
.aside-card { padding: 19px 21px; background: var(--warm); overflow-wrap: anywhere; }
.aside-card h2 { font-size: 1.28rem; }
.aside-card p { margin-block: .55rem .7rem; color: var(--muted); }
.aside-card ul { margin-block: .5rem; padding-left: 1.15rem; }
.aside-card > a:not(.button) { font-weight: 700; }
.detail-photo img { width: 100%; aspect-ratio: 1.44; object-fit: cover; object-position: center 42%; }
.detail-photo figcaption { padding: .6rem .8rem; background: var(--warm); color: var(--muted); font-size: .85rem; }
.faq { margin-top: 2.8rem; }
.faq h2 { margin-bottom: 1rem; }
.faq details { border-top: solid 1px var(--line); padding: .75rem 0; }
.faq details:last-child { border-bottom: solid 1px var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: .55rem .9rem 0 1.15rem; }
.area-list { padding-bottom: 0; }
.area-list ul { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.area-list li { background: var(--warm); padding: .45rem .8rem; border: 1px solid var(--line); font-weight: 650; }
.call-band, .map-band { background: var(--sand); }
.call-band .wrap { padding-block: 27px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.call-band h2 { font-size: clamp(1.3rem, 2.2vw, 2rem); }
.map-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 6%; padding-block: 40px; }
.map-layout .eyebrow { color: #184759; }
.map-layout p:not(.eyebrow) { margin-block: .9rem 1rem; max-width: 41ch; }
.map-layout iframe { width: 100%; height: 300px; display: block; border: 0; background: var(--warm); }
.site-footer { color: #fff; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .7fr; gap: 24px; padding-block: 35px 27px; }
.footer-grid p { color: #e1e0dd; font-size: .92rem; margin-top: .35rem; overflow-wrap: anywhere; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { width: 75px; flex: 0 0 75px; }
.legal { display: flex; justify-content: space-between; gap: .8rem; border-top: 1px solid #4b4e55; padding-block: 13px; color: #e1e0dd; font-size: .78rem; }

@media (max-width: 1000px) {
    :root { --shell: calc(100% - 60px); }
    .head-inner { column-gap: 15px; }
    .call-header { display: none; }
    .hero-home .hero-copy { padding-left: 30px; }
}
@media (max-width: 720px) {
    :root { --shell: calc(100% - 34px); }
    .head-inner { flex-wrap: wrap; min-height: 69px; padding-block: 5px; }
    .identity img { width: 55px; }
    .menu-toggle:not([hidden]) { display: inline-flex; padding: .42rem .75rem; border: 1px solid #7d7f86; background: transparent; color: #fff; border-radius: 3px; cursor: pointer; }
    .main-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
    .main-nav.has-toggle:not(.is-open) { display: none; }
    .main-nav > a, .main-nav summary { padding: 8px 0; }
    .submenu-items { position: static; box-shadow: none; border: 0; padding: 0 0 .35rem .7rem; }
    .hero-layout, .hero-home .hero-layout, .article-layout, .compare-layout, .map-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .hero-layout, .hero-home .hero-layout { width: var(--shell); gap: 0; }
    .hero-copy, .hero-home .hero-copy, .hero-inner .hero-copy { padding: 32px 0 26px; }
    .hero-photo, .hero-home .hero-photo, .hero-inner .hero-photo { aspect-ratio: 1.28; max-height: 380px; min-height: 0; }
    .hero-photo img, .hero-inner .hero-photo img { object-position: center 32%; }
    .hero:not(.hero-contact) { padding-bottom: 17px; }
    .section-top { display: block; }
    .section-top p { margin-top: .6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { padding: 16px 14px; min-height: auto; }
    .service-card h3 { font-size: 1.12rem; }
    .sidebar { position: static; }
    .detail-photo img { max-height: 310px; }
    .map-layout { padding-block: 29px; }
    .map-layout iframe { height: 260px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 365px) {
    .topbar { font-size: .67rem; }
    .services-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Home and service entry points */
.topbar { border-bottom: 3px solid #f75d85; }
.identity img { width: 70px; border-radius: 7px; }
.identity strong { letter-spacing: .09em; }
.hero-home {
    color: white;
    background: linear-gradient(116deg, #062637, #032031 70%);
    border-bottom: 4px solid #f75d85;
}
.hero-home .hero-layout {
    width: var(--shell);
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
    gap: clamp(22px, 4vw, 66px);
    padding-block: clamp(28px, 4vw, 58px);
}
.hero-home .hero-copy { padding: 15px 0; }
.hero-home h1 { font-size: clamp(2.5rem, 5.1vw, 5.1rem); }
.hero-home .eyebrow { color: var(--sand); }
.hero-home .lede { color: #dceef5; }
.hero-home .hero-photo {
    min-height: clamp(340px, 35vw, 505px);
    border-radius: 12px 44px 12px 12px;
    overflow: hidden;
}
.hero-home .hero-photo img { object-position: center 35%; }
.hero-home .button-main { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.hero-home .button-main:hover { background: #e1faff; }
.hero-inner .hero-photo { border-left: 4px solid #f75d85; }
.service-index { background: white; }
.index-layout { display: grid; grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr); gap: clamp(28px, 5vw, 80px); }
.index-layout .section-top { display: block; margin-bottom: 0; }
.index-layout .section-top p { margin-top: 1rem; }
.index-layout .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 0; gap: 10px; }
.service-card { border: 1px solid var(--line); border-radius: 8px; min-height: 120px; }
.service-card:hover, .service-card:focus-within { border-color: #287e92; }
.map-band { background: #0b3042; color: #fff; }
.map-layout .eyebrow { color: var(--sand); }
.map-layout iframe { border-radius: 10px; }
.compare img { border-radius: 8px; }
@media (max-width: 720px) {
    .identity img { width: 54px; }
    .hero-home .hero-layout, .index-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-home .hero-layout { gap: 19px; padding-block: 30px 8px; }
    .hero-home .hero-copy { padding: 0; }
    .hero-home .hero-photo { min-height: 0; border-radius: 8px 25px 8px 8px; }
    .hero-home h1 { font-size: clamp(2.26rem, 8.5vw, 3.8rem); }
    .service-card { min-height: auto; }
}

@media (max-width: 390px) {
    .index-layout .services-grid { grid-template-columns: minmax(0, 1fr); }
}
