:root {
  --blue: #1b3a8c;
  --blue-dark: #0f2462;
  --blue-light: #e8eefc;
  --yellow: #ffc61a;
  --yellow-dark: #e6a800;
  --yellow-soft: #fff6d6;
  --red: #e2231a;
  --whats: #25d366;
  --ink: #16213e;
  --muted: #5b6684;
  --line: #dde3f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 36, 98, .12);
  --font-title: "Baloo 2", system-ui, sans-serif;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0 0 .5em; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: .8em 1.4em; font-weight: 800; font-size: 1rem;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
  min-height: 48px;
}
.btn:active { transform: scale(.97); }
.btn--sm { padding: .5em 1.1em; min-height: 40px; font-size: .95rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1.08rem; }
.btn--yellow { background: var(--yellow); color: var(--blue-dark); box-shadow: 0 4px 0 var(--yellow-dark); }
.btn--yellow:hover { background: #ffd033; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dark); }
.btn--blue:hover { background: #2347a6; }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--ghost-dark { background: transparent; color: var(--blue); border: 2px solid var(--line); }
.btn--ghost-dark:hover { border-color: var(--blue); }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 4px 0 #1aa34f; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, .chip input:focus-visible + span {
  outline: 3px solid var(--yellow); outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo__paw { width: 38px; height: 38px; fill: var(--yellow); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-family: var(--font-title); font-size: 1.45rem; font-weight: 800; }
.logo__text small { font-size: .78rem; font-weight: 700; color: var(--yellow); letter-spacing: .04em; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: rgba(255,255,255,.12); }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% 20%, #2a52b8 0%, var(--blue) 45%, var(--blue-dark) 100%);
  color: #fff;
  padding: 56px 0 72px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.tag {
  display: inline-block; background: var(--yellow); color: var(--blue-dark);
  font-weight: 800; font-size: .85rem; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.hero .hl { color: var(--yellow); }
.hero p { font-size: 1.15rem; max-width: 34em; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__img img {
  border-radius: 28px; border: 6px solid #fff; box-shadow: 0 24px 50px rgba(0,0,0,.35);
  transform: rotate(2deg); width: 100%; height: auto; max-width: 460px; margin-inline: auto;
}
.hero__paw { position: absolute; fill: rgba(255,198,26,.18); }
.hero__paw--1 { width: 160px; height: 160px; left: -30px; bottom: -40px; transform: rotate(-25deg); }
.hero__paw--2 { width: 90px; height: 90px; right: 42%; top: 20px; transform: rotate(20deg); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--blue { background: var(--blue); color: #fff; }
.section__title { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--blue); text-align: center; }
.section__sub { text-align: center; color: var(--muted); margin: -4px auto 36px; max-width: 40em; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--yellow); }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--yellow-soft);
  display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 14px;
}
.card h3 { color: var(--blue); font-size: 1.35rem; margin-bottom: .25em; }
.card p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.card__meta { font-weight: 800; font-size: .9rem; color: var(--blue); }
.card__btn { margin-top: 14px; align-self: flex-start; }

/* Táxi banner */
.taxi { background: var(--yellow); padding: 40px 0; position: relative; }
.taxi__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.taxi__badge {
  background: var(--red); color: #fff; font-family: var(--font-title); font-weight: 800;
  padding: 10px 18px; border-radius: 12px; transform: rotate(-4deg); font-size: 1.1rem;
  box-shadow: 0 6px 0 #a3150f;
}
.taxi h2 { color: var(--blue-dark); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .2em; }
.taxi h2 span { color: var(--red); }
.taxi p { margin: 0; font-weight: 600; color: var(--blue-dark); max-width: 42em; }
.taxi__car { width: 130px; height: auto; color: var(--blue); }

/* ---------- Booking ---------- */
.booking {
  max-width: 760px; margin-inline: auto; background: #fff;
  border-radius: 24px; box-shadow: var(--shadow); padding: 32px;
}
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: flex; justify-content: space-between; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 19px; left: 8%; right: 8%; height: 4px; background: var(--line); border-radius: 4px;
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; z-index: 1; }
.steps span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 3px solid var(--line); font-weight: 800; color: var(--muted); transition: all .25s;
}
.steps em { font-style: normal; font-size: .85rem; font-weight: 700; color: var(--muted); text-align: center; }
.steps li.is-active span { background: var(--yellow); border-color: var(--yellow); color: var(--blue-dark); transform: scale(1.1); }
.steps li.is-active em { color: var(--blue); }
.steps li.is-done span { background: var(--blue); border-color: var(--blue); color: #fff; }

.step { border: 0; padding: 0; margin: 0; display: none; min-width: 0; }
.step.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
legend { font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--blue); margin-bottom: 18px; padding: 0; }

.field { margin-bottom: 20px; }
.field > label, .label { display: block; font-weight: 800; margin-bottom: 8px; }
.opt { font-weight: 600; color: var(--muted); font-size: .9em; }
input[type=text], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 16px; /* evita zoom no iOS */
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--blue); outline: none; }
textarea { resize: vertical; }
.err { display: none; color: var(--red); font-weight: 700; margin-top: 6px; }
.field.has-error .err { display: block; }
.field.has-error input { border-color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Chips */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chips--4 { grid-template-columns: repeat(4, 1fr); }
.chips--wrap { display: flex; flex-wrap: wrap; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 12px 14px; min-height: 52px; border: 2px solid var(--line); border-radius: 14px;
  font-weight: 800; transition: all .15s; background: #fff; user-select: none;
}
.chip span small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.chip:hover span { border-color: #b9c5e3; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-light); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

/* Service pick */
.service-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-opt { cursor: pointer; }
.service-opt input { position: absolute; opacity: 0; pointer-events: none; }
.service-opt > span {
  display: flex; gap: 12px; align-items: center; padding: 14px; border: 2px solid var(--line);
  border-radius: 16px; transition: all .15s; height: 100%;
}
.service-opt .so-ico { font-size: 1.7rem; width: 48px; height: 48px; border-radius: 12px; background: var(--yellow-soft); display: grid; place-items: center; flex-shrink: 0; }
.service-opt strong { display: block; color: var(--blue); font-size: 1.05rem; }
.service-opt small { color: var(--muted); font-weight: 600; }
.service-opt input:checked + span { border-color: var(--blue); background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--blue); }
.service-opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Taxi toggle */
.taxi-toggle { background: var(--yellow-soft); border: 2px dashed var(--yellow); border-radius: 16px; padding: 16px; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 54px; height: 30px; background: #c9d1e6; border-radius: 99px; position: relative; flex-shrink: 0; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch input:checked + .switch__ui { background: var(--blue); }
.switch input:checked + .switch__ui::after { transform: translateX(24px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch__label { display: flex; flex-direction: column; }
.switch__label small { color: var(--muted); font-weight: 600; }
.taxi-address { margin: 14px 0 0; }

/* Days & slots */
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.day {
  flex: 0 0 auto; width: 74px; scroll-snap-align: start; cursor: pointer;
  border: 2px solid var(--line); border-radius: 16px; background: #fff; padding: 10px 4px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.15; transition: all .15s;
}
.day small { font-weight: 700; color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.day strong { font-family: var(--font-title); font-size: 1.6rem; color: var(--blue); }
.day:hover:not(:disabled) { border-color: #b9c5e3; }
.day.is-selected { background: var(--blue); border-color: var(--blue); }
.day.is-selected small, .day.is-selected strong { color: #fff; }
.day:disabled { opacity: .4; cursor: not-allowed; background: var(--bg-alt); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.slot {
  border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 0; cursor: pointer;
  font-weight: 800; color: var(--blue); min-height: 46px; transition: all .15s;
}
.slot:hover:not(:disabled) { border-color: var(--blue); }
.slot.is-selected { background: var(--yellow); border-color: var(--yellow); color: var(--blue-dark); }
.slot:disabled { text-decoration: line-through; color: #a8b0c6; background: var(--bg-alt); cursor: not-allowed; }

.load-error { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--red); font-weight: 700; }
.load-error p { margin: 0; }
.btn:disabled { opacity: .7; cursor: wait; }

/* Summary */
.summary { background: var(--blue-light); border-radius: 16px; padding: 18px 20px; }
.summary h4 { margin: 0 0 10px; font-family: var(--font-title); color: var(--blue); font-size: 1.2rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.summary dt { font-weight: 700; color: var(--muted); }
.summary dd { margin: 0; font-weight: 800; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.form-nav .btn:last-child, .form-nav #nextBtn { margin-left: auto; }

/* Success */
.success { text-align: center; padding: 10px 0; animation: fade .3s ease; }
.success__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--whats); color: #fff; font-size: 2.4rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 16px; }
.success h3 { color: var(--blue); font-size: 1.7rem; }
.success__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 20px; }

/* My bookings */
.my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; max-width: 960px; margin-inline: auto; }
.booking-card {
  background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--yellow);
  border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.booking-card.is-past { opacity: .6; border-left-color: var(--line); }
.booking-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--yellow-soft); color: #8a6100; white-space: nowrap; }
.status--confirmado { background: #e3f7ea; color: #13723a; }
.status--concluído { background: var(--blue-light); color: var(--blue); }
.status--cancelado { background: #fde8e7; color: var(--red); }
.footer__admin { color: #c7d2ef; }
.booking-card h4 { margin: 0; font-family: var(--font-title); color: var(--blue); font-size: 1.25rem; }
.booking-card .when { font-weight: 800; }
.booking-card .what { color: var(--muted); font-weight: 600; }
.booking-card .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.booking-card .actions .btn { min-height: 38px; padding: .4em 1em; font-size: .9rem; }
.btn--cancel { background: #fff; color: var(--red); border: 2px solid #f5c2bf; }
.btn--cancel:hover { border-color: var(--red); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 28px; border: 2px dashed var(--line); border-radius: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--yellow); }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; font-size: 1.05rem; }
.info-list .ico { color: var(--yellow); margin-top: 3px; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact__map iframe { width: 100%; height: 340px; border: 0; border-radius: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.3); background: #dfe6f5; }

/* Footer */
.footer { background: var(--blue-dark); color: #c7d2ef; padding: 24px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo--small { color: #fff; gap: 8px; }
.logo--small .logo__paw { width: 24px; height: 24px; }

/* FAB & toast */
.fab { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700;
  z-index: 100; transition: transform .3s, opacity .3s, visibility .3s; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__img img { max-width: 360px; }
  .contact { grid-template-columns: 1fr; }
  .taxi__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 14px; }
  .taxi__car { width: 96px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  .topbar__inner { height: 60px; gap: 12px; }
  .logo__text strong { font-size: 1.25rem; }
  .logo__paw { width: 32px; height: 32px; }
  .topbar__cta { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; background: rgba(255,255,255,.12); border: 0; border-radius: 12px; cursor: pointer; padding: 0 12px;
  }
  .menu-btn span { height: 3px; background: #fff; border-radius: 3px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--blue); padding: 8px 16px 16px; box-shadow: 0 12px 20px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1.05rem; }

  .hero { padding: 36px 0 56px; }
  .section { padding: 52px 0; }
  .booking { padding: 22px 16px; border-radius: 20px; }
  .steps em { font-size: .72rem; }
  .steps span { width: 36px; height: 36px; }
  .steps::before { top: 16px; }
  .chips--4 { grid-template-columns: repeat(2, 1fr); }
  .service-pick { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-nav { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; margin-top: 16px; }
  .form-nav .btn { flex: 1; }
  .contact__map iframe { height: 260px; }
  .footer__inner { flex-direction: column; text-align: center; }

  .fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: 16px; z-index: 40;
    background: var(--yellow); color: var(--blue-dark); font-weight: 800; text-decoration: none;
    padding: 14px 20px; border-radius: 999px; box-shadow: 0 8px 24px rgba(15,36,98,.35);
    transition: transform .25s, opacity .25s;
  }
  .fab.hide { transform: translateY(120px); opacity: 0; }

  /* Selo "Powered by Netlify" (canto inferior direito): tira os botões de baixo dele. */
  body:has(#nl-badge-frame) .fab { right: auto; left: 16px; }
  body:has(#nl-badge-frame) .form-nav { bottom: 64px; }
  body:has(#nl-badge-frame) .toast { bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
