/* Quick and Fast Garage Door — shared site styles */

:root {
  --navy: #0F2753;
  --navy-light: #16233F;
  --gold: #E3A526;
  --gold-dark: #96751F;
  --red: #C0392B;
  --red-wash: #FBEAEA;
  --bg-alt: #F7F8FB;
  --text-body: #4A5670;
  --text-muted: #8A93A6;
  --border: #EEF0F4;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: Karla, 'Segoe UI', sans-serif;
  color: var(--navy-light);
  background: #FFFFFF;
}
h1, h2, h3, h4 {
  font-family: Oswald, 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  margin: 0;
}
p { margin: 0; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold-dark); text-decoration: underline; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.wrap-outer { width: 100%; max-width: 1440px; margin: 0 auto; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 4px;
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 16px;
  letter-spacing: 0.3px; white-space: nowrap; border: none; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #c8901c; color: var(--navy); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

/* Eyebrow: a "rail + roller" mark leads every section label, echoing the
   track a garage door rides on. currentColor keeps it in sync with each
   eyebrow's own color across light and dark sections. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 26px; height: 6px; flex-shrink: 0;
  background:
    radial-gradient(circle 1.6px at 3px 3px, currentColor 99%, transparent 100%),
    radial-gradient(circle 1.6px at 13px 3px, currentColor 99%, transparent 100%),
    radial-gradient(circle 1.6px at 23px 3px, currentColor 99%, transparent 100%),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px, 4px 4px, 100% 1.5px;
  background-position: 0 center, 10px center, 20px center, 0 center;
  opacity: 0.85;
}
.card {
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 3px rgba(22,35,63,0.08), 0 1px 2px rgba(22,35,63,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(22,35,63,0.14), 0 2px 8px rgba(22,35,63,0.08);
}
.row { display: flex; }
.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--navy);
}
.icon-circle svg { stroke: var(--gold); }

/* ---- Service teaser cards: real job photo behind each, not a flat icon
   tile — keeps the "real photos, not stock art" identity front and center. */
.service-card {
  position: relative; overflow: hidden; min-height: 260px;
  background-size: cover; background-position: center;
  justify-content: flex-end; color: #fff;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,39,83,0.1) 0%, rgba(15,39,83,0.5) 55%, rgba(10,25,50,0.94) 100%);
}
.service-card > * { position: relative; z-index: 1; }
.service-card .icon-circle { background: rgba(255,255,255,0.14); backdrop-filter: blur(3px); }
.service-card h3 { color: #fff; }
.service-card p { color: rgba(255,255,255,0.82); }
.service-card a { color: var(--gold); font-weight: 700; }
.service-card a:hover { color: #fff; }
.chip {
  padding: 10px 20px; border-radius: 999px;
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.3px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 700; color: var(--text-body);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 4px;
  font-family: Karla, sans-serif; font-size: 14.5px; color: var(--navy-light);
  background: #fff; appearance: none; width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.lead-card {
  background: #fff; border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35); padding: 32px;
}
.gallery-item { position: relative; border-radius: 6px; overflow: hidden; background: #eee; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(transparent, rgba(15,20,35,0.75));
  color: #fff; font-size: 13px; font-weight: 500;
}
.badge-photo {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px;
}

.section { padding: 72px 64px; }
.section-sm { padding: 48px 64px; }

/* ---- Before / after carousel ---- */
.ba-section { padding: 56px 64px; background: var(--bg-alt); }
.ba-carousel {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 3 / 4;
  margin: 0 auto; overflow: hidden; border-radius: 6px; background: var(--navy);
  box-shadow: 0 1px 3px rgba(22,35,63,0.08), 0 1px 2px rgba(22,35,63,0.06);
}
.ba-track { display: flex; width: 200%; height: 100%; transition: transform 0.9s cubic-bezier(0.65,0,0.35,1); }
.ba-carousel.show-after .ba-track { transform: translateX(-50%); }
.ba-slide { width: 50%; height: 100%; flex-shrink: 0; }
.ba-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.ba-tag {
  position: absolute; top: 10px; left: 10px; background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 3px; opacity: 0; transition: opacity 0.4s ease;
}
.ba-tag-before { opacity: 1; }
.ba-carousel.show-after .ba-tag-before { opacity: 0; }
.ba-carousel.show-after .ba-tag-after { opacity: 1; }
@media (max-width: 900px) {
  .ba-section { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-track { transition: none; }
  .ba-tag { transition: none; }
}

/* ---- Top utility bar ---- */
.topbar {
  justify-content: space-between; align-items: center;
  background: var(--navy); padding: 9px 64px; color: rgba(255,255,255,0.85); font-size: 13px;
}

/* ---- Header / Nav ---- */
.site-header {
  justify-content: space-between; align-items: center;
  padding: 14px 64px; border-bottom: 1px solid var(--border);
  position: relative; z-index: 40;
}
.site-header img.logo { height: 52px; width: auto; }
nav.main-nav { gap: 30px; align-items: center; }
nav.main-nav a, nav.main-nav button.nav-link {
  font-family: Oswald, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.4px;
  color: var(--navy-light); background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; gap: 5px;
}
nav.main-nav a:hover, nav.main-nav button.nav-link:hover { color: var(--gold-dark); text-decoration: none; }
nav.main-nav a.active { color: var(--gold-dark); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 14px; background: #fff; border-radius: 6px; min-width: 260px;
  box-shadow: 0 12px 32px rgba(15,20,35,0.18); padding: 8px; z-index: 50;
}
.nav-dropdown.open .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a {
  display: block; padding: 10px 14px; border-radius: 4px; font-size: 14px;
  color: var(--navy-light); white-space: nowrap;
}
.nav-dropdown-panel a:hover { background: var(--bg-alt); color: var(--gold-dark); text-decoration: none; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger svg { stroke: var(--navy-light); }

.mobile-nav-panel { display: none; }

/* ---- Page hero (interior pages) ---- */
.page-hero {
  background: var(--navy); padding: 56px 64px 48px; color: #fff; position: relative;
}
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); padding: 56px 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 {
  color: #fff; font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600;
}
.site-footer a, .site-footer span.footer-text { color: rgba(255,255,255,0.7); font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 36px; padding-top: 20px;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 12.5px; }

/* ---- Trust badges row ---- */
.trust-row { gap: 28px; }
.trust-row .trust-item { align-items: center; gap: 8px; }
.trust-row svg { stroke: var(--gold); }
.trust-row span { color: rgba(255,255,255,0.85); font-size: 14px; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; line-height: 1.6; color: var(--text-body); }

/* ---- Service detail accordion ---- */
.service-detail { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.service-detail summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: Oswald, sans-serif; font-weight: 600; font-size: 18px; color: var(--navy-light);
}
.service-detail summary::-webkit-details-marker { display: none; }
.service-detail summary .chevron { transition: transform 0.2s ease; stroke: var(--gold-dark); flex-shrink: 0; }
.service-detail summary:hover { background: var(--bg-alt); }
.service-detail[open] summary .chevron { transform: rotate(180deg); }
.service-detail[open] summary { border-bottom: 1px solid var(--border); }
.service-detail-body { padding: 24px 24px 28px; }

/* ---- Hero load-in: one orchestrated entrance, not scattered effects ---- */
.hero-content > * { opacity: 0; animation: hero-rise 0.6s ease forwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > * { opacity: 1; animation: none; }
}

/* ---- Scroll-reveal for section headers (JS-toggled; no-JS/reduced-motion = fully visible) ---- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .section { padding: 48px 24px; }
  .section-sm { padding: 36px 24px; }
  .page-hero { padding: 40px 24px 36px; }
  .topbar { padding: 8px 20px; }
  .site-header { padding: 14px 20px; }
  .site-footer { padding: 40px 20px 24px; }
  .hero-grid { flex-direction: column !important; padding: 56px 24px !important; }
  .services-grid { grid-template-columns: 1fr 1fr !important; }
  .three-col-grid { grid-template-columns: 1fr !important; }
  .edu-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  nav.desktop-nav { display: none !important; }
  .hamburger { display: inline-flex !important; }
  h1 { font-size: 34px !important; }
  .topbar-area { display: none !important; }
  .mobile-nav-panel.open {
    display: flex !important; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    box-shadow: 0 12px 24px rgba(15,20,35,0.12); padding: 10px; z-index: 45;
  }
  .mobile-nav-panel a, .mobile-nav-panel .mobile-nav-group-label {
    padding: 12px 14px; font-family: Oswald, sans-serif; font-size: 15px; color: var(--navy-light);
    border-radius: 4px;
  }
  .mobile-nav-panel .mobile-nav-group-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 2px; }
  .mobile-nav-panel a:hover { background: var(--bg-alt); text-decoration: none; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; }
  .header-phone { padding: 11px 13px; }
  .header-phone .phone-label { display: none; }
  .site-header img.logo { height: 44px; }
}

@media (min-width: 901px) {
  .hamburger { display: none !important; }
  .mobile-nav-panel { display: none !important; }
}
