/* ==========================================================================
   Variáveis
   ========================================================================== */

:root {
  --gold: #DEB37F;
  --gold-dark: #c89a63;
  --navy: #181C36;
  --white: #ffffff;
  --light: #f8f8f8;
  --text-muted: #444;
  --footer-bg: #111;
  --header-height: 185px;
  --section-padding: 120px;
  --transition: 0.3s ease;
}

/* ==========================================================================
   Reset e base
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Gotham', sans-serif;
  background: var(--navy);
  color: var(--text-muted);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ==========================================================================
   Utilitários
   ========================================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(24, 28, 54, 0.97);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  height: 145px;
  width: auto;
  max-width: min(460px, 62vw);
}

.menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(24, 28, 54, 0.95), rgba(24, 28, 54, 0.85)),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=2000&q=80') center / cover no-repeat;
  color: var(--white);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.375rem);
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: 40px;
  opacity: 0.9;
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(222, 179, 127, 0.35);
}

.btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

/* ==========================================================================
   Seções
   ========================================================================== */

section {
  padding: var(--section-padding) 0;
}

.section-light {
  background: var(--light);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.625rem);
  color: var(--navy);
  margin-bottom: 60px;
}

/* ==========================================================================
   Cards — Áreas de atuação
   ========================================================================== */

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  padding: 40px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--navy);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  background: var(--white);
}

.card h3 {
  margin-bottom: 15px;
  color: var(--gold);
  transition: color 0.4s ease;
}

.card p {
  color: var(--white);
  transition: color 0.4s ease;
}

.card:hover h3,
.card:hover p {
  color: var(--navy);
}

/* ==========================================================================
   Sobre
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about h2 {
  font-size: clamp(2rem, 4vw, 2.625rem);
  color: var(--navy);
  margin-bottom: 20px;
}

.about p {
  line-height: 1.8;
  font-size: 18px;
}

/* ==========================================================================
   Estatísticas
   ========================================================================== */

.stats {
  background: var(--navy);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 30px;
}

.stat h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  margin-bottom: 8px;
}

/* ==========================================================================
   Contato
   ========================================================================== */

.contact-intro {
  text-align: center;
  max-width: 560px;
  margin: -40px auto 60px;
  font-size: 18px;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(222, 179, 127, 0.25);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-full {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  text-align: center;
}

.btn-outline {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 28px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gold);
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  padding: 32px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-card address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--gold);
}

.contact-link {
  display: inline-block;
  font-weight: 600;
  color: var(--gold) !important;
}

.contact-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 10;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

footer h3 {
  margin-bottom: 20px;
}

footer p {
  opacity: 0.7;
  margin-bottom: 8px;
}

footer a {
  text-decoration: none;
  transition: color var(--transition);
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold);
}

footer .copyright {
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.5;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --header-height: 140px;
    --section-padding: 80px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    padding: 30px;
    gap: 24px;
    background: rgba(24, 28, 54, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .menu.open {
    display: flex;
  }

  .logo img {
    height: 100px;
    max-width: min(340px, 70vw);
  }
}

/* ==========================================================================
   Acessibilidade
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
