/* Shared responsive layout for the CLRA website. */
.mobile-menu { display: none; }
.mobile-quick-nav { display: none; }
img { max-width: 100%; }
input, select, textarea { min-width: 0; max-width: 100%; }
:where(a, button, summary, input, textarea, select):focus-visible {
  outline: 3px solid #d7192d;
  outline-offset: 4px;
}
html { scroll-padding-top: 100px; }
@media (max-width: 1100px) {
  header { position: sticky; top: 0; z-index: 40; }
  header > nav.wrap, header > .nav {
    position: relative; height: auto; min-height: 76px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
  }
  header .links, header .back { display: none; }
  header .brand-logo, header .logo { width: 150px; height: 60px; display: block; }
  .mobile-menu { display: block; color: #17191d; }
  .mobile-menu > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center;
    gap: 9px; min-height: 46px; padding: 8px 14px; border-radius: 8px;
    background: #fff; border: 1px solid #d7dce3; font: 750 1rem/1.4 system-ui, sans-serif;
  }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .menu-icon { color: #d7192d; font-size: 1.25rem; }
  .mobile-menu[open] > summary { border-color: #d7192d; background: #fff4f5; }
  header .mobile-menu-panel {
    position: absolute; inset: calc(100% + 1px) 0 auto; width: 100%; height: auto;
    max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px);
    overflow-y: auto; overscroll-behavior: contain; display: grid;
    gap: 0; padding: 8px; background: #fff; border: 1px solid #dfe3e8;
    border-radius: 0 0 12px 12px; box-shadow: 0 15px 25px #17202d26;
  }
  .mobile-menu-panel a {
    display: flex; align-items: center; min-height: 48px; padding: 11px 14px;
    color: #20252d; font-size: 1rem; font-weight: 700; border-radius: 6px;
  }
  .mobile-menu-panel a:hover, .mobile-menu-panel a:focus-visible { background: #f3f5f7; }
  .mobile-menu-panel a.mobile-emergency { color: #c9162a; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .top { font-size: .75rem; line-height: 1.5; letter-spacing: .03em; padding: 8px 16px; }
  body.home .hero { min-height: auto; }
  .hero-content { padding: 48px 0 56px; max-width: 100%; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
  .hero p { font-size: 1rem; line-height: 1.65; }
  .eyebrow, .kicker { font-size: .8125rem; letter-spacing: .08em; }
  .eyebrow { flex-wrap: wrap; gap: 8px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; text-align: center; min-height: 48px; padding: 12px; }
  .trust { gap: 8px; flex-direction: column; font-size: .875rem; }
  section { padding: 48px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(n) { min-height: auto; padding: 24px; }
  .service h3 { margin-top: 20px; }
  .about-copy, .emergency-copy, .loc-copy { padding: 30px 22px; }
  .about-copy h2, .section-head h2, .emergency h2 {
    font-size: clamp(2rem, 9vw, 3rem); line-height: 1.08;
  }
  .emergency-side { padding: 20px; min-height: auto; }
  .emergency-card { padding: 24px 18px; }
  .emergency-side strong { white-space: normal; }
  .emergency-side small { letter-spacing: .04em; font-size: .875rem; line-height: 1.6; }
  main { padding-top: 32px; padding-bottom: 48px; }
  body.home main { padding: 0; }
  .intro { margin-bottom: 28px; }
  .intro h1 { font-size: clamp(2rem, 9vw, 3.5rem); line-height: 1.08; letter-spacing: -.04em; }
  h1, h2, h3 { overflow-wrap: anywhere; }
  .intro p { font-size: 1rem; line-height: 1.65; }
  .catalog-browser { margin-top: 32px; }
  .catalog-browser h2 { font-size: 1.75rem; line-height: 1.2; }
  .catalog-note { padding: 20px; margin: 24px 0; }
  .catalog-search { font-size: 1rem; min-height: 48px; }
  .catalog-groups { grid-template-columns: minmax(0, 1fr); }
  .catalog-group summary {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px;
    min-height: 96px; padding: 14px;
  }
  .catalog-group .group-photo { width: 64px; height: 64px; grid-row: 1 / 3; }
  .catalog-group summary strong { font-size: .875rem; line-height: 1.4; align-self: end; overflow-wrap: anywhere; }
  .catalog-group summary span:not(.group-photo) { font-size: .875rem; grid-column: 2; align-self: start; }
  .catalog-group ul { padding: 0 16px 12px; }
  .item-body { min-width: 0; overflow-wrap: anywhere; }
  .catalog-group .item-body strong { font-size: 1rem; }
  .catalog-group a { display: flex; align-items: center; min-height: 44px; font-size: .875rem; }
  .contact-grid, .more { grid-template-columns: minmax(0, 1fr); }
  .contact-card, .more section, .contact, .form { padding: 24px 20px; min-width: 0; }
  .contact-card .number { font-size: 1.3rem; white-space: normal; }
  .contact-card .cta { margin-top: 20px; align-self: stretch; }
  .line a { overflow-wrap: anywhere; }
  .cta, .whatsapp, .whatsapp-contact, .call { min-height: 48px; align-items: center; text-align: center; }
  .field, .grid > *, .location > *, .content > * { min-width: 0; }
  .field input, .field textarea, .field select { font-size: 1rem; }
  .emergency .content { padding: 30px 20px; gap: 24px; }
  .emergency .copy h1 { font-size: clamp(2.3rem, 10vw, 3.5rem); line-height: 1.05; }
  .emergency .panel { padding: 24px 18px; }
  .emergency .details { padding: 0; grid-template-columns: 1fr; }
  .map { min-height: 350px; }
  .foot { flex-direction: column; gap: 16px; font-size: .9375rem; }
  footer { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .floating { width: 52px; height: 52px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 760px) {
  .mobile-quick-nav {
    position: fixed; inset: auto 0 0; z-index: 50;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    height: auto; gap: 4px; margin: 0;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: #fff; border-top: 1px solid #dfe3e8;
    box-shadow: 0 -4px 20px #17202d12;
  }
  .mobile-quick-nav a {
    min-width: 0; min-height: 62px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px; padding: 6px 2px;
    border-radius: 8px; color: #424a55; font: 700 .875rem/1.35 system-ui, sans-serif;
    text-align: center; overflow-wrap: anywhere; text-decoration: none;
  }
  .mobile-quick-nav svg { width: 23px; height: 23px; flex-shrink: 0; }
  .mobile-quick-nav a[aria-current="page"] { background: #fff0f2; color: #b70e22; }
  .mobile-quick-nav .quick-emergency { color: #b70e22; }
  .mobile-quick-nav a:focus-visible { outline-offset: -3px; }
  .floating { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
  footer { padding-bottom: calc(174px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: 110px; }
}
