/* =========================
   1. VÁLTOZÓK
========================= */

:root {
  --cream: #f3eadc;
  --light: #fbf7ef;
  --sage: #969a75;
  --olive: #6f7350;
  --brown: #33281f;
  --dark-brown: #211913;
  --text: #2d2924;
  --muted: #7b746b;
  --white: #fffdf8;

  --section-padding-desktop: 90px 8%;
  --section-padding-tablet: 78px 6%;
  --section-padding-mobile: 62px 18px;

  --shadow-soft: 0 15px 35px rgba(51, 40, 31, 0.08);
  --shadow-medium: 0 22px 45px rgba(51, 40, 31, 0.14);

  --transition: 0.35s ease;
}

/* =========================
   2. ALAPOK
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--light);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

section {
  padding: var(--section-padding-desktop);
  text-align: center;
}

/* =========================
   SECTION ÁTMENETEK
========================= */

/* Minden section alapja */
section {
  position: relative;
  z-index: 1;
}

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

/* =========================
   3. ÁLTALÁNOS TIPOGRÁFIA
========================= */

.script {
  margin-bottom: 16px;
  font-family: "Allura", cursive;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--olive);
}

.script.light {
  color: #efe7dc;
}

.small-title {
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.signature {
  font-family: "Allura", cursive !important;
  font-size: 38px !important;
  color: var(--muted);
}

/* =========================
   4. HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--brown);
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("images/hero-main.JPG") center / cover no-repeat;

  transform: scale(1.08);
  animation: cinematicZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    rgba(35, 28, 22, 0.35),
    rgba(35, 28, 22, 0.65)
  );
}

.hero-content {
  position: relative;
  z-index: 2;

  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 110px 8% 100px;
  text-align: center;
}

.hero h1 {
  font-family: "Allura", cursive;
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 400;
  line-height: 0.9;

  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.hero-bottom {
  position: absolute;
  right: 8%;
  bottom: 35px;
  left: 8%;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.cinematic-fade {
  opacity: 0;
  transform: translateY(22px);

  animation: fadeHero 1.8s ease forwards;
  animation-delay: 0.4s;
}

/* Porszemek */

.dust {
  position: absolute;
  inset: 0;
  z-index: 2;

  pointer-events: none;

  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px);

  background-size: 120px 120px, 180px 180px;

  opacity: 0.4;
  animation: dustMove 18s linear infinite;
}

/* =========================
   5. NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 1000;

  width: min(84%, 1280px);
  min-height: 56px;
  padding: 12px 28px;

  display: flex;
  align-items: center;
  gap: 22px;

  transform: translateX(-50%);

  background: rgba(51, 40, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;

  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(51, 40, 31, 0.92);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.navbar a {
  color: white;
  text-decoration: none;
  opacity: 0.72;

  transition:
    opacity 0.35s ease,
    letter-spacing 0.35s ease,
    color 0.35s ease;
}

.navbar a:hover {
  opacity: 1;
  letter-spacing: 2.4px;
}

.nav-rsvp {
  margin-left: auto;
  padding: 9px 16px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;

  transition:
    background var(--transition),
    box-shadow var(--transition);
}

.nav-rsvp:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* Hamburger */

.mobile-menu-toggle {
  display: none;
}

/* =========================
   6. MEGHÍVÓ / ÁLTALÁNOS SZÖVEGEK
========================= */

.invite-section {
  position: relative;
  background: var(--cream);
}

.invite-section p:not(.script):not(.signature),
.story-text p,
.gifts-section p:not(.script),
.dark-section p:not(.script),
.rsvp-section p:not(.script) {
  max-width: 900px;
  margin: 0 auto 28px;

  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.85;
}

/* =========================
   7. VISSZASZÁMLÁLÓ
========================= */

.countdown-section {
  background: var(--brown);
  color: white;
}

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.countdown div {
  min-width: 85px;
}

.countdown span {
  display: block;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 52px);
}

.countdown small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* =========================
   8. TÖRTÉNETÜNK
========================= */

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

.story-cards {
  width: min(calc(100% - 32px), 950px);
  margin: 45px auto 0;

  display: grid;
  gap: 18px;
}

.story-card {
  overflow: hidden;

  background: rgba(251, 247, 239, 0.94);
  border: 1px solid rgba(111, 115, 80, 0.25);
  border-radius: 20px;

  box-shadow: 0 12px 30px rgba(51, 40, 31, 0.08);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 115, 80, 0.45);
  box-shadow: 0 18px 38px rgba(51, 40, 31, 0.13);
}

.story-card[open] {
  background: var(--cream);
  border-color: rgba(111, 115, 80, 0.55);
  box-shadow: 0 22px 48px rgba(51, 40, 31, 0.14);
}

.story-card summary {
  list-style: none;
}

.story-card summary::-webkit-details-marker {
  display: none;
}

.story-card-header {
  width: 100%;
  padding: 22px 26px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  cursor: pointer;
  text-align: left;
  user-select: none;
}

.story-card-header > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.story-date {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.story-card-header h3 {
  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--olive);
}

.story-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 38px;

  padding: 0 32px 35px;

  animation: storyOpen 0.5s ease both;
}

.story-card-content {
  min-width: 0;
}

.story-card-content p {
  width: 100%;
  margin: 0 0 18px;

  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.7;
  text-align: left;
  color: var(--text);
}

.story-card-content p:last-child {
  margin-bottom: 0;
}

.story-card-content strong {
  color: var(--olive);
  font-weight: 600;
}

.story-quote {
  padding: 15px 17px;

  text-align: center !important;
  font-size: 20px !important;
  font-style: italic;

  border-top: 1px solid rgba(111, 115, 80, 0.3);
  border-bottom: 1px solid rgba(111, 115, 80, 0.3);
}

/* Polaroidok */

.story-photos {
  position: relative;

  width: 280px;
  min-width: 280px;
  height: 350px;

  overflow: visible;
}

.polaroid {
  position: absolute;

  width: 185px;
  margin: 0;
  padding: 9px 9px 15px;

  background: #fffdf8;
  border: 1px solid rgba(51, 40, 31, 0.1);

  box-shadow:
    0 14px 28px rgba(51, 40, 31, 0.18),
    0 3px 7px rgba(51, 40, 31, 0.08);

  transform-origin: center;

  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.75s cubic-bezier(0.16, 1, 0.3, 1);

  animation: polaroidFadeIn 0.7s ease both;
}

.polaroid img {
  width: 100%;
  height: 205px;

  object-fit: cover;
  object-position: center;

  transition: filter 0.8s ease;
}

.polaroid figcaption {
  min-height: 42px;
  padding: 11px 4px 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Allura", cursive;
  font-size: 21px;
  line-height: 1;
  text-align: center;
  color: var(--brown);
}

.polaroid-left {
  top: 20px;
  left: 8px;
  z-index: 2;

  transform: rotate(-5deg);
}

.polaroid-right {
  right: 5px;
  bottom: 15px;
  z-index: 1;

  transform: rotate(5deg);
}

.polaroid-single {
  top: 50%;
  left: 50%;
  z-index: 2;

  width: 205px;

  transform: translate(-50%, -50%) rotate(-3deg);
}

/* =========================
   9. HELYSZÍN
========================= */

.dark-section {
  background: var(--brown);
  color: white;
}

.place-title {
  margin-bottom: 18px;

  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  color: white;
}

.dark-section strong {
  font-weight: 600;
  color: #efe7dc;
}

.dark-section p:not(.script) {
  margin-bottom: 12px;
}

/* =========================
   10. GOMBOK
========================= */

.outline-button,
button {
  display: inline-block;

  margin-top: 22px;
  padding: 13px 34px;

  background: transparent;
  border: 1px solid currentColor;

  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.4px;

  cursor: pointer;

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.outline-button {
  margin-top: 32px;
}

.outline-button:hover,
button:hover {
  transform: translateY(-2px);
  background: #efe7dc;
  color: var(--brown);
}

/* =========================
   11. MENETREND
========================= */

.schedule-section {
  position: relative;
  overflow: hidden;

  padding: 100px 5% 110px;
}

.schedule-heading {
  margin-bottom: 62px;
  text-align: center;
}

.schedule-heading .script {
  margin-bottom: 5px;
}

.schedule-subtitle {
  margin: 0;

  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;

  color: rgba(35, 30, 23, 0.65);
}

.schedule-scroll {
  width: 100%;
  padding: 10px 10px 34px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;

  scrollbar-width: thin;
  scrollbar-color: #8f826b rgba(143, 130, 107, 0.12);
}

.schedule-scroll::-webkit-scrollbar {
  height: 7px;
}

.schedule-scroll::-webkit-scrollbar-track {
  margin: 0 24px;

  background: rgba(143, 130, 107, 0.12);
  border-radius: 100px;
}

.schedule-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #b3a58f, #7f735f, #b3a58f);
  border: 2px solid #f7f1e8;
  border-radius: 100px;
}

.schedule-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #9d8e76, #665b4a, #9d8e76);
}

.schedule-timeline {
  position: relative;

  width: max-content;
  min-width: 100%;
  padding: 0 35px;

  display: flex;
  align-items: flex-start;
}

.schedule-timeline::before {
  content: "";

  position: absolute;
  top: 111px;
  right: 95px;
  left: 95px;

  height: 1px;

  background: rgba(61, 46, 21, 0.45);
}

.schedule-item {
  position: relative;

  width: 210px;
  flex: 0 0 210px;

  padding: 0 13px;
  text-align: center;

  scroll-snap-align: center;
}

.schedule-icon {
  width: 67px;
  height: 67px;
  margin: 0 auto 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #3d2e15;

  transition:
    transform 0.4s ease,
    color 0.4s ease;
}

.schedule-icon svg {
  width: 58px;
  height: 58px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-marker {
  position: relative;
  z-index: 2;

  width: 12px;
  height: 12px;
  margin: 0 auto 30px;

  background: #f5f0e7;
  border: 2px solid #3d2e15;
  border-radius: 50%;

  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.schedule-marker::after {
  content: "";

  position: absolute;
  top: 12px;
  left: 50%;

  width: 1px;
  height: 21px;

  background: rgba(61, 46, 21, 0.45);

  transform: translateX(-50%);
}

.schedule-info {
  padding: 0 6px;
}

.schedule-info time {
  display: block;
  margin-bottom: 9px;

  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;

  color: #3d2e15;
}

.schedule-info h3 {
  margin: 0 0 12px;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.1;

  color: #17140f;
}

.schedule-info p {
  margin: 0;

  font-size: 0.73rem;
  font-weight: 300;
  line-height: 1.6;

  color: rgba(23, 20, 15, 0.7);
}

.schedule-info span {
  display: block;
  margin-top: 12px;

  font-size: 0.63rem;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.07em;

  color: rgba(61, 46, 21, 0.72);
}

.schedule-item:hover .schedule-icon {
  color: #816b45;
  transform: translateY(-5px) scale(1.07);
}

.schedule-item:hover .schedule-marker {
  background: #3d2e15;

  transform: scale(1.3);

  box-shadow: 0 0 0 7px rgba(61, 46, 21, 0.1);
}

.schedule-item:hover .schedule-info h3 {
  color: #816b45;
}

.schedule-swipe {
  display: none;

  margin: 13px auto 0;

  font-size: 0.65rem;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.08em;

  color: rgba(35, 30, 23, 0.55);
}

.schedule-swipe span {
  display: inline-block;
  margin-left: 5px;

  animation: swipeArrow 1.4s ease-in-out infinite;
}

/* =========================
   12. DRESS CODE
========================= */

.dresscode-section {
  position: relative;
  overflow: hidden;

  padding: 95px 6%;
  background: var(--brown);
  color: #efe7dc;
  text-align: center;
}

/* A korábbi sarokdekorációk eltávolítása */

.dresscode-section::before,
.dresscode-section::after {
  display: none;
}

/* Bevezető szöveg */

.dresscode-intro {
  position: relative;
  z-index: 1;

  width: min(100%, 760px);
  margin: 0 auto 44px;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;

  color: rgba(255, 253, 248, 0.9);
}

/* Kártyák elrendezése */

.dresscode-cards {
  position: relative;
  z-index: 1;

  width: min(100%, 1100px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Kártyák */

.dresscode-card {
  min-width: 0;
  padding: 34px 25px;

  background: rgba(248, 241, 231, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;

  box-shadow:
    0 18px 40px rgba(18, 12, 9, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.dresscode-card:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 255, 255, 0.34);

  box-shadow:
    0 26px 52px rgba(18, 12, 9, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Ikon */

.dresscode-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 19px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(111, 115, 80, 0.2);
  border-radius: 50%;

  box-shadow: 0 8px 20px rgba(51, 40, 31, 0.09);

  font-size: 28px;
}

/* Kártyacímek */

.dresscode-card h3 {
  margin: 0 0 13px;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.1;

  color: var(--olive);
}

/* Kártyák főszövege */

.dresscode-card p {
  margin: 0 0 13px;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.5;

  color: var(--text);
}

/* Kártyák kisebb szövege */

.dresscode-card span {
  display: block;

  font-size: 0.73rem;
  line-height: 1.6;

  color: var(--muted);
}

/* Színpaletta */

.dresscode-colors {
  position: relative;
  z-index: 1;

  width: min(100%, 620px);
  margin: 46px auto 0;
  padding: 24px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.dresscode-colors p {
  margin: 0 0 18px;

  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;

  color: #efe7dc;
}

.color-palette {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 13px;
  margin-bottom: 15px;
}

.color-circle {
  display: block;

  width: 42px;
  height: 42px;

  border: 3px solid rgba(255, 253, 248, 0.95);
  border-radius: 50%;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 7px 18px rgba(15, 10, 7, 0.24);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.color-circle:hover {
  transform: translateY(-2px) scale(1.1);

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 11px 24px rgba(15, 10, 7, 0.3);
}

.color-sage {
  background: #9ca486;
}

.color-olive {
  background: #737650;
}

.color-rose {
  background: #cda7a1;
}

.color-blue {
  background: #b6c79c;
}

.color-brown {
  background: #765f50;
}

.dresscode-colors small {
  display: block;

  font-size: 0.7rem;
  line-height: 1.5;

  color: rgba(255, 255, 255, 0.68);
}

/* =========================
   13. NÁSZAJÁNDÉK
========================= */

.gifts-section {
  background: var(--cream);
}

/* =========================
   14. GYIK
========================= */

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

.faq-box {
  max-width: 900px;
  margin: auto;
  padding: 48px 54px;

  background: var(--cream);
  border: 9px solid var(--olive);

  text-align: left;
}

.faq-item {
  padding: 20px 0;

  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-item h3 {
  margin-bottom: 8px;

  font-size: 18px;
  line-height: 1.35;

  color: var(--text);
}

.faq-item p {
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.6;

  color: var(--text);
}

/* =========================
   RSVP SECTION
========================= */

.rsvp-section{

    position:relative;
    overflow:hidden;

    padding:95px 6%;

    background:var(--brown);

    color:#fff;

    text-align:center;
}

.rsvp-section .script{
    color:var(--olive);
}

/* =========================
   RSVP ŰRLAP
========================= */

.rsvp-intro {
  max-width: 700px;
  margin: 0 auto 30px;

  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.7;

  color: rgba(255,255,255,.85);
}

.rsvp-form {
  width: min(100%, 580px);
  margin: 35px auto 0;

  display: grid;
  gap: 22px;

  text-align: left;
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group label,
.form-label {
  margin: 0;

  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;

  color: rgba(255, 255, 255, 0.82);
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  padding: 15px 16px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;

  color: white;

  outline: none;

  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.75);

  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.07);
}

.rsvp-form textarea {
  min-height: 130px;
  resize: vertical;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

/* Igen / Nem választás */

.attendance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.attendance-option {
  position: relative;

  min-height: 82px;
  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;

  cursor: pointer;

  text-align: center;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.attendance-option:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.38);
}

.attendance-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.attendance-option span {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.35;

  color: rgba(255, 255, 255, 0.88);
}

.attendance-option:has(input:checked) {
  background: rgba(150, 154, 117, 0.24);
  border-color: rgba(220, 225, 194, 0.75);

  box-shadow:
    0 0 0 4px rgba(150, 154, 117, 0.08);
}

.attendance-option:has(input:checked) span {
  color: white;
}

/* Küldés gomb */

.rsvp-form button {
  justify-self: center;

  min-width: 210px;
  margin-top: 4px;
}

/* Mobil */

@media (max-width: 600px) {

  .rsvp-intro {
    margin-bottom: 24px;

    font-size: 17px;
    line-height: 1.6;
  }

  .rsvp-form {
    margin-top: 28px;
    gap: 18px;
  }

  .attendance-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .attendance-option {
    min-height: 68px;
    padding: 14px;
  }

  .attendance-option span {
    font-size: 16px;
  }

  .rsvp-form input[type="text"],
  .rsvp-form textarea {
    padding: 14px;
  }

  .rsvp-form button {
    width: 100%;
  }
}
/* =========================
   16. FOOTER
========================= */

footer {
  padding: 26px;

  background: var(--dark-brown);
  color: white;

  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
}

/* =========================
   17. ANIMÁCIÓK
========================= */

@keyframes cinematicZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.16); }
}

@keyframes fadeHero {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dustMove {
  from {
    background-position: 0 0, 40px 80px;
  }

  to {
    background-position: 220px 320px, -180px 260px;
  }
}

@keyframes storyOpen {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes polaroidFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes swipeArrow {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

/* =========================
   18. HOVER CSAK EGÉRNÉL
========================= */

@media (hover: hover) and (pointer: fine) {
  .polaroid-left:hover {
    z-index: 10;

    transform:
      translate(-10px, -9px)
      rotate(-1deg)
      scale(1.045);

    box-shadow:
      0 26px 48px rgba(51, 40, 31, 0.23),
      0 8px 18px rgba(51, 40, 31, 0.11);
  }

  .polaroid-right:hover {
    z-index: 10;

    transform:
      translate(10px, -9px)
      rotate(1deg)
      scale(1.045);

    box-shadow:
      0 26px 48px rgba(51, 40, 31, 0.23),
      0 8px 18px rgba(51, 40, 31, 0.11);
  }

  .polaroid-single:hover {
    z-index: 10;

    transform:
      translate(-50%, -50%)
      translateY(-9px)
      rotate(0deg)
      scale(1.045);

    box-shadow:
      0 26px 48px rgba(51, 40, 31, 0.23),
      0 8px 18px rgba(51, 40, 31, 0.11);
  }

  .polaroid:hover img {
    filter: brightness(1.035) saturate(1.04);
  }
}

/* =========================
   POLAROID KATTINTÁS TELEFONON
========================= */

@media (hover: none), (pointer: coarse) {

  .polaroid {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .polaroid.is-active {
    z-index: 20;
  }

  .polaroid-left.is-active {
    transform:
      translate(-10px, -9px)
      rotate(-1deg)
      scale(1.045);

    box-shadow:
      0 26px 48px rgba(51, 40, 31, 0.23),
      0 8px 18px rgba(51, 40, 31, 0.11);
  }

  .polaroid-right.is-active {
    transform:
      translate(10px, -9px)
      rotate(1deg)
      scale(1.045);

    box-shadow:
      0 26px 48px rgba(51, 40, 31, 0.23),
      0 8px 18px rgba(51, 40, 31, 0.11);
  }

  .polaroid-single.is-active {
    transform:
      translate(-50%, -50%)
      translateY(-9px)
      rotate(0deg)
      scale(1.045);

    box-shadow:
      0 26px 48px rgba(51, 40, 31, 0.23),
      0 8px 18px rgba(51, 40, 31, 0.11);
  }

  .polaroid.is-active img {
    filter:
      brightness(1.035)
      saturate(1.04);
  }
}

/* =========================
   19. TABLET
========================= */

@media (max-width: 950px) {
  section {
    padding: var(--section-padding-tablet);
  }

  .navbar {
    width: calc(100% - 28px);
    padding: 12px 20px;
    gap: 15px;
  }

  .story-card-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-photos {
    width: 320px;
    min-width: 0;
    max-width: 100%;
    height: 325px;
    margin: 0 auto;
  }

  .polaroid {
    width: 175px;
  }

  .polaroid img {
    height: 190px;
  }

  .polaroid-left {
    left: 15px;
  }

  .polaroid-right {
    right: 15px;
  }

  .dresscode-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dresscode-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 520px);
    justify-self: center;
  }

  .schedule-section {
    padding-right: 0;
    padding-left: 0;
  }

  .schedule-heading {
    padding: 0 24px;
  }

  .schedule-scroll {
    scroll-snap-type: x proximity;
  }

  .schedule-timeline {
    min-width: max-content;
    padding-right: 28px;
    padding-left: 28px;
  }

  .schedule-item {
    width: 195px;
    flex-basis: 195px;
  }

  .schedule-swipe {
    display: block;
  }
}

/* =========================
   20. MOBIL NAVBAR + ÁLTALÁNOS MOBIL
========================= */

@media (max-width: 1200px) {
  .mobile-menu-toggle {
    position: fixed;
    top: 12px;
    right: 18px;
    z-index: 10002;

    width: 50px;
    height: 50px;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    background: rgba(35, 28, 23, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    box-shadow: 0 10px 28px rgba(20, 15, 12, 0.25);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle span {
    display: block;

    width: 23px;
    height: 1.5px;

    background: #fffdf8;
    border-radius: 20px;

    transform-origin: center;

    transition:
      transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease;
  }

  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .hero .navbar {
    position: fixed;
    top: 80px;
    right: 16px;
    left: 16px;
    z-index: 10001;

    width: auto;
    max-height: 0;
    min-height: 0;
    margin: 0;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    overflow: hidden;

    visibility: hidden;
    opacity: 0;

    background: rgba(35, 28, 23, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;

    box-shadow: 0 20px 50px rgba(20, 15, 12, 0.32);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transform: none;
    transform: translateY(-15px);

    transition:
      max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.65s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.65s;
  }

  .hero .navbar.is-open {
    max-height: 650px;
    padding-top: 12px;
    padding-bottom: 12px;

    visibility: visible;
    opacity: 1;

    transform: translateY(0);

    transition:
      max-height 0.65s cubic-bezier(0.16, 1, 0.3, 1),
      padding 0.65s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.35s ease,
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0s;
  }

  .hero .navbar a {
    width: 100%;
    padding: 15px 8px;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2.2px;

    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    opacity: 0;
    transform: translateY(-8px);

    transition:
      opacity 0.35s ease,
      transform 0.35s ease,
      color 0.3s ease;
  }

  .hero .navbar a:last-child {
    border-bottom: 0;
  }

  .hero .navbar.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  .hero .navbar.is-open a:nth-child(1) { transition-delay: 0.04s; }
  .hero .navbar.is-open a:nth-child(2) { transition-delay: 0.08s; }
  .hero .navbar.is-open a:nth-child(3) { transition-delay: 0.12s; }
  .hero .navbar.is-open a:nth-child(4) { transition-delay: 0.16s; }
  .hero .navbar.is-open a:nth-child(5) { transition-delay: 0.20s; }
  .hero .navbar.is-open a:nth-child(6) { transition-delay: 0.24s; }
  .hero .navbar.is-open a:nth-child(7) { transition-delay: 0.28s; }
  .hero .navbar.is-open a:nth-child(8) { transition-delay: 0.32s; }

  .hero .navbar .nav-rsvp {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;

    text-align: center;
  }
}

/* =========================
   21. TELEFON
========================= */

@media (max-width: 600px) {
  section {
    padding: var(--section-padding-mobile);
  }

  .script,
  .schedule-heading .script,
  .dresscode-section > .script {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1;
  }

  .hero-content {
    padding: 95px 18px 105px;
  }

  .small-title {
    margin-bottom: 12px;

    font-size: 15px;
    letter-spacing: 2.5px;
  }

  .hero h1 {
    font-size: clamp(64px, 20vw, 100px);
    line-height: 0.95;
  }

  .hero-bottom {
    right: 18px;
    bottom: 24px;
    left: 18px;

    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .invite-section p:not(.script):not(.signature),
  .story-text p,
  .gifts-section p:not(.script),
  .dark-section p:not(.script),
  .rsvp-section p:not(.script) {
    margin-bottom: 22px;

    font-size: 17px;
    line-height: 1.7;
  }

  .signature {
    font-size: 31px !important;
  }

  .countdown {
    gap: 20px;
  }

  .countdown div {
    min-width: 65px;
  }

  .countdown span {
    font-size: 38px;
  }

  .countdown small {
    font-size: 9px;
  }

  /* Story mobil */

  .story-cards {
    width: 100%;
    margin-top: 32px;
    gap: 14px;
  }

  .story-card {
    border-radius: 15px;
  }

  .story-card:hover {
    transform: none;
  }

  .story-card-header {
    padding: 17px 15px;
    gap: 10px;
  }

  .story-card-header h3 {
    font-size: 20px;
  }

  .story-date {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .story-card-body {
    display: block;
    padding: 0 15px 24px;
  }

  .story-card-content p {
    margin-bottom: 14px;

    font-size: 15.5px;
    line-height: 1.62;
  }

  .story-quote {
    padding: 12px 9px;

    font-size: 16px !important;
    line-height: 1.45;
  }

  .story-photos {
    width: 250px;
    max-width: 100%;
    height: 245px;
    margin: 22px auto 0;
  }

  .polaroid {
    width: 135px;
    padding: 7px 7px 10px;
  }

  .polaroid img {
    height: 138px;
  }

  .polaroid figcaption {
    min-height: 29px;
    padding-top: 7px;

    font-size: 15px;
  }

  .polaroid-left {
    top: 8px;
    left: 8px;
  }

  .polaroid-right {
    right: 8px;
    bottom: 5px;
  }

  .polaroid-single {
    width: 155px;
  }

  

  



  /* Helyszín */

  .place-title {
    font-size: 30px;
  }

  /* Menetrend mobil */

  .schedule-section {
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .schedule-heading {
    margin-bottom: 42px;
  }

  .schedule-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
  }

  .schedule-scroll {
    padding-bottom: 22px;
    scroll-snap-type: x mandatory;
  }

  .schedule-timeline {
    padding-right: calc(50vw - 84px);
    padding-left: calc(50vw - 84px);
  }

  .schedule-timeline::before {
    top: 96px;
    right: calc(50vw - 35px);
    left: calc(50vw - 35px);
  }

  .schedule-item {
    width: 168px;
    flex-basis: 168px;
    padding: 0 8px;
  }

  .schedule-icon {
    width: 57px;
    height: 57px;
    margin-bottom: 25px;
  }

  .schedule-icon svg {
    width: 49px;
    height: 49px;
  }

  .schedule-marker {
    margin-bottom: 26px;
  }

  .schedule-info time {
    font-size: 0.7rem;
  }

  .schedule-info h3 {
    margin-bottom: 10px;
    font-size: 1.12rem;
  }

  .schedule-info p {
    font-size: 0.66rem;
    line-height: 1.52;
  }

  .schedule-info span {
    margin-top: 10px;
    font-size: 0.56rem;
  }

  .schedule-swipe {
    display: block;

    max-width: 280px;
    padding: 0 20px;

    font-size: 0.6rem;
  }

  /* Dress code mobil */

  .dresscode-section {
    padding: 66px 18px 72px;
  }

  .dresscode-section::before,
  .dresscode-section::after {
    width: 180px;
    height: 180px;
  }

  .dresscode-section::before {
    top: -95px;
    left: -90px;
  }

  .dresscode-section::after {
    right: -90px;
    bottom: -95px;
  }

  .dresscode-intro {
    margin-bottom: 30px;

    font-size: 1rem;
    line-height: 1.52;
  }

  .dresscode-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dresscode-card,
  .dresscode-card:last-child {
    grid-column: auto;
    width: 100%;
    padding: 24px 18px;

    border-radius: 17px;
  }

  .dresscode-card:hover {
    transform: none;
  }

  .dresscode-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;

    font-size: 24px;
  }

  .dresscode-card h3 {
    margin-bottom: 9px;
    font-size: 1.45rem;
  }

  .dresscode-card p {
    margin-bottom: 10px;

    font-size: 0.98rem;
    line-height: 1.42;
  }

  .dresscode-card span {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .dresscode-colors {
    margin-top: 32px;
    padding: 21px 8px;
  }

  .dresscode-colors p {
    margin-bottom: 16px;
    font-size: 1.08rem;
  }

  .color-palette {
    gap: 10px;
  }

  .color-circle {
    width: 36px;
    height: 36px;
    border-width: 3px;
  }

  .dresscode-colors small {
    padding: 0 8px;
    font-size: 0.63rem;
  }

  /* GYIK mobil */

  .faq-box {
    padding: 30px 20px;
    border-width: 6px;
  }

  .faq-item {
    padding: 17px 0;
  }

  .faq-item h3 {
    font-size: 15px;
  }

  .faq-item p {
    font-size: 17px;
    line-height: 1.55;
  }

  /* Form */

  form {
    margin-top: 26px;
  }

  input,
  textarea {
    padding: 13px;
  }
}

/* =========================
   22. KESKENY TELEFON
========================= */

@media (max-width: 420px) {
  .mobile-menu-toggle {
    top: 14px;
    right: 14px;

    width: 48px;
    height: 48px;
  }

  .hero .navbar {
    top: 74px;
    right: 12px;
    left: 12px;
  }

  .hero .navbar a {
    padding: 13px 7px;

    font-size: 9px;
    letter-spacing: 2px;
  }

  .script,
  .schedule-heading .script,
  .dresscode-section > .script {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .hero h1 {
    font-size: clamp(58px, 19vw, 88px);
  }

  .invite-section p:not(.script):not(.signature),
  .story-text p,
  .gifts-section p:not(.script),
  .dark-section p:not(.script),
  .rsvp-section p:not(.script) {
    font-size: 16px;
  }

  .place-title {
    font-size: 28px;
  }

  .color-palette {
    gap: 8px;
  }

  .color-circle {
    width: 33px;
    height: 33px;
  }
}

/* =========================
   23. MOZGÁSCSÖKKENTÉS
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  
}

/* SCROLL REVEAL */
.reveal{opacity:0;transform:translateY(40px);filter:blur(8px);transition:opacity .8s ease,transform .8s ease,filter .8s ease}.reveal.visible{opacity:1;transform:none;filter:none}.delay-1{transition-delay:.08s}.delay-2{transition-delay:.16s}.delay-3{transition-delay:.24s}.delay-4{transition-delay:.32s}

/* =========================================================
   BARRY – LEBEGŐ NÉGYLÁBÚ HÁZIGAZDA
========================================================= */

.barry-mascot {
  position: fixed;
  right: 12px;
  bottom: 12px;

  z-index: 9990;

  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;

  pointer-events: none;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* =========================
   BARRY KÉPE / GOMB
========================= */

.barry-button {
  position: relative;
  flex: 0 0 auto;

  width: 84px;
  height: 84px;
  margin: 0;
  padding: 0;

  overflow: visible;

  background: rgba(251, 247, 239, 0.92);
  border: 2px solid rgba(111, 115, 80, 0.38);
  border-radius: 50%;

  box-shadow:
    0 12px 30px rgba(33, 25, 19, 0.24),
    0 0 0 5px rgba(251, 247, 239, 0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;

  transform-origin: 50% 100%;
  animation: barryIdle 3.8s ease-in-out infinite;

  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

.barry-button:hover {
  background: rgba(251, 247, 239, 0.98);
  color: inherit;

  transform: translateY(-4px) scale(1.04);

  box-shadow:
    0 18px 38px rgba(33, 25, 19, 0.3),
    0 0 0 6px rgba(251, 247, 239, 0.22);
}

.barry-photo-wrap {
  position: absolute;
  inset: 5px;

  display: block;
  overflow: hidden;

  background: var(--cream);
  border-radius: 50%;
}

.barry-photo-wrap img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 35%;

  transform: scale(1.35);

  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
}

/* =========================
   PISLOGÁS
========================= */

.barry-blink {
  position: absolute;
  top: 34%;
  left: 21%;

  width: 58%;
  height: 0;

  background: rgba(70, 52, 39, 0.72);
  border-radius: 50%;

  opacity: 0;

  transform: scaleY(0);
  transform-origin: center;

  animation: barryBlink 6.5s infinite;
}


/* =========================
   GÖRGETÉSI MOZGÁS
========================= */

.barry-mascot.is-looking-left .barry-photo-wrap img {
  transform:
    scale(1.35)
    translateX(-2px);
}

.barry-mascot.is-looking-right .barry-photo-wrap img {
  transform:
    scaleX(-1)
    scale(1.35)
    translateX(-2px);
}

.barry-mascot.is-scrolling .barry-button {
  animation: none;

  transform:
    translateY(-5px)
    rotate(-2deg)
    scale(1.03);
}


/* =========================
   BARRY ÜZENETE
   Barry bal oldalán jelenik meg
========================= */

.barry-message {
  order: -1;

  width: min(240px, calc(100vw - 125px));
  margin: 0 0 9px 0;
  padding: 12px 14px;

  display: grid;
  gap: 3px;

  background: rgba(251, 247, 239, 0.97);
  border: 1px solid rgba(111, 115, 80, 0.28);
  border-radius: 15px;

  box-shadow:
    0 14px 34px rgba(33, 25, 19, 0.2);

  color: var(--text);
  text-align: left;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translateX(16px)
    translateY(5px)
    scale(0.96);

  transform-origin: right bottom;

  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kis buboréknyíl Barry felé */

.barry-message::after {
  content: "";

  position: absolute;
  right: -8px;
  bottom: 20px;

  width: 16px;
  height: 16px;

  background: rgba(251, 247, 239, 0.97);
  border-top: 1px solid rgba(111, 115, 80, 0.28);
  border-right: 1px solid rgba(111, 115, 80, 0.28);

  transform: rotate(45deg);
}

.barry-message strong {
  position: relative;
  z-index: 1;

  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 600;

  color: var(--olive);
}

.barry-message span {
  position: relative;
  z-index: 1;

  font-size: 11px;
  line-height: 1.55;

  color: var(--muted);
}

/* Megnyitott üzenet */

.barry-mascot.is-open .barry-message {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translateX(0)
    translateY(0)
    scale(1);

  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================
   ANIMÁCIÓK
========================= */

@keyframes barryIdle {
  0%,
  100% {
    transform:
      translateY(0)
      rotate(0deg);
  }

  50% {
    transform:
      translateY(-3px)
      rotate(-1deg);
  }
}


@keyframes barryBlink {
  0%,
  45%,
  48%,
  100% {
    height: 0;
    opacity: 0;

    transform: scaleY(0);
  }

  46%,
  47% {
    height: 7px;
    opacity: 0.7;

    transform: scaleY(1);
  }
}

/* =========================
   TELEFON
========================= */
/* =========================
   BARRY – TELEFON
========================= */

@media (max-width: 600px) {
  .barry-mascot {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .barry-button {
    width: 70px;
    height: 70px;
  }

  .barry-message {
    width: min(205px, calc(100vw - 88px));
    margin-bottom: 7px;
    padding: 10px 12px;

    border-radius: 13px;
  }

  .barry-message::after {
    right: -7px;
    bottom: 17px;

    width: 14px;
    height: 14px;
  }

  .barry-message strong {
    font-size: 15px;
  }

  .barry-message span {
    font-size: 10px;
  }
}


/* =========================
   FOOTER KÖZELÉBEN BARRY ELTŰNIK
========================= */

body.is-near-footer .barry-mascot {
  opacity: 0;
  pointer-events: none;

  transform: translateY(20px);
}


/* =========================
   RSVP KÜLDÉSI ÁLLAPOT
========================= */

.rsvp-form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.rsvp-status {
  min-height: 0;
  margin: 0;

  display: grid;
  gap: 6px;

  font-family: "Cormorant Garamond", serif;
  text-align: center;

  opacity: 0;
  transform: translateY(8px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.rsvp-status.is-success,
.rsvp-status.is-error {
  padding: 17px 18px;

  opacity: 1;
  transform: translateY(0);

  border-radius: 14px;
}

.rsvp-status.is-success {
  background: rgba(150, 154, 117, 0.18);
  border: 1px solid rgba(220, 225, 194, 0.42);
}

.rsvp-status.is-error {
  background: rgba(155, 87, 76, 0.16);
  border: 1px solid rgba(225, 170, 160, 0.42);
}

.rsvp-status strong {
  font-size: 20px;
  color: #ffffff;
}

.rsvp-status span {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}


/* =========================================================
   VISSZA A TETEJÉRE – LEBEGŐ GOMB
========================================================= */

#back-to-top.back-to-top {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9995;

  width: 84px;
  height: 84px;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(251, 247, 239, 0.94);
  border: 2px solid rgba(111, 115, 80, 0.38);
  border-radius: 50%;

  box-shadow:
    0 12px 30px rgba(33, 25, 19, 0.24),
    0 0 0 5px rgba(251, 247, 239, 0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: var(--olive);
  font-size: 38px;
  line-height: 1;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(14px) scale(0.92);
  transform-origin: 50% 100%;

  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s,
    transform 0.35s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

#back-to-top.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  animation: backToTopFloat 3.8s ease-in-out infinite;

  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s,
    transform 0.35s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

#back-to-top.back-to-top:hover {
  animation-play-state: paused;

  background: rgba(251, 247, 239, 1);

  box-shadow:
    0 18px 38px rgba(33, 25, 19, 0.3),
    0 0 0 6px rgba(251, 247, 239, 0.22);

  transform: translateY(-5px) scale(1.04);
}

#back-to-top.back-to-top:focus-visible {
  outline: 3px solid rgba(150, 154, 117, 0.55);
  outline-offset: 4px;
}

@keyframes backToTopFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(-1deg);
  }
}


/* =========================
   TELEFON
========================= */

@media (max-width: 600px) {
  .rsvp-status strong {
    font-size: 18px;
  }

  .rsvp-status span {
    font-size: 15px;
  }

  #back-to-top.back-to-top {
    left: 10px;
    bottom: 10px;

    width: 70px;
    height: 70px;

    font-size: 32px;
  }
}


/* =========================
   MOZGÁSCSÖKKENTÉS
========================= */

@media (prefers-reduced-motion: reduce) {
  .barry-button,
  .barry-blink,
  #back-to-top.back-to-top {
    animation: none !important;
  }

  #back-to-top.back-to-top,
  .rsvp-status {
    transition: none !important;
  }
}