/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variáveis de cor — Se quiser mudar as cores, muda aqui */
:root {
  --cor-header:      #1B4D3E;
  --cor-header-dark: #163d31;
  --cor-footer:      #1B4D3E;
  --cor-btn:         #163d31;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  background-image: url("../image/background.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
.principal {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(56px, 10vh, 120px);
  max-width: 980px;
}
.principal h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.01em;
  text-shadow: 0 2px 32px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.principal h2 {
  font-style: italic;
  color: #c8a96e;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  line-height: 1.45;
  white-space: nowrap;
}

/* ===========================
   HEADER
   =========================== */
header {
  background-color: var(--cor-header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 6px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo clicável  */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Margem à esquerda para afastar da borda */
  margin-left: 8px;
  flex-shrink: 0;
}

.logotopo {
  width: auto;
  height: 70px;
  object-fit: contain;
  display: block;
}

/* Nav desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 17px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Hamburguer — oculto em desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  transition: background 0.2s;
  margin-left: auto;
}

.hamburger:hover { background: rgba(255,255,255,0.1); }

.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1),
              opacity 0.25s ease,
              width 0.3s ease;
  transform-origin: center;
  /*Isso eu pedi pra I.a. me ensinar, porque é util mas eu não estava sabendo fazer do jeito que o Gilmar ensinou*/
}

.hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.nav-menu {
  background-color: var(--cor-header-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
  display: flex;
  flex-direction: column;
}

.nav-menu.is-open { max-height: 300px; }

.nav-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ===========================
   MAIN
   =========================== */
main {
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===========================
   SEÇÃO PRINCIPAL — lado a lado
   =========================== */
.principalTexto {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: clamp(28px, 5vh, 80px);
}

.principal-texto {
  margin: auto 0;
  flex: 0 0 360px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.principal-texto h1 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  line-height: 1.2;
}

.principal-texto p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  line-height: 1.5;
}



/* ===========================
   BOTÕES
   =========================== */
.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary {
  background-color: var(--cor-btn);
  color: #fff;
  border: 2px solid var(--cor-btn);
}

.btn-secondary {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-primary:hover,
.btn-secondary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background-color: var(--cor-footer);
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  position:relative;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 13px;
  z-index: 50;
}

footer p {
  color: #fff;
  margin: 0;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */
@media (max-width: 900px) {
  .principalTexto { flex-direction: column; }
  .principal-texto { flex: none; width: 100%; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .navbar      { padding: 6px 16px; }
  .logotopo    { height: 58px; }
  main         { padding: 14px; }
  .principalTexto { gap: 16px; }
  .principal-texto,
  .content-section { padding: 22px 18px; }
  .btn-primary,
  .btn-secondary   { font-size: 13px; }
}

@media (max-width: 480px) {
  .logotopo { height: 48px; }
  .principal-texto h1 { font-size: 1.3rem; }
  .principal-texto,
  .content-section { padding: 18px 14px; }
}