/* ==========================================================================
   Global Resets & Typography Base
   ========================================================================== */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 177.9vh;
    font-family: 'Optima', 'Libertinus Sans', 'Segoe UI', 'Candara', 'Calibri', 'Geneva', sans-serif;
    font-size: clamp(14px, 1.27vw, 20px);
    color: #eeede7;
    margin: 0 auto;
    padding: 0;
    background-color: #000000;
}

article {
    width: 100%;
    margin: 0 auto;
}

section {
    min-height: 100vh;
}

/* Base Headings */
h1, h2 {
    text-transform: uppercase;
    font-family: 'Sharis', 'Bodoni Moda', 'Bodoni MT', 'Didot', serif;
    font-weight: 300;
}

/* Typography Helpers */
.fontSize15 {font-size: 1.154rem;}
.fontSize17 {font-size: 1.308rem;}
.fontSize20 {font-size: 1.538rem;}
.fontSize25 {font-size: 1.923rem;}
.fontSize35 {font-size: 2.692rem;}
.fontSize38 {font-size: 2.923rem;}
.fontSize45 {font-size: 3.461rem;}
.fontSize50 {font-size: 3.846rem;}
.fontSize70 {font-size: 5.385rem;}
.fontSize88 {font-size: 6.769rem;}
.fontSize100 {font-size: 7.692rem;}

blockquote {
    text-transform: uppercase;
    margin: 0;
}
.upperCase  {text-transform: uppercase;}

/* Hyperlinks */
a:link {
    color: #eeede7;
    text-decoration: none;
}
a:visited {
    color: #cccdc7;
    text-decoration: none;
}
a:hover, a:active {
    color: #aaada7;
    text-decoration: none;
}

.redA {
    color: #b12b24;
}
.yellowA {
    color: #fbdc6a;
}

/* ==========================================================================
   Header & Navigation Component Styles
   ========================================================================== */

/* Header Wrapper */
.siteHeader {
    position: relative;
    width: 100%;
    background-color: #000000;
    border-bottom: 1px solid #222222;
}

.headerContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 2.4vw;
    margin: 0 auto;
}

/* Branding */
.siteLogo {
    font-family: 'Sharis', 'Bodoni Moda', serif;
    font-size: 1.5rem;
    color: #eeede7;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Desktop Navigation (Horizontal Row) */
.mainNav {
    margin-left: auto;
    margin-right: 2rem;
}

.mainNav .navList {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainNav a {
    color: #eeede7;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.mainNav a:hover {
    color: #aaada7;
}

.mainNav.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #111111;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: block !important;
}

.mainNav.active .navList {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.mainNav.active a {
    font-size: 1.25rem;
}

/* Hamburger Toggle Button (Hidden on Desktop) */
.navToggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1005;
    transition: transform 0.2s ease;
}

/* Floating Sticky Class for Hamburger Menu */
.navToggle.sticky-fixed {
    position: fixed;
    top: 1.25rem;
    right: 2.4vw;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px;
}

.hamburgerLine {
    width: 100%;
    height: 2px;
    background-color: #eeede7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to "X" Animation States */
.navToggle.active .hamburgerLine:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navToggle.active .hamburgerLine:nth-child(2) {
    opacity: 0;
}

.navToggle.active .hamburgerLine:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Responsive Overlay (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {

    .mainNav:not(.active) {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #111111;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Hide desktop navbar list on mobile */
    .mainNav:not(.active) .navList {
        display: none;
    }

    /* Active Mobile Navigation State */
    .mainNav.active {
        right: 0;
    }

    .mainNav .navList {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mainNav a {
        font-size: 1.25rem;
    }
}


/* ==========================================================================
   Footer Component Styles
   ========================================================================== */

/* Base Footer Container */
.siteFooter {
    width: 100%;
    background-color: #000000;
}

.siteFooter .footerContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 7vh;
}

/* Headings */
.siteFooter .footerHeading {
    font-size: 3.077rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Information Layout */
.siteFooter .footerInfo {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.siteFooter .footerInfo p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.siteFooter .footerDetailRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    height: 2rem;
    margin: 0;
    padding: 0;
}

.siteFooter .iconItem {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

/* Form & RSVP Button */
.siteFooter .footerForm {
    margin: 0;
    padding: 0;
}

.siteFooter .footerButton {
    width: 26.0vh;
    height: 9.0vh;
    color: #000000;
    background-color: #eeede7;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.siteFooter .footerButton:hover {
    background-color: #aaada7;
}

/* ==========================================================================
   Footer Component Styles - Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .siteFooter {
        width: 100%;
        padding: 0;
    }

    .siteFooter .footerContainer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2.4vw;
        width: 100%;
        padding: 1.2vw 2.4vw;
    }

    /* Footer Heading */
    .siteFooter .footerHeading {
        width: 100%;
        font-size: 3.077rem;
        line-height: 1;
        margin: 0;
        padding: 0;
    }

    /* Information Group */
    .siteFooter .footerInfo {
        display: flex;
        flex-direction: column;
        gap: 1.2vw;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .siteFooter .footerInfo p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
    }

    .siteFooter .footerDetailRow {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
    }

    .siteFooter .footerDetailRow p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        display: inline-block;
    }

    .siteFooter .iconItem {
        width: 1.5rem !important;
        height: 1.5rem !important;
        min-width: 1.5rem !important;
        min-height: 1.5rem !important;
        max-width: 1.5rem !important;
        max-height: 1.5rem !important;
        object-fit: contain;
        flex-shrink: 0;
    }

    /* Form & RSVP Button Full Width on Mobile */
    .siteFooter .footerForm {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .siteFooter .footerButton {
        width: 100% !important; /* Full width block style */
        height: 7vh;
        color: #000000;
        background-color: #eeede7;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .splitLayout.ratio-65-35,
    .splitLayout.ratio-40-60,
    .splitLayout.split-3col {
        grid-template-columns: 1fr;
    }
    
    .figureBlock-title {
        width: 100%;
        padding-top: 5vh;
    }
}

/* ==========================================================================
   Journal Page
   ========================================================================== */
.journalHero {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
}
.journalHero > .figureBlock {
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.journalHero > .figureBlock > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.journalHero > .messageBlock.splitColumn {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 6vw;
    top: 0;
    left: 0;
    z-index: 2;
    background-color: transparent;
}

.journalContent {
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 1.2rem 0;
    padding: 0 6vw;

}
.journalContent.splitLayout {
    gap: 5vw;
}
.journalContent.splitLayout > .messageBlock {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 0;
}
.journalContent.splitLayout > .messageBlock > * {
    width: 100%;
    height: 100%;
}
.journalContent > .messageBlock > p {
    font-weight: 200;
}
.journalContent.splitLayout > .figureBlock {
    width: 100%;
    height: auto;
    align-self: center;
    padding: 0;
}
.journalContent.splitLayout > .figureBlock > blockquote {
    width: 100%;
    height: 100%;
    object-position: center;
    text-align: right;
}
.journalContent.splitLayout.reverse > .figureBlock > blockquote {
    text-align: left;
}