/* Prime Garage Doors — static site styles */
:root {
  --navy: #12305c;
  --navy-deep: #0a2144;
  --navy-mid: #1b4278;
  --red: #c23028;
  --red-deep: #9c241d;
  --ink: #1a2330;
  --muted: #5a6573;
  --line: #e1e7ef;
  --bg: #f4f7fb;
  --white: #ffffff;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(18, 48, 92, 0.08);
  --radius: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy-mid); }

a:hover { color: var(--red-deep); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; color: var(--white); }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

h1, h2, h3 { text-wrap: balance; }

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--navy);
}

h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

p { margin: 0 0 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 1px 0 rgba(18, 48, 92, 0.04);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 0;
}

.topbar a:hover { color: #ffd7d3; }

.topbar-247 { font-weight: 700; }

.topbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-links a { white-space: nowrap; }

.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  height: 64px;
  width: auto;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 12px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: var(--white);
}

.nav-burger span.bar {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.98rem;
}

.site-nav a[aria-current="page"] {
  background: var(--bg);
  color: var(--red-deep);
}

.site-nav a:hover {
  background: var(--bg);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  font-family: inherit;
}

.btn svg { flex: 0 0 auto; }

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-block { width: 100%; }

.header-cta { white-space: nowrap; }

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-actions .btn { padding: 10px 12px; }

.sms-btn {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.sms-btn:hover { background: var(--navy); color: var(--white); }

.hero .sms-btn,
.cta-band .sms-btn,
.page-hero .sms-btn {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.hero .sms-btn:hover,
.cta-band .sms-btn:hover,
.page-hero .sms-btn:hover {
  background: var(--white);
  color: var(--navy);
}

.card .sms-btn {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 16px;
}

.contact-actions .btn { flex: 1 1 160px; }

.hero {
  background:
    radial-gradient(800px 380px at 100% 0%, rgba(194, 48, 40, 0.22), transparent 55%),
    linear-gradient(155deg, var(--navy-deep), var(--navy) 58%, #1a4a86);
  color: var(--white);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffb4ae;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--white);
}

.lede {
  font-size: 1.12rem;
  color: #e6eef8;
  margin: 0 0 22px;
  max-width: 40rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 18px 18px 8px;
}

.hero-art svg { width: 100%; height: auto; display: block; }

.hero-art ul {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
}

.hero-art li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f7fb;
  font-weight: 600;
}

.hero-art li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.page-hero {
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(194, 48, 40, 0.2), transparent 50%),
    linear-gradient(155deg, var(--navy-deep), var(--navy));
  color: var(--white);
  padding: 28px 0 36px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
  font-weight: 800;
  color: var(--white);
}

.page-hero .lede { margin-bottom: 0; }

.crumbs {
  font-size: 0.92rem;
  color: #c9d7ea;
  margin: 0;
}

.crumbs a { color: var(--white); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: #ffd7d3; }

section { padding: 52px 0; }

.section-tight { padding-top: 28px; }

.bg { background: var(--bg); }

.section-intro {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card p:last-child { margin-bottom: 0; }

.icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fdeceb;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.icon svg { display: block; }

.more {
  font-weight: 700;
  text-decoration: none;
}

.more:hover { text-decoration: underline; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 10px;
}

.town-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.town {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 750;
  font-weight: 700;
  min-height: 48px;
}

.town span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.town:hover { border-color: var(--red); color: var(--navy); }

.cta-band { background: var(--navy); color: var(--white); }

.cta-band h2 { color: var(--white); }

.cta-band p { color: #d5e2f2; margin: 0; max-width: 40rem; }

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.note {
  border-left: 4px solid var(--red);
  background: #fff6f5;
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}

.prose { max-width: 44rem; }

.prose h2 { margin-top: 1.5em; }

.prose h2:first-child { margin-top: 0; }

.prose ul,
.prose ol { margin: 0 0 14px; padding-left: 1.2rem; }

.prose li { margin: 6px 0; }

.prose a { font-weight: 650; font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.big-phone {
  display: inline-block;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.1;
  margin: 4px 0 8px;
}

.big-phone:hover { color: var(--red-deep); }

.contact-points { list-style: none; padding: 0; margin: 12px 0 0; }

.contact-points a { font-weight: 700; overflow-wrap: anywhere; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { margin-bottom: 14px; }

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c5d0de;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea { min-height: 140px; resize: vertical; }

::placeholder { color: #6b7684; }

.fine { color: var(--muted); font-size: 0.95rem; }

.form-status {
  min-height: 1.4em;
  font-weight: 650;
  font-weight: 600;
  color: var(--navy);
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq details p { margin: 8px 0 4px; }

.town-article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.town-article h2 { font-size: 1.45rem; }

.nap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.nap p { margin-bottom: 8px; }

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.check-list { list-style: none; padding: 0; margin: 0 0 16px; }

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

.site-footer {
  background: var(--navy-deep);
  color: #d5e2f2;
  padding: 44px 0 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1fr;
  gap: 28px;
}

.logo-plate {
  background: var(--white);
  border-radius: 12px;
  padding: 8px 10px;
  display: inline-block;
  margin-bottom: 12px;
}

.logo-plate img { height: 68px; width: auto; }

.foot-title {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 10px;
}

.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.legal p { margin: 0; }

.call-bar { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .nav-burger { display: flex; }
  .header-cta,
  .header-actions { display: none; }
  .nav-row { position: static; }
  .brand img { height: 56px; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 8px 16px 16px;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 16px 30px rgba(18, 48, 92, 0.12);
  }

  .site-header:has(.nav-toggle:checked) .site-nav { display: flex; }

  .site-nav a { padding: 12px 10px; font-size: 1.05rem; }

  .hero .wrap,
  .cards.three,
  .cards.two,
  .steps,
  .split,
  .foot-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero .wrap { padding: 36px 0 40px; gap: 8px; }
  .hero-art { max-width: 520px; }

  .town-grid { grid-template-columns: 1fr 1fr; }

  .cta-inner { align-items: flex-start; }

  .foot-grid { gap: 22px; }
}

@media (max-width: 720px) {
  .call-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--navy-deep);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
  }

  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-height: 52px;
    border-radius: 10px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
    border: 2px solid transparent;
  }

  .call-bar a:hover { background: var(--red-deep); color: var(--white); }

  .call-bar a.sms-link {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.9);
  }

  .call-bar a.sms-link:hover { background: var(--white); color: var(--navy); }

  body { padding-bottom: 78px; }

  .hide-sm { display: none; }

  .topbar-inner { justify-content: center; }
  .topbar-247 { flex: 1 0 100%; text-align: center; }
  .topbar-links { justify-content: center; }

  .hero-art { display: none; }

  /* Leave navy under the fixed call button on the first screen. */
  .hero .wrap { padding-bottom: 72px; }

  .town-grid,
  .form-grid { grid-template-columns: 1fr; }

  section { padding: 40px 0; }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions a[href="contact.html"],
  .cta-actions a[href="contact.html"] { grid-column: 1 / -1; }

  .legal { flex-direction: column; }

  .page-hero { padding: 22px 0 28px; }
}

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

@media print {
  .call-bar,
  .nav-burger,
  .header-cta,
  .topbar { display: none !important; }
  .site-header { position: static; }
  body { padding-bottom: 0; }
}

.btn-label .short { display: none; }

@media (max-width: 720px) {
  .hero-actions .btn-label .long,
  .cta-actions .btn-label .long,
  .contact-actions .btn-label .long { display: none; }
  .hero-actions .btn-label .short,
  .cta-actions .btn-label .short,
  .contact-actions .btn-label .short { display: inline; }
}
