/* =========================================================================
   paultan.org × Carro — Sell your car landing page
   Mobile-first, palette: white / grey / black + paultan.org brand red accent
   ========================================================================= */

:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface-2: #fafafa;
  --surface-dark: #0a0a0a;
  --text: #0a0a0a;
  --text-soft: #1a1a1a;
  --muted: #5a5a5a;
  --muted-2: #8a8a8a;
  --border: #e5e5e5;
  --border-strong: #cfcfcf;

  --accent: #ea2127;            /* paultan.org brand red (matches paultan_logo.svg) */
  --accent-hover: #c81920;
  --accent-ink: #ffffff;
  --ring: rgba(234, 33, 39, 0.28);
  --ring-soft: rgba(234, 33, 39, 0.15);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 28px -16px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 10px 32px -12px rgba(0, 0, 0, 0.18), 0 4px 12px -6px rgba(0, 0, 0, 0.08);

  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
}

/* ----------------------------- base ----------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

/* ----------------------------- a11y helpers ----------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: var(--radius-sm);
}

/* ----------------------------- header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(6px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__pt {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__pt img {
  height: 32px;
  width: auto;
}

.site-header__tail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__partnership {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__divider {
  width: 1px;
  height: 26px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.site-header__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

@media (max-width: 419px) {
  .site-header__partnership {
    display: none;
  }
}

.site-header__carro {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.site-header__carro img {
  height: 22px;
  width: auto;
}

@media (min-width: 768px) {
  .site-header__inner {
    padding: 0.9rem 1.5rem;
    gap: 1rem;
  }

  .site-header__tail,
  .site-header__partnership {
    gap: 1rem;
  }

  .site-header__pt img {
    height: 36px;
  }

  .site-header__carro img {
    height: 26px;
  }
}

/* ----------------------------- main / sections ----------------------------- */

main {
  display: block;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

@media (min-width: 768px) {
  .section-inner {
    padding: 3.5rem 1.5rem;
  }
}

.section-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* ----------------------------- hero + form (above the fold) ----------------------------- */

.landing-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .landing-top {
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2.75rem 1.5rem 3rem;
  }
}

.landing-hero {
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--ring-soft);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 4px;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 2px;
}

.hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
}

.trust-chips {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}

.trust-chips svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero__art {
  margin-top: 1rem;
  pointer-events: none;
  display: none;
}

@media (min-width: 480px) {
  .hero__art {
    display: block;
    max-width: 380px;
    margin-top: 1.25rem;
  }
}

@media (min-width: 992px) {
  .hero__art {
    margin-top: 1.5rem;
    max-width: 100%;
  }
}

/* ----------------------------- form card ----------------------------- */

.landing-form-wrap {
  scroll-margin-top: 5rem;
}

.form-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .form-card {
    padding: 1.75rem;
  }
}

.form-card__head {
  margin-bottom: 1rem;
}

.form-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.form-card__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* step progress */

.step-progress {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-progress__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem 0.4rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition-fast);
}

.step-progress__num {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.step-progress__pill.is-active {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--ring-soft);
}

.step-progress__pill.is-active .step-progress__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.step-progress__pill.is-done {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.step-progress__pill.is-done .step-progress__num {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--text);
}

.step-progress__bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  list-style: none;
  position: relative;
  overflow: hidden;
}

.step-progress__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.step-progress[data-step="2"] .step-progress__bar::after {
  transform: scaleX(1);
}

@media (max-width: 380px) {
  .step-progress__label {
    display: none;
  }
  .step-progress__pill {
    padding: 0.4rem;
  }
}

/* steps (fieldsets) */

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.step[hidden] {
  display: none;
}

.step.is-active {
  animation: fadeInUp 0.25s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sell-form-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .sell-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    align-items: start;
  }

  .sell-form-grid .form-group--full {
    grid-column: 1 / -1;
  }
}

.form-group {
  margin: 0;
  min-width: 0;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group .field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-height: 46px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: var(--muted-2);
}

.form-control:hover:not(:disabled) {
  border-color: var(--text);
}

.form-control:focus,
.form-control:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-control:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230a0a0a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 10px;
  padding-right: 2.25rem;
}

.form-consent {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* buttons */

.btn-primary,
.btn-ghost {
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px -4px var(--ring);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 4px 14px -4px var(--ring);
}

.btn-primary--block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text);
}

.step-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.step-actions .btn-primary {
  width: 100%;
}

@media (min-width: 600px) {
  .step-actions .btn-primary {
    width: auto;
    min-width: 180px;
  }
}

.step-actions--split {
  justify-content: space-between;
  gap: 0.75rem;
}

.step-actions--split .btn-ghost {
  flex: 0 0 auto;
}

.step-actions--split .btn-primary {
  flex: 1 1 auto;
  width: auto;
}

@media (min-width: 600px) {
  .step-actions--split .btn-primary {
    flex: 0 0 auto;
    min-width: 200px;
  }
}

/* sell-flow + thank-you overlay */

.sell-flow {
  position: relative;
  min-height: 200px;
}

.sell-flow__thankyou {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 2;
  color: var(--text);
}

.sell-flow__thankyou.is-visible {
  display: flex;
  animation: fadeInUp 0.3s ease both;
}

.sell-flow__thankyou svg {
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.sell-flow__thankyou h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.sell-flow__thankyou p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36ch;
}

/* ----------------------------- how it works ----------------------------- */

.section-steps {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.step-card__num {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ----------------------------- inspection centres ----------------------------- */

.section-centres {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.centres-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.centres-head .section-title {
  margin-bottom: 0;
}

.centres-head__copy {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

@media (min-width: 860px) {
  .centres-head {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
    align-items: end;
    gap: 2rem;
  }
}

.centre-filter {
  max-width: 34rem;
  margin-bottom: 1rem;
}

.centre-filter label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.centre-groups {
  display: grid;
  gap: 0.75rem;
}

.centre-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.centre-group[hidden] {
  display: none;
}

.centre-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.centre-group summary::-webkit-details-marker {
  display: none;
}

.centre-group summary span:last-child {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.centre-grid {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}

@media (min-width: 720px) {
  .centre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.centre-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.centre-card[hidden] {
  display: none;
}

.centre-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.25;
}

.centre-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.centre-empty {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* ----------------------------- trust section ----------------------------- */

.section-trust {
  background: var(--surface-dark);
  color: #fff;
}

.section-trust .section-eyebrow {
  color: #fff;
  opacity: 0.7;
}

.section-trust .section-title {
  color: #fff;
  max-width: 32ch;
  text-wrap: balance;
}

.trust-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.trust-tile {
  position: relative;
  background: #161616;
  border: 1px solid #262626;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  overflow: hidden;
}

.trust-tile__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
}

.trust-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.trust-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: #c5c5c5;
}

/* ----------------------------- FAQ ----------------------------- */

.section-faq {
  background: #fff;
  border-top: 1px solid var(--border);
}

.faq-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0 0 0.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.faq-tabs::-webkit-scrollbar {
  height: 4px;
}

.faq-tabs::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.faq-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.faq-tab:hover {
  border-color: var(--text);
}

.faq-tab.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.faq-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-list details[hidden] {
  display: none;
}

.faq-list details:hover {
  border-color: var(--border-strong);
}

.faq-list details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  position: relative;
  padding: 1rem 2.75rem 1rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--transition-fast);
}

.faq-list details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
  border-color: var(--accent);
}

.faq-list .faq-answer {
  padding: 0 1rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------- footer ----------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding: 2.5rem 1.5rem 3rem;
  }
}

.site-footer__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-footer__brand p {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.site-footer__brand a {
  display: inline-block;
  text-decoration: none;
}

.site-footer__brand img {
  display: block;
  width: auto;
}

.site-footer__brand--pt img {
  height: 36px;
}

.site-footer__brand--carro img {
  height: 26px;
}

@media (min-width: 768px) {
  .site-footer__brand--pt img {
    height: 40px;
  }

  .site-footer__brand--carro img {
    height: 30px;
  }
}

.site-footer__copy p {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 70ch;
}

.site-footer__copy strong {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  margin-top: 0.85rem !important;
}

.site-footer__links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.site-footer__links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__links span {
  color: var(--border-strong);
}

/* ----------------------------- mobile sticky CTA ----------------------------- */

.mobile-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(234, 33, 39, 0.45),
    0 4px 12px -4px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(120%);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

.mobile-cta:not([hidden]).is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.mobile-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 12px 28px -8px rgba(234, 33, 39, 0.45);
}

@media (min-width: 768px) {
  .mobile-cta {
    display: none !important;
  }
}

/* ----------------------------- floating WhatsApp ----------------------------- */

.wa-float {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.55), 0 4px 12px -4px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.6), 0 6px 16px -4px rgba(0, 0, 0, 0.22);
}

.wa-float:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.45), 0 8px 24px -6px rgba(37, 211, 102, 0.55);
}

.wa-float__icon {
  display: block;
}

@media (min-width: 768px) {
  .wa-float {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }

  .wa-float:hover {
    transform: none;
  }
}

/* ----------------------------- TAC dialog ----------------------------- */

.tac-dialog {
  width: calc(100vw - 2rem);
  max-width: 420px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #fff;
  color: var(--text);
}

.tac-dialog::backdrop {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(2px);
}

.tac-dialog__inner {
  position: relative;
  padding: 1.5rem;
  padding-top: 1.25rem;
}

.tac-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.tac-dialog__inner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-right: 2.5rem;
}

.tac-dialog__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.tac-dialog__close:hover {
  background: var(--surface);
  border-color: var(--text);
}

.tac-dialog__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.tac-dialog__desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.tac-alert {
  display: none;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  background: #fff5f5;
  border: 1px solid #f4c7ca;
  border-radius: var(--radius-sm);
  color: #8a1116;
}

.tac-alert.is-visible {
  display: block;
}

.tac-dialog #carro-tac {
  letter-spacing: 0.4em;
  text-align: center;
  font-weight: 600;
  font-size: 1.15rem;
  padding-right: 0.85rem;
  margin-bottom: 0.85rem;
}

/* ----------------------------- reduced motion ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
