/* MC Truck Wash adaptation layer for the Currie concept stylesheet. */
:root {
  --ink: #172b42;
  --dark: #10263d;
  --accent: #2458a6;
  --accent-dark: #19427f;
  --accent-light: #a9c8f2;
  --paper: #f4f6f8;
  --sage: #e8eef5;
  --line: #d4dce5;
  --muted: #526273;
}

html, body { max-width: 100%; }
body { overflow-x: clip; }
[id] { scroll-margin-top: 100px; }

/* The generated mark is an inline SVG plus a compact two-line wordmark. */
.wordmark {
  display: inline-flex;
  width: 190px;
  min-width: 0;
  gap: 10px;
  justify-content: center;
  color: var(--accent);
}
.wordmark .mc-mark { display: block; width: 42px; height: 42px; flex: none; }
.wordmark .mc-name { display: flex; min-width: 0; flex-direction: column; justify-content: center; color: var(--ink); line-height: 1; text-align: left; }
.wordmark .mc-name strong { font: 800 21px/.95 var(--body); letter-spacing: -.055em; }
.wordmark .mc-name small { margin-top: 4px; font: 800 8px/1.1 var(--body); letter-spacing: .14em; }
.wordmark-light, .wordmark-light .mc-name { color: #fff; }
.wordmark-light .mc-mark { color: var(--accent); }
.footer-bottom .wordmark { width: 220px; }
.header-mobile-call { display: none; }

/* Preserve the template's edge-to-edge photographic hero and white quote form. */
.hero { min-height: 690px; }
.hero-content { min-height: 690px; }
.hero-image picture { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-image picture img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero::before { background: linear-gradient(90deg, #0b1a2bcc 0%, #10243b9c 43%, #12243930 100%), linear-gradient(0deg, #0b1a2b70, transparent 48%); }
.hero-panel { border: 0; border-radius: 2px; box-shadow: 0 16px 48px #08182b3d; }
.panel-step { color: var(--accent-dark); }

/* Picture elements need to occupy the same reserved crop box as their image. */
.story-image picture, .listing-card picture, .project-detail > div > picture,
.service-photo-grid picture, .page-hero.with-image > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.story-image picture { position: absolute; inset: 0; }
.story-image picture img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.with-image > picture { position: absolute; inset: 0; z-index: -2; }
.page-hero.with-image > picture img { width: 100%; height: 100%; object-fit: cover; }
.listing-card picture { height: 350px; }
.listing-card picture img { width: 100%; height: 100%; object-fit: cover; }
.project-detail > div > picture { max-height: 650px; }
.project-detail > div > picture img { width: 100%; max-height: 650px; object-fit: cover; }
.gallery-card picture { display: block; width: 100%; height: clamp(270px,25vw,360px); overflow: hidden; }
.gallery-card picture img { width: 100%; height: 100%; object-fit: cover; }

.service-photo-grid { margin-top: 62px; }
.service-photo-grid .listing-card picture { height: 300px; }
.service-stage img { object-position: center 55%; }
.service-tabs button[aria-pressed='true']::before { background: var(--accent-light); }
.inline-source, .contact-official { font-size: .88em; }
.inline-source { display: inline; color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-official { color: var(--muted); }
.draft-link { margin-top: 12px; }

@media (max-width: 1000px) {
  .hero, .hero-content { min-height: 0; }
  .hero-content { grid-template-columns: minmax(0,1fr) minmax(340px,.9fr); }
  .service-photo-grid .listing-card picture { height: 270px; }
}

@media (max-width: 700px) {
  .site-header { grid-template-columns: 44px minmax(0,1fr) auto; gap: 5px; padding-inline: 12px; }
  .header-left { display: contents; }
  .menu-button { grid-column: 1; grid-row: 1; }
  .wordmark { grid-column: 2; grid-row: 1; justify-self: center; width: auto; gap: 7px; }
  .wordmark .mc-mark { width: 36px; height: 36px; }
  .wordmark .mc-name strong { font-size: 18px; }
  .wordmark .mc-name small { font-size: 7px; }
  .header-shortcut { display: none; }
  .header-mobile-call {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    padding: 0 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }
  .hero { min-height: 0; }
  .hero-image { height: 100%; }
  .hero-image picture img { object-position: 56% center; }
  .hero::before { background: linear-gradient(0deg,#0b1a2bed 0%,#10243bc7 61%,#10243b93 100%); }
  .hero-content { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 64px 20px 54px; }
  .hero-copy { width: 100%; }
  .hero h1 { max-width: 13ch; }
  .hero-panel { align-self: stretch; width: 100%; padding: 23px 20px; }
  .gallery-card picture { height: 300px; }
  .listing-card picture, .service-photo-grid .listing-card picture { height: 290px; }
  .story-image picture { position: absolute; }
  .service-photo-grid { margin-top: 45px; }
}

@media (max-width: 370px) {
  .site-header { grid-template-columns: 38px minmax(0,1fr) auto; gap: 3px; padding-inline: 8px; }
  .menu-button { width: 38px; }
  .wordmark { gap: 5px; }
  .wordmark .mc-mark { width: 31px; height: 31px; }
  .wordmark .mc-name strong { font-size: 16px; }
  .wordmark .mc-name small { font-size: 6px; letter-spacing: .1em; }
  .header-mobile-call { min-height: 39px; padding-inline: 7px; font-size: 11px; }
  .hero-content { padding-inline: 16px; }
  .hero-panel { padding-inline: 16px; }
  .contact-card-header { font-size: 8px; }
}
