/* Posto Saltinho — azul do logo, verde da gota, creme e o dourado da faixa. */

:root {
  --ink: #10233a;
  --ink-soft: #4c6073;
  --green: #0f6b38;
  --green-deep: #0b4f2c;
  --cream: #f4efe7;
  --paper: #fffdf9;
  --line: rgba(16, 35, 58, 0.12);
  --gold: #e10613;
  --gold-soft: #ff9a90;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header: 80px;
  --shadow: 0 24px 60px rgba(16, 35, 58, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(15, 107, 56, 0.07), transparent 42%),
    radial-gradient(ellipse at 100% 8%, rgba(16, 35, 58, 0.06), transparent 34%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3, p, blockquote, ul, ol, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

a { color: inherit; }

::selection {
  background: var(--green);
  color: white;
}

:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn svg { flex: none; }

.btn:hover { transform: translateY(-1px); }

.btn-green {
  background: var(--green);
  color: white;
}

.btn-green:hover { background: var(--green-deep); }

.btn-light {
  background: white;
  color: var(--ink);
}

.btn-light:hover { background: #e7f5ec; }

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(16, 35, 58, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; margin-right: auto; }

.brand img {
  height: 52px;
  width: auto;
  display: block;
}

.nav { display: flex; gap: 26px; }

.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
}

.nav a:hover { color: var(--green-deep); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: clamp(540px, 74vh, 780px);
  color: white;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media { z-index: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  transform: scale(1.05);
  animation: drift 32s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 14, 26, 0.88) 0%, rgba(6, 14, 26, 0.55) 32%, rgba(6, 14, 26, 0.12) 58%, rgba(6, 14, 26, 0.22) 100%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.4), transparent 30%, rgba(6, 14, 26, 0.5));
}

.hero-content,
.marker { position: relative; z-index: 2; }

.hero-content {
  width: min(640px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  margin-right: auto;
  padding: 56px 0 64px;
}

.hero .eyebrow { color: var(--gold-soft); }

.hero h1 {
  color: white;
  font-size: clamp(3.15rem, 7.2vw, 6.7rem);
  line-height: 0.9;
  max-width: 10ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.lead {
  max-width: 36rem;
  margin-top: 22px;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.center-actions,
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.marker {
  position: absolute;
  z-index: 2;
  top: 36px;
  right: max(20px, calc((100vw - 1120px) / 2));
  width: 148px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
}

.marker p { margin: 0; }

.marker-road {
  background: var(--green-deep);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 11px 8px;
}

.marker-km {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px 12px;
}

.marker-km strong {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.marker-km span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.marker-gold {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #e10613 0 50%, #1f4f9a 50% 100%);
}

.facts { background: var(--ink); color: white; }

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.facts-grid div { padding: 22px 8px 24px; }

.facts-grid span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.facts-grid strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.65);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.marquee p {
  margin: 0;
  padding: 15px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.about {
  display: grid;
  gap: 48px;
  padding: 96px 0 88px;
  align-items: center;
}

.about-copy p + p { margin-top: 16px; }

blockquote { margin: 26px 0 22px; }

blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about h2,
.section-head h2 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 0.96;
}

.frame {
  position: relative;
  margin: 0 22px 22px 0;
}

.frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 16px;
  right: -16px;
  bottom: 52px;
  left: 16px;
  border-radius: 28px;
  background: var(--green);
}

.frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.15 / 1;
  max-height: 420px;
  object-fit: cover;
  object-position: 46% center;
  border-radius: 28px;
}

.frame figcaption {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nowrap { white-space: nowrap; }

.services {
  background: var(--paper);
  padding: 96px 0 104px;
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 48px; }

.services-layout {
  display: grid;
  gap: 36px;
}

.totem {
  background: linear-gradient(180deg, #173257, #0c1c31);
  color: #f7f3ea;
  border-radius: 28px;
  padding: 16px 16px 22px;
  box-shadow: var(--shadow);
}

.totem-title {
  margin: 0;
  background: #e10613;
  color: white;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 16px;
  padding: 14px 10px;
  font-size: 0.8rem;
}

.totem ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 6px;
}

.totem li {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.totem-note {
  margin: 16px 8px 0;
  font-size: 0.9rem;
  color: rgba(247, 243, 234, 0.72);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 8px;
  border-top: 1px solid var(--line);
}

.service-list li:last-child { border-bottom: 1px solid var(--line); }

.num {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--green);
  min-width: 2.4rem;
}

.service-list h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  margin-bottom: 8px;
}

.service-list p { max-width: 48ch; }

.route-wrap,
.contact-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

.route {
  display: grid;
  background: var(--ink);
  color: white;
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
}

.route-copy { padding: 48px 28px 40px; }

.route .eyebrow { color: var(--gold-soft); }

.route h2,
.contact h2 {
  color: white;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.route address {
  margin-top: 22px;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.route .btn-ghost { color: white; }

.map { min-height: 320px; background: #d5dde6; }

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(225, 6, 19, 0.22), transparent 42%),
    var(--green-deep);
  color: #f6f1e7;
  border-radius: 32px;
  padding: 72px 24px 64px;
  text-align: center;
}

.contact .eyebrow { color: var(--gold-soft); }

.phone {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: white;
  text-decoration: none;
}

.phone:hover { text-decoration: underline; text-underline-offset: 10px; }

.contact-mail { margin-top: 12px; font-size: 1.15rem; }

.contact-mail a { color: white; }

.note {
  margin: 18px auto 0;
  max-width: 28rem;
  color: rgba(246, 241, 231, 0.8);
}

.center-actions { justify-content: center; }

.contact .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.footer { padding: 28px 0 36px; }

.footer-grid {
  display: grid;
  gap: 22px;
  padding-top: 8px;
}

.footer img { height: 48px; width: auto; display: block; margin-bottom: 12px; }

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.dock { display: none; }

.missing {
  min-height: calc(100svh - var(--header));
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 48px 20px 80px;
  gap: 8px;
}

.missing h1 {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
}

.missing h1 em { font-style: italic; color: var(--green-deep); }

.missing .lead-dark {
  max-width: 28rem;
  margin: 8px auto 22px;
}

section[id],
.route-wrap,
.contact-wrap { scroll-margin-top: 96px; }

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (hover: hover) {
  .service-list li {
    border-radius: 18px;
    transition: background 0.25s ease, padding 0.25s ease;
  }

  .service-list li:hover {
    background: var(--ink);
    padding-inline: 22px;
  }

  .service-list li:hover h3,
  .service-list li:hover .num { color: white; }

  .service-list li:hover .num { color: var(--gold-soft); }

  .service-list li:hover p { color: rgba(255, 255, 255, 0.78); }
}

@media (min-width: 800px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }

  .facts-grid div { padding: 28px 18px 30px; }

  .facts-grid div + div { box-shadow: inset 1px 0 rgba(255, 255, 255, 0.12); }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 72px;
    padding: 120px 0 108px;
  }

  .services-layout {
    grid-template-columns: 280px 1fr;
    gap: 72px;
    align-items: start;
  }

  .totem { position: sticky; top: 108px; }

  .route {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .route-copy { padding: 64px 56px; }

  .map { height: 100%; min-height: 520px; }
  .map iframe { height: 100%; min-height: 520px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .header-phone { display: none; }

  .nav {
    display: none;
    position: fixed;
    z-index: 40;
    inset: calc(var(--header) + 10px) 12px 12px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    background: var(--paper);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
    height: auto;
    margin: 0;
  }

  .nav a {
    font-family: var(--serif);
    font-size: 2.4rem;
    letter-spacing: -0.03em;
    padding: 6px 0;
  }

  .marker {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    align-items: center;
    width: max-content;
    margin: 0 0 18px max(20px, calc((100vw - 1120px) / 2));
    border-radius: 999px;
  }

  .marker-road,
  .marker-km { padding: 8px 14px; }

  .marker-road { border-radius: 999px 0 0 999px; }

  .marker-km {
    flex-direction: row;
    gap: 8px;
    padding-right: 16px;
  }

  .marker-km strong { font-size: 1.7rem; line-height: 1; }

  .marker-gold { display: none; }

  .hero-content {
    padding-top: 28px;
    padding-bottom: 120px;
  }

  .dock {
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 16px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
  }

  .dock-go { background: var(--green); }

  body:has(.dock) { padding-bottom: 92px; }

  body.menu-open { overflow: hidden; }
  body.menu-open .dock { visibility: hidden; }
}

@media (max-width: 380px) {
  .hero-actions .btn,
  .center-actions .btn,
  .route-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-media img,
  .marquee-track,
  .btn,
  .js .reveal { animation: none; transition: none; transform: none; opacity: 1; }

  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track p:last-child { display: none; }
}

@media print {
  .header, .dock, .marquee, .nav-toggle, .hero-shade { display: none !important; }
  .hero { min-height: 0; }
  body { background: white; padding: 0; }
}
