/* Foundation */
:root {
  --color-bg: #0f2029;
  --color-bg-alt: #16303c;
  --color-accent: #ce9569;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1140px;
  --header-height: 72px;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  padding-top: var(--header-height);
}

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

a { color: inherit; text-decoration: none; }

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

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

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.85; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

section { padding: 96px 0; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: rgba(15, 32, 41, 0.95);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header__logo img { height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { font-weight: 500; }
.site-nav a:hover { color: var(--color-accent); }

.btn--small { padding: 10px 20px; font-size: 0.9rem; }

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.site-header__toggle span {
  width: 24px; height: 2px; background-color: var(--color-text);
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: var(--header-height); left: 0; right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-header__toggle { display: flex; }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: calc(var(--header-height) * -1);
  padding-top: var(--header-height);
}

.hero__inner { max-width: 640px; }

.hero__title {
  font-size: 2.75rem;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: 32px;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .hero__title { font-size: 2rem; }
}

/* Sobre */
.sobre__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.sobre__foto { flex: 0 0 320px; }
.sobre__foto img { border-radius: 8px; height: auto; }

.sobre__texto h2 { font-size: 2rem; margin-bottom: 24px; color: var(--color-accent); }
.sobre__texto p { margin-bottom: 16px; color: var(--color-text-muted); }

@media (max-width: 768px) {
  .sobre__inner { flex-direction: column; }
  .sobre__foto { flex: 0 0 auto; width: 220px; }
}

/* Áreas de Atuação */
.areas__title { text-align: center; font-size: 2rem; margin-bottom: 48px; }

.areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--color-bg-alt);
  border-top: 3px solid var(--color-accent);
  border-radius: 6px;
  padding: 32px 24px;
  opacity: 0;
  animation: cardFadeUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.4s; }
.card:nth-child(4) { animation-delay: 0.5s; }
.card:nth-child(5) { animation-delay: 0.6s; }
.card:nth-child(6) { animation-delay: 0.7s; }
.card:nth-child(7) { animation-delay: 0.8s; }
.card:nth-child(8) { animation-delay: 0.9s; }

@keyframes cardFadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__icon {
  display: block;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.card:hover .card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.card h3 { color: var(--color-accent); margin-bottom: 12px; font-size: 1.25rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Contato */
.contato__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contato__lista { list-style: none; margin-top: 24px; }
.contato__lista li { margin-bottom: 12px; color: var(--color-text-muted); }
.contato__lista a:hover { color: var(--color-accent); }

.contato__form { display: flex; flex-direction: column; gap: 6px; }
.contato__form label { font-size: 0.9rem; color: var(--color-accent); margin-top: 12px; }
.contato__form input,
.contato__form textarea {
  background-color: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
}
.contato__form button { margin-top: 20px; }
.contato__form-status { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.contato__form-status.is-error { color: #e07a5f; }
.contato__form-status.is-success { color: #8fbf9f; }

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

/* Footer */
.site-footer {
  background-color: #0a161c;
  padding: 48px 0;
  text-align: center;
}
.site-footer__logo { height: 40px; margin: 0 auto 16px; }
.site-footer__oab { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.site-footer__social { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.site-footer__social a { font-size: 0.9rem; }
.site-footer__social a:hover { color: var(--color-accent); }
.site-footer__copy { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 768px) {
  .site-footer { padding-bottom: 96px; }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
