/* === VARIÁVEIS === */
:root {
  --red: #c0392b;
  --dark: #2c2c2c;
  --bg: #f8f8f6;
  --muted: #888;
  --border: #e8e8e8;
  --nav-height: 60px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, sans-serif; font-size: 16px; color: var(--dark); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 0.75rem; }
h1, h2, h3 { line-height: 1.2; }

/* === UTILITÁRIOS === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }

.divider {
  border: none;
  border-top: 2px solid var(--red);
  width: 40px;
  margin: 8px auto 28px;
}

.section-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--dark);
}

.btn--outline {
  display: inline-block;
  border: 1.5px solid var(--red);
  color: var(--red);
  padding: 10px 24px;
  font-size: 0.875rem;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn--outline:hover { background: var(--red); color: #fff; text-decoration: none; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #fff;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--dark);
}
.nav__brand:hover { text-decoration: none; color: var(--red); }
.nav__links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.nav__links a:hover { color: var(--red); text-decoration: none; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.2s, opacity 0.2s;
}

/* === HERO === */
.hero {
  background: #fff;
  padding: calc(var(--nav-height) + 80px) 24px 80px;
}
.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.hero__text { flex: 1; max-width: 480px; }
.hero__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 32px;
  line-height: 1.15;
}
.hero__title strong { font-weight: 700; }
.hero__image { flex: 0 0 auto; max-width: 280px; }
.hero__image img { width: 100%; height: auto; display: block; }

/* === SOBRE === */
.sobre {
  background: var(--bg);
  padding: 96px 24px;
  text-align: center;
}
.sobre h2 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 0;
}
.sobre p { color: #555; font-size: 1rem; margin: 0; }

/* === SERVIÇOS === */
.servicos {
  background: #fff;
  padding: 96px 24px;
  text-align: center;
}
.servicos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.servico {
  border-top: 3px solid var(--red);
  padding: 24px 16px;
  text-align: center;
}
.servico__icon {
  width: 36px;
  height: 36px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 12px;
}
.servico h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.servico p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* === CONTATO === */
.contato {
  background: var(--bg);
  padding: 96px 24px;
  text-align: center;
}
.contato__grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.contato__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contato__item svg {
  width: 32px;
  height: 32px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contato__item p, .contato__item a {
  font-size: 0.9rem;
  color: var(--dark);
  margin: 0;
}
.contato__item a:hover { color: var(--red); }

/* === FOOTER === */
.footer {
  background: var(--dark);
  padding: 24px;
  text-align: center;
}
.footer p { color: rgba(255,255,255,.5); font-size: 0.8rem; margin: 0; }
.footer a { color: rgba(255,255,255,.5); }
.footer a:hover { color: #fff; }

/* === RESPONSIVO === */
@media (max-width: 900px) {
  .servicos__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: calc(var(--nav-height) + 48px) 24px 64px; }
  .hero__inner { flex-direction: column-reverse; text-align: center; }
  .hero__image { max-width: 180px; }
  .hero__text { max-width: 100%; }

  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links a { display: block; padding: 16px; border-bottom: 1px solid var(--border); }

  .contato__grid { gap: 40px; }
}

@media (max-width: 480px) {
  .servicos__grid { grid-template-columns: 1fr; }
}