/* Rhynos Munck e Transportes
   Tokens: marca (azul + ciano do logo) + amarelo dos braços munck como sinal. */
:root {
  --navy-900: #052335;   /* aço escuro */
  --navy-700: #04476A;   /* azul da marca */
  --cyan: #0EBAD7;       /* ciano da marca */
  --signal: #F5B800;     /* amarelo munck / sinalização */
  --signal-ink: #1A1400;
  --concrete: #EEF1F3;   /* fundo frio, cor de concreto */
  --steel-200: #CBD3D9;
  --steel-500: #5D6D78;
  --ink: #0D2230;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.2vw, 3rem);
  --step-4: clamp(2.75rem, min(6.4vw, 10.5vh), 5.75rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 4px;
  --radius-m: 10px;
}

*, *::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);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
  font-variation-settings: "wdth" 100;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--signal); color: var(--signal-ink); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); }
/* Em fundos escuros o anel vira amarelo de sinalização */
.hero :focus-visible, .site-header:not(.is-solid):not(.is-open) :focus-visible,
.contact-info :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible {
  outline-color: var(--signal); box-shadow: none;
}

/* ---------- Tipografia de título: condensada, como letreiro de caminhão ---------- */
.h2 {
  font-size: var(--step-3);
  font-weight: 850;
  font-variation-settings: "wdth" 72;
  letter-spacing: -0.005em;
  word-spacing: .08em;
  color: var(--navy-900);
  max-width: 18ch;
  text-wrap: balance;
}
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-lede { max-width: 58ch; color: var(--steel-500); font-size: var(--step-1); line-height: 1.5; margin: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-s); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: var(--step-0); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #FFCB2E; }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline { color: var(--navy-700); border-color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-700); color: var(--white); }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; filter: brightness(0) invert(1); transition: filter .2s ease; }
.site-header.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--steel-200); }
.site-header.is-solid .brand img { filter: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: var(--white); text-decoration: none; font-weight: 600;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { border-bottom-color: var(--signal); }
.site-header.is-solid .nav a:not(.btn) { color: var(--navy-900); }
.nav-cta { min-height: 42px; padding: 8px 18px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: transparent; border: 0; color: var(--white); cursor: pointer;
  }
  .site-header.is-solid .nav-toggle, .site-header.is-open .nav-toggle { color: var(--navy-900); }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .site-header.is-open { background: var(--white); }
  .site-header.is-open .brand img { filter: none; }
  .site-header.is-open .nav-toggle-bars { background: transparent; }
  .site-header.is-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px var(--gutter) 20px;
    box-shadow: 0 12px 24px rgba(5,35,53,.18);
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a:not(.btn) { color: var(--navy-900); padding: 14px 0; border-bottom: 1px solid var(--steel-200); }
  .nav-cta { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--navy-900);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 40%; z-index: -2;
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,35,53,.85) 0, rgba(5,35,53,.6) 90px, rgba(5,35,53,0) 30%),
    linear-gradient(15deg, rgba(5,35,53,.94) 8%, rgba(5,35,53,.6) 42%, rgba(5,35,53,0) 72%);
}
.hero-body { padding-top: 120px; padding-bottom: clamp(56px, 9vh, 96px); }
.hero-title {
  font-size: var(--step-4);
  font-weight: 900;
  font-variation-settings: "wdth" 66;
  line-height: .92;
  letter-spacing: -0.01em;
  word-spacing: .1em;
  max-width: 100%;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .line-sub {
  margin-top: .28em;
  font-size: .5em;
  font-weight: 700;
  font-variation-settings: "wdth" 100;
  letter-spacing: 0;
  color: var(--signal);
}
.hero-lede { max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: rgba(255,255,255,.9); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Faixa zebrada: o único ornamento, vindo da sinalização de carga */
.hazard {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 18px, var(--navy-900) 18px 36px);
}
.hazard-thin { position: static; height: 8px; }

/* Entrada orquestrada, uma vez, no carregamento */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line, .hero-lede, .hero-actions {
    animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero-title .line:nth-child(2) { animation-delay: .08s; }
  .hero-title .line:nth-child(3) { animation-delay: .22s; }
  .hero-lede { animation-delay: .34s; }
  .hero-actions { animation-delay: .44s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Placa de capacidade (números) ---------- */
.plate-section { padding: clamp(48px, 7vw, 88px) 0 0; }
.plate {
  position: relative;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 56px);
  border-radius: var(--radius-m);
  color: #E4ECF1;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #0A5A84 0%, var(--navy-700) 45%, #033A57 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.14),
    inset 0 0 0 9px var(--navy-700),
    inset 0 0 0 10px rgba(0,0,0,.25),
    0 18px 40px -18px rgba(5,35,53,.55);
}
.rivet {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F4F7F9 0 18%, #9FB0BC 45%, #4A5C68 100%);
  box-shadow: 0 1px 1px rgba(0,0,0,.45);
}
.r1 { top: 18px; left: 18px; } .r2 { top: 18px; right: 18px; }
.r3 { bottom: 18px; left: 18px; } .r4 { bottom: 18px; right: 18px; }
.plate-title {
  font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 100;
  color: var(--cyan); margin: 0 0 24px; padding-left: 8px;
}
.plate-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); margin: 0;
}
.plate-grid > div {
  padding: 4px 8px 4px 8px;
  border-left: 1px solid rgba(255,255,255,.16);
  display: flex; flex-direction: column-reverse; gap: 6px;
}
.plate-grid > div:first-child { border-left: 0; }
.plate-grid dt { font-size: var(--step--1); color: #D3E1E9; line-height: 1.3; }
.plate-grid dd {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 900; font-variation-settings: "wdth" 62;
  line-height: 1; color: var(--white);
  text-shadow: 0 -1px 0 rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.18);
  font-variant-numeric: tabular-nums;
}
.plate-grid small { font-size: .5em; margin-left: .12em; font-weight: 800; color: var(--cyan); }
@media (max-width: 860px) {
  .plate-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .plate-grid > div:nth-child(odd) { border-left: 0; }
  .plate-grid > div:last-child { grid-column: span 2; border-left: 0; }
}

/* ---------- Serviços: lista de especificação ---------- */
.services { padding: clamp(64px, 9vw, 120px) 0; }
.spec-list { border-top: 2px solid var(--navy-900); }
.spec {
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--steel-200);
}
.spec img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-s); background: var(--steel-200);
}
.spec h3 {
  font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 80;
  color: var(--navy-900); margin-bottom: 8px;
}
.spec p { margin: 0; max-width: 56ch; color: #34495A; }
@media (max-width: 640px) {
  .spec { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Sobre ---------- */
.about { background: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 100px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); }
.about-text .h2 { margin-bottom: 24px; }
.about-text > p { max-width: 60ch; font-size: var(--step-1); line-height: 1.55; color: #2A3E4D; }
.values { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.values li { border-top: 3px solid var(--signal); padding-top: 14px; }
.values strong { display: block; font-size: var(--step-1); font-variation-settings: "wdth" 85; color: var(--navy-900); margin-bottom: 4px; }
.values span { color: var(--steel-500); font-size: .975rem; line-height: 1.5; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .about-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Obras ---------- */
.works { padding: clamp(64px, 9vw, 120px) 0; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.videos video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-900); border-radius: var(--radius-m); }
@media (max-width: 640px) { .videos { grid-template-columns: 1fr; } }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  grid-auto-flow: dense;
}
.gallery li:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gallery button {
  display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--steel-200); border-radius: var(--radius-s); overflow: hidden;
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery li:nth-child(7n+1) img { aspect-ratio: auto; }
.gallery button:hover img { transform: scale(1.04); }
.gallery-more { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; background: rgba(3,20,31,.94);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3,20,31,.94); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84dvh; object-fit: contain; border-radius: var(--radius-s); }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: var(--white);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Contato ---------- */
.contact { background: var(--navy-900); color: var(--white); padding: clamp(64px, 9vw, 120px) 0; }
.contact .h2 { color: var(--white); margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info > p { font-size: var(--step-1); color: #C7D6DF; max-width: 44ch; line-height: 1.5; }
.channels { margin-top: 32px; border-top: 1px solid rgba(255,255,255,.18); }
.channels a {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18);
  text-decoration: none; font-weight: 600; overflow-wrap: anywhere;
}
.channels a:hover { color: var(--signal); }
.channels span { font-weight: 400; color: #8FB0C2; font-size: var(--step--1); }

.quote {
  background: var(--white); color: var(--ink);
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-m);
  border-top: 6px solid var(--signal);
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #6B7C88; border-radius: var(--radius-s); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 0; box-shadow: none; border-color: var(--navy-700); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.form-error { color: #B42318; font-weight: 600; margin: 0; font-size: .95rem; }
.form-note { margin: 12px 0 0; font-size: var(--step--1); color: var(--steel-500); text-align: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .channels a { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Rodapé ---------- */
.site-footer { background: #031A28; color: #9FB6C4; font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer-row p { margin: 0; }
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-row a { color: var(--white); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: var(--navy-900);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.45);
}
.wa-float svg { width: 30px; height: 30px; }
.site-footer { padding-bottom: 84px; }
.wa-float:hover { background: #1EBE5A; }

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