/*==================================================
    SARAH & GEORGE
    STYLE.CSS
===================================================*/

/*======================
        VARIÁVEIS
=======================*/

:root {
  --primary: #4f5635;
  --primary-light: #707857;
  --background: #fafaf7;
  --white: #ffffff;
  --text: #2d2d2d;
  --gray: #8b8b8b;
  --border: #e7e7e2;
  --title: 'Cormorant Garamond', serif;
  --body: 'Inter', sans-serif;
  --radius: 8px;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  --transition: 0.35s ease;
  --container: 1200px;
}

/*======================
        RESET
=======================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
}

section {
  padding: 120px 0;
}

.container {
  width: min(92%, var(--container));
  margin: auto;
}

/*======================
        LOADER
=======================*/

.loader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader span {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*======================
        HEADER
=======================*/

header {
  position: fixed;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1000;
  transition: 0.4s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

header .container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.monograma {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

/*======================
        MENU
=======================*/

nav ul {
  display: flex;
  gap: 40px;
}

nav a {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

.menu-mobile {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  cursor: pointer;
}

.menu-mobile span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
  margin: 6px auto;
  transition: 0.3s;
}

/*======================
          HERO
=======================*/

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  background: linear-gradient(180deg, #fafaf7 0%, #ffffff 100%);

  overflow: hidden;
}

.overlay {
  display: none;
}

.hero-content {
  position: relative;

  z-index: 2;

  max-width: 850px;

  text-align: center;

  color: var(--text);
}

.hero-monograma {
  width: 120px;
  height: 120px;
  margin: 0 auto 50px;
  border-radius: 50%;
}

.subtitle {
  color: var(--primary);

  letter-spacing: 5px;

  text-transform: uppercase;

  font-size: 0.85rem;
}

.hero h1 {
  font-family: var(--title);

  font-size: 6rem;

  font-weight: 400;

  color: var(--primary);

  margin-bottom: 20px;

  line-height: 1;
}

.hero h1 span {
  color: #d8ddc7;
}

.date,
.time,
.local {
  color: var(--gray);
}

.date {
  font-size: 1.35rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.time {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.local {
  opacity: 0.9;
  margin-bottom: 45px;
}

.hero-divider {
  width: 120px;

  height: 1px;

  background: var(--primary);

  margin: 40px auto;

  opacity: 0.4;
}

.hero-quote {
  font-family: var(--title);

  font-size: 1.6rem;

  font-style: italic;

  color: var(--primary);

  margin-bottom: 45px;
}

.hero::before {
  content: '';

  position: absolute;

  width: 700px;

  height: 700px;

  border-radius: 50%;

  background: rgba(79, 86, 53, 0.04);

  top: -220px;

  right: -220px;
}

.hero::after {
  content: '';

  position: absolute;

  width: 500px;

  height: 500px;

  border-radius: 50%;

  background: rgba(79, 86, 53, 0.03);

  left: -180px;

  bottom: -180px;
}

/*======================
        BOTÕES
=======================*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 58px;
  background: var(--primary);
  color: #fff;
  border-radius: 40px;
  transition: var(--transition);
}

.btn:hover {
  background: #5f6842;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 54px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 40px;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/*======================
    SCROLL INDICATOR
=======================*/

.scroll {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll span {
  width: 24px;
  height: 40px;
  border: 2px solid #fff;
  display: block;
  border-radius: 30px;
  position: relative;
}

.scroll span::before {
  content: '';
  width: 5px;
  height: 8px;
  border-radius: 50px;
  background: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }

  100% {
    opacity: 0;
    top: 22px;
  }
}

/*======================
    CONTAGEM REGRESSIVA
=======================*/

.countdown {
  background: var(--background);
}

.countdown h2 {
  text-align: center;
  font-family: var(--title);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 60px;
}

.contador {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 45px;
  text-align: center;
  box-shadow: var(--shadow);
}

.item h3 {
  font-family: var(--title);
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.item span {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--gray);
}

/*==================================================
        TÍTULOS DAS SEÇÕES
===================================================*/

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}

.section-title span {
  display: inline-block;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.section-title h2 {
  font-family: var(--title);
  font-size: 3.3rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title p {
  color: var(--gray);
  max-width: 650px;
  margin: auto;
  font-size: 1.05rem;
}

/*==================================================
            O CASAMENTO
===================================================*/

#casamento {
  background: #fff;
}

.eventos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.evento-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 60px;
  text-align: center;
  transition: 0.35s;
}

.evento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.evento-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid var(--border);
}

.evento-card h3 {
  font-family: var(--title);
  font-size: 2.3rem;
  font-weight: 500;
  margin-bottom: 25px;
}

.evento-data {
  margin-bottom: 10px;
  color: var(--gray);
}

.evento-hora {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
}

.evento-local {
  line-height: 1.8;
  margin-bottom: 35px;
}

/*==================================================
            MAPA
===================================================*/

.mapa {
  background: var(--background);
}

.map-wrapper {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.map-wrapper iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

/*==================================================
        GUIA DOS CONVIDADOS
===================================================*/

#guia {
  background: #fff;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.guide-grid article {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 12px;
  transition: 0.3s;
}

.guide-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.guide-grid h3 {
  font-family: var(--title);
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.guide-grid p {
  color: var(--gray);
  line-height: 1.8;
}

/*==================================================
                RSVP
===================================================*/

#rsvp {
  background: var(--background);
}

#rsvp .btn {
  margin-top: 40px;
  width: 100%;
  max-width: 400px;
  height: 62px;
  font-size: 1rem;
  cursor: pointer;
}
/*==================================================
                LISTA DE PRESENTES
===================================================*/

#presentes {
  background: #fff;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gift-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 50px 40px;
  text-align: center;
  transition: var(--transition);
}

.gift-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.gift-icon {
  font-size: 3rem;
  margin-bottom: 25px;
}

.gift-card h3 {
  font-family: var(--title);
  font-size: 2rem;
  margin-bottom: 18px;
}

.gift-card p {
  color: var(--gray);
  margin-bottom: 35px;
  line-height: 1.8;
}

/*==================================================
                    GALERIA
===================================================*/

#galeria {
  background: var(--background);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery figure {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.gallery img {
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: 0.6s;
}

.gallery figure:hover img {
  transform: scale(1.08);
}

/*==================================================
                LIGHTBOX
===================================================*/

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 30px;
}

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
}

#closeLightbox {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

/*==================================================
                    FAQ
===================================================*/

#faq {
  background: #fff;
}

.faq-container {
  max-width: 850px;
  margin: auto;
}

details {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--background);
}

summary {
  padding: 22px 28px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  padding: 0 28px 24px;
  color: var(--gray);
  line-height: 1.8;
}

/*==================================================
                FRASE FINAL
===================================================*/

.quote {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.quote blockquote {
  max-width: 900px;
  margin: auto;
  font-family: var(--title);
  font-size: 2.5rem;
  line-height: 1.5;
  font-style: italic;
}

.quote span {
  display: block;
  margin-top: 30px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/*==================================================
                    FOOTER
===================================================*/

footer {
  background: #1f2218;
  color: #fff;
  padding: 90px 0 50px;
  text-align: center;
}

.footer-monograma {
  width: 120px;
  height: 120px;
  margin: 0 auto 35px;
  border-radius: 50%;
}

footer h2 {
  font-family: var(--title);
  font-size: 3.2rem;
  font-weight: 400;
  margin-bottom: 15px;
}

footer p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.footer-menu {
  margin: 45px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-menu a {
  transition: var(--transition);
}

.footer-menu a:hover {
  color: #d7ddc5;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 50px;
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/*==================================================
            BOTÃO TOPO
===================================================*/

#backToTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  transform: translateY(-4px);
}

/*==================================================
                RESPONSIVIDADE
===================================================*/

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 4.8rem;
  }

  .contador {
    grid-template-columns: repeat(2, 1fr);
  }

  .eventos {
    grid-template-columns: 1fr;
  }

  .gift-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .menu-mobile {
    display: block;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .hero-monograma {
    width: 90px;
    height: 90px;
  }

  .section-title h2 {
    font-size: 2.4rem;
  }

  .contador {
    grid-template-columns: 1fr;
  }

  .item {
    padding: 35px;
  }

  .map-wrapper iframe {
    height: 350px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  footer h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .evento-card,
  .gift-card {
    padding: 35px 25px;
  }

  .btn,
  .btn-outline {
    width: 100%;
  }

  .quote blockquote {
    font-size: 1.8rem;
  }

  #backToTop {
    right: 20px;
    bottom: 20px;
  }
}

/*==================================================
            HERO — MOBILE
===================================================*/

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;

    padding: 110px 24px 70px;

    display: flex;

    align-items: center;

    justify-content: center;
  }

  .hero-content {
    width: 100%;

    max-width: 420px;

    padding: 0;
  }

  .hero-monograma {
    width: 82px;

    height: 82px;

    margin: 0 auto 30px;
  }

  .subtitle {
    font-size: 0.68rem;

    letter-spacing: 3px;

    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 3.4rem;

    line-height: 1.05;

    margin-bottom: 20px;

    white-space: nowrap;
  }

  .hero h1 span {
    margin: 0 3px;
  }

  .date {
    font-size: 1.15rem;

    letter-spacing: 1px;

    margin-bottom: 4px;
  }

  .time {
    font-size: 0.95rem;

    margin-bottom: 12px;
  }

  .local {
    font-size: 0.85rem;

    line-height: 1.6;

    margin-bottom: 0;
  }

  .hero-divider {
    width: 80px;

    margin: 28px auto;
  }

  .hero-quote {
    font-size: 1.25rem;

    line-height: 1.4;

    margin: 0 auto 30px;

    max-width: 300px;
  }

  .hero .btn {
    min-width: 0;

    width: auto;

    padding: 0 32px;

    height: 52px;

    font-size: 0.82rem;
  }

  .scroll {
    bottom: 22px;
  }

  .scroll span {
    width: 20px;

    height: 32px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding: 95px 20px 60px;
  }

  .hero-monograma {
    width: 70px;

    height: 70px;

    margin-bottom: 24px;
  }

  .subtitle {
    font-size: 0.62rem;

    letter-spacing: 2.5px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .date {
    font-size: 1rem;
  }

  .local {
    font-size: 0.78rem;
  }

  .hero-quote {
    font-size: 1.1rem;
  }
}

/*==================================================
            MENU MOBILE — CORREÇÃO
===================================================*/

@media (max-width: 900px) {
  header .container {
    position: relative;
  }

  nav {
    display: block;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);

    padding: 25px 25px 30px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);

    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  }

  nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 14px 5px;

    color: var(--text);

    font-size: 0.78rem;
    letter-spacing: 2px;

    border-bottom: 1px solid var(--border);
  }

  nav li:last-child a {
    border-bottom: none;
  }

  nav a:hover,
  nav a.active {
    color: var(--primary);
  }

  /* BOTÃO HAMBÚRGUER */

  .menu-mobile {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    background: transparent;

    cursor: pointer;

    position: relative;

    z-index: 1001;
  }

  .menu-mobile span {
    display: block;

    width: 25px;
    height: 1.5px;

    margin: 3px 0;

    background: var(--primary);

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  /* ÍCONE ABERTO */

  .menu-mobile.active span.top {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-mobile.active span.middle {
    opacity: 0;
  }

  .menu-mobile.active span.bottom {
    transform: translateY(-7px) rotate(-45deg);
  }
}
