/* =========================================================
   GRUPO ORTH — Landing page institucional (v3 — marca oficial)
   Paleta: Pantone 661 C (azul) + branco · Fonte: Montserrat
   ========================================================= */

:root {
  --blue-900: #041A4D;   /* fundos escuros (footer, seções dark) */
  --blue-800: #062561;   /* stats, blocos escuros */
  --brand:    #002F87;   /* Pantone 661 C — azul principal */
  --blue-600: #14409B;   /* azul médio */
  --blue-500: #2B55C4;   /* azul vivo — destaques/interação */
  --blue-300: #9FB6EE;   /* azul claro — rótulos sobre fundo escuro */
  --paper:    #F4F6FB;   /* branco frio */
  --paper-2:  #E7ECF7;
  --ink:      #0E1A3A;   /* tinta azul-escura */
  --ink-soft: #4A5678;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body:    "Montserrat", system-ui, sans-serif;
  --font-mono:    "Montserrat", system-ui, sans-serif;
  --wrap: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-weight: 400; color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.eyebrow { font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.eyebrow--light { color: var(--blue-300); }

/* Botões */
.btn { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 14px 28px; border-radius: var(--radius); border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #fff; color: var(--brand); box-shadow: 0 8px 20px rgba(4,26,77,.28); }
.btn--primary:hover { background: var(--paper-2); box-shadow: 0 12px 26px rgba(4,26,77,.4); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--full { width: 100%; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background .35s ease, box-shadow .35s ease, height .35s ease, color .35s ease; }
.site-header.scrolled { background: rgba(244,246,251,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--paper-2); color: var(--brand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .35s ease; }
.site-header.scrolled .header-inner { height: 68px; }

/* Marca — logotipo oficial em duas versões (branca p/ fundo escuro, azul p/ fundo claro).
   <img> simples: funciona também abrindo o site direto por file:// (mask-image não funciona aí). */
.brand { display: flex; align-items: center; color: inherit; }
.brand-logo { display: block; height: 40px; width: auto; transition: height .35s ease; }
.site-header.scrolled .brand-logo { height: 34px; }
.brand-logo--dark { display: none; }
.site-header.scrolled .brand-logo--light { display: none; }
.site-header.scrolled .brand-logo--dark { display: block; }
.brand--footer .brand-logo { height: 48px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,.9); transition: color .2s; }
.site-header.scrolled .nav a { color: var(--ink-soft); }
.nav a:hover { color: #fff; }
.site-header.scrolled .nav a:hover { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 9px 20px; border-radius: var(--radius); font-weight: 700; }
.nav-cta:hover { background: var(--blue-600); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: currentColor; transition: .3s; }

/* ===== HERO slideshow ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; animation: kenburns 8s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.18); } }

.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,26,77,.45) 0%, rgba(4,26,77,.6) 55%, rgba(4,26,77,.85) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-block: 96px; max-width: 820px; }
.hero h1 { font-size: clamp(2.4rem, 6.8vw, 5rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 580px; color: rgba(255,255,255,.92); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: none; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s, width .3s; padding: 0; }
.hero-dots button.active { background: #fff; width: 46px; }

.scroll-hint { position: absolute; bottom: 30px; right: 40px; z-index: 3; color: rgba(255,255,255,.75); font-size: 1.4rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--muted { background: var(--paper-2); }
.section--dark { background: var(--blue-900); color: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-lead, .contato-lead { color: var(--ink-soft); font-size: 1.08rem; margin-top: 12px; }
.section--dark .contato-lead { color: rgba(244,246,251,.75); }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.section-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 52ch; }
.section-copy h2 { margin-bottom: 24px; }

.img-photo { min-height: 440px; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(4,26,77,.22); }

/* ===== Frentes de produção (cartões-talhão) ===== */
.frentes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--blue-900); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }
.frente {
  position: relative; overflow: hidden;
  background: var(--paper);
  padding: 44px 26px 34px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: color .35s ease;
}
.frente::before {
  content: ""; position: absolute; inset: 0;
  background: var(--brand);
  transform: translateY(101%);
  transition: transform .45s cubic-bezier(.65,0,.35,1);
  z-index: 0;
}
.frente:hover::before, .frente:focus-within::before { transform: translateY(0); }
.frente > * { position: relative; z-index: 1; }

.frente-index {
  position: absolute; top: 14px; right: 18px; z-index: 1;
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(20,64,155,.35);
  transition: -webkit-text-stroke-color .35s ease;
}
.frente:hover .frente-index { -webkit-text-stroke-color: rgba(255,255,255,.55); }

.frente-icon {
  width: 52px; height: 52px;
  color: var(--blue-600);
  margin-bottom: auto;
  transition: color .35s ease, transform .45s cubic-bezier(.65,0,.35,1);
}
.frente:hover .frente-icon { color: #fff; transform: translateY(-6px); }

.frente h3 { margin: 22px 0 10px; color: var(--blue-900); transition: color .35s ease; }
.frente p { color: var(--ink-soft); font-size: .95rem; transition: color .35s ease; }
.frente:hover h3 { color: #fff; }
.frente:hover p { color: rgba(255,255,255,.85); }

/* Vídeo incorporado (YouTube) */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(4,26,77,.22); background: var(--blue-900); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galeria */
.gallery { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery-track { display: flex; gap: 18px; width: max-content; animation: scrollx 40s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-item { flex: 0 0 auto; width: 380px; height: 260px; background-size: cover; background-position: center; border-radius: var(--radius); }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Valores — tríade com filete e marcador, sem card */
.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(20,64,155,.22); }
.valor { position: relative; padding: 40px 34px 16px; border-left: 1px solid rgba(20,64,155,.22); }
.valor:first-child { border-left: none; padding-left: 0; }
.valor::after { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 3px; background: var(--brand); }
.valor:first-child::after { left: 0; }
.valor-tag { display: block; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; letter-spacing: .1em; color: var(--brand); margin-bottom: 14px; }
.valor h3 { color: var(--blue-900); margin-bottom: 12px; font-size: 1.55rem; }
.valor p { color: var(--ink-soft); max-width: 34ch; }

/* Footer */
.site-footer { background: var(--blue-900); color: var(--paper); padding: 84px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 48px; align-items: start; }

.footer-brand .brand--footer { color: var(--paper); }
.footer-tagline { margin-top: 16px; color: rgba(244,246,251,.6); font-size: .95rem; max-width: 24ch; }

.footer-contatos { list-style: none; display: grid; gap: 22px; }
.footer-contatos li { display: flex; align-items: center; gap: 14px; color: rgba(244,246,251,.88); font-size: 1rem; }
.footer-contatos svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--blue-300); }

.footer-social-label { display: block; font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,246,251,.5); margin-bottom: 16px; }
.social-row { display: flex; gap: 12px; }
.social-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(244,246,251,.25); border-radius: 12px;
  color: var(--paper); transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { background: #fff; border-color: #fff; color: var(--brand); transform: translateY(-3px); }

.footer-bottom { margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(244,246,251,.12); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-copy { font-size: .85rem; color: rgba(244,246,251,.6); }
.placeholder-note { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; color: var(--blue-500); background: rgba(43,85,196,.10); border: 1px dashed rgba(43,85,196,.45); padding: 8px 12px; border-radius: var(--radius); margin-top: 18px; display: inline-block; }
.placeholder-note.center { display: block; text-align: center; margin: 28px auto 0; max-width: 560px; }
.placeholder-note.light { color: var(--blue-300); background: rgba(159,182,238,.14); border-color: rgba(159,182,238,.45); }

/* ===== REVEAL (aparecer ao rolar) ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ===== RESPONSIVO ===== */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--paper-2); padding: 8px 24px 24px; transform: translateY(-140%); transition: transform .3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--paper-2); color: var(--ink-soft) !important; }
  .nav a:hover { color: var(--brand) !important; }
  .nav-cta { text-align: center; margin-top: 12px; color: #fff !important; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .frentes { grid-template-columns: repeat(2, 1fr); }
  .frente { min-height: 280px; }
  .valores { grid-template-columns: 1fr; border-top: none; }
  .valor { border-left: none; padding: 32px 0 8px; border-top: 1px solid rgba(20,64,155,.2); }
  .valor:first-child { padding-top: 32px; }
  .valor::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gallery-item { width: 280px; height: 200px; }
  .img-photo { min-height: 300px; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .frentes { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; text-align: center; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide.is-active { transform: scale(1); }
}
