/* Best Diehl Electric — Retro Americana */

:root {
  --cream: #f4ead3;
  --paper: #fbf5e6;
  --red: #a8321e;
  --red-dark: #87281a;
  --teal: #1f5a58;
  --teal-dark: #163f3e;
  --mustard: #e3a62f;
  --ink: #231e1a;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }

a { color: inherit; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .75rem 1.4rem;
  border: 3px solid var(--ink);
  border-radius: 6px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn-call {
  background: var(--red);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-call:hover { background: var(--red-dark); }

.btn-alt {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-alt:hover { background: #fff; }

.btn-call:hover,
.btn-alt:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-call:active,
.btn-alt:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn-cream {
  background: var(--cream);
  color: var(--red-dark);
  border-color: var(--cream);
}
.btn-cream:hover { background: var(--paper); }

.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  min-width: 0;
}

.logo-bolt {
  width: 1.1rem;
  height: 1.5rem;
  fill: var(--mustard);
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
  flex: none;
}

.logo-text {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.05;
  color: var(--red);
}
.logo-text span { color: var(--teal); }

.nav { display: none; }

.btn-small {
  min-height: 3rem;
  padding: .55rem .9rem;
  font-size: .95rem;
  box-shadow: 3px 3px 0 var(--ink);
  flex: none;
}

.call-num { display: none; }

@media (min-width: 400px) {
  .logo-text { white-space: nowrap; }
}

@media (min-width: 600px) {
  .call-label { display: none; }
  .call-num { display: inline; }
  .logo-text { font-size: 1.3rem; }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 1.5rem;
  }
  .nav a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .9rem;
    text-decoration: none;
    padding: .4rem 0;
    border-bottom: 3px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--red); }
  .logo-text { font-size: 1.55rem; }
  .call-label { display: inline; }
}

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

.hero { padding: 2.5rem 0 3rem; }

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.eyebrow {
  margin-bottom: 1.1rem;
}
.eyebrow span {
  display: inline-block;
  background: var(--teal);
  color: var(--paper);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%, .7rem 50%);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 4.4rem);
  line-height: 1.04;
  color: var(--red);
  letter-spacing: -.005em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.rating-line {
  margin-top: 1.4rem;
  font-weight: 600;
}
.stars {
  color: var(--red);
  letter-spacing: .1em;
  margin-right: .35rem;
}

@media (min-width: 560px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

/* Ticket fact card */

.ticket {
  position: relative;
  background: var(--teal);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 30rem;
}

.ticket-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border-bottom: 3px dashed var(--cream);
  position: relative;
}

/* punched notches at the perforation */
.ticket-head::before,
.ticket-head::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 24px;
  height: 24px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.ticket-head::before { left: -14px; clip-path: inset(0 0 0 50%); }
.ticket-head::after { right: -14px; clip-path: inset(0 50% 0 0); }

.burst {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--ink);
}
.burst svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--mustard);
  stroke: var(--ink);
  stroke-width: 0;
}
.burst-num {
  position: relative;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}
.burst-sub {
  position: relative;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ticket-title {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.15;
}
.ticket-title small {
  display: block;
  margin-top: .3rem;
  font-family: var(--body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
}

.ticket-facts {
  padding: 1.1rem 1.25rem 1.25rem;
}
.ticket-facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .15rem 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(244, 234, 211, .35);
}
.ticket-facts div:last-child { border-bottom: 0; }
.ticket-facts dt {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mustard);
}
.ticket-facts dd { font-weight: 500; }

@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
  .ticket { justify-self: end; width: 100%; transform: rotate(1.5deg); }
  .lede { font-size: 1.25rem; }
}

/* ---------- Stripes ---------- */

.stripes {
  height: 26px;
  background: var(--cream);
  border-top: 9px solid var(--red);
  border-bottom: 9px solid var(--teal);
}

/* ---------- Section heads ---------- */

.section-head { margin-bottom: 2rem; }

.kicker {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .35rem;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Services: sign board ---------- */

.services { padding: 3.5rem 0; background: var(--paper); }

.board {
  background: var(--teal-dark);
  color: var(--paper);
  border: 3px solid var(--ink);
  outline: 3px solid var(--mustard);
  outline-offset: -12px;
  border-radius: 8px;
  padding: 1.75rem 1.4rem;
}

.board-list {
  list-style: none;
  padding: 0;
  display: grid;
}

.board-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: .9rem;
  padding: 1.15rem 0;
  border-bottom: 2px dashed rgba(244, 234, 211, .4);
}

.board-no {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--mustard);
}

.board-list h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mustard);
  line-height: 1.25;
  margin-bottom: .3rem;
}

.board-list p { color: var(--cream); }

.board-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding-top: 1.4rem;
  font-weight: 600;
}

.ribbon {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.15rem;
  padding: .3rem 1.4rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 50%, 100% 100%, 0 100%, .7rem 50%);
}

@media (min-width: 760px) {
  .board { padding: 2.75rem 3rem; outline-offset: -16px; }
  .board-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

@media (min-width: 900px) {
  .services { padding: 5.5rem 0; }
}

/* ---------- Why ---------- */

.why { padding: 3.5rem 0; }

.why-grid { display: grid; }

.why-item {
  padding: 1.5rem 0;
  border-top: 3px solid var(--ink);
}

.why-big {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: .75rem;
}
.why-big span {
  font-family: var(--body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-left: .5rem;
}

.why-item h3 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

@media (min-width: 900px) {
  .why { padding: 5.5rem 0; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
  .why-item { border-top: 0; padding: 2rem 2.25rem 0; border-left: 2px solid var(--ink); }
  .why-item:first-child { padding-left: 0; border-left: 0; }
  .why-item:last-child { padding-right: 0; }
}

/* ---------- Hours & map ---------- */

.visit {
  padding: 3.5rem 0;
  background: var(--paper);
  border-top: 3px solid var(--ink);
}

.visit-grid { display: grid; gap: 2.5rem; }

.visit h2 { margin-bottom: 1.5rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.hours th,
.hours td {
  padding: .7rem 0;
  border-bottom: 2px dotted var(--ink);
  vertical-align: top;
}
.hours th { text-align: left; font-weight: 700; padding-right: 1rem; }
.hours td { text-align: right; }

.area-title {
  margin-top: 2rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

.towns {
  list-style: none;
  padding: 0;
  margin-top: .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.towns li {
  font-family: var(--display);
  font-size: 1.05rem;
  padding: .35rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.contact-lines {
  margin-top: 1.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.contact-lines a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact-lines a:hover { color: var(--red); }

.map iframe {
  display: block;
  width: 100%;
  height: 20rem;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--teal);
}

.map figcaption {
  margin-top: 1rem;
  font-weight: 600;
}
.map figcaption a { color: var(--red); font-weight: 700; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .visit { padding: 5.5rem 0; }
  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4rem; align-items: start; }
  .map iframe { height: 28rem; }
}

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

.cta {
  background: var(--red);
  color: var(--paper);
  padding: 3.25rem 0;
  border-top: 3px solid var(--ink);
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.cta h2 { color: var(--paper); font-size: clamp(1.75rem, 5.5vw, 2.6rem); }

.cta .btn:focus-visible { outline-color: var(--paper); }

@media (min-width: 900px) {
  .cta { padding: 4rem 0; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
}

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.25rem 0;
  font-size: .95rem;
}

.footer-inner { display: grid; gap: .4rem; }

.footer-name {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--mustard);
}

.site-footer a:focus-visible { outline-color: var(--mustard); }

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