/*
Theme Name: Smart Garage Door Repair East Brunswick
Author: Smart Garage Door Repair East Brunswick
Description: Responsive residential garage door repair website for East Brunswick, New Jersey.
Version: 1.0.3
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: smart-east-brunswick
*/

:root {
  --ink: #111923;
  --dark: #121c28;
  --muted: #515960;
  --paper: #faf9f5;
  --cream: #f3efe5;
  --white: #fff;
  --gold: #ffb426;
  --line: #dedbd1;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.14; }
h1, h2 { letter-spacing: -.045em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #d17900; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - 64px), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; transform: translateY(-180%); padding: 10px 16px; color: #000; background: var(--gold); }
.skip-link:focus { transform: none; }

.utility { color: #f5f1e6; background: var(--dark); font-size: .81rem; font-weight: 550; }
.utility-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 7px; }
.site-header { background: var(--white); position: relative; z-index: 5; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 86px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.25; flex: 0 0 auto; }
.brand img { width: 57px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; font-weight: 780; }
.brand small { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.menu, .submenu { list-style: none; padding: 0; margin: 0; }
.menu { display: flex; align-items: center; gap: clamp(10px, 2.15vw, 30px); }
.menu a, .menu summary { display: block; padding-block: 10px; text-decoration: none; font-weight: 660; font-size: .89rem; white-space: nowrap; }
.menu summary { cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { margin-left: 3px; color: #865301; }
.menu a:hover, .menu a[aria-current], .menu summary:hover { color: #875000; }
.service-menu { position: relative; }
.submenu { position: absolute; width: 210px; top: 100%; left: -12px; padding: 8px 12px; border-top: 3px solid var(--gold); background: var(--white); box-shadow: 0 14px 28px #11192320; }
.submenu a { padding: 9px 5px; }
.header-phone { font-weight: 760; font-size: .91rem; text-decoration: none; line-height: 1.25; white-space: nowrap; padding: 11px 15px; border: 1px solid #c98610; border-radius: 5px; }
.header-phone:hover { background: #fff1d3; }
.menu-toggle { display: none; }

.hero { background: var(--dark); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-home .hero-grid { min-height: 515px; }
.hero-copy { padding-block: 54px; }
.hero h1 { font-size: clamp(2.5rem, 4.85vw, 4.7rem); font-weight: 810; text-wrap: balance; }
.hero-inner h1 { font-size: clamp(2.2rem, 4vw, 3.75rem); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #ffcd72; font-size: .78rem; font-weight: 760; letter-spacing: .105em; text-transform: uppercase; margin-bottom: 20px; }
.eyebrow span { display: inline-block; width: 24px; height: 2px; background: var(--gold); }
.hero .page-intro, .hero-copy > p:not(.eyebrow) { margin-top: 21px; color: #e0e5e8; font-size: clamp(1rem, 1.45vw, 1.12rem); max-width: 52ch; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 21px; border-radius: 5px; background: var(--gold); color: var(--ink); font-weight: 790; text-decoration: none; min-height: 48px; }
.button:hover { background: #ffd171; }
.subtle-link { text-decoration: none; font-weight: 680; font-size: .88rem; }
.subtle-link:hover { text-decoration: underline; }
.subtle-link span { color: var(--gold); margin-left: 5px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1.52; object-fit: cover; border-radius: 7px; }
.hero-home .hero-photo::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 35%; height: 49%; z-index: 0; pointer-events: none; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); border-radius: 0 0 9px 0; }
.hero-inner .hero-photo { margin-block: 34px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; color: #e3d3ac; font-size: .8rem; }
.breadcrumbs a { text-underline-offset: 3px; }

.service-section { background: var(--cream); padding-block: 55px 60px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 25px; margin-bottom: 24px; }
.section-head h2, .map-copy h2 { font-size: clamp(1.8rem, 3.35vw, 2.8rem); }
.section-head p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.service-card { position: relative; display: block; padding: 21px 46px 22px 21px; min-height: 125px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.service-card:hover { border-color: #a76500; background: #fffcf4; }
.service-card h3 { font-size: 1.12rem; font-weight: 790; }
.service-card p { font-size: .93rem; color: var(--muted); line-height: 1.48; margin-top: 7px; }
.service-card span { position: absolute; right: 16px; top: 16px; color: #865301; font-size: 1.17rem; }

.editorial { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: clamp(38px, 6vw, 85px); padding-block: 68px; align-items: start; }
.prose { max-width: 72ch; font-size: 1.02rem; color: #30383f; }
.prose h2 { color: var(--ink); font-size: clamp(1.55rem, 2.8vw, 2.25rem); margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.14rem; margin-top: 23px; letter-spacing: -.015em; }
.prose p { margin-top: 12px; }
.prose a { color: #794800; text-underline-offset: 3px; font-weight: 650; }
.editorial-side { display: grid; gap: 20px; }
.repair-image, .side-panel { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.repair-image img { width: 100%; }
.repair-labels { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: .79rem; font-weight: 760; background: white; }
.repair-labels span { padding: 7px; }
.repair-labels span + span { border-left: 1px solid var(--line); }
.side-panel { padding: 24px; background: var(--cream); }
.side-panel h2 { font-size: 1.44rem; }
.side-panel p { color: var(--muted); margin-top: 7px; }
.side-panel a { display: inline-block; margin-top: 7px; color: #794800; font-weight: 780; text-underline-offset: 4px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; align-items: start; padding: 22px; margin-block: 25px; background: #212d3b; border: 1px solid #47525e; border-radius: 7px; }
.contact-card div { padding: 9px 0; min-width: 0; }
.contact-card strong { display: block; color: #ffce77; font-size: .78rem; }
.contact-card a { overflow-wrap: anywhere; }
.contact-photo img { width: 100%; border-radius: 7px; }
.map-section { background: var(--cream); border-block: 1px solid var(--line); padding-block: 47px; }
.map-grid { display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); gap: 30px; align-items: center; }
.map-copy p { margin-top: 12px; color: var(--muted); }
.map-copy .button { margin-top: 19px; }
.map-grid iframe { display: block; width: 100%; min-height: 280px; border: 1px solid #c9c4b7; border-radius: 7px; background: #f7f6ec; }
.site-footer { background: var(--white); padding-block: 36px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 18px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 56px; flex: 0 0 auto; }
.site-footer p { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.site-footer a { font-weight: 690; text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 21px; }
.generic { padding-block: 60px; min-height: 52vh; }
.generic p { margin-top: 14px; }

@media (max-width: 960px) {
  .wrap { width: min(calc(100% - 40px), var(--wrap)); }
  .header-inner { min-height: 74px; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; }
  .navigation { order: 3; width: 100%; }
  .menu { justify-content: space-between; flex-wrap: wrap; }
  .navigation.enhanced { width: auto; order: 2; }
  .navigation.enhanced .menu-toggle { display: flex; align-items: center; gap: 7px; padding: 9px 12px; min-height: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font: inherit; font-size: .87rem; font-weight: 710; cursor: pointer; }
  .header-phone { order: 3; }
  .navigation.enhanced .menu { display: none; }
  .navigation.enhanced .menu-toggle[aria-expanded="true"] + .menu { display: block; position: absolute; top: 100%; inset-inline: 0; padding: 10px 20px 16px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 10px 22px #11192325; }
  .navigation.enhanced .submenu { position: static; width: auto; box-shadow: none; border: 0; border-left: 2px solid var(--gold); padding: 0 0 0 12px; }
  .hero-home .hero-grid { min-height: 435px; }
}

@media (max-width: 760px) {
  .hero-grid, .editorial, .map-grid { grid-template-columns: 1fr; gap: 25px; }
  .hero-home .hero-grid { min-height: 0; }
  .hero-copy { padding-block: 36px 0; }
  .hero h1 { text-wrap: initial; }
  .hero .page-intro { margin-top: 14px; }
  .hero-actions { margin-top: 19px; }
  .hero-photo, .hero-inner .hero-photo { margin: 0 5px 29px 0; }
  .hero-photo img { aspect-ratio: 1.56; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-section, .editorial, .map-section { padding-block: 38px; }
  .editorial-side { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; }
  .contact-card { margin: 0 0 27px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .wrap { width: calc(100% - 32px); }
  .utility-inner > span:first-child { display: none; }
  .utility-inner { justify-content: center; }
  .header-inner { gap: 6px; }
  .brand img { width: 46px; }
  .brand { gap: 7px; }
  .brand strong { font-size: .76rem; }
  .brand small { font-size: .7rem; }
  .header-phone { display: none; }
  .hero h1 { font-size: 2.43rem; }
  .hero-inner h1 { font-size: 2.13rem; }
  .service-grid, .editorial-side { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .contact-card { grid-template-columns: 1fr; padding: 14px; gap: 1px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
