@import "assets/styles/variables.css";

/* ===========================
   Reset and Base Styles
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* ===========================
   Typography
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #8b7355;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c9a876;
}

/* ===========================
   Container
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header & Navigation
   =========================== */

.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: #8b7355;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8b7355;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c9a876;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   Countdown Section (moved to countdown.css)
   =========================== */

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #8b7355;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Sections
   =========================== */

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: 0.07em;
}

/* Details Section */
.details {
    background-color: #fff;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: linear-gradient(135deg, #f9f5f1 0%, #f5ebe5 100%);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #8b7355;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-info {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* Schedule Section */
.schedule {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c4 100%);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #c9a876;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 3rem;
    text-align: left;
}

.timeline-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b7355;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0;
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }
}

/* RSVP Section */
.rsvp {
    background-color: #fff;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #d4c4b0;
    border-radius: 4px;
    font-family: 'Georgia', 'Garamond', serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    padding: 1rem 2rem;
    background-color: #8b7355;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Georgia', 'Garamond', serif;
}

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

.btn-submit:active {
    transform: translateY(0);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 80px;
}

.footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 60px 20px;
        min-height: 300px;
    }

    section {
        padding: 60px 0;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .details-grid {
        gap: 1rem;
    }

    .detail-card {
        padding: 1.5rem;
    }
}