/* ========================================
   Tania & Daniel — Wedding Website
   ======================================== */

[hidden] { display: none !important; }

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

:root {
    --olive: #A8B5A0;
    --olive-dark: #8FA087;
    --olive-light: #B9C4B2;
    --cream: #FAF7F2;
    --cream-dark: #F0EBE3;
    --text-dark: #3D3D3D;
    --text-light: #6B6B6B;
    --gold: #C9A961;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* paper texture */
.story,
.countdown-section,
.timeline-section,
.event-section,
.bus-section {
    position: relative;
}

.story::before,
.countdown-section::before,
.event-section::before,
.bus-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.story > *,
.countdown-section > *,
.event-section > *,
.bus-section > * {
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 6vh;
    background: var(--text-dark) url('media/8e690922-84ce-4c1b-b722-d28b90b79c02.jpeg') no-repeat center 30%;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,24,18,0.35) 0%, rgba(20,24,18,0.15) 35%, rgba(20,24,18,0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-names {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-names .name {
    font-family: 'Great Vibes', cursive;
    font-size: 4.2rem;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
}

.hero-names .amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 2.4rem;
    color: var(--white);
    margin: 0 10px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
}

.hero-date {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--white);
    text-align: center;
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.85;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-hint svg {
    width: 22px;
    height: 22px;
    margin-top: 8px;
}

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

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--olive);
    margin-bottom: 25px;
}

.section-title.light {
    color: var(--white);
}

/* ========================================
   STORY
   ======================================== */
.story {
    padding: 50px 20px 40px;
    text-align: center;
    background: var(--cream);
}

.music-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    background: var(--olive);
    border-radius: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.music-icon {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.5;
    flex-shrink: 0;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
}

.music-track {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.music-artist {
    font-weight: 400;
    opacity: 0.9;
}

.story-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 25px;
    font-style: italic;
    line-height: 1.7;
}

.story-invite {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--olive);
}

/* ========================================
   COUNTDOWN
   ======================================== */
.countdown-section {
    padding: 40px 20px;
    background: var(--cream);
    text-align: center;
}

.countdown-header {
    margin-bottom: 20px;
}

.countdown-label-top {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--olive);
    font-weight: 600;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 2rem;
    color: var(--olive);
    font-weight: 300;
    margin-top: -15px;
}

.calendar {
    max-width: 320px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-title {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--olive);
    margin-bottom: 5px;
}

.calendar-month {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--text-dark);
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-name {
    font-size: 0.6rem;
    color: var(--text-light);
    text-align: center;
    padding: 5px 0;
    font-weight: 600;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-dark);
    border-radius: 50%;
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.highlight {
    background: var(--olive);
    color: var(--white);
    font-weight: 600;
}

/* ========================================
   EVENT / MAP SECTION
   ======================================== */
.olive-bg {
    background: var(--olive);
    color: var(--white);
    position: relative;
}

.olive-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.olive-bg > * {
    position: relative;
    z-index: 1;
}

.event-section {
    padding: 40px 20px;
    text-align: center;
    background: var(--cream);
}

.event-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 350px;
    margin: 0 auto;
}

.event-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.event-card-title {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--olive);
    margin-bottom: 10px;
}

.event-time {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.event-venue {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.event-address {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.event-button {
    display: inline-block;
    padding: 8px 20px;
    background: var(--olive);
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.event-button:hover {
    background: var(--olive-dark);
}

/* ========================================
   TIMELINE / SOON CARDS
   ======================================== */
.timeline-section {
    padding: 50px 20px;
    text-align: center;
}

.soon-card {
    max-width: 360px;
    margin: 0 auto;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 15px;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.soon-card.dark {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.bus-section .soon-card,
.event-section .soon-card {
    background: var(--white);
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.soon-icon {
    width: 34px;
    height: 34px;
    color: var(--white);
}

.bus-section .soon-icon {
    color: var(--olive);
    fill: var(--olive);
}

.soon-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--white);
    opacity: 0.95;
}

.bus-section .soon-text {
    color: var(--text-light);
}

/* ========================================
   PHOTO CAROUSEL
   ======================================== */
.carousel-section {
    padding: 50px 0;
    text-align: center;
    overflow: hidden;
    background: var(--cream);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 340px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top: 4px solid var(--white);
    border-bottom: 4px solid var(--white);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.carousel-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--olive);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

@media (min-width: 768px) {
    .carousel-wrapper {
        max-width: 700px;
        padding: 0 60px;
    }
    .carousel-container { padding: 20px; }
    .carousel-track { height: 480px; }
    .carousel-slide img {
        border-radius: 12px;
        border: 4px solid var(--white);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
    .carousel-btn { width: 50px; height: 50px; }
}

/* ========================================
   BUS SECTION
   ======================================== */
.bus-section {
    padding: 40px 20px;
    text-align: center;
    background: var(--cream);
}

/* ========================================
   ACCOMMODATION
   ======================================== */
.accommodation-section {
    padding: 40px 20px;
    text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 50px 20px;
    text-align: center;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.footer-date {
    font-size: 0.9rem;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .hero-names .name { font-size: 3rem; }
    .hero-names .amp { font-size: 2rem; margin: 0 8px; }
    .countdown-number { font-size: 2rem; }
    .section-title { font-size: 2.3rem; }
    .event-card-title { font-size: 1.5rem; }
}

@media (min-width: 768px) {
    .hero-names .name { font-size: 5.5rem; }
    .hero-names .amp { font-size: 3.2rem; margin: 0 20px; }
    .hero-date { font-size: 1.3rem; }
    .countdown-number { font-size: 3rem; }
}
