/* ==========================================================================
   LOCAL FONTS DECLARATION
   ========================================================================== */
@font-face {
    font-family: 'Liana';
    src: url('Liana.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ChampionScript';
    src: url('KZPF_Champion_Script.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ShelleyKZ';
    src: url('AsylbekM02Shelleykz_.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BadRussian';
    src: url('Bad_Russian.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MontserratLight';
    src: url('montserrat-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Forum';
    src: url('Forum.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MonumentaPro';
    src: url('KZPFMonumentaPro-Reg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DisruptorsScript';
    src: url('DisruptorsScript-Reg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES & BASE RESETS
   ========================================================================== */
:root {
    --bg-page: #e8e3df;
    --bg-card: #ffffff;
    --bg-accent: #c3ab97;
    --bg-accent-soft: #f4eee9;
    --bg-gold: #ba865f;
    --bg-gold-light: #e5d5c5;
    
    --color-dark: #221f1d;
    --color-brown: #57463a;
    --color-gold: #9e6f49;
    --color-gold-dark: #7a5130;
    --color-text: #3d3733;
    --color-muted: #7d736c;
    
    --font-title: 'ChampionScript', 'Liana', 'ShelleyKZ', cursive;
    --font-heading: 'Forum', 'MonumentaPro', Georgia, serif;
    --font-body: 'MontserratLight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-accent: 'DisruptorsScript', cursive;

    --shadow-card: 0 12px 35px rgba(87, 70, 58, 0.08);
    --shadow-btn: 0 6px 20px rgba(186, 134, 95, 0.35);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-full: 999px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #2b2826;
    background-image: url('noroot.png');
    background-repeat: repeat;
    background-size: 380px;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* Central Mobile-Centric Container */
.app-wrapper {
    width: 100%;
    max-width: 460px;
    min-height: 100vh;
    background-color: #f7f4f1;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.invitation-container {
    padding: 0 18px 40px;
}

/* ==========================================================================
   FLOATING MUSIC BUTTON
   ========================================================================== */
.music-floating-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(186, 134, 95, 0.3);
    padding: 5px 14px 5px 6px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.music-floating-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.music-vinyl {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-vinyl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.music-floating-btn.playing .music-vinyl {
    animation: rotateDisc 4s linear infinite;
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-btn-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brown);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-block {
    position: relative;
    min-height: 560px;
    margin: 0 -18px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 35px;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0.05) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(26, 23, 21, 0.75) 100%
    );
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.hero-ornament-top {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    width: 45px;
    opacity: 0.8;
}

.top-leaf-decor {
    width: 100%;
    height: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 0 20px;
}

.hero-tag {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e5d5c5;
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-name {
    font-family: var(--font-title);
    font-size: 64px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-date-badge {
    display: inline-block;
    background: rgba(229, 213, 197, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 9px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
}

.scroll-down-hint {
    margin-top: 25px;
}

.arrow-bounce {
    width: 32px;
    opacity: 0.85;
    animation: bounceY 2s infinite;
}

@keyframes bounceY {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* ==========================================================================
   COMMON SECTIONS
   ========================================================================== */
.section {
    padding: 28px 0;
    position: relative;
}

.section-heading, .section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-dark);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 12px;
}

/* ==========================================================================
   2. INVITATION MESSAGE
   ========================================================================== */
.message-card {
    background: #c3ab97;
    color: #ffffff;
    padding: 34px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.message-decor-img {
    width: 140px;
    margin: -10px auto 10px;
}

.flower-branch {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.message-card .section-heading {
    color: #ffffff;
    font-size: 30px;
    margin-bottom: 12px;
}

.message-subheading {
    font-size: 16px;
    color: #f7ede3;
    margin-bottom: 4px;
}

.name-highlight {
    font-family: var(--font-title);
    font-size: 46px;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.1;
}

.message-body {
    font-size: 15px;
    line-height: 1.7;
    color: #fff9f5;
    max-width: 320px;
    margin: 0 auto;
}

.wedding-ring-decor {
    width: 90px;
    margin: 20px auto -10px;
    opacity: 0.9;
}

.circular-decor {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   3. DATE & TIME SECTION
   ========================================================================== */
.date-display-box {
    margin: 20px 0 30px;
}

.calendar-ribbon {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(186, 134, 95, 0.15);
}

.ribbon-month {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--color-gold);
    display: block;
    margin-bottom: 10px;
}

.ribbon-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 0;
    border-top: 1px dashed #e2d8d0;
    border-bottom: 1px dashed #e2d8d0;
}

.ribbon-col {
    flex: 1;
}

.ribbon-dayname, .ribbon-time {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-brown);
}

.ribbon-number {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-gold);
    padding: 0 10px;
}

.ribbon-year {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-muted);
    display: block;
    margin-top: 12px;
}

.program-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flow-step {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid var(--color-gold);
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateX(4px);
}

.step-time {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-gold);
    min-width: 65px;
}

.step-desc h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.step-desc p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-muted);
}

/* ==========================================================================
   4. LOCATION SECTION
   ========================================================================== */
.location-card {
    background: var(--bg-card);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(186, 134, 95, 0.15);
}

.loc-icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-accent-soft);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.restaurant-name {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-gold);
    margin-bottom: 2px;
}

.restaurant-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-muted);
    margin-bottom: 18px;
}

.loc-address {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 25px;
}

.loc-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, #ba865f, #a06e49);
    color: #ffffff;
    box-shadow: var(--shadow-btn);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #a87650, #8f5f3c);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px dashed var(--color-gold);
    color: var(--color-brown);
}

.btn-outline:hover {
    background: var(--bg-accent-soft);
}

/* ==========================================================================
   5. COUNTDOWN TIMER
   ========================================================================== */
.countdown-card {
    background: linear-gradient(135deg, #38312d, #24201e);
    color: #ffffff;
    padding: 30px 18px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.countdown-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    color: #e5d5c5;
    margin-bottom: 22px;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.timer-unit {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-number {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 4px;
}

.t-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbb8a9;
}

/* ==========================================================================
   6. HOSTS (ТОЙ ИЕЛЕРІ)
   ========================================================================== */
.hosts-card {
    background: var(--bg-card);
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(186, 134, 95, 0.15);
}

.hosts-tag {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-muted);
    display: block;
    margin-bottom: 6px;
}

.hosts-names {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.hosts-decor {
    width: 40px;
    margin: 0 auto;
    opacity: 0.7;
}

.hosts-leaf {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   7. NOTE / DRESS CODE
   ========================================================================== */
.note-card {
    background: #f4eee9;
    padding: 26px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(186, 134, 95, 0.2);
}

.note-icon {
    width: 45px;
    margin: 0 auto 12px;
}

.mask-icon {
    width: 100%;
    height: auto;
}

.note-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.note-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text);
}

/* ==========================================================================
   8. RSVP FORM
   ========================================================================== */
.rsvp-card {
    background: var(--bg-card);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(186, 134, 95, 0.2);
}

.rsvp-badge {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.rsvp-note {
    text-align: center;
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 22px;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label, .group-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
}

.req {
    color: #c94a4a;
}

.hint {
    font-size: 11px;
    color: var(--color-muted);
}

.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid #dcd3cb;
    border-radius: var(--radius-sm);
    background-color: #faf7f5;
    color: var(--color-text);
    transition: all 0.25s ease;
}

.input-group input[type="text"]:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(186, 134, 95, 0.15);
}

.radio-choices {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 4px;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #faf7f5;
    border: 1px solid #e7ded7;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-radio:hover {
    background: #f2e9e2;
    border-color: var(--color-gold);
}

.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #b7a99f;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-radio input[type="radio"]:checked ~ .radio-circle {
    border-color: var(--color-gold);
}

.custom-radio input[type="radio"]:checked ~ .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

.custom-radio input[type="radio"]:checked ~ .radio-text {
    font-weight: 600;
    color: var(--color-dark);
}

.radio-text {
    font-size: 13px;
    color: var(--color-text);
}

.btn-submit {
    background: var(--color-dark);
    color: #ffffff;
    padding: 15px;
    margin-top: 8px;
    font-size: 16px;
    box-shadow: 0 4px 18px rgba(34, 31, 29, 0.25);
}

.btn-submit:hover {
    background: #000000;
    transform: translateY(-2px);
}

.rsvp-success-state {
    text-align: center;
    padding: 20px 10px;
}

.success-heart-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.rsvp-success-state h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.rsvp-success-state p {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 18px;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 30px 10px 40px;
}

.footer-decor-wrap {
    width: 90px;
    margin: 0 auto 15px;
    opacity: 0.8;
}

.footer-floral {
    width: 100%;
    height: auto;
}

.footer-bye {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.footer-sign {
    font-size: 16px;
    color: var(--color-gold);
    font-weight: 500;
    margin-bottom: 10px;
}

.footer-heart {
    font-size: 18px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade.active {
    opacity: 1;
    transform: translateY(0);
}
