:root {
  --navy: #0f2438;
  --navy-light: #17324d;
  --gold: #b8874f;
  --gold-light: #d9ac74;
  --bg: #f8f7f4;
  --bg-alt: #efece5;
  --text: #24292e;
  --text-muted: #5a6472;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(15, 36, 56, 0.08);
  --font-heading: "Spectral", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6em;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* NAV */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1em 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

#site-nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 0.7em 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--gold-light);
}

.nav-cta {
  display: none;
}

#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.2s;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: calc(7em + var(--nav-h, 70px)) 0 6em;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(184,135,79,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3em;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.hero-cta {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.hero-crc {
  margin-top: 2em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.hero-illustration {
  min-width: 0;
}

.hero-illustration img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* SECTIONS */
section {
  padding: 5.5em 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2.5em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* SOBRE */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}

.sobre-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  min-width: 0;
}

.sobre-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sobre-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2em;
  box-shadow: var(--shadow);
  min-width: 0;
}

.sobre-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  margin-top: 1.5em;
}

.fact {
  min-width: 0;
}

.fact strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.4rem;
}

.fact span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SERVICOS */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8em;
}

.servico-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2em 1.8em;
  box-shadow: var(--shadow);
  min-width: 0;
  border-top: 3px solid var(--gold);
}

.servico-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1em;
  color: var(--gold);
}

.servico-card h3 {
  font-size: 1.15rem;
}

.servico-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* DIFERENCIAIS */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8em;
}

.diferencial {
  display: flex;
  gap: 1em;
  min-width: 0;
}

.diferencial .icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--navy);
}

.diferencial h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}

.diferencial p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* CONTATO */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5em;
  align-items: start;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.contato-item {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  min-width: 0;
}

.contato-item .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.2em;
}

.contato-item h3 {
  font-size: 1rem;
  margin-bottom: 0.15em;
}

.contato-item p, .contato-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  margin: 0;
}

.contato-item a:hover {
  color: var(--navy);
}

.map-frame {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  height: 220px;
  margin-top: 0.5em;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2em;
  box-shadow: var(--shadow);
  min-width: 0;
}

.form-row {
  margin-bottom: 1.2em;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: var(--navy);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid #d8d4cb;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.8em;
}

/* FOOTER */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3em 0 1.6em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2em;
  margin-bottom: 2em;
}

footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.8em;
}

footer p, footer a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  line-height: 1.8;
}

footer a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.4em;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em;
  color: rgba(255,255,255,0.5);
}

.dev-credit a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}

.dev-credit a:hover {
  color: var(--gold-light);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 1.6em;
  right: 1.6em;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
  animation: pulse-whatsapp 2.4s infinite;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 6px 18px rgba(0,0,0,0.25); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 6px 18px rgba(0,0,0,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 6px 18px rgba(0,0,0,0.25); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .whatsapp-float { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .sobre-grid, .contato-grid {
    grid-template-columns: 1fr;
  }
  .servicos-grid, .diferenciais-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-illustration {
    order: -1;
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .servicos-grid, .diferenciais-grid, .sobre-facts {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2em 6%;
    gap: 1em;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
