:root {
  --primary-color: #0c1b33;
  --accent-color: #c9a44c;
  --bg-color: #ffffff;
  --text-color: #333333;
  --font-heading: 'Merriweather', serif;
  --font-body: 'Lato', sans-serif;
}

/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

/* ===== TOPBAR ===== */
.topbar {
  background-color: var(--primary-color);
  color: #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-top {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.contact-item a {
  color: #ddd;
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent-color);
}

.icon {
  font-size: 1rem;
  line-height: 1;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.flag {
  width: 25px;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.2s ease;
}

.flag:hover {
  transform: scale(1.05);
}

/* ===== TOPBAR - RESPONSIVE ===== */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0.8rem 1rem;
    gap: 0.6rem;
  }

  .contact-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .lang-switch {
    align-self: flex-end;
  }

  .contact-item span,
  .contact-item a {
    font-size: 0.9rem;
  }
}

/* ===== NAVBAR ===== */
.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 100%;
}

/* Linha dourada abaixo do menu */
.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
}

/* Logo e nome */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo-large {
  height: 70px;
  width: auto;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-color);
  margin: 0;
}

.brand-text p {
  color: var(--accent-color);
  font-weight: 600;
  margin: 0;
}

/* 🔹 Centralização precisa dos links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  translate: 0 -50%; /* mantém os links centralizados verticalmente */
  margin: 0;
  padding: 0;
  z-index: 10;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Botão da direita */
.btn-nav {
  background-color: var(--accent-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.btn-nav:hover {
  opacity: 0.85;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(12,27,51,0.6), rgba(12,27,51,0.6)),
              url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=60') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.btn {
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* ===== SECTIONS ===== */
.content-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.two-column {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.two-column.reverse {
  flex-direction: row-reverse;
}

.two-column img {
  flex: 1;
  max-width: 450px;
  border-radius: 8px;
}

.two-column .text {
  flex: 1;
}

.highlight {
  background-color: #f9f9f9;
  border-top: 3px solid var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  text-align: center;
}

/* ===== CONTACT ===== */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  background-color: #f9f9f9;
  border-top: 3px solid var(--accent-color);
  border-bottom: 3px solid var(--accent-color);
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  line-height: 1.8;
}

.contact-info h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--text-color);
}

form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Garante que o botão tenha exatamente a mesma largura dos campos */
#contact-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

#contact-form input,
#contact-form textarea,
#contact-form button {
  width: 100%;
  box-sizing: border-box;
}

#contact-form button {
  padding: 0.8rem;
  background-color: var(--accent-color);
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  #contact-form button {
    width: 100%;
  }
}

#contact-form button:hover {
  opacity: 0.85;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--primary-color);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .nav-links {
    position: static;
    transform: none;
    translate: none;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .two-column {
    flex-direction: column;
  }

  .contact-section {
    flex-direction: column;
  }

  .brand-text h1 {
    font-size: 1.4rem;
  }

  .logo-large {
    height: 55px;
  }

  .contact-top {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0.8rem 1rem;
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  .contact-top {
    flex-direction: column;
    gap: 0.3rem;
  }

  .lang-switch {
    align-self: flex-end;
  }
}
