
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --wine: #7B263E;
  --wine-dark: #54182D;
  --pink: #F8DDE3;
  --pink-light: #FFF5F6;
  --navy: #172B49;
  --cream: #FFFAF8;
  --white: #FFFFFF;
  --text: #35242B;
  --muted: #806D73;
  --border: #EBD9DD;
  --shadow: 0 12px 35px rgba(84, 24, 45, 0.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* HEADER */

.header {
  width: 100%;
  min-height: 82px;
  padding: 18px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: 1px;
}

.logo span {
  color: var(--navy);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: color .3s;
}

nav a:hover {
  color: var(--wine);
}

/* HERO */

.hero {
  min-height: 570px;
  padding: 90px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 10% 20%, #F8DDE3 0, transparent 35%),
    radial-gradient(circle at 90% 80%, #E6EAF2 0, transparent 35%),
    var(--pink-light);
}

.eyebrow {
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 850px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.12;
  color: var(--wine-dark);
  margin-bottom: 25px;
}

.hero h1 em {
  color: var(--navy);
  font-weight: 400;
}

.hero p {
  max-width: 620px;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* BUTTONS */

.btn,
.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border: none;
  border-radius: 4px;
  background: var(--wine);
  color: var(--white);
  font-weight: 700;
  letter-spacing: .5px;
  transition: .3s;
}

.btn:hover,
button[type="submit"]:hover {
  background: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--navy);
}

/* GENERAL SECTIONS */

section:not(.hero) {
  padding: 85px 8%;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 46px);
  color: var(--wine);
  line-height: 1.2;
  margin-bottom: 20px;
}

section p {
  color: var(--muted);
}

/* EVENTS */

#eventos {
  background: var(--white);
  text-align: center;
}

.events-grid,
.eventos-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
  text-align: left;
}

.event-card,
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.event-card:hover,
.card:hover {
  transform: translateY(-5px);
}

.event-card h3,
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  color: var(--wine);
  margin-bottom: 12px;
}

/* ABOUT */

#sobre {
  background: var(--pink-light);
  text-align: center;
}

#sobre p {
  max-width: 750px;
  margin: 0 auto 20px;
  font-size: 16px;
}

/* FORMS */

form {
  width: 100%;
  max-width: 650px;
  margin: 35px auto 0;
  padding: 35px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: left;
}

form label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 7px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
  color: var(--text);
  outline: none;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(123, 38, 62, .08);
}

form button {
  width: 100%;
}

/* FOOTER */

footer {
  padding: 45px 8%;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

footer p {
  color: #E9DDE1;
  font-size: 13px;
}

footer a {
  color: var(--pink);
}

/* RESPONSIVE - MOBILE */

@media (max-width: 768px) {

  .header {
    padding: 16px 5%;
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    font-size: 23px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 13px;
  }

  .hero {
    min-height: 500px;
    padding: 70px 6%;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  section:not(.hero) {
    padding: 60px 6%;
  }

  .events-grid,
  .eventos-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  form {
    padding: 24px 18px;
  }

  .btn {
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 34px;
  }

  nav {
    gap: 14px;
  }
}


/* INSCRIÇÃO E PIX */
.registration-form {
  margin: 24px 0 0;
  padding: 24px;
  max-width: none;
}
.registration-form[hidden],
.pix-result[hidden] {
  display: none;
}
.registration-form label {
  margin-bottom: 14px;
}
.registration-form input,
.registration-form textarea {
  display: block;
  margin-top: 7px;
}
.registration-form .form-message,
.payment-status {
  margin-top: 14px;
  font-size: 14px;
}
.register-toggle {
  margin-top: 12px;
  width: 100%;
  border: 0;
}
.pix-result {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--pink-light);
  text-align: center;
}
.pix-result h3 {
  font-family: 'Playfair Display', serif;
  color: var(--wine);
  margin-bottom: 10px;
}
.pix-result p {
  margin: 10px 0;
}
.pix-qr {
  display: block;
  width: min(100%, 240px);
  height: auto;
  margin: 18px auto;
  background: white;
  padding: 10px;
  border-radius: 6px;
}
.pix-result label {
  text-align: left;
  margin-top: 18px;
}
.pix-result textarea {
  width: 100%;
  resize: vertical;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.pix-result .button {
  width: 100%;
  border: 0;
}
.registration-form button:disabled {
  opacity: .65;
  cursor: wait;
}


/* CONFIRMAÇÃO DE CADASTRO (PAGAMENTO SERÁ ATIVADO DEPOIS) */
.registration-result {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--pink-light);
  text-align: left;
}
.registration-result h3 {
  color: var(--wine);
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.registration-result p {
  margin-top: 10px;
}
