/* ==========================================================================
   Amarillo Collision Repair — splash page styles
   Palette sampled from the shop building: red steel trim on white panel,
   overcast grey sky, concrete apron.
   ========================================================================== */

   :root {
    --red:        #cf1f27;
    --red-dark:   #96131a;
    --ink:        #16181a;
    --ink-soft:   #5b6167;
    --panel:      #ffffff;
    --concrete:   #eceeef;
    --rule:       #d8dcde;
  
    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-body:    'IBM Plex Sans', system-ui, sans-serif;
    --font-data:    'IBM Plex Mono', ui-monospace, monospace;
  
    --trim: 10px;          /* thickness of the red roofline band */
    --gutter: clamp(1.25rem, 5vw, 3.5rem);
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  
  html { -webkit-text-size-adjust: 100%; }
  
  body {
    margin: 0;
    background: var(--concrete);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); /* clears the fixed action bar */
  }
  
  img { display: block; max-width: 100%; height: auto; }
  
  a { color: var(--red-dark); }
  
  :focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
  }
  
  /* --- Centered shell. The whole site is one panel sitting on the concrete,
         which is also why the red trim reads as a roofline. ---------------- */
  .shell {
    max-width: 68rem;   /* was 62rem */
    margin: 0 auto;
    background: var(--panel);
  }
  
  /* --- The red roofline band. Signature device: it echoes the steel trim
         that wraps the top of the actual building. ------------------------- */
  .trim {
    height: var(--trim);
    background: var(--red);
  }
  
  /* --- Hero ---------------------------------------------------------------- */
  .hero {
    display: grid;
    background: var(--panel);
    border-bottom: 1px solid var(--rule);
  }
  
  .hero__panel {
    padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
    align-self: center;
  }
  
  /* The logo is the page's h1 — an <img> inside <h1> so the business name is
     the top-level heading via alt text, with no visual change. */
  .hero__brand {
    margin: 0 0 0.5rem;   /* gap between logo and lede — tune this value */
    font-size: 0; /* collapses any stray whitespace node around the img */
    line-height: 0;
  }
  
  .hero__logo {
    width: clamp(178px, 44vw, 240px);
    height: auto;
  }
  
  h1 {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-weight: 400;                 /* Anton ships one weight */
    font-size: clamp(2.3rem, 7.5vw, 4rem);
    line-height: 0.98;
    letter-spacing: 0.005em;
    text-transform: uppercase;
  }
  
  /* The lede is the only prose on the hero, so it's set as a statement:
     dark ink, up in size, tighter leading than body copy. */
  .lede {
    margin: 0 0 2.25rem;
    max-width: 30ch;
    color: var(--ink);
    font-size: clamp(1.15rem, 1.05rem + 0.7vw, 1.5rem);
    line-height: 1.38;
    text-wrap: pretty;
  }
  
  .lede strong {
    font-weight: 600;
  }
  
  /* Call button — the page's one job on mobile. */
  .btn {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem 2rem;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    border-bottom: 4px solid var(--red-dark);
    transition: background 0.15s ease, transform 0.15s ease;
  }
  
  .btn:hover { background: var(--red-dark); }
  .btn:active { transform: translateY(2px); border-bottom-width: 2px; }
  
  .btn__label {
    font-family: var(--font-data);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
  }
  
  .btn__num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
  }
  
  /* Photo is only 382px wide, so it never stretches full-bleed —
     it sits in a capped column and crops via object-fit instead. */
  .hero__photo { background: var(--ink); }
  
  .hero__photo img {
    width: 100%;
    height: 100%;
    max-height: 22rem;
    object-fit: cover;
    object-position: center 42%;   /* keeps the painted sign in frame */
  }
  
  /* --- Info cards --------------------------------------------------------- */
  .info {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  
  .card {
    background: var(--panel);
    padding: clamp(1.5rem, 4vw, 2.25rem) var(--gutter);
    border-top: var(--trim) solid var(--red);
  }
  
  .card__title {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  
  /* Hours use the mono face so the times form a true column —
     it reads like the card taped inside a shop door. */
  .hours { margin: 0; font-family: var(--font-data); font-size: 0.9rem; }
  
  .hours__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
  }
  
  .hours__row:last-child { border-bottom: 0; }
  .hours__row dt { font-weight: 600; }
  .hours__row dd { margin: 0; text-align: right; }
  .hours__row--off { color: var(--ink-soft); }
  
  address {
    font-style: normal;
    margin-bottom: 1.1rem;
  }
  
  /* The address is the directions link — pin, address, and a quiet cue that
     it goes somewhere. Replaces a separate "Get directions" line. */
  .findus {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
  }
  
  .findus__icon {
    flex: none;
    width: 19px;
    height: 19px;
    margin-top: 0.15em;
    color: var(--red);
    transition: transform 0.15s ease;
  }
  
  .findus__cta {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-data);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
  }
  
  .findus:hover .findus__text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
  .findus:hover .findus__icon,
  .findus:focus-visible .findus__icon { transform: translateY(-2px); }
  
  /* Map embed — aspect-ratio box so the iframe scales without a JS hack. */
  .map {
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
    background: var(--concrete);
    border: 1px solid var(--rule);
  }
  
  .map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  /* Contact rows: icon and value on one baseline-ish row. */
  .contact {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.75rem;
  }
  
  .contact--phone { margin-bottom: 0.9rem; }
  
  .contact__icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--red);
    transition: transform 0.15s ease;
  }
  
  .contact--phone .contact__icon {
    width: 22px;
    height: 22px;
  }
  
  /* Lift the icon when its link is hovered or focused — matches the map pin.
     :has() scopes it to the link itself rather than the whole row. */
  .contact:has(a:hover) .contact__icon,
  .contact:has(a:focus-visible) .contact__icon {
    transform: translateY(-2px);
  }
  
  .link {
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
  }
  
  .link--big {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.55rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-bottom: 3px solid var(--red);
  }
  
  .link--big:hover { color: var(--red); }
  
  /* --- Footer ------------------------------------------------------------- */
  .foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    justify-content: space-between;
    padding: 1.5rem var(--gutter);
    font-family: var(--font-data);
    font-size: 0.75rem;
    color: var(--ink-soft);
  }
  
  .foot p { margin: 0; }
  
  .foot__credit a {
    color: inherit;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }
  
  .foot__credit a:hover { color: var(--red); }
  
  /* --- Fixed action bar, mobile only -------------------------------------- */
  .callbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--red);
    border-top: 3px solid var(--red-dark);
    /* keeps the bar clear of the iPhone home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  
  .callbar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 3.4rem;
    padding: 0.65rem 0.35rem;
    color: #fff;
    font-family: var(--font-data);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
  }
  
  .callbar__btn + .callbar__btn {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
  }
  
  .callbar__btn:active { background: var(--red-dark); }
  
  .callbar__icon {
    width: 21px;
    height: 21px;
    flex: none;
  }
  
  /* --- Wider screens ------------------------------------------------------ */
  @media (min-width: 46rem) {
    body { padding-bottom: 0; }
    .callbar { display: none; }
  
    /* Let the concrete show around the panel once there's room for it. */
    .shell {
      margin: 2.5rem auto;
      box-shadow: 0 2px 28px rgba(22, 24, 26, 0.13);
    }
  
    .hero {
      grid-template-columns: 1fr minmax(19rem, 24rem);
    }
  
    .hero__panel { order: 1; }
    .hero__photo { order: 2; }
  
    .hero__photo img {
      max-height: none;
      min-height: 26rem;
    }
  
    .info { grid-template-columns: repeat(3, 1fr); }
  }
  
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
  }

  .contact--email .link {
    font-size: 1rem;
    white-space: nowrap;
  }