/* ==========================================================
   Coimbra Transportes
   ========================================================== */
:root {
  --ink: #0c111b;
  --navy: #121a2a;
  --navy-2: #1a2437;
  --orange: #ff6a13;
  --orange-dark: #e2540a;
  --whats: #1fb855;
  --whats-dark: #17a047;
  --paper: #f7f4ef;
  --white: #ffffff;
  --text: #1b2230;
  --muted: #5a6373;
  --line: #e6e0d6;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(12, 17, 27, .28);
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --font-logo: 'Kaushan Script', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.4em;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; border: 2px solid transparent; border-radius: 999px;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.06rem; }
.btn--sm { padding: .65em 1.1em; font-size: .95rem; }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 12px 24px -12px rgba(31, 184, 85, .8); }
.btn--whats:hover { background: var(--whats-dark); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 12px 24px -12px rgba(255, 106, 19, .8); }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo__name { font-family: var(--font-logo); font-size: 1.95rem; color: var(--orange); }
.logo__tag {
  font: 600 .66rem/1 var(--font-body); letter-spacing: .34em; text-transform: uppercase;
  color: #fff; margin-top: 3px; padding-left: 2px;
}
.logo--sm .logo__name { font-size: 1.7rem; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 17, 27, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: #cfd5e0; text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: #fff; border-color: var(--orange); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn span + span { margin-top: 6px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 106, 19, .22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 100px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em; color: #dfe4ec;
  padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 19, .25); }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem); font-weight: 800; text-transform: uppercase; line-height: .96;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero__lead { margin-top: 22px; max-width: 34em; font-size: 1.16rem; color: #c9d0dc; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .97rem; color: #dfe4ec; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips .icon { color: var(--orange); width: 1.1em; height: 1.1em; }

.hero__media { position: relative; }
.hero__media::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px;
  background: var(--orange); border-radius: 26px; transform: rotate(3deg);
}
.hero__photo {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .8); transform: rotate(-1.5deg);
  border: 5px solid #fff;
}
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center; }
.hero__badge {
  position: absolute; left: -22px; bottom: -18px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 14px 20px; border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero__badge strong { font: 800 2.7rem/1 var(--font-head); color: var(--orange); }
.hero__badge span { font-weight: 600; font-size: .92rem; line-height: 1.2; }

/* Faixa rolante */
.ticker { background: var(--orange); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font: 700 1.25rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.ticker i { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--dark { background: var(--ink); color: #fff; }
.section--orange { background: linear-gradient(135deg, var(--orange) 0%, #ff8a2b 100%); color: #fff; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p:not(.kicker) { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section--dark .section__head p:not(.kicker) { color: #b9c1cf; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font: 700 .88rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.kicker--light { color: var(--ink); }

/* ---------- Cards de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  background: #fff1e7; color: var(--orange); border-radius: 16px; margin-bottom: 22px;
}
.card__icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.65rem; text-transform: uppercase; }
.card p { margin-top: 12px; color: var(--muted); }
.card ul { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.card li { position: relative; padding-left: 22px; font-weight: 500; font-size: .98rem; }
.card li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; background: var(--orange); border-radius: 2px; }
.card--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--featured p { color: #b9c1cf; }
.card--featured ul { border-color: rgba(255, 255, 255, .14); }
.card--featured .card__icon { background: var(--orange); color: #fff; }
.note { margin-top: 34px; text-align: center; color: var(--muted); }
.note a { color: var(--orange-dark); font-weight: 700; }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 34px 30px; border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08);
}
.step__n {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px;
  font: 800 1.9rem/1 var(--font-head); color: #fff; background: var(--orange); border-radius: 50%;
}
.step h3 { text-transform: uppercase; font-size: 1.6rem; }
.step p { margin-top: 10px; color: #b9c1cf; }

/* ---------- Diferenciais ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.why__intro { position: sticky; top: 110px; }
.why__intro p:not(.kicker) { margin: 18px 0 28px; color: var(--muted); font-size: 1.1rem; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why__list li {
  display: flex; gap: 16px; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.why__icon {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--orange); color: #fff; border-radius: 50%;
}
.why__list h3 { font-size: 1.35rem; text-transform: uppercase; }
.why__list p { margin-top: 6px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.why__list small { display: block; margin-top: 4px; font-size: .82rem; }

/* ---------- Orçamento ---------- */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.quote__text h2 { color: #fff; }
.quote__text > p:not(.kicker) { margin-top: 18px; font-size: 1.12rem; color: #fff; }
.quote__phones { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 28px; }
.quote__phones a {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.7rem/1 var(--font-head); color: #fff; text-decoration: none;
}
.quote__phones a:hover { text-decoration: underline; text-underline-offset: 5px; }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: #fff; color: var(--text); padding: clamp(24px, 3.4vw, 38px);
  border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(12, 17, 27, .55);
}
.field { display: grid; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: 400 1rem/1.3 var(--font-body); color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 19, .16);
}
.field input.is-invalid { border-color: #d92d20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .14); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq details[open] { border-color: var(--orange); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  font: 700 1.4rem/1 var(--font-body); color: var(--orange); background: #fff1e7; border-radius: 50%;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.contact__list { margin-top: 34px; display: grid; gap: 24px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list .icon {
  width: 46px; height: 46px; padding: 11px; color: var(--orange);
  background: var(--navy-2); border-radius: 12px;
}
.contact__list span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8e98a9; }
.contact__list a { font-size: 1.14rem; font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--orange); }
.contact__map { border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: var(--navy-2); }
.contact__map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Rodapé ---------- */
.footer { background: #070a11; color: #9aa3b2; padding: 36px 0 96px; font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.footer__copy { margin-left: auto; }
.footer__dev { flex-basis: 100%; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: .88rem; }
.footer__dev strong { color: #fff; font-weight: 600; }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  max-width: calc(100vw - 32px);
}
.fab__btn {
  position: relative; flex: none;
  width: 62px; height: 62px; display: grid; place-items: center;
  background: var(--whats); color: #fff; border-radius: 50%;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .15s ease;
}
.fab:hover .fab__btn { transform: scale(1.07); }
.fab .icon { width: 34px; height: 34px; }
.fab__msg {
  position: relative; min-width: 0;
  padding: 11px 16px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: .95rem; line-height: 1.25;
  border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
  transition: opacity .35s ease, transform .35s ease;
}
.fab__msg::after {
  content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px;
  background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
.fab__msg.is-out { opacity: 0; transform: translateX(10px); }
.fab__btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whats); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .cards .reveal:nth-child(2), .js-reveal .steps .reveal:nth-child(2) { transition-delay: .1s; }
.js-reveal .cards .reveal:nth-child(3), .js-reveal .steps .reveal:nth-child(3) { transition-delay: .2s; }
.js-reveal .cards .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .nav {
    position: absolute; top: 74px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 20px;
    background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; }
  .menu-btn { display: block; }
  .header__cta { margin-left: auto; }
  .header__inner { gap: 10px; }

  .hero__grid, .why, .quote, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 52px; }
  .hero__media { max-width: 560px; margin-right: 22px; }
  .hero__badge { left: 14px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why { gap: 40px; }
  .why__intro { position: static; }
  .quote, .contact__grid { gap: 40px; }
  .footer__copy { margin-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(1160px, 100% - 32px); }
  .header__cta span { display: none; }
  .header__cta { padding: .7em; }
  .hero__actions .btn { width: 100%; }
  .hero__media::before { inset: 14px -12px -14px 14px; }
  .hero__media { margin-right: 12px; }
  .hero__badge { padding: 10px 14px; bottom: -22px; }
  .hero__badge strong { font-size: 2.1rem; }
  .why__list, .form, .cards { grid-template-columns: 1fr; }
  .quote__phones a { font-size: 1.5rem; }
  .contact__map iframe { height: 320px; }
  .card, .step { padding: 28px 24px; }
  .fab { right: 16px; bottom: 16px; gap: 10px; }
  .fab__btn { width: 56px; height: 56px; }
  .fab__msg { font-size: .88rem; padding: 9px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .fab__btn::before { animation: none; }
  .btn, .card, .fab__btn, .fab__msg { transition: none; }
}
