/* ==========================================================================
   1. FONT CONFIGURATION (4 Custom Fonts Mapped to Right Locations)
   ========================================================================== */
@font-face {
    font-family: 'Font-Primary-Header'; /* For main names & statement headings */
    src: url('fonts/PrimaryHeader.woff2') format('woff2'),
         url('fonts/PrimaryHeader.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Font-Secondary-Sub'; /* For section headers & card titles */
    src: url('fonts/SecondarySub.woff2') format('woff2'),
         url('fonts/SecondarySub.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Font-Body-Text'; /* For standard paragraphs, information lines */
    src: url('fonts/BodyText.woff2') format('woff2'),
         url('fonts/BodyText.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Font-Accent-Button'; /* For small badges, countdown labels, and action links */
    src: url('fonts/AccentButton.woff2') format('woff2'),
         url('fonts/AccentButton.ttf') format('truetype');
    font-display: swap;
}

/* ==========================================================================
   2. GLOBAL STYLES & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #fcfbfa;
    color: #2c2a29;
    /* Added Arabic/Kurdish safe fallbacks so text never defaults to basic fonts */
    font-family: 'Font-Body-Text', 'Tahoma', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   3. ULTRA-SMOOTH TRANSITION SYSTEM (Replaces Butterfly)
   ========================================================================== */
.smooth-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000), 
                transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: transform, opacity;
}

.smooth-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   4. LAYOUT COMPONENTS
   ========================================================================== */
section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(252,251,250,0.8), rgba(252,251,250,0.95)), 
                url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=2070') center/cover no-repeat;
    min-height: 100vh;
}

.badge {
    font-family: 'Font-Accent-Button', 'Tahoma', sans-serif;
    font-size: 14px;
    letter-spacing: normal; /* Fixed: Removed px spacing to prevent Kurdish letters splitting */
    text-transform: none;   /* Fixed: Uppercase doesn't apply to Kurdish */
    color: #8c7863;
}

.couple-names {
    font-family: 'Font-Primary-Header', 'Georgia', serif;
    font-size: 4rem;
    font-weight: 300;
    margin: 20px 0;
    color: #4a3e3d;
}

.date-text {
    font-family: 'Font-Secondary-Sub', 'Tahoma', sans-serif;
    font-size: 18px;
    letter-spacing: normal; /* Fixed: Prevents date/numbers string clipping in RTL */
}

/* Countdown */
.countdown-section h2 {
    font-family: 'Font-Secondary-Sub', 'Tahoma', sans-serif;
    margin-bottom: 40px;
    font-weight: 400;
}

#countdown {
    display: flex;
    gap: 30px;
}

.time-block span {
    font-family: 'Font-Primary-Header', 'Tahoma', sans-serif;
    font-size: 3.5rem;
    color: #8c7863;
}

.time-block p {
    font-family: 'Font-Accent-Button', 'Tahoma', sans-serif;
    font-size: 12px;
    text-transform: none;
    letter-spacing: normal; /* Fixed: Keeps localized time tags intact */
}

/* Details Card */
.card {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    max-width: 600px;
    width: 100%;
    border: 1px solid #f2effa;
}

.card h3 {
    font-family: 'Font-Secondary-Sub', 'Georgia', serif;
    font-size: 28px;
    margin-bottom: 30px;
}

.details-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.detail-item h4 {
    font-family: 'Font-Accent-Button', 'Tahoma', sans-serif;
    font-size: 14px;
    text-transform: none;
    margin-bottom: 10px;
    color: #8c7863;
}

/* Buttons & Inputs */
.btn-rsvp, .btn-submit {
    display: inline-block;
    background-color: #4a3e3d;
    color: #ffffff;
    padding: 16px 32px;
    text-decoration: none;
    font-family: 'Font-Accent-Button', 'Tahoma', sans-serif;
    font-size: 13px;
    letter-spacing: normal; /* Fixed: Keeps button call-to-actions perfectly readable */
    text-transform: none;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-rsvp:hover, .btn-submit:hover {
    background-color: #6e5d5b;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    width: 100%;
    margin-top: 30px;
}

.rsvp-form input, .rsvp-form select {
    padding: 15px;
    border: 1px solid #dcd1c4;
    border-radius: 2px;
    font-family: 'Font-Body-Text', 'Tahoma', sans-serif;
    font-size: 15px;
    background-color: #ffffff;
    outline: none;
    text-align: right; /* Fixed: Forces input cursor and typing orientation natively to the right side */
}
