/* =========================================================
   Kornél & Luca — esküvői meghívó
   style.css
   ========================================================= */

:root {
  --cream: #f6f1e6;
  --ivory: #fbf8f0;
  --white: #ffffff;
  --forest: #4a5d3f;
  --forest-dark: #384a2e;
  --sage: #93a67a;
  --gold: #b08d4f;
  --brown: #4a3a28;
  --line: rgba(74, 58, 40, 0.18);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --section-pad-y: clamp(3rem, 8vh, 6rem);
  --section-pad-x: clamp(1.5rem, 6vw, 3rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: none;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}
/* ---------- Demo sáv ---------- */

.minta-sav { background: var(--k-ink); color: var(--k-cream); font-size: 0.88rem; padding: 0.6em 1rem; display: flex; align-items: center; justify-content: center; gap: 1rem; text-align: center; }
.minta-sav strong { color: var(--k-mustard); }
.minta-sav button { background: none; border: none; color: var(--k-cream); font-size: 1.2rem; cursor: pointer; }
.minta-sav[hidden] { display: none; }
/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-dark);
  color: var(--cream);
  padding: 0.85rem 1.35rem;
  z-index: 100;
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 2px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Brandmark ---------- */
.brandmark {
  position: fixed;
  top: 1.5rem;
  left: 1.75rem;
  z-index: 40;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brandmark a {
  text-decoration: none;
  color: var(--forest-dark);
}

/* ---------- Section nav (dots) ---------- */
.section-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.section-nav ul {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.section-nav ul::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}

.section-nav__dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
}

.section-nav__visual {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--cream);
  transition: background 0.25s ease, transform 0.25s ease;
}

.section-nav__dot.is-active .section-nav__visual {
  background: var(--gold);
  transform: scale(1.2);
}

.section-nav__label {
  position: absolute;
  right: 130%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--forest-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.section-nav__dot:hover .section-nav__label,
.section-nav__dot:focus-visible .section-nav__label,
.section-nav__dot.is-active .section-nav__label {
  opacity: 1;
}

@media (max-width: 720px) {
  .section-nav {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0.5rem;
    transform: translateX(-50%);
  }

  .section-nav ul {
    flex-direction: row;
  }

  .section-nav ul::before {
    left: 4px;
    right: 4px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
  }

  .section-nav__label {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-pad-y) var(--section-pad-x);
  scroll-snap-align: start;
  position: relative;
}

.section__inner {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.hero {
  background: var(--cream);
}

.program {
  background: var(--ivory);
}

.menu {
  background: var(--cream);
}

.rsvp {
  background: var(--ivory);
}

.venue {
  background: var(--cream);
}

.section:not(.hero) .section__inner {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.section:not(.hero).is-visible .section__inner {
  opacity: 1;
  transform: translateY(0);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--forest-dark);
}

/* ---------- Divider (hairline + heart) ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 210px;
  margin: 1.1rem auto 2.2rem;
}

.divider span {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.divider i.heart {
  position: relative;
  width: 9px;
  height: 9px;
  transform: rotate(-45deg);
  background: var(--gold);
  flex: none;
}

.divider i.heart::before,
.divider i.heart::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

.divider i.heart::before {
  top: -4.5px;
  left: 0;
}

.divider i.heart::after {
  left: 4.5px;
  top: 0;
}

/* ---------- Hero ---------- */
.hero__petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -8%;
  color: var(--sage);
  opacity: 0.3;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes drift {
  0% {
    transform: translateY(-10%) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(55vh) translateX(24px) rotate(170deg);
  }
  100% {
    transform: translateY(120vh) translateX(-16px) rotate(340deg);
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__greeting,
.hero__kicker,
.hero__names,
.hero__divider,
.hero__date,
.hero__venue,
.hero__countdown {
  opacity: 0;
  animation: rise-in 0.9s ease forwards;
}

.hero__greeting {
  animation-delay: 0.05s;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.hero__kicker {
  animation-delay: 0.2s;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}

.hero__names {
  animation-delay: 0.4s;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  color: var(--forest-dark);
  line-height: 1.05;
}

.hero__amp {
  color: var(--gold);
  padding: 0 0.15em;
}

.hero__divider {
  animation-delay: 0.75s;
}

.hero__date {
  animation-delay: 0.95s;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hero__venue {
  animation-delay: 1.1s;
  font-size: 1.15rem;
  color: var(--brown);
  opacity: 0.85;
}

.hero__countdown {
  animation-delay: 1.3s;
  margin-top: 1.75rem;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--forest-dark);
  opacity: 0.7;
  animation: bob 2.4s ease-in-out infinite;
  text-decoration: none;
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* ---------- Program / timeline ---------- */
.timeline {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 1.25rem;
  row-gap: 1.85rem;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--sage));
  opacity: 0.5;
}

.timeline__item {
  display: contents;
}

.timeline__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-dark);
  position: relative;
  z-index: 1;
}

.timeline__body {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.9rem;
  row-gap: 0.1rem;
}

.timeline__time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-dark);
  min-width: 3.6rem;
}

.timeline__event {
  font-size: 1.12rem;
}

/* ---------- Menu ---------- */
.menu-tabs {
  display: inline-flex;
  gap: 0.4rem;
  margin: 0 auto 2.4rem;
  border-bottom: 1px solid var(--line);
}

.menu-tab {
  background: none;
  border: none;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--brown);
  opacity: 0.6;
  cursor: pointer;
  position: relative;
}

.menu-tab.is-active {
  opacity: 1;
  color: var(--forest-dark);
}

.menu-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
}

.menu-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  text-align: left;
}

.menu-panels.js-enhanced {
  display: block;
  text-align: center;
}

.menu-panels.js-enhanced .menu-panel {
  display: none;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

.menu-panels.js-enhanced .menu-panel.is-active {
  display: block;
}

.menu-group {
  margin-bottom: 1.75rem;
}

.menu-group h3 {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--forest-dark);
  margin-bottom: 0.4rem;
}

.menu-group p {
  margin: 0.1rem 0;
}

.menu-note {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 0.98rem;
  opacity: 0.8;
  text-align: center;
}

@media (max-width: 640px) {
  .menu-panels:not(.js-enhanced) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- RSVP ---------- */
.rsvp__intro {
  max-width: 480px;
  margin: 0 auto 2.2rem;
}

.rsvp-form {
  text-align: left;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field label,
.field legend {
  display: block;
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--forest-dark);
  margin-bottom: 0.45rem;
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.5rem 0.1rem;
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: var(--brown);
  transition: border-color 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.field--radio {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pill input {
  accent-color: var(--forest-dark);
}

.pill:has(input:checked) {
  border-color: var(--forest-dark);
  background: rgba(56, 74, 46, 0.08);
  color: var(--forest-dark);
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#rsvp-guest-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.button {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.3rem;
  background: var(--forest-dark);
  color: var(--cream);
  border: 1px solid var(--forest-dark);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--cream);
  color: var(--forest-dark);
}

.button--outline {
  background: transparent;
  color: var(--forest-dark);
}

.button--outline:hover,
.button--outline:focus-visible {
  background: var(--forest-dark);
  color: var(--cream);
}

.rsvp-status {
  margin: 0;
  min-height: 1.4em;
  font-style: italic;
}

.rsvp-status--ok {
  color: var(--forest-dark);
}

.rsvp-status--error {
  color: #8a3b2f;
}

/* ---------- Venue ---------- */
.venue__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--forest-dark);
  margin-bottom: 0.3rem;
}

.venue__address {
  letter-spacing: 0.05em;
  margin-bottom: 1.6rem;
  color: var(--brown);
  opacity: 0.85;
}

.venue__text {
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

.venue__actions {
  margin: 1.5rem 0 2rem;
}

.venue__map {
  border: 1px solid var(--line);
  overflow: hidden;
}

.venue__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: grayscale(12%) sepia(6%);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: var(--cream);
  text-align: center;
  padding: 2.75rem 1.5rem;
}

.site-footer p {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .petal {
    display: none;
  }

  .hero__greeting,
  .hero__kicker,
  .hero__names,
  .hero__divider,
  .hero__date,
  .hero__venue,
  .hero__countdown {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero__scroll {
    animation: none;
  }

  .section:not(.hero) .section__inner {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
