/*
Theme Name: Judit & Gyuri Eskuvo v6
Theme URI: https://example.com/judit-gyuri-eskuvo
Author: Codex
Description: Premium, reszponziv egyoldalas eskuvoi landing oldal Judit es Gyuri meghivojahoz.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: judit-gyuri-eskuvo-v6
*/

:root {
  --jg-cream: #fbf8f0;
  --jg-paper: #fffdf7;
  --jg-stone: #e7dfcf;
  --jg-sage: #8d9c82;
  --jg-olive: #4f6047;
  --jg-gold: #b99855;
  --jg-gold-soft: #dec996;
  --jg-ink: #2e3029;
  --jg-muted: #747064;
  --jg-rose: #b9857f;
  --jg-shadow: 0 18px 44px rgba(69, 57, 35, .12);
  --jg-shadow-soft: 0 10px 28px rgba(69, 57, 35, .08);
  --jg-serif: "Cormorant Garamond", Georgia, serif;
  --jg-sans: "Inter", Arial, sans-serif;
  --jg-script: "Great Vibes", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jg-cream);
  color: var(--jg-ink);
  font-family: var(--jg-sans);
  line-height: 1.6;
}

body.admin-bar .jg-floating-nav {
  top: 50px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(185, 152, 85, .09) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .42;
  z-index: -1;
}

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

a {
  color: inherit;
}

.jg-sprite {
  display: none;
}

.jg-page {
  overflow: hidden;
}

.jg-floating-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 4px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  overflow-x: auto;
  background: rgba(255, 253, 247, .86);
  border: 1px solid rgba(185, 152, 85, .34);
  box-shadow: var(--jg-shadow-soft);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.jg-nav-toggle {
  display: none;
}

.jg-nav-links {
  display: flex;
  gap: 4px;
}

.jg-floating-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: var(--jg-olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.jg-floating-nav a:hover,
.jg-floating-nav a.is-active {
  color: var(--jg-ink);
  background: rgba(222, 201, 150, .18);
  border-color: rgba(185, 152, 85, .28);
}

.jg-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 90px 22px 86px;
  text-align: center;
  background:
    linear-gradient(rgba(251, 248, 240, .58), rgba(251, 248, 240, .72)),
    url("assets/hero-botanical.jpg") center / cover no-repeat;
}

.jg-hero::before,
.jg-hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(185, 152, 85, .42);
  pointer-events: none;
}

.jg-hero::after {
  inset: 30px;
  border-color: rgba(141, 156, 130, .28);
}

.jg-hero-content {
  max-width: 840px;
  padding: 10px;
}

.jg-eyebrow,
.jg-kicker {
  margin: 0 0 12px;
  color: var(--jg-olive);
  font-family: var(--jg-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.jg-hero h1 {
  margin: 0;
  color: var(--jg-ink);
  font-family: var(--jg-script);
  font-size: clamp(76px, 18vw, 168px);
  font-weight: 400;
  line-height: .82;
  text-shadow: 0 10px 28px rgba(88, 75, 49, .12);
}

.jg-hero h1 span {
  color: var(--jg-gold);
  font-size: .54em;
}

.jg-hero-meta {
  width: min(480px, 100%);
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(185, 152, 85, .48);
}

.jg-hero-meta p {
  margin: 2px 0;
  color: var(--jg-ink);
  font-family: var(--jg-serif);
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 600;
  line-height: 1.1;
}

.jg-gold-hearts span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--jg-gold);
  border-bottom: 1px solid var(--jg-gold);
  transform: rotate(45deg);
  opacity: .58;
  animation: jg-float 7s ease-in-out infinite;
}

.jg-gold-hearts span::before,
.jg-gold-hearts span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--jg-gold);
  border-right: 0;
  border-bottom: 0;
  border-radius: 50%;
}

.jg-gold-hearts span::before {
  top: -5px;
  left: -1px;
}

.jg-gold-hearts span::after {
  top: -1px;
  left: -5px;
}

.jg-gold-hearts span:nth-child(1) { left: 12%; top: 28%; }
.jg-gold-hearts span:nth-child(2) { right: 13%; top: 34%; animation-delay: -1.5s; }
.jg-gold-hearts span:nth-child(3) { left: 22%; bottom: 22%; animation-delay: -3s; }
.jg-gold-hearts span:nth-child(4) { right: 24%; bottom: 17%; animation-delay: -4.5s; }

.jg-scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--jg-gold);
  border: 1px solid rgba(185, 152, 85, .48);
  text-decoration: none;
  transform: translateX(-50%);
  animation: jg-bounce 1.9s ease-in-out infinite;
}

.jg-scroll-indicator svg,
.jg-icon svg,
.jg-button svg,
.jg-music-icons svg,
.jg-final svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jg-section {
  padding: clamp(74px, 11vw, 132px) 20px;
  position: relative;
  scroll-margin-top: 112px;
}

.jg-section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.jg-section h2,
.jg-final h2 {
  margin: 0 0 30px;
  color: var(--jg-ink);
  font-family: var(--jg-serif);
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 500;
  line-height: .98;
}

.jg-section-copy {
  max-width: 650px;
  margin: -12px 0 28px;
  color: var(--jg-muted);
  font-size: 17px;
}

.jg-countdown-section {
  background: linear-gradient(180deg, var(--jg-paper), rgba(244, 238, 225, .82));
}

.jg-countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 3vw, 22px);
  max-width: 760px;
  padding: clamp(14px, 4vw, 28px);
  border: 1px solid rgba(185, 152, 85, .64);
  box-shadow: var(--jg-shadow);
  background: rgba(255, 253, 247, .72);
}

.jg-countdown div {
  min-width: 0;
  padding: clamp(14px, 4vw, 30px) 8px;
  text-align: center;
  border: 1px solid rgba(141, 156, 130, .26);
  background: rgba(251, 248, 240, .72);
}

.jg-countdown strong {
  display: block;
  font-family: var(--jg-serif);
  font-size: clamp(38px, 13vw, 88px);
  font-weight: 600;
  line-height: .9;
}

.jg-countdown span {
  color: var(--jg-olive);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.jg-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.jg-timeline::before {
  content: "";
  position: absolute;
  left: 105px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--jg-gold), rgba(185, 152, 85, .08));
}

.jg-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px 42px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: rgba(255, 253, 247, .74);
  border: 1px solid rgba(185, 152, 85, .18);
  box-shadow: var(--jg-shadow-soft);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.jg-timeline-item:hover,
.jg-image-card:hover,
.jg-stay-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 152, 85, .48);
  box-shadow: var(--jg-shadow);
}

.jg-time {
  color: var(--jg-gold);
  font-family: var(--jg-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.jg-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--jg-olive);
  background: var(--jg-cream);
  border: 1px solid rgba(185, 152, 85, .38);
}

.jg-timeline h3,
.jg-image-card h3,
.jg-stay-card h3 {
  margin: 0 0 5px;
  font-family: var(--jg-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.08;
}

.jg-timeline p,
.jg-image-card p,
.jg-stay-card p {
  margin: 0;
  color: var(--jg-muted);
}

.jg-locations,
.jg-accommodation,
.jg-music {
  background: rgba(255, 253, 247, .58);
}

.jg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

#latnivalok .jg-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#latnivalok .jg-sights-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jg-location-grid {
  grid-template-columns: minmax(0, 520px);
}

.jg-image-card,
.jg-stay-card {
  overflow: hidden;
  background: rgba(255, 253, 247, .82);
  border: 1px solid rgba(185, 152, 85, .18);
  border-radius: 8px;
  box-shadow: var(--jg-shadow-soft);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.jg-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.jg-card-body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 244px;
  padding: 20px;
}

.jg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 15px;
  color: var(--jg-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(185, 152, 85, .52);
  background: linear-gradient(180deg, rgba(222, 201, 150, .38), rgba(255, 253, 247, .88));
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.jg-button:hover {
  transform: translateY(-1px);
  border-color: var(--jg-gold);
  background: rgba(222, 201, 150, .44);
}

.jg-button svg {
  width: 17px;
  height: 17px;
}

.jg-stay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.jg-stay-actions .jg-button {
  margin-top: 0;
}

.jg-select-wrap {
  display: grid;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 24px;
}

.jg-select-wrap label {
  color: var(--jg-olive);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.jg-select-wrap select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--jg-ink);
  font: 600 16px var(--jg-sans);
  border: 1px solid rgba(185, 152, 85, .44);
  background: var(--jg-paper);
  box-shadow: var(--jg-shadow-soft);
}

.jg-accommodation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.jg-stay-card {
  display: grid;
  gap: 14px;
  min-height: 245px;
  padding: 22px;
}

.jg-stay-card span {
  width: fit-content;
  padding-bottom: 4px;
  color: var(--jg-gold);
  font-family: var(--jg-serif);
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(185, 152, 85, .42);
}

.jg-stay-card.is-hidden {
  display: none;
}

.jg-stay-card.is-selected {
  border-color: rgba(185, 152, 85, .78);
  background: linear-gradient(180deg, rgba(255, 253, 247, .95), rgba(239, 232, 214, .72));
}

.jg-stay-card-featured {
  background:
    linear-gradient(rgba(255, 253, 247, .86), rgba(255, 253, 247, .86)),
    url("assets/jasmina-apartment.jpg") center / cover;
}

.jg-sights-intro {
  max-width: 900px;
}

.jg-sights-grid .jg-card-body {
  min-height: 300px;
}

.jg-experience-panel {
  margin-top: 20px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 247, .82);
  border: 1px solid rgba(185, 152, 85, .22);
  box-shadow: var(--jg-shadow-soft);
}

.jg-experience-panel h3 {
  margin: 0 0 16px;
  font-family: var(--jg-serif);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.jg-experience-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jg-experience-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--jg-muted);
}

.jg-experience-panel li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--jg-gold);
  transform: rotate(45deg);
}

.jg-experience-panel strong {
  color: var(--jg-ink);
}

.jg-music {
  position: relative;
}

.jg-music::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(251, 248, 240, .9), rgba(251, 248, 240, .88)),
    url("assets/hero-botanical.jpg") center / cover;
  z-index: -1;
}

.jg-music-frame {
  width: 100%;
  max-width: 720px;
  padding: 20px;
  border: 1px solid rgba(185, 152, 85, .42);
  background: rgba(255, 253, 247, .78);
  box-shadow: var(--jg-shadow);
  overflow: hidden;
}

.jg-music-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
}

.jg-music-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--jg-gold);
}

.jg-final {
  min-height: 72svh;
  display: grid;
  place-items: center;
  padding: 92px 22px 120px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 253, 247, .5), rgba(231, 223, 207, .6));
}

.jg-final-inner {
  max-width: 760px;
}

.jg-couple-photo {
  width: min(760px, 100%);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 auto 30px;
  border: 1px solid rgba(185, 152, 85, .42);
  box-shadow: var(--jg-shadow);
}

.jg-final svg {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--jg-sage);
}

.jg-final p {
  margin: 0 0 24px;
  font-family: var(--jg-serif);
  font-size: clamp(30px, 8vw, 58px);
  line-height: 1.08;
}

.jg-final h2 {
  margin-bottom: 0;
  color: var(--jg-gold);
  font-family: var(--jg-script);
  font-size: clamp(64px, 16vw, 128px);
  font-weight: 400;
}

.jg-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.jg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes jg-float {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(-16px) rotate(45deg); }
}

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

@media (min-width: 780px) {
  .jg-floating-nav {
    top: 18px;
    bottom: auto;
  }
}

@media (max-width: 980px) {
  .jg-card-grid,
  #latnivalok .jg-card-grid,
  .jg-accommodation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #latnivalok .jg-sights-grid,
  .jg-experience-panel ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .jg-hero {
    padding-inline: 16px;
    background-position: center top;
  }

  .jg-hero::before {
    inset: 10px;
  }

  .jg-hero::after {
    inset: 18px;
  }

  .jg-hero-meta {
    margin-top: 24px;
  }

  .jg-countdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 9px;
  }

  .jg-timeline::before {
    left: 42px;
  }

  .jg-timeline-item {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .jg-time {
    grid-column: 1 / -1;
    font-size: 19px;
  }

  .jg-icon {
    grid-column: 1;
  }

  .jg-card-grid,
  #latnivalok .jg-card-grid,
  .jg-accommodation-grid {
    grid-template-columns: 1fr;
  }

  .jg-card-body,
  .jg-stay-card {
    min-height: auto;
  }

  .jg-sights-grid .jg-card-body {
    min-height: auto;
  }

  .jg-experience-panel {
    padding: 20px;
  }

  .jg-button {
    width: 100%;
  }

  .jg-music {
    padding-inline: 14px;
  }

  .jg-music-frame {
    padding: 10px;
  }

  .jg-music-frame iframe {
    height: 152px;
  }

  .jg-floating-nav {
    left: auto;
    right: 14px;
    bottom: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .jg-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    color: var(--jg-ink);
    font: 700 13px var(--jg-sans);
    text-transform: uppercase;
    background: rgba(255, 253, 247, .94);
    border: 1px solid rgba(185, 152, 85, .48);
    box-shadow: var(--jg-shadow);
    backdrop-filter: blur(16px);
  }

  .jg-nav-toggle span,
  .jg-nav-toggle span::before,
  .jg-nav-toggle span::after {
    display: block;
    width: 17px;
    height: 1px;
    background: var(--jg-gold);
    content: "";
    transition: transform .22s ease, opacity .22s ease;
  }

  .jg-nav-toggle span {
    position: relative;
  }

  .jg-nav-toggle span::before,
  .jg-nav-toggle span::after {
    position: absolute;
    left: 0;
  }

  .jg-nav-toggle span::before {
    top: -6px;
  }

  .jg-nav-toggle span::after {
    top: 6px;
  }

  .jg-floating-nav.is-open .jg-nav-toggle span {
    background: transparent;
  }

  .jg-floating-nav.is-open .jg-nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
  }

  .jg-floating-nav.is-open .jg-nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .jg-nav-links {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    width: min(270px, calc(100vw - 28px));
    padding: 8px;
    background: rgba(255, 253, 247, .96);
    border: 1px solid rgba(185, 152, 85, .38);
    box-shadow: var(--jg-shadow);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
  }

  .jg-floating-nav.is-open .jg-nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .jg-floating-nav a {
    width: 100%;
    padding: 12px 13px;
    font-size: 13px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
