@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Slab:wght@300;400;500&display=swap');

/* ── Variáveis ──────────────────────────────────────── */
:root {
  --brand:        #508F97;
  --brand-dark:   #3d6e75;
  --brand-deeper: #2b5057;
  --brand-light:  #e6f2f4;
  --brand-xlight: #f2f8f9;

  --white:        #ffffff;
  --bg:           #f5f9fa;

  --text:         #1c3337;
  --text-muted:   #5c7c80;

  --border:       #cde4e7;
  --border-light: #e6f2f4;

  --nav-h:        72px;
  --radius:       3px;
  --shadow-sm:    0 1px 4px rgba(80,143,151,0.10);
  --shadow-md:    0 4px 16px rgba(80,143,151,0.14);

  --ff-body:      'Roboto', 'Segoe UI', Arial, sans-serif;
  --ff-display:   'Roboto Slab', Georgia, serif;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Tipografia ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
.label {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-block;
}

/* ── Navegação ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-md); }

.logo img { height: 44px; width: auto; display: block; }

.nav-links { display: flex; gap: 0.2rem; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand); background: var(--brand-light); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--brand);
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-top: 2px solid var(--brand);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.4rem 2rem;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--brand); }

/* ── Main ───────────────────────────────────────────── */
main { padding-top: var(--nav-h); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(92svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--white);
  overflow: hidden;
}
.hero-accent {
  position: absolute;
  top: 0; right: 0;
  width: clamp(200px, 38vw, 480px);
  height: 100%;
  background: linear-gradient(160deg, var(--brand-xlight) 0%, var(--brand-light) 100%);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-content { position: relative; max-width: 620px; }
.hero-content .label { margin-bottom: 1.2rem; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1.2rem;
}
.hero-content h1 em { font-style: italic; color: var(--brand); }
.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ── Botões ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.7rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: var(--radius);
  background: transparent;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  cursor: pointer;
}
.btn:hover { background: var(--brand); color: var(--white); }
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }

/* ── Seções ─────────────────────────────────────────── */
section {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
}
.section-header { margin-bottom: 2.8rem; }
.section-header .label { margin-bottom: 0.8rem; }
.section-header h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section-header p { color: var(--text-muted); max-width: 540px; margin-top: 0.8rem; font-weight: 300; }

/* ── Faixa de serviços ──────────────────────────────── */
.services-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-strip section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  padding-top: 0; padding-bottom: 0;
}
.service-item {
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.service-item:last-child { border-right: none; }
.service-item:hover { background: var(--brand-xlight); }
.service-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.service-item h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
  font-family: var(--ff-body);
}
.service-item p { font-size: 0.87rem; color: var(--text-muted); font-weight: 300; }

/* ── Sobre (home) ───────────────────────────────────── */
.about-strip { background: var(--bg); }
.about-strip .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-strip .text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.about-strip .text p { color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 300; }
.about-strip .text .btn { margin-top: 1.2rem; }

.stat-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-box .num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-box p { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }

/* ── Marcas ─────────────────────────────────────────── */
.brands-strip { background: var(--brand); }
.brands-strip section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem; padding-bottom: 2rem;
}
.brands-strip .label { flex-basis: 100%; color: rgba(255,255,255,0.7); }
.brand-badge {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.brand-badge:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ── Page hero (internas) ───────────────────────────── */
.page-hero {
  background: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 40%;
  background: linear-gradient(to left, var(--brand-xlight), transparent);
  pointer-events: none;
}
.page-hero .label { margin-bottom: 0.8rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 680px; }
.page-hero h1 em { font-style: italic; color: var(--brand); }
.page-hero p { max-width: 540px; color: var(--text-muted); margin-top: 1rem; font-weight: 300; font-size: 1.02rem; }

/* ── Content blocks ─────────────────────────────────── */
.content-block { max-width: 720px; }
.content-block h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 0.8rem; }
.content-block p { color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 300; }
.content-block + .content-block { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }

/* ── Cards grid ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand); }
.card-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--ff-body);
}
.card h3 { font-size: 1rem; font-family: var(--ff-body); font-weight: 500; margin-bottom: 0.45rem; color: var(--text); }
.card p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

/* ── Duas colunas ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.two-col .aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.aside h3 {
  font-size: 1rem;
  font-family: var(--ff-body);
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--brand-dark);
}
.aside ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 300;
}
.aside ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ── Contato ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info .item { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--border); }
.contact-info .item:first-child { border-top: 1px solid var(--border); }
.item-icon {
  width: 38px; height: 38px;
  background: var(--brand-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 1rem;
  flex-shrink: 0;
}
.item-body strong {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.item-body a { color: var(--text); transition: color 0.2s; }
.item-body a:hover { color: var(--brand); }
.item-body p { color: var(--text-muted); font-size: 0.95rem; font-weight: 300; }

.contact-map {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.contact-map iframe { width: 100%; height: 100%; border: none; filter: saturate(0.5) contrast(0.9); opacity: 0.85; }

/* ── Formulário ─────────────────────────────────────── */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.15rem; font-family: var(--ff-body); font-weight: 500; margin-bottom: 0.3rem; }
.contact-form > p { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 1.6rem; font-weight: 300; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.93rem;
  font-weight: 300;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group select option { background: var(--white); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(80,143,151,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); font-weight: 300; }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; font-weight: 300; }
.form-note a { color: var(--brand); }

/* ── Rodapé ─────────────────────────────────────────── */
footer {
  background: var(--brand-deeper);
  color: rgba(255,255,255,0.75);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo a {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
}
.footer-logo span { color: rgba(255,255,255,0.5); margin-left: 0.3em; font-weight: 300; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.77rem; color: rgba(255,255,255,0.4); padding-top: 1.3rem; }

/* ── Divisor ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0 clamp(1.5rem, 5vw, 4rem); }

/* ── Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Responsivo ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .about-strip .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-accent { display: none; }
}
@media (max-width: 480px) {
  .stat-group { grid-template-columns: 1fr; }
}

/* ── Imagens de página ───────────────────────────────── */

/* Hero com foto (home) */
.hero-photo {
  position: absolute;
  top: 0; right: 0;
  width: clamp(260px, 42vw, 540px);
  height: 100%;
  overflow: hidden;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.55) 0%, transparent 40%);
}

/* Imagem de seção - lateral (texto + foto) */
.section-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.section-with-image.image-left { direction: rtl; }
.section-with-image.image-left > * { direction: ltr; }

.section-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Imagem hero de página interna (banner) */
.page-banner {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  position: relative;
}
.page-banner img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(80,143,151,0.18) 0%,
    rgba(44,80,87,0.35) 100%);
}

/* Imagem flutuante dentro de conteúdo */
.img-float {
  float: right;
  width: 42%;
  margin: 0 0 1.5rem 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.img-float img { width: 100%; height: auto; display: block; }

/* Clearfix */
.clearfix::after { content: ''; display: table; clear: both; }

/* Imagem com legenda */
.img-caption {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.img-caption img { width: 100%; height: auto; display: block; }
.img-caption figcaption {
  background: var(--brand-xlight);
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .section-with-image { grid-template-columns: 1fr; }
  .section-with-image.image-left { direction: ltr; }
  .hero-photo { clip-path: none; width: 100%; height: 220px; position: relative; }
  .hero { flex-direction: column; padding-top: 0; min-height: auto; }
  .hero-content { padding: 2.5rem 1.5rem; }
  .img-float { float: none; width: 100%; margin: 0 0 1.5rem 0; }
}
