@font-face {
  font-family: "VCR OSD Mono";
  src: url("https://cdn.jsdelivr.net/gh/aminerman/VCR-OSD-mono@4ee0582/VCR_OSD_MONO.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jimmy Font";
  src: url("../assets/jimmy-font.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Cores Globais do Projeto */
/* Cores Globais do Projeto */
:root {
  /* Paleta Base */
  --primary: #c5a880;          /* Dourado / Bege principal */
  --primary-hover: #b39973;    /* Dourado mais escuro para os botões ao passar o rato */
  --primary-light: #e8d8c0;    /* Creme / Nude claro */
  --secondary: #718096;        /* Cinzento secundário */
  --dark: #2d3748;             /* Cinzento escuro */
  --light: #f7fafc;            /* Fundo suave / Off-white */
  --text: #4a5568;             /* Cor do texto principal */
  --background: #ffffff;       /* Fundo branco */

  /* Cores de Destaque / Tema */
  --card-border-color: #2f3e2d;/* Verde garrafa escuro das bordas */
  --green-accent: #5C7D2C;     /* Verde folha da data no Hero */
  --brown-heading: #5a4230;    /* Castanho acolhedor dos títulos */
  --terracotta: #d4a373;       /* Terracota para a paleta */
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--brown-heading);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background);
  background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url("../assets/fundo.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--brown-heading);
  font-family: "VCR OSD Mono", "Courier New", monospace;
  font-weight: normal;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.container {
  width: min(90%, 1100px);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Botões */
.btn,
button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 0;
  background: var(--primary);
  color: white;
  cursor: pointer;
  font-family: "Noto Serif", serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border-radius: 5px;
}

.btn:hover,
button:hover {
  background: var(--primary-hover);
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-family: "Jimmy Font", cursive, sans-serif;
  color: var(--brown-heading);
  font-size: clamp(5rem, 15vw, 9rem);
  text-transform: none;
  display: block;
  transform: rotate(-5deg);
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6);
  line-height: 0.75;
  margin: 0 auto 2.5rem auto;
}

.hero h1 span {
  display: inline-block;
  font-size: clamp(2.2rem, 8vw, 6rem);
  transform: rotate(5deg);
}

.hero-date {
  display: inline-block;
  font-family: "Imbue", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--green-accent);
  letter-spacing: 2px;
  margin-top: 1rem;
}

.press-start {
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: "VCR OSD Mono", "Courier New", monospace;
  animation: blink 1.2s steps(2, start) infinite;
}

.hero p:not(.press-start) {
  margin-bottom: 2rem;
  color: var(--secondary);
  font-size: 1.2rem;
}

/* BOTÃO ELEVADOR */
.elevator-btn-link {
  display: block;
  margin: 1.5rem auto 0 auto;
  text-align: center;
  text-decoration: none;
}

.elevator-btn {
  width: clamp(70px, 12vw, 100px);
  height: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  animation: pulse-elevator 2s infinite ease-in-out;
}

.elevator-btn-link:hover .elevator-btn {
  animation-play-state: paused;
  transform: translateY(3px) scale(0.96);
  filter: drop-shadow(1px 2px 3px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

.elevator-btn-link:active .elevator-btn {
  transform: translateY(5px) scale(0.92);
}

@keyframes pulse-elevator {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  }
  50% {
    transform: scale(1.08); /* Aumenta ligeiramente para chamar a atenção */
    filter: drop-shadow(3px 6px 10px rgba(0, 0, 0, 0.35)) brightness(1.05); /* Ganha um ligeiro brilho */
  }
}

/* SECÇÕES GERAIS */
section {
  padding: 3rem 0;
}

section:nth-of-type(even) {
  background: rgba(247, 250, 252, 0.5);
}

section h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

/* CONTAGEM DECRESCENTE */
.countdown {
  padding: 1.5rem 0 !important;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

#zona-countdown {
  scroll-margin-top: 4rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

#countdown-heading {
  font-family: "Jimmy Font", cursive, sans-serif;
  text-transform: none;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--brown-heading);
  font-weight: normal;
  letter-spacing: normal;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-number {
  color: var(--green-accent);
  font-family: "Imbue", serif;
  font-size: 5rem;
  line-height: 1;
}

.countdown-label {
  color: var(--secondary);
  font-family: "Noto Serif", serif;
  font-size: 1rem;
  text-transform: uppercase;
}

/* CARDS / DETALHES */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.card {
  position: relative;
  border: 10px solid var(--green-accent);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  overflow: visible;
}

.card h3 {
  font-family: "Imbue", serif;
  font-size: clamp(2.2rem, 7vw, 3rem);
  position: relative;
  background: transparent;
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  text-align: center;
}

.card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--card-border-color);
  transform: scaleY(0.75);
  transform-origin: bottom;
}

.card-body {
  padding: 1rem;
}

.card-body h4 {
  font-family: "Noto Serif", serif;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--brown-heading);
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.card-body,
.card-body p,
.card-body li,
.card-body label {
  font-family: "Noto Serif", serif;
  font-stretch: extra-condensed;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

.schedule-item {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--primary-light);
}

.schedule-time {
  min-width: 72px;
  color: var(--primary);
  font-family: "VCR OSD Mono", "Courier New", monospace;
}

.card ul {
  padding-left: 1.25rem;
}

/* STICKERS DOS CARDS */
.card-sticker {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  background: transparent !important;
  color-scheme: light;
  isolation: isolate;
  height: auto;
}

.sticker-top-left {
  top: 0;
  left: 0;
  transform: translate(-45%, -35%);
  width: clamp(75px, 12vw, 120px);
}

.sticker-top-left-small {
  top: 0;
  right: 0;
  transform: translate(40%, -45%);
  width: clamp(55px, 10vw, 85px);
}

.sticker-top-center {
  top: 0;
  left: 50%;
  transform: translate(-50%, -70%);
  width: clamp(43px, 6vw, 65px);
}

.sticker-bottom-right {
  top: auto;
  left: auto;
  bottom: 0;
  right: 0;
  transform: translate(35%, 35%);
  width: clamp(70px, 10vw, 90px);
}

/* TRANSIÇÃO DE FOTOS */
.photo-transition {
  padding: 2rem 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 450px;
  margin: 0 auto;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

/* RSVP */
#rsvp-heading {
  font-family: "Imbue", serif;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  color: var(--card-border-color);
  letter-spacing: normal;
}

.rsvp-form {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.96);
  background-clip: padding-box;
  border: 40px solid transparent;
  border-image: url('../assets/borda-rsvp.png') 125 round;
}

.form-group {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-family: "VCR OSD Mono", "Courier New", monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem;
  border: 3px solid var(--primary-light);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 4px 4px 0 rgba(197, 168, 128, 0.25);
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 0.45rem;
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.inline-options label,
.checkbox-line label {
  display: inline;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-transform: none;
}

.success-message {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 3px solid #c3e6cb;
  background: #d4edda;
  color: #155724;
  text-align: center;
}

.link-rsvp {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.link-rsvp:hover {
  color: var(--primary-hover);
}

/* CONTACTOS */
.contact-card {
  position: relative;
  border: 10px solid var(--green-accent);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.contact-card p + p {
  margin-top: 1rem;
}

.map-btn {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
}

/* PALETA DE CORES DO DRESS CODE */
.color-palette {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.color-dot {
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* FOOTER */
footer {
  padding: 3rem 1rem;
  background: rgba(45, 55, 72, 0.96);
  color: white;
  text-align: center;
}

.couple-placeholder {
  display: block;
  width: 170px;
  height: 170px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary);
  box-shadow: 6px 6px 0 rgba(197, 168, 128, 0.3);
  object-fit: cover;
}

/* ANIMATION BLINK */
@keyframes blink {
  to { visibility: hidden; }
}

/* LOADER SCREEN */
.loader {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content h2 {
  font-family: "Jimmy Font", cursive, sans-serif;
  color: var(--primary);
  font-size: clamp(4rem, 12vw, 6rem);
  text-transform: none;
  letter-spacing: normal;
  animation: pulse 1.5s infinite ease-in-out;
}

.loader-content span {
  display: inline-block;
  font-family: "VCR OSD Mono", "Courier New", monospace;
  font-size: 0.5em;
  color: var(--card-border-color);
  transform: translateY(-10px);
}

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

/* ADAPTABILIDADE PARA TELEMÓVEIS */
@media (max-width: 640px) {
  .rsvp-form,
  .contact-card {
    padding: 1.5rem;
  }

  .countdown {
    padding: 1rem 0 !important;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .countdown-number {
    font-size: 3.5rem;
    line-height: 0.9;
  }

  .countdown-label {
    font-size: 0.85rem;
  }

  .sticker-bottom-right {
    transform: translate(45%, 55%);
    z-index: 20;
  }

  .sticker-top-left-small {
    transform: translate(25%, -55%);
  }
}