:root {
    --primary: #7a5c5c;
    --bg-light: #faf8f7;
    --text-dark: #333;
}

.is-hidden {
  display: none !important;
}

* {
    box-sizing: border-box;
    /* border: red 1px solid; */
}

html {
    scroll-behavior: smooth;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 150;
    font-style: normal;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    color: var(--text-dark);
}




/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 900px;
    margin: auto;
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo img {
    height: 40px;
    display: block;
}

.btn-rsvp {
    padding: 0.5rem 1rem;
    background: #7b8538;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

/* NAV LINKS (desktop only) */
.nav-links {
    display: none;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* LANGUAGE */
.language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #ddd;
    background: none;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: black;
}

.language-toggle img {
    width: 20px;
}

/* .language-toggle span {
    width: 1.05rem;
} */

.language-options {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 2rem;
}

.language-options button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    font-size: 1rem;
}

.language-options li button img {
    width: 20px;
}

.language-dropdown.open .language-options {
    display: block;
}

/* BURGER */
.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #333;
}

/* MOBILE MENU */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;

    background: #fffffff2;
    padding: 1rem;

    border-bottom: 1px solid #eee;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 0;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}


/* DESKTOP */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .burger {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}




/* HERO */

.hero {
    height: 80vh;
    background: url('../assets/images/hero.jpeg') top / cover no-repeat;
    position: relative;
    font-family: "Forum", serif;
    font-weight: 400;
    font-style: normal;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 50px;
    margin-top: 0;
    margin-bottom: -0.5rem;
}

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

.hero a {
    font-family: system-ui, sans-serif;
}




/* SECTIONS */
section {
    scroll-margin-top: 90px;
}

.section {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: auto;
}

.section-alt {
    background: var(--bg-light);
}

.section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* INFO GRID */
.info-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* TABLE */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    background: #00000061;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #b9bc9b;
}

/* FOOTER */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 2rem 1rem;
    text-align: center;
}

.site-footer nav {
    margin-bottom: 1rem;
}

.site-footer a {
    color: #ccc;
    margin: 0 0.5rem;
    text-decoration: none;
}

/* DESKTOP */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

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

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




/* RSVP FORM */

/* SECTION */
.rsvp-section {
  max-width: 520px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

.rsvp-section h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* FORM */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* FIELDS */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.95rem;
  color: #444;
}

/* INPUTS */
.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.rsvp-form textarea {
  resize: vertical;
}

/* FOCUS */
.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: #000;
}

/* CHECKBOX */
.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-field input {
  margin-top: 0.2rem;
  transform: scale(1.1);
}

.checkbox-field label {
  font-size: 0.95rem;
  cursor: pointer;
}

/* BUTTON */
.btn-submit {
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.9;
}

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

.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* STATUS */
.rsvp-status {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.rsvp-status.success {
  color: green;
}

.rsvp-status.error {
  color: red;
}

/* ERROS */
.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1em;
}

input.invalid,
textarea.invalid {
  border-color: #c0392b;
}

/* SUCESSO */
.rsvp-success {
  margin-top: 3rem;
  text-align: center;
  padding: 2rem;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fafafa;
}

.rsvp-success h2 {
  margin-bottom: 1rem;
}

.btn-secondary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
}
