/* Ultimate Car Refinishers — styles.css
   Simple, readable theme: dark charcoal background, single red accent,
   system fonts throughout for reliable rendering.
*/

/* Self-hosted rather than loaded from Google's CDN — avoids sending every
   visitor's IP to a third party (see BRAND-ALIGNMENT-TODO.md) and drops two
   DNS lookups + TLS handshakes before any text can render. font-display:
   swap shows the fallback system font immediately rather than leaving text
   invisible while this loads. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/AtkinsonHyperlegible-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/AtkinsonHyperlegible-Bold.woff2') format('woff2');
}

:root {
  /* Palette sampled from the UCR logo: red car, chrome text, blue spray, gold phone numbers */
  --black: #111110;
  --panel: #1b1a18;
  --border: #2d2c29;
  --red: #d11a1f;
  --red-dark: #a01216;
  --blue: #4fb6ff;
  --blue-dim: #1f4e78;
  --gold: #fdd737;
  --silver: #c9cdd3;
  --text: #f0eee9;
  --text-muted: #b0aca3;
  --radius: 8px;
  --max-width: 1180px;
  --font-base: 'Atkinson Hyperlegible', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  overscroll-behavior-y: contain;
}

h1, h2, h3 {
  font-family: var(--font-base);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1em;
}

p { color: var(--text-muted); }

a { color: var(--blue); }
a:hover { color: #7ecaff; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 0.5em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Scroll fade — subtle vignette at the very top and bottom of the
   viewport so content eases in/out of view as the page scrolls. */
.scroll-fade {
  position: fixed;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
  z-index: 40;
}
.scroll-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--black) 0%, rgba(17,17,16,0) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.scroll-fade-top.visible { opacity: 1; }
.scroll-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(17,17,16,0) 100%);
  transition: opacity 0.25s ease;
}
.scroll-fade-bottom.at-bottom { opacity: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.7em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: #fff;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17,17,16,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand img { height: 87px; width: auto; aspect-ratio: 1216 / 524; }

.main-nav { position: relative; flex: 1; display: flex; justify-content: center; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}
.nav-list a:hover { color: var(--red); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
}
.header-contact-icon { width: 18px; height: 18px; fill: var(--gold); flex-shrink: 0; }

.header-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header-contact-phones {
  font-weight: 700;
  font-size: 0.95rem;
}
.header-contact-phones a { color: var(--gold); text-decoration: none; }
.header-contact-phones a:hover { color: #ffe667; }
.header-contact-phones .sep { color: var(--border); margin: 0 0.35em; }

.header-contact-email {
  font-size: 0.78rem;
  color: var(--blue);
  text-decoration: none;
}
.header-contact-email:hover { color: #7ecaff; }

.header-contact-group {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.header-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.header-facebook svg { width: 26px; height: 26px; border-radius: 6px; }
.header-facebook:hover svg { opacity: 0.85; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--blue); }
.nav-toggle-bar {
  position: relative;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.25s ease;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
/* Open state: hamburger morphs into a chevron pointing at the dropdown
   that opens directly beneath the button, rather than an X. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0; transform: translateX(4px) rotate(-40deg); width: 11px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0; transform: translateX(-4px) rotate(40deg); width: 11px;
}

/* Hero */
.hero {
  background: var(--black);
  padding: 3rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  margin: 0 auto 0.6em;
}
.hero-logo img {
  width: clamp(220px, 65vw, 460px);
  height: auto;
  aspect-ratio: 1216 / 524;
  margin: 0 auto;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 1.8em;
  font-size: 1.1rem;
  color: #ddd;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.call-choice { position: relative; }

.call-choice-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 30;
  min-width: 200px;
}
.call-choice-menu[hidden] { display: none; }

.call-choice-menu a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  padding: 0.6em 0.8em;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
}
.call-choice-menu a:hover,
.call-choice-menu a:focus-visible { background: #232220; }
.call-choice-menu a span { font-weight: 700; color: var(--gold); }
.call-choice-menu a small { color: var(--text-muted); font-size: 0.78rem; }

/* Intro */
.intro {
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Privacy policy page — narrower reading column than the default .container */
.privacy-container { max-width: 760px; }

.intro-text {
  max-width: 720px;
  margin: 0 auto 1.6em;
  font-size: 1.05rem;
}

.trust-points {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

/* Services */
.services { padding: 4rem 0; border-bottom: 1px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.service-thumb {
  aspect-ratio: 4 / 1;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.service-thumb svg { width: 28px; height: 28px; }

.service-card img {
  width: 100%;
  height: auto;
  display: block;
}

.service-card-body { padding: 0.85rem 1rem 1.1rem; }

.service-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3em;
  color: #fff;
}

.service-card p { margin: 0; font-size: 0.82rem; }

/* Gallery */
.gallery { padding: 4rem 0; border-bottom: 1px solid var(--border); }

.gallery-carousel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gallery-track {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
/* Also suppress snap while the prev/next buttons are animating the scroll
   position via JS — otherwise the browser's own snap engine fights the
   eased animation and the motion stutters/jumps at the end. */
.gallery-track.auto-scrolling { scroll-snap-type: none; }
.gallery-track img { -webkit-user-drag: none; user-select: none; }

.carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
/* Only apply the hover colour change on devices that have real hover
   (mouse) — otherwise touch browsers simulate ":hover" on tap and it stays
   blue-tinted until something else is tapped, since there's no pointer to
   move away and un-hover it. */
@media (hover: hover) {
  .carousel-btn:hover { border-color: var(--blue); color: var(--blue); }
}

.gallery-item {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc((100% - 2 * 0.85rem) / 3);
}
.gallery-track.dragging .gallery-item { cursor: grabbing; }

@media (max-width: 980px) {
  .gallery-item { width: calc((100% - 1 * 0.85rem) / 2); }
}
@media (max-width: 620px) {
  /* Arrow buttons as fixed-layout circles eat real width from the card on
     narrow screens. Native touch swipe/drag already works here, so instead
     the arrows become thin, faded, tap-through overlays on each edge of
     the track — still clickable, but they don't push the card in narrower. */
  .gallery-carousel { position: relative; }
  /* Deliberately short of 100% so the next card's edge peeks in — the
     previous full-width card made it look like the gallery was a single
     static image on a phone, which is most of why the first image got
     far more views than the rest (see the counter/gallery_scroll fix
     added alongside this). */
  .gallery-item { width: 85%; }
  .carousel-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52px;
    height: auto;
    border: none;
    border-radius: 0;
    background: none;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 10px rgba(0,0,0,0.5);
    font-size: 1.8rem;
    z-index: 5;
    opacity: 0.9;
  }
  .carousel-prev {
    left: 6px;
    justify-content: flex-start;
    padding-left: 6px;
    background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0));
  }
  .carousel-next {
    right: 6px;
    justify-content: flex-end;
    padding-right: 6px;
    background: linear-gradient(to left, rgba(0,0,0,0.15), rgba(0,0,0,0));
  }
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item figcaption {
  padding: 0.6em 0.8em;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Position counter under the carousel — a plain "3 of 15" rather than 15
   individual dots, which would be too many to read at a glance. Exists
   mainly so a visitor (especially on a phone, where only one card is on
   screen at a time) has a clear signal that there's more to see. */
.gallery-counter {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-caption {
  margin: 0.8em 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Testimonials */
.testimonials {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.testimonial-slider {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  min-height: 130px;
  cursor: grab;
  touch-action: pan-y;
}
.testimonial-slider.dragging { cursor: grabbing; user-select: none; }

@media (max-width: 480px) {
  .testimonial-slider { min-height: 170px; }
}

.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.testimonial.active { opacity: 1; pointer-events: auto; }

.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  color: #fff;
  margin: 0 0 0.5em;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
/* Visible dot is small, but the button's real hit area is padded out to a
   more thumb-friendly size without changing how it looks. */
.dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.15s ease, transform 0.15s ease;
}
.dot.active::before { background: var(--red); transform: scale(1.15); }

/* Contact */
.contact { padding: 4rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}

.form-row { margin-bottom: 1.1rem; }
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35em;
  color: var(--text-muted);
}

input, textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7em 0.85em;
  color: #fff;
  font-family: var(--font-base);
  font-size: 1rem;
}
input:focus, textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* Marks the field(s) a submission was rejected for. Deliberately no
   focus/scroll on validation failure — moving the cursor scrolls the
   error message out of view on a phone, so the highlight is what points
   the user to the problem while the message stays on screen. */
input.field-invalid,
textarea.field-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(209, 26, 31, 0.28);
}
input.field-invalid:focus,
textarea.field-invalid:focus {
  outline-color: var(--red);
}

input[type="file"] {
  padding: 0.5em 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

input[type="file"]::file-selector-button {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6em 1.1em;
  margin-right: 1em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
input[type="file"]::file-selector-button:hover {
  background: #232220;
  border-color: var(--blue);
}

.field-hint {
  margin: 0.35em 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 0.7em;
}
.photo-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}
.photo-preview .remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(17,17,16,0.8);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}
.photo-preview .remove:hover { background: var(--red); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#submit-btn { margin-top: 0.5rem; }

#form-status {
  margin-top: 1rem;
  font-weight: 600;
}
#form-status.success { color: #7ce27c; }
#form-status.error { color: #ff8080; }

.contact-details address { font-style: normal; color: var(--text-muted); }

.map-embed {
  margin: 0.6em 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  position: relative;
}
.map-embed img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: filter 0.15s ease;
}
.map-embed:hover img { filter: brightness(1.1); }

.directions { margin: 0 0 1em; }
.directions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
.directions a:hover { color: var(--gold); filter: brightness(1.15); }
.contact-details h3 { margin-top: 1.5rem; font-size: 1.1rem; }

.hours-table { border-collapse: collapse; margin-top: 0.5rem; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.3em 1em 0.3em 0;
  color: var(--text-muted);
  font-weight: 400;
  border-bottom: 1px solid var(--border);
}
.hours-table th { color: #fff; font-weight: 600; }

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.social-links svg { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.social-links a:hover { color: #fff; }

/* Footer */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-inner p { margin: 0; color: var(--text-muted); }
.footer-credit { margin-top: 0.4em !important; font-size: 0.78rem; color: var(--text-muted); opacity: 0.75; }

/* Responsive */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { flex: 0 0 auto; justify-content: flex-end; }
  .nav-toggle { display: inline-flex; }
  /* Opens as a compact dropdown directly under the toggle button, not a
     full-width bar stretching under the whole header. */
  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 0.85rem 1.1rem;
    gap: 0.85rem;
    min-width: 160px;
    z-index: 60;
  }
  .nav-list.open { display: flex; }
  .form-row-half { grid-template-columns: 1fr; }

  /* The Facebook icon and the phone/email block wrap onto their own row
     together (as one group) and centre as a unit — keeps the icon sat
     to the left of the contact details instead of floating separately
     near the hamburger button, which looked disconnected/offset. */
  .header-contact-group {
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
  }
  .header-contact {
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
  }
  .header-contact-text { align-items: center; }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 0 3rem; }
  .brand img { height: 60px; }
}

/* Phones rotated to landscape: short viewport height means a full-size
   header logo eats a big chunk of the visible page and looks cramped
   against the nav/contact info. Shrink it and tighten padding rather than
   letting it "squash" against the rest of the header. True rotation
   locking isn't reliably available to a regular website (see script.js),
   so this is the practical fix. */
@media (orientation: landscape) and (max-height: 500px) {
  .brand img { height: 44px; }
  .header-inner { padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .hero { padding: 1.75rem 0 2rem; }
}
