/*
Theme Name: Simon Princeton
Description: Residential garage door repair site for Simon Garage Door Repair in Princeton, New Jersey. Includes ten editable starter pages.
Version: 1.0.3
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: simon-princeton
*/
:root {
  --ink: #221b17;
  --muted: #5f544d;
  --chalk: #faf6ef;
  --line: #e7ded5;
  --red: #b40d13;
  --dark-red: #8c090e;
  --orange: #d35116;
  --corner: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1, h2 { font-family: Georgia, serif; font-weight: 700; letter-spacing: -.048em; }
h1 { font-size: clamp(2.7rem, 5.15vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.45rem); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.container { width: min(1332px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 10; padding: .6rem 1rem; background: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; width: 126px; flex: none; }
.logo img { width: 100%; height: auto; }
.site-menu { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 37px); }
.site-menu a, .nav-services summary { display: block; text-decoration: none; font-size: .94rem; font-weight: 650; white-space: nowrap; }
.site-menu a:hover, .site-menu a[aria-current=page], .nav-services summary:hover { color: var(--red); }
.nav-services { position: relative; }
.nav-services summary { cursor: pointer; list-style: none; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { display: inline-block; content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: 0 0 3px 9px; }
.nav-services[open] summary::after { transform: rotate(225deg); margin-bottom: 0; }
.nav-dropdown { position: absolute; left: -16px; top: calc(100% + 15px); min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 25px #30201614; }
.nav-dropdown a { padding: 10px 12px; border-radius: 7px; }
.nav-dropdown a:hover { background: var(--chalk); }
.header-phone { text-decoration: none; line-height: 1.35; color: var(--red); font-size: 1.04rem; font-weight: 750; text-align: right; white-space: nowrap; }
.header-phone small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.hero { background: var(--chalk); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); align-items: center; gap: clamp(34px, 6vw, 100px); padding-block: clamp(40px, 6vw, 88px); }
.hero-home .hero-grid { padding-block: clamp(44px, 6.5vw, 98px); }
.hero-copy { padding-block: 6px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; color: var(--dark-red); margin-bottom: 18px; }
.eyebrow::before { content: ""; display: block; width: 26px; height: 2px; background: var(--orange); flex: none; }
.intro { max-width: 57ch; font-size: clamp(1rem, 1.5vw, 1.17rem); color: var(--muted); margin-top: 22px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 29px; }
.button { display: inline-flex; width: max-content; max-width: 100%; align-items: center; justify-content: center; gap: 14px; padding: 13px 21px; color: #fff; background: var(--red); border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 750; white-space: nowrap; }
.button:hover { background: var(--dark-red); }
.text-link { color: var(--dark-red); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-image { position: relative; isolation: isolate; }
.hero-image::after { position: absolute; z-index: -1; inset: 12px -12px -12px 12px; border: 1px solid #d39569; border-radius: var(--corner); content: ""; }
.hero-image img { width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: center; border-radius: var(--corner); }
.hero-image img[src*="lift-cable-inspection"],
.hero-image img[src*="door-track-inspection"],
.hero-image img[src*="door-roller-inspection"] { object-position: center top; }
.hero-home .hero-image img { aspect-ratio: 1.2; object-position: 62% 5%; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumbs a { text-underline-offset: 3px; }
.services-section { padding-block: 62px 12px; }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 26px; margin-bottom: 23px; }
.section-intro p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { padding: 24px 22px; min-height: 134px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; text-decoration: none; }
.service-card:hover { background: var(--chalk); }
.service-card h3 { padding-right: 25px; font-size: 1.12rem; margin-bottom: 9px; }
.service-card p { color: var(--muted); font-size: .93rem; max-width: 36ch; }
.card-arrow { position: absolute; right: 16px; top: 14px; color: var(--red); font-size: 1.2rem; }
.body-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(275px, .8fr); gap: clamp(32px, 8vw, 130px); align-items: start; padding-block: clamp(45px, 7vw, 100px); }
.page-copy { color: var(--muted); font-size: 1.035rem; max-width: 71ch; }
.page-copy h2, .page-copy h3 { color: var(--ink); }
.page-copy h2 { font-size: clamp(1.8rem, 2.65vw, 2.65rem); margin: 1.2em 0 .48em; }
.page-copy h2:first-child { margin-top: 0; }
.page-copy h3 { font-size: 1.12rem; line-height: 1.35; margin: 1.15em 0 .35em; }
.page-copy p { margin-bottom: 1rem; }
.comparison { margin: 0 0 26px; border: 1px solid var(--line); overflow: hidden; border-radius: var(--corner); }
.comparison img { width: 100%; aspect-ratio: 1.8; object-fit: cover; }
.comparison img[src*="door-roller-comparison"] { aspect-ratio: 1; }
.comparison-labels { display: grid; grid-template-columns: 1fr 1fr; font-size: .76rem; font-weight: 700; text-align: center; color: var(--muted); background: var(--chalk); }
.comparison-labels span { padding: 6px; }
.comparison-labels span + span { border-left: 1px solid var(--line); }
.aside-links, .contact-panel { padding: 26px; background: var(--chalk); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 12px; }
.aside-links h2, .contact-panel h2 { font-size: 1.6rem; letter-spacing: -.035em; }
.aside-links ul { list-style: none; padding: 0; margin: 14px 0; }
.aside-links li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-weight: 650; text-decoration: none; }
.aside-links li a:hover { text-decoration: underline; }
.areas { display: flex; gap: 5px 14px; flex-wrap: wrap; color: var(--muted); }
.page-aside .contact-panel + .aside-links { margin-top: 20px; }
.contact-panel p { margin: 5px 0 16px; color: var(--muted); }
.call-band { background: var(--red); color: #fff; }
.call-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px 40px; padding-block: 37px; }
.call-inner h2 { font-size: clamp(1.75rem, 3.5vw, 3.1rem); }
.call-inner p { margin-top: 6px; color: #fff3ee; }
.button-white { background: #fff; color: var(--dark-red); }
.button-white:hover { background: var(--chalk); }
.map-section { display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1fr); gap: 28px 45px; align-items: center; padding-block: 60px; }
.map-copy h2 { font-size: clamp(1.8rem, 3vw, 2.95rem); }
.map-copy p { margin: 12px 0; color: var(--muted); }
.map-section iframe { display: block; border: 1px solid var(--line); border-radius: var(--corner); width: 100%; height: 310px; background: var(--chalk); }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr .65fr; gap: 22px 38px; padding-block: 38px 26px; }
.footer-grid h2 { font-family: inherit; font-weight: 750; letter-spacing: 0; font-size: 1rem; margin-bottom: 8px; }
.footer-grid p, .footer-links { color: var(--muted); font-size: .91rem; }
.footer-logo { width: 94px; margin-bottom: 9px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-grid a { text-underline-offset: 3px; }
.footer-base { padding: 11px 0 20px; border-top: 1px solid var(--line); color: var(--muted); }
.general-page { padding-block: 60px; }
.general-page h1 { margin-bottom: 20px; }
@media (max-width: 1050px) {
  .container { width: calc(100% - 68px); }
  .header-inner, .site-menu { gap: 15px; }
}
@media (max-width: 790px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 10px 13px; padding-block: 8px; }
  .logo { width: 96px; }
  .header-phone { margin-left: auto; font-size: .93rem; }
  .header-phone small { font-size: .66rem; }
  .menu-toggle:not([hidden]) { display: block; order: 2; }
  .site-menu { order: 3; width: 100%; align-items: stretch; gap: 0; flex-direction: column; border-top: 1px solid var(--line); }
  .site-menu[hidden] { display: none; }
  .site-menu > a, .nav-services summary { padding: 9px 1px; }
  .nav-dropdown { position: static; padding: 0 10px; border-radius: 0; box-shadow: none; border: 0; border-left: 2px solid var(--line); }
  .nav-dropdown a { white-space: normal; }
  .hero-grid { gap: 30px; }
  .hero-home .hero-image img { aspect-ratio: 1; }
  h1 { font-size: clamp(2.45rem, 6.3vw, 4.15rem); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .body-grid { grid-template-columns: minmax(0, 1fr) minmax(210px, .7fr); gap: 29px; }
  .aside-links, .contact-panel { padding: 18px; }
}
@media (max-width: 570px) {
  .hero-grid, .body-grid, .map-section { grid-template-columns: 1fr; }
  .hero-home .hero-image img, .hero-image img { aspect-ratio: 1.47; }
  .hero-image::after { inset: 7px -7px -7px 7px; }
  .hero-actions { margin-top: 22px; }
  .hero-grid { padding-block: 32px 37px; }
  .hero-home .hero-grid { padding-block: 36px 41px; }
  .services-section { padding-top: 40px; }
  .section-intro { display: block; }
  .section-intro p { margin-top: 6px; }
  .service-card { padding: 19px 12px; min-height: 136px; }
  .card-arrow { right: 10px; top: 11px; }
  .page-copy { max-width: none; }
  .call-inner { align-items: flex-start; flex-direction: column; }
  .map-section { padding-block: 38px; }
  .map-section iframe { height: 248px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
