/* ==========================================================================
   Sigma Radiologia Odontológica — sistema base
   Tokens, reset, tipografia e componentes compartilhados entre
   o site do paciente e o portal do dentista.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Marca (extraída do logotipo Sigma) */
  --brand-900: #01035c;
  --brand-700: #243a80;
  --brand-500: #4971a6;
  --brand-300: #6ca8ca;
  --brand-200: #8edfef;

  /* Semânticos — tema claro */
  --c-bg:          #ffffff;
  --c-surface:     #ffffff;
  --c-surface-2:   #f5f8fc;
  --c-surface-3:   #ecf2f9;
  --c-wash:        #eaf7fb;
  --c-line:        #dce3ef;
  --c-line-soft:   #edf1f8;
  --c-text:        #0b1020;
  --c-text-2:      #3a4256;
  --c-text-3:      #6b7488;
  --c-brand:       #01035c;
  --c-brand-soft:  #243a80;
  --c-accent:      #1863dc;
  --c-accent-hover:#124fb4;
  --c-accent-wash: #e8f0fe;
  --c-on-accent:   #ffffff;
  --c-sky:         #6ca8ca;

  /* Faixas escuras — idênticas nos dois temas, é território da marca */
  --c-invert-bg:    #01035c;
  --c-invert-bg-2:  #0a0f4a;
  --c-invert-text:  #ffffff;
  --c-invert-text-2:#b9c8ea;
  --c-invert-line:  rgba(142, 223, 239, .22);

  /* Canal WhatsApp (cor de canal, não é o acento da página) */
  --c-wa:       #1fb457;
  --c-wa-hover: #189246;

  --c-focus: #1863dc;

  /* Tipografia */
  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --step--2: clamp(.72rem, .70rem + .08vw, .76rem);
  --step--1: clamp(.82rem, .79rem + .12vw, .88rem);
  --step-0:  clamp(1rem, .965rem + .17vw, 1.075rem);
  --step-1:  clamp(1.14rem, 1.07rem + .3vw, 1.3rem);
  --step-2:  clamp(1.34rem, 1.21rem + .58vw, 1.65rem);
  --step-3:  clamp(1.6rem, 1.35rem + 1.05vw, 2.15rem);
  --step-4:  clamp(1.95rem, 1.53rem + 1.8vw, 2.95rem);
  --step-5:  clamp(2.3rem, 1.62rem + 2.9vw, 3.9rem);

  /* Ritmo */
  --gutter: clamp(1.15rem, .7rem + 2vw, 2.5rem);
  --wrap: 1200px;
  --wrap-narrow: 900px;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;

  --shadow-soft: 0 1px 2px rgba(11, 16, 32, .04), 0 12px 32px -12px rgba(1, 3, 92, .14);
  --shadow-lift: 0 2px 4px rgba(11, 16, 32, .05), 0 26px 56px -20px rgba(1, 3, 92, .26);
}

/* --- Tema -----------------------------------------------------------------
   A identidade da Sigma é clara: branco e azul. A página não segue o modo
   escuro do aparelho, para o paciente ver sempre as mesmas cores da marca.
   O conjunto escuro segue abaixo, aplicado só se alguém marcar
   data-theme="dark" no <html> — hoje ninguém marca.
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg:          #070a16;
  --c-surface:     #0d1224;
  --c-surface-2:   #101731;
  --c-surface-3:   #16203c;
  --c-wash:        #0e1c2c;
  --c-line:        #24304f;
  --c-line-soft:   #1a2340;
  --c-text:        #edf2fb;
  --c-text-2:      #b6c1d8;
  --c-text-3:      #8590a8;
  --c-brand:       #cbe7f8;
  --c-brand-soft:  #9fc4e8;
  --c-accent:      #5b9dff;
  --c-accent-hover:#7fb3ff;
  --c-accent-wash: #12203f;
  --c-on-accent:   #05122c;
  --c-sky:         #8edfef;
  --c-invert-bg:   #050830;
  --c-invert-bg-2: #04062a;
  --c-wa:          #2fd06a;
  --c-wa-hover:    #4ee089;
  --c-focus:       #7fb3ff;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 26px 56px -20px rgba(0, 0, 0, .8);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--c-brand);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -.032em; }
h2 { font-size: var(--step-4); letter-spacing: -.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { text-wrap: pretty; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.stack { display: flex; flex-direction: column; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: .9em; }

/* --- Marca ---------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo__mark { width: 46px; flex: none; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.012em;
  color: var(--c-brand);
}
.logo__sub {
  font-size: .555rem;
  letter-spacing: .155em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-text-3);
  margin-top: .3rem;
}
.logo--invert .logo__name { color: #fff; }
.logo--invert .logo__sub { color: var(--brand-200); }

/* Losangos da marca usados como divisor / indicador de etapa */
.diamonds { display: inline-flex; align-items: center; gap: 3px; }
.diamonds i {
  display: block; width: 9px; height: 9px; rotate: 45deg; border-radius: 1px;
  background: var(--brand-900); transition: background .35s ease, scale .35s ease;
}
.diamonds i:nth-child(2) { background: var(--brand-700); }
.diamonds i:nth-child(3) { background: var(--brand-500); }
.diamonds i:nth-child(4) { background: var(--brand-300); }
.diamonds i:nth-child(5) { background: var(--brand-200); }

/* --- Rótulos e títulos de seção ------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono);
  font-size: var(--step--2);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; rotate: 45deg; border-radius: 1px;
  background: var(--c-accent); flex: none;
}
.eyebrow--invert { color: var(--brand-200); }
.eyebrow--invert::before { background: var(--brand-200); }

.section-head { display: flex; flex-direction: column; gap: .9rem; max-width: 62ch; }
.section-head p { color: var(--c-text-2); font-size: var(--step-1); }

/* --- Botões --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-accent);
  --btn-fg: var(--c-on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--c-accent-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--wa { --btn-bg: var(--c-wa); --btn-fg: #fff; }
.btn--wa:hover { background: var(--c-wa-hover); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--c-brand);
  border-color: var(--c-line);
}
.btn--ghost:hover { background: var(--c-surface-2); border-color: var(--c-accent); }

.btn--onDark {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .34);
}
.btn--onDark:hover { background: rgba(255, 255, 255, .1); border-color: var(--brand-200); }

.btn--lg { padding: 1rem 1.9rem; font-size: var(--step-0); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-display); font-weight: 600; font-size: var(--step--1);
  color: var(--c-accent); text-decoration: none;
}
.link-arrow span { transition: translate .2s ease; }
.link-arrow:hover span { translate: 4px 0; }

/* --- Cabeçalho ------------------------------------------------------------ */
.topbar {
  background: var(--c-invert-bg);
  color: var(--c-invert-text-2);
  font-size: var(--step--1);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 42px; flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar__group { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.topbar svg { width: 15px; height: 15px; opacity: .75; }
@media (max-width: 800px) { .topbar__group--sec { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 78px;
}
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem .7rem; border-radius: 999px; text-decoration: none;
  font-family: var(--f-display); font-weight: 500; font-size: .855rem;
  color: var(--c-text-2); white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--c-brand); background: var(--c-surface-2); }
.nav a[aria-current="page"] { color: var(--c-accent); }
.header-actions { display: flex; align-items: center; gap: .7rem; flex: none; }
.nav .nav__switch { display: none; }

/* Alternador de público */
.switcher {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--c-line); border-radius: 999px;
  background: var(--c-surface-2);
}
.switcher a {
  padding: .38rem .82rem; border-radius: 999px; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: .78rem;
  color: var(--c-text-3); white-space: nowrap; transition: all .18s ease;
}
.switcher a:hover { color: var(--c-brand); }
.switcher a[aria-current="page"] {
  background: var(--c-brand); color: var(--c-bg);
  box-shadow: 0 1px 2px rgba(1, 3, 92, .3);
}
:root[data-theme="dark"] .switcher a[aria-current="page"] { color: #050830; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-line);
  border-radius: 12px; background: var(--c-surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--c-brand); content: ""; transition: transform .25s ease, opacity .2s ease;
}
.burger span { position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: auto 0 0 0; top: var(--header-h, 120px);
    z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem;
    background: var(--c-bg); border-top: 1px solid var(--c-line);
    box-shadow: -12px 0 40px -12px rgba(1, 3, 92, .28);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s;
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; }

  /* Véu atrás da gaveta: separa o menu do conteúdo e fecha ao tocar fora. */
  .nav-scrim {
    /* Começa abaixo do cabeçalho: o logo e o botão de fechar continuam nítidos
       e o X recebe o toque direto, sem o véu na frente. */
    position: fixed; inset: var(--header-h, 120px) 0 0 0; z-index: 89;
    background: rgba(1, 3, 92, .38);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
    border: 0; padding: 0; margin: 0; cursor: pointer;
  }
  .nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
  .nav .nav__switch { display: block; color: var(--c-accent); font-weight: 600; }
  .nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--c-line-soft); border-radius: 0; font-size: 1.05rem; }
  .header-actions .switcher { display: none; }
}
@media (max-width: 620px) {
  .header-actions .btn { display: none; }
}

.nav-scrim { display: none; }
@media (max-width: 1240px) { .nav-scrim { display: block; } }

/* --- Rodapé --------------------------------------------------------------- */
.site-footer {
  background: var(--c-invert-bg);
  color: var(--c-invert-text-2);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
}
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1.1rem;
}
.footer-grid {
  display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p, .site-footer li { font-size: var(--step--1); line-height: 1.75; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--brand-200); }
.footer-hours { display: grid; grid-template-columns: auto auto; gap: .3rem 1.2rem; font-size: var(--step--1); }
.footer-hours dt { color: var(--c-invert-text-2); }
.footer-hours dd { margin: 0; color: #fff; font-family: var(--f-mono); font-size: .82rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--c-invert-line); transition: all .2s ease;
}
.footer-social a:hover { background: var(--brand-200); border-color: var(--brand-200); color: var(--c-invert-bg); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--c-invert-line);
  padding-block: 1.4rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: var(--step--2);
}
.cro-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.cro-badges span {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em;
  padding: .28rem .6rem; border: 1px solid var(--c-invert-line); border-radius: 4px; color: #fff;
}

/* --- Botão flutuante WhatsApp --------------------------------------------- */
.wa-fab {
  position: fixed; right: clamp(1rem, .5rem + 1.5vw, 1.75rem); bottom: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  z-index: 70; display: inline-flex; align-items: center; gap: .6rem;
  padding: .82rem 1.2rem .82rem .95rem; border-radius: 999px;
  background: var(--c-wa); color: #fff; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: .875rem;
  box-shadow: 0 12px 28px -8px rgba(31, 180, 87, .55);
  transition: transform .2s ease, background .2s ease;
}
.wa-fab:hover { background: var(--c-wa-hover); transform: translateY(-2px); }
.wa-fab svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 560px) { .wa-fab__label { display: none; } .wa-fab { padding: .9rem; } }

/* --- Acordeão ------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: var(--step-1);
  color: var(--c-brand); transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-accent); }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: .2rem;
  background:
    linear-gradient(var(--c-accent), var(--c-accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--c-accent), var(--c-accent)) center / 2px 12px no-repeat;
  transition: rotate .25s ease, background-size .25s ease;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq__body { padding: 0 3rem 1.6rem .25rem; color: var(--c-text-2); max-width: 68ch; }
.faq__body p + p { margin-top: .75em; }


/* --- Formulários (compartilhados) ----------------------------------------- */
.form-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}
.field-grid { display: grid; gap: 1.05rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-display); font-weight: 600; font-size: .8rem;
  color: var(--c-text-2); letter-spacing: .01em;
}
.field label .req { color: var(--c-accent); }
.field input, .field select, .field textarea {
  padding: .72rem .9rem; border-radius: 10px;
  border: 1px solid var(--c-line); background: var(--c-surface-2);
  font-size: var(--step--1); color: var(--c-text);
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-accent); background: var(--c-surface); outline-offset: 1px;
}
.field input:user-invalid, .field select:user-invalid { border-color: #d1443b; }
.field__hint { font-size: .74rem; color: var(--c-text-3); }
.form-foot { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.form-note { font-size: .78rem; color: var(--c-text-3); line-height: 1.55; }

.chip-set { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-set input { position: absolute; opacity: 0; pointer-events: none; }
.chip-set label {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--c-line); background: var(--c-surface-2);
  font-family: var(--f-display); font-weight: 500; font-size: .82rem; color: var(--c-text-2);
  transition: all .18s ease;
}
.chip-set label:hover { border-color: var(--c-sky); }
.chip-set input:checked + label {
  background: var(--c-accent-wash); border-color: var(--c-accent); color: var(--c-accent); font-weight: 600;
}
.chip-set input:focus-visible + label { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* Retorno de status dos formulários (superfícies claras) */
.form-status {
  margin-top: .2rem; font-size: var(--step--1); line-height: 1.55;
  padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--c-line); background: var(--c-surface-2); color: var(--c-text-2);
}
.form-status[data-state="ok"] {
  border-color: color-mix(in srgb, var(--c-accent) 45%, transparent);
  background: var(--c-accent-wash); color: var(--c-accent);
}
.form-status[data-state="miss"] {
  border-color: #d1913b; background: color-mix(in srgb, #d1913b 12%, transparent); color: #8a5a12;
}
:root[data-theme="dark"] .form-status[data-state="miss"] { color: #ffd7a8; }
/* --- Utilidades ----------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: .75rem; top: -100px; z-index: 200;
  background: var(--c-accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Revelação suave: parte de um estado visível e só anima quem entra depois */
.reveal { opacity: 1; }
.js .reveal[data-revealed="false"] { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal[data-revealed="false"] { opacity: 1; transform: none; }
  .js .reveal { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Unidades (compartilhado) --------------------------------------------- */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 820px) { .units { grid-template-columns: 1fr; } }

.unit {
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.unit__map { flex: none; aspect-ratio: 16 / 9; background: var(--c-surface-3); border-bottom: 1px solid var(--c-line); }
.unit__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
.unit__body { padding: 1.5rem 1.55rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.unit__tag {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--c-accent);
}
.unit h3 { font-size: var(--step-1); }
.unit__addr { font-size: var(--step--1); color: var(--c-text-2); line-height: 1.6; flex: 1; }
.unit__addr b { color: var(--c-text); font-weight: 600; }
.unit__foot {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin-top: .55rem; padding-top: 1rem; border-top: 1px solid var(--c-line-soft);
}
.unit__foot a {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-display); font-weight: 600; font-size: .84rem;
  color: var(--c-accent); text-decoration: none;
}
.unit__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.unit__foot svg { width: 15px; height: 15px; }

/* Faixa de informações válidas para as duas unidades */
.unit-common {
  display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: flex-start;
  padding: 1.3rem 1.5rem; margin-bottom: 1.6rem;
  border: 1px solid var(--c-line); border-left: 3px solid var(--c-sky);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--c-surface);
}
.unit-common div { display: flex; gap: .7rem; }
.unit-common svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; margin-top: .25rem; }
.unit-common strong {
  display: block; font-family: var(--f-display); font-size: .82rem; color: var(--c-brand);
  letter-spacing: .01em;
}
.unit-common span, .unit-common a { font-size: var(--step--1); color: var(--c-text-2); }
.unit-common a { text-decoration: none; }
.unit-common a:hover { color: var(--c-accent); }

/* Ficha de cada unidade: horário, responsável técnico e registro */
.unit__meta {
  display: grid; gap: .55rem; margin: .2rem 0 0;
  padding-top: .95rem; border-top: 1px solid var(--c-line-soft);
}
.unit__meta > div { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.unit__meta dt {
  font-family: var(--f-display); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--c-text-3); padding-top: .12rem;
}
.unit__meta dd { margin: 0; font-size: var(--step--1); color: var(--c-text-2); line-height: 1.55; }
.unit__meta dd b { color: var(--c-text); font-weight: 600; }
@media (max-width: 460px) {
  .unit__meta > div { grid-template-columns: 1fr; gap: .1rem; }
}
