/*
Theme Name: Anderson Garage Door Service
Description: A residential garage door service website for Anderson in Saratoga, California.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: anderson-saratoga
*/
:root {
    --ink: #172c38;
    --muted: #455b67;
    --paper: #f8fafb;
    --sky: #eaf5f9;
    --sky-deep: #cce9f5;
    --cyan: #006e9c;
    --red: #a81c1e;
    --edge: #cfdee4;
    --navy: #142d3d;
    --width: 1220px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--cyan); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #00719f; outline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
figure, address { margin: 0; }
address { font-style: normal; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.12; margin-block: 0 .55em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4.6rem); line-height: .99; letter-spacing: -.065em; }
h2 { font-size: clamp(1.48rem, 3.2vw, 2.36rem); }
h3 { font-size: 1.2rem; }
.wrap { width: min(var(--width), calc(100% - 8vw)); margin-inline: auto; }
.skip { position: absolute; inset: 5px auto auto 5px; transform: translateY(-200%); background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { transform: none; }
.site-header { background: #fff; position: relative; z-index: 2; }
.utility { background: var(--navy); color: #fff; font-size: .79rem; }
.utility-inner { display: flex; gap: .5rem; justify-content: space-between; align-items: center; min-height: 33px; }
.nav-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3vw, 38px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: inherit; font-size: 1.28rem; font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.brand img { width: 35px; height: 52px; object-fit: contain; }
.brand small { display: block; margin-top: .16rem; font-size: .75rem; font-weight: 650; letter-spacing: .015em; }
#main-nav { display: flex; align-items: center; gap: clamp(11px, 2.5vw, 30px); }
#main-nav a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 650; white-space: nowrap; }
#main-nav a[aria-current="page"], #main-nav a:hover { color: var(--cyan); text-decoration: underline; }
.nav-services { position: relative; display: flex; align-items: center; gap: 2px; }
.dropdown summary { display: grid; place-items: center; width: 30px; height: 40px; cursor: pointer; list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary span { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-block-start: -4px; }
.dropdown[open] summary span { transform: rotate(225deg); margin-block-start: 3px; }
.submenu { position: absolute; min-width: 195px; background: #fff; border: 1px solid var(--edge); border-radius: 8px; padding: 8px; top: 100%; left: -8px; z-index: 3; box-shadow: 0 14px 26px #152c3d19; }
.submenu a { display: block; padding: 8px 12px; border-radius: 5px; }
.submenu a:hover { background: var(--sky); }
.nav-toggle { display: none; color: var(--ink); border: 1px solid var(--edge); border-radius: 5px; font: inherit; font-weight: 700; padding: 6px 13px; background: #fff; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: .74em 1.18em; background: var(--navy); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 750; white-space: nowrap; }
.button:hover { background: #214557; }
.phone-button { background: var(--red); }
.phone-button:hover { background: #8d1518; }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-block: .86rem; font-size: .86rem; color: var(--muted); }
.crumbs a { color: inherit; }
.hero { background: var(--sky); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(28px, 5vw, 68px); align-items: center; padding-block: clamp(28px, 5vw, 65px); }
.hero-copy > p:not(.eyebrow) { color: var(--muted); font-size: clamp(1.02rem, 1.45vw, 1.15rem); max-width: 53ch; margin-block: 0 1.45em; }
.eyebrow { margin: 0 0 1rem; color: #005779; font-size: .79rem; line-height: 1.35; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; align-items: center; }
.text-link { font-weight: 700; }
.hero-picture { overflow: hidden; border-radius: 12px 32px 12px 12px; background: var(--sky-deep); }
.hero-picture img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 36%; }
.hero-home .hero-picture img { aspect-ratio: 1.39; object-position: center 30%; }
.hero-inner .hero-grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.hero-inner .hero-picture img { aspect-ratio: 1.46; }
.hero-inner h1 { font-size: clamp(2.15rem, 4.75vw, 4rem); }
.services-section { margin-block: clamp(28px, 5vw, 68px); }
.services-section > h2 { margin-block-end: .72em; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.service-card { position: relative; display: block; background: white; border: 1px solid var(--edge); padding: 18px 36px 18px 16px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.service-card:hover { border-color: var(--cyan); background: #eef8fc; }
.service-card h3 { margin-block: 0 .2rem; }
.service-card span { color: var(--muted); font-size: .91rem; }
.service-card .card-arrow { position: absolute; top: 23px; right: 19px; width: 9px; height: 9px; border: solid var(--cyan); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.detail-layout, .contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 5.5vw, 75px); align-items: start; padding-block: clamp(30px, 5vw, 62px); }
.services-section + .detail-layout { padding-block-start: 5px; }
.prose p { font-size: 1.04rem; max-width: 70ch; margin-block: 0 1.16em; }
.prose h2 { margin-block-start: 1.25em; font-size: clamp(1.42rem, 3vw, 2.06rem); }
.prose h3 { margin-block-start: 1.1em; }
.prose > :first-child { margin-block-start: 0; }
.prose > :last-child { margin-block-end: 0; }
.side-content { height: 100%; }
.comparison, .side-card, .contact-card { border-radius: 10px; background: #fff; border: 1px solid var(--edge); padding: 20px; }
.comparison h2, .side-card h2, .contact-card h2 { font-size: clamp(1.26rem, 2.3vw, 1.7rem); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.comparison-grid img, .detail-picture img { width: 100%; object-fit: cover; border-radius: 7px; }
.comparison-grid figcaption { color: var(--ink); margin-top: .35em; font-size: .88rem; font-weight: 750; }
.comparison p { margin-bottom: 0; font-size: .88rem; color: var(--muted); }
.side-card { background: var(--sky); margin-block-start: 16px; }
.side-card .text-link, .contact-card .text-link { display: block; margin-top: .85em; overflow-wrap: anywhere; }
.sticky { position: sticky; top: 20px; }
.area-list { padding-inline-start: 1.3em; margin-bottom: 0; }
.contact-grid { align-items: center; }
.contact-grid h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.map-section { background: var(--sky); border-top: 1px solid var(--edge); padding-block: clamp(25px, 4.5vw, 55px); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 26px; align-items: center; }
.map-grid .text-link { display: inline-block; margin-block-start: 12px; }
.map-grid iframe { border: 1px solid var(--edge); border-radius: 10px; width: 100%; background-color: var(--paper); }
.site-footer { background: var(--navy); color: #fff; padding-top: 37px; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #80d8fb; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 25px; padding-block-end: 26px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: start; gap: .28rem; min-width: 0; overflow-wrap: anywhere; }
.footer-grid .brand { margin-bottom: .4em; }
.footer-grid address, .footer-grid a:not(.brand), .footer-grid span:not(.brand span) { font-size: .92rem; }
.copyright { padding-block: 12px; border-top: 1px solid #466174; font-size: .82rem; }
.standalone { padding-block: 55px; }
@media (max-width: 900px) {
    .nav-row { min-height: 65px; gap: 12px; }
    .header-call { font-size: .86rem; }
    .hero-grid { gap: 25px; }
    .hero-home .hero-picture img { aspect-ratio: 1.05; }
}
@media (max-width: 800px) {
    .nav-row { flex-wrap: wrap; padding-block: 8px; }
    .nav-toggle:not([hidden]) { display: block; order: 2; }
    .header-call { margin-left: auto; }
    #main-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: .5rem 1.15rem; border-top: 1px solid var(--edge); padding-block: .4rem; }
    #main-nav[data-collapsed] { display: none; }
    .submenu { left: 0; }
    .hero-grid, .hero-inner .hero-grid, .detail-layout, .contact-grid, .map-grid { grid-template-columns: 1fr; }
    .hero-home .hero-picture img { aspect-ratio: 1.55; }
    .hero-inner .hero-picture img { aspect-ratio: 1.6; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-picture { max-width: 460px; }
    .side-content { height: auto; }
    .sticky { position: static; }
    .map-grid iframe { height: 285px; }
}
@media (max-width: 425px) {
    .brand { font-size: 1.1rem; gap: 5px; }
    .brand img { width: 26px; height: 42px; }
    .brand small { font-size: .66rem; }
    .nav-toggle { font-size: .84rem; padding: 5px 9px; }
    .header-call { padding: 8px; font-size: .76rem; }
    .service-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
