@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&display=swap");

/* Sampled from the orange M in the final WMJR logo. */
:root {
  --orange: #ec4703;
  --wmjr-logo-width: min(810px, calc(100vw - 48px));
  --wmjr-footer-logo-width: min(240px, calc(100vw - 48px));
  --wmjr-display-font: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
}

.hero h1,
.info-hero h1,
.section h2,
.section .eyebrow,
.cta-panel h2,
.cta-panel .eyebrow,
.footer-label {
  font-family: var(--wmjr-display-font);
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero h1,
.info-hero h1 {
  line-height: .9;
}

.section h2,
.cta-panel h2 {
  line-height: .94;
}

/* Header and footer intentionally share one logo box. Keep the image from
   being resized by the header flex row or footer grid independently. */
.site-header .brand-logo {
  display: block;
  width: var(--wmjr-logo-width) !important;
  max-width: var(--wmjr-logo-width);
  height: auto;
  flex: 0 0 var(--wmjr-logo-width);
}

.site-footer .brand-logo {
  display: block;
  width: var(--wmjr-footer-logo-width) !important;
  max-width: var(--wmjr-footer-logo-width);
  height: auto;
  flex: 0 0 var(--wmjr-footer-logo-width);
}

.site-header .brand {
  width: var(--wmjr-logo-width);
}

.site-footer .brand {
  width: var(--wmjr-footer-logo-width);
}

.site-header + main > .section.container:first-child,
.header-text-nav + main > .section.container:first-child {
  padding-top: 32px;
}

.header-text-nav {
  background: #090909;
  border-bottom: 1px solid var(--line);
}

.header-text-nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
}

.header-text-nav a {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  color: #d5d5d5;
  font-size: calc(.7rem + 2px);
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.header-text-nav a:hover,
.header-text-nav a:focus-visible {
  color: var(--orange);
}

.footer-city-links {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  padding-top: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

.footer-grid {
  row-gap: 12px;
}

.footer-city-links .footer-label {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer-city-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.info-hero {
  padding-top: 72px;
  padding-bottom: 88px;
}

.info-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
}

.info-hero .hero-copy {
  max-width: 720px;
}

.service-area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.service-area-card {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
}

.service-area-card:hover,
.service-area-card:focus-visible {
  border-color: var(--orange);
}

.service-area-card span,
.contact-option span {
  color: var(--orange);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-area-card strong {
  font-family: var(--wmjr-display-font);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.contact-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.contact-option {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.contact-option:hover,
.contact-option:focus-visible {
  border-color: var(--orange);
}

.contact-option strong {
  font-family: var(--wmjr-display-font);
  font-size: 1.8rem;
  font-weight: 800;
}

.contact-option small {
  color: var(--muted);
  font-size: .78rem;
}

.footer-city-links a {
  text-decoration: none;
}

.footer-city-links a:hover {
  color: var(--orange);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.trust-list li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 12px;
  text-align: center;
  white-space: nowrap;
}

.trust-list li + li {
  border-left: 1px solid var(--line);
}

.mobile-app-nav .nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}

.mobile-app-nav svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 761px) {
  .header-row { min-height: 0; display: flex; justify-content: center; padding: 40px 0; }
  .brand-centered { position: static; transform: none; }
  .header-quote { position: absolute; right: 0; }
  .site-footer { padding-top: 32px; padding-bottom: 24px; }
  .hero { margin-top: 20px; }
  .hero-content { padding: 34px 0; }
  .proof-bar { margin-top: 36px; }
  .site-header { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
  .service-card-image { min-height: 350px; }
  .gallery-item { position: relative; }
  .gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.24)); pointer-events: none; }
  .gallery-item img { filter: saturate(.92) contrast(1.05); }
  .gallery-item:hover img { filter: saturate(1.08) contrast(1.08); }
  .hero-grid.services-hero { grid-template-columns: 1fr; min-height: 500px; }
  .hero-grid.services-hero .hero-content { max-width: 760px; }
}

/* Keep the CTA from covering the exact-size logo at narrower desktop widths
   and when a desktop browser is zoomed in. The logo itself is unchanged. */
@media (min-width: 761px) and (max-width: 1040px) {
  .header-row { flex-direction: column; gap: 20px; }
  .header-quote { position: static; align-self: center; order: 2; }
}

@media (max-width: 760px) {
  :root { --wmjr-logo-width: min(426px, calc(100vw - 32px)); }
  :root { --wmjr-footer-logo-width: min(170px, calc(100vw - 64px)); }
  .site-header + main > .section.container:first-child,
  .header-text-nav + main > .section.container:first-child { padding-top: 24px; }
  .header-text-nav-inner { width: 100%; justify-content: space-evenly; }
  .header-text-nav a { width: auto; min-width: 0; padding: 9px 4px; font-size: calc(clamp(.48rem, 2.4vw, .54rem) + 2px); letter-spacing: .02em; line-height: 1.1; text-align: center; }
  .site-footer { padding-top: 24px; padding-bottom: 18px; }
  .footer-grid { row-gap: 10px; }
  .footer-city-links { width: 100%; padding-top: 6px; margin-bottom: 24px; font-size: .68rem; }
  .footer-city-links .footer-label { margin-bottom: 8px; }
  .footer-city-list { gap: 10px 13px; }
  .info-hero { padding-top: 48px; padding-bottom: 56px; }
  .service-area-grid,
  .contact-option-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .service-area-card,
  .contact-option { padding: 20px; }
  .header-row { min-height: 0; display: flex; justify-content: center; padding: 10px 0; }
  .brand-centered { position: static; transform: none; }
  .hero-content { padding-top: 12px; }
  .hero-content h1 { margin-bottom: 14px; }
  .hero-content .hero-copy { margin-top: 0; }
  .trust-list { display: flex; width: calc(100vw - 32px); max-width: calc(100vw - 32px); gap: 0; font-size: .52rem; white-space: nowrap; }
  .trust-list li { flex: 0 0 33.333333%; width: 33.333333%; max-width: 33.333333%; overflow: hidden; padding: 12px 2px; }
  .trust-list li:before { margin-right: 4px; }
  .mobile-app-nav { display: flex; width: 100vw; max-width: 100vw; right: auto; grid-template-columns: none; gap: 0; background: #101010; overflow: hidden; }
  .mobile-app-nav a,
  .mobile-app-nav button { flex: 0 0 20%; width: 20%; max-width: 20%; min-width: 0; height: 58px; border-radius: 10px; overflow: hidden; }
  .mobile-app-nav a.active { background: #1d1d1d; }
  .mobile-app-nav .nav-icon { font-size: 0; }
  .mobile-app-nav .nav-icon-estimate { width: 26px; height: 26px; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 0; }
  .mobile-app-nav button { color: #a9a9a9; }
  .mobile-app-nav button .nav-icon-estimate svg { width: 22px; height: 22px; stroke-width: 1.8; }
  .mobile-app-nav button[data-open-estimate] { order: 5; }
  .mobile-app-nav a[href^="tel:"] { order: 3; }
  .mobile-app-nav a[href^="https://m.me/"] { order: 4; }
}
