/* Font declarations */
@font-face {
    font-family: 'URW Chancery L';
    src: url('assets/fonts/URWChanceryL-MediItal.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #5d4e37;
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

/* Container and layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Typography */
h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

h1 {
    font-size: 3.45rem;
    margin: 0;
    color: #8b7355;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.4;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8b7355;
    text-align: center;
    position: relative;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 4.5rem 0 3.5rem 0;
    margin-bottom: 0.5rem;
    position: relative;
}

.couple-names {
    font-family: 'URW Chancery L', 'Dancing Script', cursive;
    font-weight: normal;
    font-style: italic;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.wedding-details {
    margin: 0.75rem 0 1.25rem 0;
}

.wedding-date, .wedding-venue {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #8b7355;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.venue-name, .venue-location {
    white-space: nowrap;
}

/* Ornaments */
.ornament-top {
    font-size: 1.5rem;
    color: #d4af37;
    margin: 0 0 0.5rem 0;
    opacity: 0.8;
    line-height: 1;
}

.ornament-bottom {
    font-size: 1.5rem;
    color: #d4af37;
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    line-height: 1;
}

.section-ornament {
    text-align: center;
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.section-separator {
    position: relative;
    width: 60%;
    height: 1px;
    margin: 1.5rem auto;
    background: linear-gradient(to right, transparent, #d4af37 20%, #d4af37 80%, transparent);
}

.section-separator::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    font-size: 0.8rem;
    background: #faf8f3;
    padding: 0 0.5rem;
}

.section-separator-small {
    width: 30%;
    margin: 1rem auto;
}

.formal-attire {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #8b7355;
    font-style: italic;
    margin: 0.5rem 0;
    font-weight: 400;
}

.ornament-footer {
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Sections */
.section {
    padding: 1.25rem 0 2rem 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

@media (hover: hover) {
    .section:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
}


.section-placeholder {
    text-align: center;
    color: #8b7355;
    font-style: italic;
    opacity: 0.8;
    padding: 0 2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #8b7355;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 2rem 0 1rem 0;
    }
    
    .section {
        margin-bottom: 1rem;
        padding: 2rem 1rem;
    }
    
    .section-placeholder {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.25rem;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section {
        border-radius: 15px;
        padding: 1.5rem 0.75rem;
    }
    
    .ornament-top, .ornament-bottom {
        font-size: 1.5rem;
    }
    
    .section-ornament {
        font-size: 1.2rem;
    }
    
    .wedding-venue .venue-name,
    .wedding-venue .venue-location {
        display: block;
    }
}

/* Desktop margins */
@media (min-width: 1200px) {
    .container {
        padding: 0 4rem;
    }
}

/* Animation for smooth entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    .section {
        animation: fadeInUp 0.6s ease forwards;
    }
}

@media (max-width: 768px) {
    .section {
        opacity: 1;
        transform: none;
    }
}

/* Stagger animation delays */
@media (min-width: 769px) {
    .section:nth-child(1) { animation-delay: 0.1s; }
    .section:nth-child(2) { animation-delay: 0.2s; }
    .section:nth-child(3) { animation-delay: 0.3s; }
    .section:nth-child(4) { animation-delay: 0.4s; }
    .section:nth-child(5) { animation-delay: 0.5s; }
    .section:nth-child(6) { animation-delay: 0.6s; }
    .section:nth-child(7) { animation-delay: 0.7s; }
    .section:nth-child(8) { animation-delay: 0.8s; }
    .section:nth-child(9) { animation-delay: 0.9s; }
}

/* Event details styling */
.event-details {
    font-size: 0.75em;
    line-height: 1.8;
}

/* Registry link styling */
.registry-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: #8b7355;
    text-decoration: none;
    border: 1px solid #d4af37;
    border-radius: 3px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.registry-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-color: #b8860b;
}

/* Venue link styling */
.venue-link {
    color: #d4af37;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    transition: all 0.3s ease;
}

.venue-link strong {
    color: inherit;
}

.venue-link:hover {
    color: #b8860b;
    text-decoration-style: solid;
}

/* Venue info styling */
.venue-info {
    text-align: center;
    font-size: 0.9rem;
    color: #8b7355;
    margin: 0.5rem 0 1.5rem 0;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.venue-info-name, .venue-info-address {
    white-space: nowrap;
}

.venue-info span {
    display: flex;
    align-items: center;
}

.venue-info-location {
    display: flex;
    align-items: center;
}

.venue-icon {
    margin: 0 0.5rem;
    color: #d4af37;
    flex-shrink: 0;
}

.venue-separator {
    margin: 0 1rem;
    color: #d4af37;
}

.venue-phone {
    margin-left: 0;
}

/* Details button */
.details-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem auto;
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: #8b7355;
    border: 1px solid #d4af37;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.details-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-color: #b8860b;
}

.details-icon {
    transition: transform 0.3s ease;
}

.details-button.expanded .details-icon {
    transform: rotate(180deg);
}

/* Expandable content */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.expandable-content.expanded {
    max-height: 2000px;
    opacity: 1;
}

/* Lodging content */
.lodging-content {
    padding: 0 2rem;
    margin: 1.5rem 0;
    text-align: left;
}

.lodging-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #5d4e37;
}

.lodging-content p:last-child {
    margin-bottom: 0;
}

.lodging-content strong {
    color: #8b7355;
    font-weight: 600;
}

/* Venue images grid */
.venue-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 2rem;
}

.venue-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .venue-image:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive venue images */
@media (max-width: 768px) {
    .venue-images {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .venue-image {
        height: 150px;
    }
    
    .venue-info > span {
        flex-direction: column;
        text-align: center;
    }
    
    .venue-info-name {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .venue-info-location {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .venue-icon {
        display: inline-block;
        margin: 0 0.25rem;
    }
    
    .venue-info-address {
        display: inline;
    }
}

@media (max-width: 480px) {
    .venue-images {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
    
    .venue-image {
        height: 180px;
    }
}

/* Photo carousel */
.photo-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1.25rem 0 2rem 0;
    overflow: hidden;
}

.photo-carousel {
    overflow: hidden;
    margin: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1rem;
    align-items: flex-start;
}

.carousel-image {
    width: calc(50% - 0.5rem);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d4af37;
    color: #8b7355;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
}

@media (hover: hover) {
    .photo-carousel-container:hover .carousel-btn {
        opacity: 1;
    }
}

@media (hover: none) {
    .carousel-btn {
        opacity: 1 !important;
    }
}

.carousel-btn:hover {
    background: #faf8f3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn-left {
    left: 0;
}

.carousel-btn-right {
    right: 0;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .photo-carousel-container {
        margin: 1rem auto;
        padding: 1rem 0 1.5rem 0;
    }
    
    .carousel-image {
        width: calc(50% - 0.375rem);
        aspect-ratio: 4 / 5;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn-left {
        left: 0;
    }
    
    .carousel-btn-right {
        right: 0;
    }
}

@media (max-width: 480px) {
    .photo-carousel-container {
        margin: 1rem auto;
        padding: 0.75rem 0 1.5rem 0;
        overflow: hidden;
    }
    
    .photo-carousel {
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
    
    .carousel-track {
        padding: 0 2.5rem;
    }
    
    .carousel-image {
        width: calc(100vw - 5rem);
        aspect-ratio: 4 / 5;
        flex-shrink: 0;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-btn-left {
        left: 0.5rem;
    }
    
    .carousel-btn-right {
        right: 0.5rem;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Travel content */
.travel-content {
    padding: 0 2rem;
    margin: 1rem 0;
    text-align: left;
}

.travel-content p {
    line-height: 1.8;
    color: #5d4e37;
}

/* Activities content */
.activities-content {
    padding: 0 2rem;
    margin: 1rem 0;
}

.activities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.activities-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #5d4e37;
}

.activities-list li:before {
    content: "❦";
    position: absolute;
    left: 0;
    color: #d4af37;
    font-size: 0.8rem;
    top: 0.2rem;
}

.activities-list li:last-child {
    margin-bottom: 0;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(200, 195, 185, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    html, body {
        position: relative;
        height: 100%;
    }
    
    .container {
        transform: translateZ(0);
    }
}

