/* ============================================
   GLOBAL STYLES
   Used by every page on the site
   ============================================ */

/* === CSS Variables === */
:root {
    --cream: #F1DDC4;
    --rust: #75352D;
    --dark-burgundy: #3A1213;
    --soft-blue: #92A4D2;
    --text-primary: #3A1213;
    --text-secondary: #75352D;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--cream);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    color: var(--dark-burgundy);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--soft-blue);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-burgundy);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* === Navigation === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-burgundy);
    color: white;
    padding: 1rem 3rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* === Main Content Area === */
main {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 88px);
    margin-top: 70px;
}

/* === Footer === */
footer {
    background-color: var(--dark-burgundy);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 0rem;
}

footer p {
    margin-bottom: 0.5rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade-in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        padding: 1.5rem 1rem;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        right: -100%;
        flex-direction: column;
        background-color: var(--dark-burgundy);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        text-align: left;
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    main {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }
}
