/* =====================
   EGYÉNI BETŰTÍPUS
   ===================== */
@font-face {
    font-family: 'Hello January';
    src: url('fonts/Hello_January_script_cyrillic_Script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =====================
   ALAP BEÁLLÍTÁSOK
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --zold-sotet:   #2C3D36;
    --zold-kozep:   #354840;
    --zold-vilagos: #3D5549;
    --feher:        #f5f0eb;
    --cream:        #e8ddd0;
    --feher-halvany: rgba(255,255,255,0.10);
    --feher-kozep:   rgba(255,255,255,0.32);
    --font-serif:  'Cormorant Garamond', Georgia, serif;
    --font-script: 'Hello January', cursive;
    --font-sans:   'Jost', system-ui, sans-serif;
    --nav-height: 64px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--zold-sotet);
    color: var(--feher);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.75;
}

html {
    overflow-x: hidden;
}

/* =====================
   NAVIGÁCIÓ
   ===================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: var(--nav-height);
    transition: background 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(44, 61, 54, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--feher-halvany);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.18em;
    color: var(--feher);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--feher);
}

.nav-rsvp {
    border: 1px solid rgba(255,255,255,0.38) !important;
    padding: 0.38rem 1.1rem !important;
    transition: border-color 0.2s, background 0.2s !important;
}

.nav-rsvp:hover {
    border-color: var(--feher) !important;
    background: rgba(255,255,255,0.06) !important;
}

/* Hamburger gomb (mobilon) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--feher);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================
   MOBIL MENÜ
   ===================== */
@media (max-width: 760px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(44, 61, 54, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0 2rem;
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.35s ease;
        border-bottom: 1px solid var(--feher-halvany);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a { display: block; padding: 0.9rem 1rem; }
    .nav-rsvp { margin: 0.5rem auto !important; width: fit-content; }
}

/* =====================
   FŐOLDAL (HERO)
   ===================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #3D5549 0%, #2C3D36 55%, #1F2C26 100%);
}

/* Leveles sarokdíszek */
.leaf-tl, .leaf-tr, .leaf-bl, .leaf-br {
    position: absolute;
    pointer-events: none;
    user-select: none;
}
.leaf-tl { top: 0; left: 0; }
.leaf-tr { top: 0; right: 0; }
.leaf-bl { bottom: 0; left: 0; }
.leaf-br { bottom: 0; right: 0; }

.hero-content {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem 5rem;
    max-width: 860px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pre-title {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 1rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.70;
    margin-bottom: 1.8rem;
}

.couple-names {
    font-family: var(--font-script);
    font-size: min(11vw, 8rem);
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--feher);
    margin-bottom: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.15em;
}

.name-part {
    display: block;
}

.amp {
    display: block;
    font-style: normal;
    font-weight: 400;
    color: var(--feher);
}

.wedding-date {
    margin-bottom: 2.2rem;
    text-align: center;
    width: 100%;
}

.date-year {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: min(3.5vw, 1rem);
    letter-spacing: 0.35em;
    color: var(--cream);
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

.date-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    width: 100%;
    margin-bottom: 0.5rem;
    gap: 0.6rem;
}

.date-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: min(3.5vw, 1rem);
    letter-spacing: 0.2em;
    color: var(--feher);
    line-height: 1;
}

.date-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: min(3.5vw, 1rem);
    letter-spacing: 0.2em;
    color: var(--feher);
    line-height: 1;
}

.date-day {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: min(10vw, 4rem);
    font-weight: 400;
    color: var(--feher);
    line-height: 1;
}

.date-time {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: min(3vw, 0.88rem);
    letter-spacing: 0.28em;
    color: var(--cream);
    opacity: 0.7;
}

.leaf-divider {
    margin: 0 auto 2.8rem;
    display: flex;
    justify-content: center;
}

/* Visszaszámláló */
.countdown {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 3.5rem;
}

.cnt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
}

.cnt-num {
    font-family: var(--font-serif);
    font-size: min(6vw, 3.2rem);
    font-weight: 300;
    line-height: 1;
    color: var(--feher);
    letter-spacing: 0.04em;
}

.cnt-lbl {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.55;
    margin-top: 0.35rem;
}

.cnt-sep {
    font-family: var(--font-serif);
    font-size: min(6vw, 2.4rem);
    font-weight: 300;
    color: rgba(255,255,255,0.25);
    padding-top: 0.05rem;
    line-height: 1;
}

/* Lefelé nyíl */
.scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: leBounce 2.2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes leBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%       { transform: translateY(9px); opacity: 0.85; }
}

/* =====================
   SZEKCIÓK – KÖZÖS
   ===================== */
section:not(#hero) {
    padding: 6rem 2rem;
}

section:nth-child(odd):not(#hero) {
    background: rgba(0, 0, 0, 0.13);
}

.section-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: min(7vw, 3rem);
    font-weight: 300;
    font-style: italic;
    color: var(--feher);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.section-divider {
    width: 55px;
    height: 1px;
    background: rgba(255,255,255,0.28);
    margin: 0 auto 3rem;
}

/* Szív elválasztó */
.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 3rem;
}

.hd-line {
    width: 55px;
    height: 1px;
    background: rgba(255,255,255,0.28);
    display: block;
}

.hd-heart {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    line-height: 1;
    display: block;
}

/* Idézet a hero-ban */
.hero-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: min(3.5vw, 1.1rem);
    font-weight: 300;
    color: var(--cream);
    opacity: 0.65;
    line-height: 1.9;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

/* =====================
   PROGRAM / IDŐVONAL
   ===================== */
.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 78px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.14);
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.15rem 0;
    position: relative;
}

.tl-time {
    min-width: 62px;
    text-align: right;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-style: italic;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
}

.tl-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    background: var(--zold-sotet);

    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-left: -5px;
}

.tl-text {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: var(--cream);
}

.section-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
    font-style: italic;
    margin-top: 0.8rem;
}

/* =====================
   HELYSZÍN
   ===================== */
.venue-content,
.accommodation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.venue-icon,
.hotel-icon {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.venue-name,
.hotel-name {
    font-family: var(--font-serif);
    font-size: min(5.5vw, 1.9rem);
    font-weight: 400;
    font-style: italic;
    color: var(--feher);
    letter-spacing: 0.02em;
}

.venue-address {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    color: var(--cream);
    opacity: 0.65;
    margin-bottom: 0.8rem;
}

.hotel-desc {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--cream);
    opacity: 0.75;
    max-width: 460px;
    line-height: 1.85;
    margin-bottom: 0.6rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.68rem 1.9rem;
    border: 1px solid rgba(255,255,255,0.38);
    color: var(--feher);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 300;
    transition: border-color 0.25s, background 0.25s;
    border-radius: 1px;
    margin-top: 0.5rem;
}

.btn-outline:hover {
    border-color: var(--feher);
    background: rgba(255,255,255,0.06);
}

.btn-outline.disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

/* =====================
   RÓLUNK
   ===================== */
.about-text {
    font-family: var(--font-serif);
    font-size: min(4vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    opacity: 0.65;
    line-height: 2;
    max-width: 580px;
    margin: 0 auto;
}

/* =====================
   RSVP FORM
   ===================== */
.rsvp-deadline {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.92rem;
    color: var(--cream);
    opacity: 0.78;
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em;
}

.rsvp-deadline strong {
    color: var(--feher);
    font-weight: 400;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.50);
    font-weight: 300;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--feher);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 300;
    padding: 0.78rem 1rem;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.22s, background 0.22s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.48);
    background: rgba(255,255,255,0.08);
}

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

.form-group select option {
    background: #2C3D36;
    color: var(--feher);
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

.btn-submit {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.38);
    color: var(--feher);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 1.05rem 2rem;
    cursor: pointer;
    border-radius: 1px;
    transition: background 0.25s, border-color 0.25s;
    margin-top: 0.4rem;
    width: 100%;
}

.btn-submit:hover {
    background: rgba(255,255,255,0.16);
    border-color: var(--feher);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: default;
}

.form-success {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: min(4vw, 1.25rem);
    color: var(--cream);
    padding: 2.5rem 1rem;
    text-align: center;
    opacity: 0.85;
}

.hidden {
    display: none !important;
}

/* =====================
   LÁBLÉC
   ===================== */
footer {
    padding: 4rem 2rem 3rem;
    text-align: center;
    border-top: 1px solid var(--feher-halvany);
    background: rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}

.footer-decoration {
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: center;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: min(5vw, 1.7rem);
    font-weight: 300;
    font-style: italic;
    color: var(--feher);
    letter-spacing: 0.05em;
}

.footer-date {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: 0.45;
    margin: 0.5rem 0 0.3rem;
}

.footer-venue {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--cream);
    opacity: 0.35;
    margin-bottom: 1.5rem;
}

.footer-copy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.18);
    font-family: var(--font-sans);
    font-weight: 200;
}

/* =====================
   RESZPONZÍV (MOBIL)
   ===================== */
@media (max-width: 580px) {
    section:not(#hero) { padding: 4.5rem 1.4rem; }

    .hero-content { padding: 7rem 1.4rem 4rem; }

    .countdown { gap: 0.2rem; }
    .cnt-item   { min-width: 58px; }
    .cnt-sep    { font-size: 1.8rem; }

    .timeline::before { left: 68px; }
    .tl-time    { min-width: 52px; font-size: 0.98rem; }

    .form-row   { grid-template-columns: 1fr; }

    .leaf-tl svg, .leaf-tr svg { width: 170px; height: 170px; }
    .leaf-bl svg, .leaf-br svg { width: 140px; height: 140px; }

    .leaf-divider svg { width: 220px; }
}
