/* ==========================================================================
   O Rei dos Galpões — Landing Page
   Direção: clean, moderno. Navy/verde da marca usados como acento pontual
   (texto, botões, ícones), não como blocos de fundo pesados.
   ========================================================================== */

:root {
  --navy-900: #002060;
  --navy-700: #103878;
  --green-600: #008000;
  --green-500: #00b000;
  --green-tint: #e7f6e9;
  --navy-tint: #eaf0fb;
  --white: #ffffff;
  --paper: #f7f9fc;
  --ink: #10151f;
  --slate: #5b6472;
  --line: #e5e9f0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 20px 44px -28px rgba(0, 32, 96, 0.28);
  --shadow-soft: 0 14px 30px -22px rgba(0, 32, 96, 0.22);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.4rem, 3.6vw + 1.2rem, 3.6rem); }
h2 { font-size: clamp(1.8rem, 2vw + 1.1rem, 2.4rem); }

p { line-height: 1.65; margin: 0 0 1em; color: var(--slate); }

strong { color: var(--navy-900); font-weight: 600; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--green-600);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}
.eyebrow-light { color: var(--green-500); }
.eyebrow-light::before { background: var(--green-500); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 19px; height: 19px; fill: currentColor; flex: none; }

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: 0 12px 26px -12px rgba(0, 128, 0, 0.55);
}
.btn-primary:hover { background: #026b02; }

.btn-outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-700); background: var(--navy-tint); }

.btn-block { width: 100%; }

.btn-header {
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  flex: none;
}
.btn-header-text { display: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-logo { height: 68px; width: auto; }

.header-meta { display: none; flex: 1; }
.header-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  color: var(--slate);
}

.btn-header { margin-left: auto; }

@media (min-width: 700px) {
  .header-logo { height: 52px; }
  .header-meta { display: block; }
  .header-inner { gap: 16px; padding-top: 14px; padding-bottom: 14px; }
  .btn-header {
    width: auto;
    height: auto;
    padding: 10px 20px;
    font-size: 0.92rem;
    min-height: 42px;
    border-radius: var(--radius-sm);
  }
  .btn-header-text { display: inline; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-tint) 0%, var(--white) 55%);
  overflow: hidden;
  padding: 64px 0 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black, transparent 75%);
  opacity: 0.7;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}

.hero-copy h1 { color: var(--navy-900); }
.hero-copy .hl { color: var(--green-600); }

.hero-sub, .hero-qualify {
  color: var(--slate);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-sub strong, .hero-qualify strong { color: var(--navy-900); }
.hero-qualify { font-size: 0.98rem; }

.hero-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.hero-card-bridge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy-900);
  margin: 0 0 6px;
  line-height: 1.3;
}

@media (min-width: 960px) {
  .hero { padding: 96px 0 64px; }
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
  .hero-card { max-width: 400px; justify-self: end; }
}

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */

.section { padding: 88px 0; }
.section-sub { color: var(--slate); max-width: 60ch; }

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */

.diferenciais { background: var(--white); }

.diferenciais-head {
  display: grid;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

.diferenciais-cta p { color: var(--slate); }

@media (min-width: 860px) {
  .diferenciais-head { grid-template-columns: 1fr 1fr; gap: 60px; }
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-family: 'Inter', sans-serif;
  color: var(--navy-900);
}

.feature-grid .feature-ico-badge { margin-bottom: 10px; }

.feature-grid li > span:not(.feature-ico-badge) {
  font-weight: 600;
  font-size: 1.02rem;
}

.feature-grid li p {
  margin: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.5;
}

.feature-ico-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green-600);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   GALERIA
   ========================================================================== */

.galeria { background: var(--paper); }

.gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 16px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.gallery-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  background: var(--navy-tint);
}

.gallery-card figcaption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--slate);
}

@media (min-width: 700px) {
  .gallery-card { flex-basis: 46%; }
}
@media (min-width: 1024px) {
  .gallery-card { flex-basis: 30%; }
}

/* ==========================================================================
   QUEM SOMOS
   ========================================================================== */

.quemsomos {
  position: relative;
  background: var(--paper);
}

.quemsomos-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}

.quemsomos-photo {
  aspect-ratio: 1;
  max-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.quemsomos-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quemsomos-copy h2 { color: var(--navy-900); }
.quemsomos-copy p { color: var(--slate); max-width: 56ch; }
.quemsomos-copy strong { color: var(--navy-900); }

@media (min-width: 860px) {
  .quemsomos-inner { grid-template-columns: 280px 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--white); color: var(--slate); padding: 48px 0 28px; border-top: 1px solid var(--line); }
.footer-logo { height: 38px; margin-bottom: 28px; }

.footer-cols {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  font-size: 0.92rem;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-cols p { margin: 0 0 6px; color: var(--slate); }
.footer-cols a { text-decoration: none; color: var(--green-600); font-weight: 600; }

.footer-copy { font-size: 0.82rem; margin: 20px 0 0; color: var(--slate); }

@media (min-width: 700px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 32, 96, 0.45);
}
.whatsapp-float .ico { width: 28px; height: 28px; fill: currentColor; }

.whatsapp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green-500);
  opacity: 0.5;
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.45; }
  80% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-ring { animation: none; opacity: 0; }
}
