/* ============================================================
   CIA 47 - Mobilidade Urbana — Stylesheet
   BRANDING: colors below are sampled from the official logo/icon
   files provided by the client (assets/icon.png), since no exact
   hex codes were supplied. Confirm exact hex values with CIA 47 if
   they have a formal brand guideline — otherwise these are a very
   close match to the real gradient used on their app icon and
   vehicle livery.
   ============================================================ */

:root {
  /* --- Brand palette (sampled from assets/icon.png) --- */
  --color-primary: #1d6fa5;       /* main brand color (buttons, links, accents) */
  --color-primary-dark: #123049;  /* hover/active state, matches dark end of logo gradient */
  --color-primary-light: #e9f3fa; /* tinted backgrounds */
  --color-accent: #ffb020;        /* secondary CTA / highlight color */
  --color-accent-dark: #d9950f;

  --color-text: #1a2233;
  --color-text-muted: #5b6472;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8f7;
  --color-border: #e3e7e5;
  --color-danger: #c0392b;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.10);

  --container-width: 1140px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Skip link (accessibility) --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
}
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: 34px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  font-size: .95rem;
}
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.nav-links a.active { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe59; }
.btn-disabled {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-color: var(--color-border);
  cursor: not-allowed;
}
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  padding: 64px 0 48px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hero p.lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--color-text);
  background: #fff;
}
.store-badge small { display: block; color: var(--color-text-muted); font-size: .7rem; }
.store-badge strong { display: block; font-size: .95rem; }
.store-badge.coming-soon { opacity: .6; cursor: not-allowed; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --- Trust bar --- */
.trust-bar {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 20px;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--color-text-muted); font-size: .9rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--color-primary); flex-shrink: 0; }

/* --- Sections --- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 8px; }
.section-head p { color: var(--color-text-muted); }

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: left;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { color: var(--color-text-muted); font-size: .92rem; margin-bottom: 0; }

/* --- Feature grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { color: var(--color-text-muted); font-size: .92rem; margin-bottom: 0; }

/* --- CTA banner --- */
.cta-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 4px; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.cta-banner .btn-outline { border-color: #fff; color: #fff; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.12); }

/* --- Fleet photo gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --- Cities served --- */
.city-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.city-group {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.city-group h3 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.city-group ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--color-text);
  font-weight: 600;
  font-size: .95rem;
}
.city-group ul li svg { width: 16px; height: 16px; color: var(--color-primary); flex-shrink: 0; }

/* --- Video block --- */
.video-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}
.video-block video { width: 100%; display: block; background: #000; }

/* --- Two-column content (about/requirements) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img, .split svg { width: 100%; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.checklist li:last-child { border-bottom: none; }
.checklist svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* --- FAQ / accordion --- */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  color: var(--color-text);
}
.accordion-trigger svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .15s ease; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
  padding: 0 20px;
  color: var(--color-text-muted);
  font-size: .92rem;
}
.accordion-item.open .accordion-panel { padding-bottom: 18px; }

/* --- Contact cards --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.contact-card .feature-icon { margin: 0 auto 16px; }

/* --- Legal / long-form content pages --- */
.legal-page { padding: 56px 0 96px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: 2rem; }
.legal-meta { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2em; }
.legal-page h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal-page p, .legal-page li { color: var(--color-text-muted); }
.legal-page ul, .legal-page ol { margin: 0 0 1em; padding-left: 1.4em; }
.legal-page li { padding: 2px 0; }
.legal-page a { text-decoration: underline; }
.placeholder {
  background: #fff7e0;
  border: 1px dashed var(--color-accent-dark);
  color: #7a5a00;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: .92em;
}
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.toc p { margin-bottom: 8px; font-weight: 700; color: var(--color-text); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--color-text-muted); }

.callout {
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-light);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* --- Steps for deletion page --- */
.ordered-steps { counter-reset: step; }
.ordered-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}
.ordered-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-dark);
  color: #cfd6dc;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.footer-brand img { height: 30px; width: 30px; border-radius: 7px; }
.site-footer p { color: #9aa4ad; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #cfd6dc; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .82rem;
  color: #7d8790;
}
.footer-bottom a { color: #9aa4ad; }
.footer-legal-note {
  font-size: .78rem;
  color: #7d8790;
  margin-top: 10px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* --- 404 --- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 { font-size: 5rem; color: var(--color-primary); margin-bottom: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .steps, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .city-groups { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--color-bg);
    padding: 24px;
    gap: 20px;
    z-index: 99;
    overflow-y: auto;
  }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .city-groups { grid-template-columns: 1fr; }
}
