:root {
  --navy-dark: #263166;
  --navy: #26367c;
  --yellow: #f7c907;
  --orange: #f6ab10;
  --white: #ffffff;
  --gray-bg: #f5f6fa;
  --text: #23262f;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--navy); line-height: 1.25; }

.section-title { font-size: 2rem; margin-bottom: 40px; }
.section-title--center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 20px; height: 20px; fill: currentColor; }

.btn--primary {
  background: var(--yellow);
  color: var(--navy-dark);
}
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  z-index: 100;
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  gap: 24px;
}
.header__logo { justify-self: start; }
.header__logo img { height: 40px; filter: brightness(0) invert(1); }

.header__flags {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__flags .flag {
  height: 26px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

.header__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  margin-top: 76px;
  min-height: 460px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}
.hero__content {
  margin-left: auto;
  width: 62%;
  text-align: left;
}
.hero__title {
  display: flex;
  flex-direction: column;
  font-family: 'Anton', var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 7.5vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.hero__subtitle {
  margin-top: 18px;
  font-size: clamp(0.85rem, 3.6vw, 1.3rem);
  font-weight: 500;
  color: #fff;
  text-align: left;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Parceiros */
.parceiros { background: var(--navy-dark); padding: 28px 0; }
.parceiros__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.parceiros__logo {
  max-width: 180px;
  max-height: 70px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.parceiros__logo--mwm { max-height: 46px; }

/* Sobre */
.sobre { padding: 56px 0; background: #fff; }
.sobre__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.sobre__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(38,54,124,0.12);
}
.icon-lg { width: 80px; height: 80px; }
.sobre__text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.sobre__text > p { color: #555; font-size: 1.05rem; margin-bottom: 14px; }
.sobre__text > p:last-child { margin-bottom: 0; }

.valores { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.valor { padding-left: 18px; border-left: 3px solid var(--orange); }
.valor h3 { font-size: 1.1rem; margin-bottom: 4px; }
.valor p { color: #555; font-size: 0.98rem; margin: 0; }

.historia { background: var(--gray-bg); }

/* Diferenciais / Nossos serviços */
.diferenciais { padding: 56px 0; background: var(--gray-bg); }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 26px 22px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(38,54,124,0.06);
}
.card .icon-lg { color: var(--navy); margin: 0 0 14px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: #666; font-size: 0.92rem; }

/* Carrossel de serviços */
.servicos-carrossel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.servicos-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 12px;
  scrollbar-width: none;
}
.servicos-track::-webkit-scrollbar { display: none; }
.card--servico {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.carrossel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 14px rgba(38,54,124,0.15);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.carrossel-btn .icon { width: 20px; height: 20px; }
.carrossel-btn:hover { background: var(--navy); color: #fff; }

/* Unidades */
.unidades { padding: 56px 0; background: var(--gray-bg); }
.unidades__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.unidade-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(38,54,124,0.06);
}
.unidade-foto {
  margin: -32px -32px 24px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.unidade-foto img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.unidade-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.unidade-endereco { color: #555; margin-bottom: 4px; }
.unidade-fone { color: #555; font-weight: 600; margin-bottom: 20px; }
.unidade-mapa {
  margin-top: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}
.unidade-mapa iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 20px;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__logo { height: 34px; filter: brightness(0) invert(1); }
.footer__contatos {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer__contatos div { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.footer__contatos strong { color: var(--yellow); }
.footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  justify-self: end;
}
.footer__instagram .icon { width: 22px; height: 22px; }
.footer__copy {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header__flags { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { grid-template-columns: auto auto; justify-content: space-between; }

  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .hero { min-height: 420px; }
  .hero__content { width: 82%; }

  .sobre__inner { grid-template-columns: 1fr; text-align: left; }
  .card--servico { flex-basis: 220px; }
  .unidades__grid { grid-template-columns: 1fr; }
  .parceiros__inner { gap: 32px; }
  .parceiros__logo { max-width: 130px; max-height: 50px; }
  .parceiros__logo--mwm { max-height: 34px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__instagram { justify-self: center; }
}

@media (max-width: 560px) {
  .hero { min-height: 380px; }
  .hero__content { width: 100%; text-align: center; }
  .hero__title { align-items: center; }
  .hero__subtitle { text-align: center; font-size: 0.6rem; white-space: normal; }
  .hero__overlay { padding-bottom: 32px; }
  .card--servico { flex-basis: 200px; }
  .servicos-carrossel { gap: 8px; }
  .carrossel-btn { width: 36px; height: 36px; }
  .parceiros { padding: 20px 0; }
  .parceiros__inner { gap: 12px; flex-wrap: nowrap; }
  .parceiros__logo { max-width: 80px; max-height: 32px; }
  .parceiros__logo--mwm { max-height: 22px; }
}
