/* ==========================================================================
   AZ Tech Garage Door Repair — global styles
   Light-only by design: this is a public marketing site and a single,
   consistently painted look is the right call. Every colour is explicit.
   ========================================================================== */

:root {
  /* Neutrals, biased very slightly cool to sit well against the steel blue */
  --ground: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --surface-3: #e7ecf1;
  --line: #d9e0e7;
  --line-strong: #b3bec9;

  --ink: #14181c;
  --ink-2: #39434d;
  --muted: #66727e;

  /* Brand: deep steel blue for authority, amber for action */
  --brand: #0e3a5c;
  --brand-dark: #092942;
  --brand-tint: #e8eef4;

  --accent: #c26510;
  --accent-dark: #a1520a;
  --accent-tint: #fdf1e3;

  --danger: #a81f16;
  --ok: #1b6b45;

  --f-head: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.06), 0 2px 6px rgba(20, 24, 28, 0.04);
  --shadow-md: 0 2px 4px rgba(20, 24, 28, 0.06), 0 8px 24px rgba(20, 24, 28, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Room for the sticky mobile call bar */
  padding-bottom: 0;
}

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

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
}

h2 {
  font-size: clamp(24px, 3.4vw, 33px);
  margin-top: 1.6em;
}

h3 {
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 600;
  margin-top: 1.5em;
}

h4 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 1.3em;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.45em;
}

.prose {
  max-width: 68ch;
}

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 15px;
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-tight {
  padding: 36px 0;
}

.section-alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  padding: 15px 26px;
  border-radius: 4px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
}

.btn-onblue {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.btn-onblue:hover {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 10px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.logo {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 18px;
  max-width: 62vw;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
  line-height: 1.1;
}

.logo span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: none;
  gap: 22px;
  align-items: center;
}

.nav a {
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

.header-phone {
  display: none;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent-dark);
}

@media (min-width: 900px) {
  .nav,
  .header-phone {
    display: flex;
  }
  .logo { font-size: 19px; max-width: none; }
  .nav { gap: 18px; }
}

/* ---------- Sticky mobile call bar ---------- */
/* Most repair searches happen on a phone. This is the conversion path. */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  background: var(--accent);
  box-shadow: 0 -2px 12px rgba(20, 24, 28, 0.18);
}

.call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 12px;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 900px) {
  .call-bar {
    display: none;
  }
}

@media (max-width: 899px) {
  body {
    padding-bottom: 56px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--brand);
  color: #fff;
  padding: 56px 0 60px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero p {
  color: #d6e2ec;
  font-size: 19px;
  max-width: 60ch;
}

.hero .eyebrow {
  color: #f0b978;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 8px;
}

.hero-points li {
  padding-left: 26px;
  position: relative;
  color: #d6e2ec;
  font-size: 16px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid #f0b978;
  border-bottom: 2.5px solid #f0b978;
  transform: rotate(-45deg);
}

/* ---------- Page header (interior pages) ---------- */

.page-head {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
}

.page-head p.lead {
  max-width: 62ch;
  margin-bottom: 0;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent-dark);
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 19px;
}

.card p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 14px;
}

.card .card-link {
  margin-top: auto;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--accent-dark);
}

.card .card-link:hover {
  text-decoration: underline;
}

a.card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.card-urgent {
  border-left: 4px solid var(--accent);
}

/* ---------- Symptom / checklist boxes ---------- */

.panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 26px;
  margin: 28px 0;
}

.panel h3 {
  margin-top: 0;
}

.panel ul {
  margin-bottom: 0;
}

.panel-accent {
  background: var(--accent-tint);
  border-color: #eccfa9;
}

.panel-brand {
  background: var(--brand-tint);
  border-color: #c3d4e2;
}

/* ---------- Fact strip ---------- */

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 28px 0;
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fact {
  background: var(--surface);
  padding: 18px 20px;
}

.fact dt {
  font-family: var(--f-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.fact dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  position: relative;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 25px;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--muted);
  border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 29px;
}

.faq .faq-answer {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 68ch;
}

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

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--brand);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-top: 0;
}

.cta-band p {
  color: #d6e2ec;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-phone {
  display: inline-block;
  font-family: var(--f-head);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}

.cta-phone:hover {
  color: #f0b978;
}

/* ---------- Tag list ---------- */

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.taglist a {
  display: inline-block;
  padding: 7px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.taglist a:hover {
  background: var(--brand-tint);
  border-color: #c3d4e2;
  color: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b8c2cc;
  padding: 48px 0 28px;
  font-size: 15px;
}

.site-footer a {
  color: #b8c2cc;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

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

.site-footer li {
  margin-bottom: 8px;
}

.footer-brand {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-phone {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 700;
  color: #fff !important;
  display: inline-block;
  margin: 6px 0 10px;
}

.footer-bottom {
  border-top: 1px solid #2b333b;
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13.5px;
  color: #8a959f;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}


/* ---------- Hours: regular vs round-the-clock emergency ---------- */

:root {
  --emergency: #b3261e;
  --emergency-tint: #fbeae8;
}

.hours {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  max-width: 460px;
}

.hours-head {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* The 24-hour day, drawn to scale: 7h emergency, 12h regular, 5h emergency */
.hours-bar {
  display: flex;
  height: 10px;
}
.hours-bar span { display: block; }
.hours-bar .seg-em { background: var(--emergency); }
.hours-bar .seg-reg { background: var(--brand); }

.hours-scale {
  position: relative;
  height: 17px;
  font-family: var(--f-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
/* Labels sit exactly on the colour boundaries of the bar above */
.hours-scale span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.hours-scale span.start { transform: none; padding-left: 4px; }
.hours-scale span.end { transform: translateX(-100%); padding-right: 4px; }

.hours-rows { padding: 6px 18px 14px; }

.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.hours-row:last-child { border-bottom: none; }

.hours-time {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hours-row.regular .hours-time { color: var(--ink); }
.hours-row.emergency .hours-time { color: var(--emergency); }

.hours-tag {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.hours-row.regular .hours-tag { background: var(--brand-tint); color: var(--brand); }
.hours-row.emergency .hours-tag { background: var(--emergency-tint); color: var(--emergency); }

.hours-foot {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14.5px;
  color: var(--ink-2);
}
.hours-foot strong { color: var(--emergency); }

/* Compact variant for the dark footer */
.hours-mini { margin-top: 14px; font-size: 14.5px; line-height: 1.7; }
.hours-mini .d { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.hours-mini .r { display: block; color: #b8c2cc; }
.hours-mini .e { display: block; color: #f0938a; }
.hours-mini .e b { color: #f0938a; font-weight: 600; }

/* ---------- Utility ---------- */

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.stack > * + * {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
