/* ---------------------------------------------------------
   DAVIT & MARIAM WEDDING INVITATION — STYLES.CSS
   Fonts: Tangerine (English headings), Lortkipanidze (Georgian
   headings, loaded from /fonts), Noto Sans (body, both languages)
   --------------------------------------------------------- */

/* Georgian */
@font-face { font-family: 'Nino Mkhedruli'; src: url('fonts/bpg_nino_mkhedruli_normal.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Lortkipanidze'; src: url('fonts/ka_lortkipanidze.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Nino Mtavruli'; src: url('fonts/bpg_nino_mtavruli_normal.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Nino Mtavruli'; src: url('fonts/bpg_nino_mtavruli_bold.ttf') format('truetype'); font-weight: bold; font-display: swap; }
/* English */
@font-face { font-family: 'Parisienne'; src: url('fonts/Parisienne-Regular.ttf') format('truetype'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('fonts/Spectral-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
    /* English pages; Georgian pages override on <html lang="ka"> */
    --font-display: 'Parisienne', 'Cormorant Garamond', cursive;
    --font-body: 'Spectral', Georgia, serif;
    --display-scale: 1.2;   /* Parisienne sits small on the em box */
    --display-weight: 400;
    --display-spacing: 0;
}

.navbar .nav-brand,
html[lang="ka"] .navbar .nav-brand {
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 1.3rem;
    line-height: 1;
}

html[lang="ka"] .form-group label {
    font-family: 'Nino Mtavruli', 'Noto Sans Georgian', sans-serif;
    font-weight: normal;
    letter-spacing: 0.5px;
}

html[lang="ka"] .btn-primary {
    font-family: 'Nino Mtavruli', 'Noto Sans Georgian', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Main invitation message — larger, in both languages */
.story-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-heading);
}

/* Lortkipanidze only as an accent: main message + gold subtitles */
html[lang="ka"] .story-text,
html[lang="ka"] .section-subtitle {
    font-family: 'Lortkipanidze', 'Noto Serif Georgian', serif;
}

html[lang="ka"] .story-text {
    font-size: 1.3rem;
}

html[lang="ka"] .section-subtitle {
    letter-spacing: 0.5px;
}

html[lang="ka"] .section-title {
    margin-bottom: 18px;
}

html[lang="ka"] {
    --font-display: 'Nino Mtavruli', 'Noto Sans Georgian', sans-serif;
    --font-body: 'Nino Mkhedruli', 'Noto Sans Georgian', sans-serif;
    --display-scale: 0.78;  /* Mtavruli caps are large and bold, so headings scale down */
    --display-weight: 700;
    --display-spacing: 0.04em;
}

:root {
    --primary: #2C3E50;
    --accent: #C5A059;
    --accent-dark: #A4833E;
    --bg-light: #FBF9F5;
    --card-bg: #FFFFFF;
    --text-main: #4A4A4A;
    --text-heading: #1A252F;
    --border-color: #E2DDD5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-heading);
    font-weight: var(--display-weight);
    letter-spacing: var(--display-spacing);
}

/* --- BULLETPROOF MOBILE NAVIGATION (320px & UP) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(251, 249, 245, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 221, 213, 0.5);
    box-sizing: border-box;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: calc(1rem * var(--display-scale));
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

@media (min-width: 360px) {
    .navbar {
        padding: 7px 12px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 0.58rem;
        letter-spacing: 0.5px;
    }
    .nav-brand {
        font-size: 1.1rem;
    }
}

@media (min-width: 412px) {
    .navbar {
        padding: 8px 16px;
    }
    .nav-links {
        gap: 14px;
    }
    .nav-links a {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    .nav-brand {
        font-size: 1.2rem;
    }
}

@media (min-width: 600px) {
    .navbar {
        padding: 9px 26px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 0.85rem;
        letter-spacing: 1.2px;
    }
    .nav-brand {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    background: url('images/hero.jpg') center 45%/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 15px;
}

/* --- HERO ON PHONES: content centred, arrows pinned to the bottom --- */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 80px 20px 74px;
        background-position: 50% 45%;
    }
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.7));
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: calc(100svh - 154px);
    }
    .hero h1 { margin-top: 5vh; margin-bottom: 8px; font-size: calc(clamp(2.6rem, 11vw, 4rem) * var(--display-scale)); }
    .hero-date { margin-bottom: 0; }
    .countdown { margin: auto auto 18px; gap: 6px; width: 100%; max-width: 380px; }
    .countdown-item { padding: 10px 2px; min-width: 0; }
    .countdown-item span { font-size: clamp(1.5rem, 7vw, 1.95rem); }
    .countdown-item label { font-size: clamp(0.6rem, 2.8vw, 0.75rem); letter-spacing: 0; }
    .calendar-links { margin-bottom: 40px; }
    .scroll-arrows {
        position: absolute;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        margin-top: 0;
        gap: 1px;
    }
    .scroll-arrows span { width: 18px; height: 18px; border-width: 2px; opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
}

.sub-title {
    display: block;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #E8D5B5;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: calc(clamp(2.4rem, 8vw, 5.6rem) * var(--display-scale));
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 400;
    white-space: nowrap;
}

.hero-date {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 300;
}

/* --- COUNTDOWN --- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 4px;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.countdown-item span {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    font-weight: 500;
    line-height: 1.15;
    font-variant-numeric: lining-nums tabular-nums; /* even-height digits, no dropping 3/4/5/7/9 */
    font-feature-settings: 'lnum' 1, 'tnum' 1;
    color: #ffffff;
}

.countdown-item label {
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #dddddd;
}

/* Add to calendar */
.calendar-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.calendar-links a {
    color: #E8D5B5;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(232, 213, 181, 0.6);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.calendar-links a:hover {
    color: #ffffff;
    border-color: #ffffff;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 14px 34px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* --- SECTIONS --- */
.section {
    padding: 54px 15px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: calc(clamp(2.2rem, 5vw, 3rem) * var(--display-scale));
    line-height: 1.1;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-dark);
    margin-bottom: 22px;
}

/* Save the Date Section */

.std-image-wrapper {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    border: 1px solid var(--border-color);
}

.std-img {
    width: 100%;
    height: auto;
    display: block;
}

.story-text {
    max-width: 650px;
    margin: 0 auto;
}

/* --- DETAILS GRID --- */
.details-section .container {
    max-width: 1100px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 26px;
}

@media(min-width: 700px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1000px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.detail-card {
    background: var(--card-bg);
    padding: 30px 22px 28px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.04);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease;
    text-align: center;
}

.detail-card:hover {
    transform: translateY(-4px);
}

.detail-card h3 {
    font-size: calc(1.6rem * var(--display-scale));
    line-height: 1.15;
    margin-bottom: 10px;
}

.event-time {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.event-location {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 14px;
    line-height: 1.5;
    min-height: 2.85em; /* two lines on every card so the map links line up */
}

.event-location small {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-dark);
}

.map-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- PHOTO BAND (between agenda and RSVP) --- */
.photo-band {
    width: 100%;
    aspect-ratio: 1.35;               /* tall enough to show from heads to feet */
    background: url('images/walk.jpg') center bottom / cover no-repeat;
}

@media (max-width: 600px) {
    .photo-band {
        aspect-ratio: 1800 / 1429;    /* the whole photo on phones */
    }
}

/* --- RSVP SECTION --- */
.rsvp-section {
    background-color: #F4F0EA;
}

.rsvp-form {
    background: var(--card-bg);
    padding: 26px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.04);
    border: 1px solid var(--border-color);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

@media(min-width: 600px) {
    .rsvp-form {
        padding: 34px 40px;
    }
}

.rsvp-form .btn-primary {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 18px auto 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    background: var(--bg-light);
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-size: 0.95rem;
    color: #A39E95;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.success-message {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.success-message h3 {
    font-size: calc(1.8rem * var(--display-scale));
    color: var(--accent-dark);
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 30px 15px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

/* --- ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 600px) {
    .navbar { padding: 7px 14px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.7rem; }
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.35;
    filter: grayscale(40%);
    transition: all 0.3s ease;
    padding: 2px 0;
    position: relative;
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--accent);
}

.lang-btn:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: block;
}

.lang-divider {
    color: var(--border-color);
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .lang-switcher {
        gap: 6px;
    }
    .flag-icon {
        width: 18px;
    }
}

/* --- HAMBURGER MENU --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 4px;
    z-index: 2000;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 5px 0;
        color: #ffffff;
    }
}

/* --- SCROLL ARROWS --- */
.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 35px;
}

.scroll-arrows span {
    display: block;
    width: 38px;
    height: 38px;
    border-bottom: 3px solid #d4af37;
    border-right: 3px solid #d4af37;
    transform: rotate(45deg);
    animation: ultraSmoothFloat 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, opacity;
}

.scroll-arrows span:nth-child(1) { animation-delay: 0s; }
.scroll-arrows span:nth-child(2) { animation-delay: 0.2s; }
.scroll-arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ultraSmoothFloat {
    0%, 100% {
        opacity: 0.35;
        transform: rotate(45deg) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) translate3d(6px, 6px, 0);
    }
}

/* --- VENUE IMAGES --- */
.detail-card .card-img-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px auto; 
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #d4af37;
}

.detail-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}