/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1 {
    font-size: clamp(1px, calc(4.5vw - 3.2px), 75px);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-style: normal;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
}

h3 {
    font-size: clamp(1px, 6.75vw, 105px);
    font-family: "Playfair Display", serif;
    font-style: normal;
    line-height: 1.1;
    font-weight: 370;
    letter-spacing: -0.015em;
    width: 100%;
    margin: 0.5rem 0 0 0;
}

p {
    font-size: clamp(1px, calc(1.49vw - 0.275px), 22px);
    margin-bottom: 1rem;
    font-family: "Raleway", sans-serif;
    font-weight: 450;
    line-height: 1.4;
}

li {
    font-size: clamp(1px, calc(1.49vw - 0.275px), 22px);
    font-family: "Raleway", sans-serif;
    font-weight: 450;
    padding: 0;
}

body {  
    color: #333;
    background-color: #FDF9F2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    width: 100%;
    /* z-index: 1000; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    padding: 0 clamp(1px, calc(4.05vw - 1px), 91px) 0 clamp(1px, calc(4.05vw - 1px), 91px);
}
.logo img {
    height: 6vw;
    width: auto;
    vertical-align: middle;
}
.nav {
    display: flex;
    align-items: center;
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-links {
    display: flex;
    align-items: center;
    width: 100%;
}
.header-placeholder {
    padding: 0 clamp(1px, calc(4.05vw - 1px), 91px) 0 clamp(1px, calc(4.05vw - 1px), 91px);
}
.header-placeholder-image {
    width: calc(6vw / 95.85 * 104.925); /* this is the width of the logo, calculated from the height and aspect ratio */
    height: 6vw;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}
nav a {
    color: #333;
    text-decoration: none;
}
nav a:hover,
nav a:focus {
    text-decoration: underline;
    text-underline-offset: 1px;
    text-decoration-thickness: 1px;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.page header,
.page section,
.page footer {
        padding-right: max(0px, calc((100vw - 1555px) * 0.5));
        padding-left: max(0px, calc((100vw - 1555px) * 0.5));
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0px;
    min-width: 0px;
    max-width: 99999px;
    max-height: 99999px;
    pointer-events: auto;
    margin: 0;
}

/* HERO SECTION */
.section1 {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
}
.section1-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 55%;
    padding: 0 8% 0 5vw; /* this should all probably be in vw */
}
.section1-text-h {
        width: 100%;
        height: 80%;
}
.section1-text-p {
        width: 100%;
        height: 20%;
}
.section1-video {
    display: flex;
    aspect-ratio: 4/5;
    width: 45%;
    height: 100%;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}
.section1-video video {
    height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
    display: block;
}
.section2 {
    display: flex;
    flex-direction: row;
    background-color: #E8EAE1;
}
.section2-image {
    display: flex;
    width: 50%;
    height: 100%;
    justify-content: center;
    align-items: stretch;
    aspect-ratio: 21/20;
    overflow: hidden;
}
.section2-text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 50%;
    height: 100%;
    padding: 0 5% 0 5%;
}
.section3 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    padding-top: 2%;
    padding-bottom: 2%;
}
.section3-title {
    display: flex;
    align-items: start;
    justify-content: start;
    width: 100%;
    height: 100%;
}
.section3-contents {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 2rem;
}
.section3-contents > div {
    flex: 1;                    /* each card takes equal width */
}
.section3-contents img {
    border-radius: 10px;                    /* rounded edges on images */
    aspect-ratio: 3/4;
}
.section4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: #2F5F48;
}
.section4-text {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    align-items: center;
    color: #E8EAE1;
    padding: 3vw 0 3vw 0; /*  needs to be more dynamic */
} 
.section4-text-h {
    width: fit-content;
} 
.section4-text-p {
    margin-right: calc(0.5 * (100% - 646px) + max(0px, (1740px - 100vw) * 0.185));  
    margin-left: calc(0.5 * (100% - 646px) + max(0px, (1740px - 100vw) * 0.185)); 
}

.section5 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    background-color: #E8EAE1;
}
.section5-contents {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    background-color: #E8EAE1;
}
.section5-image {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 25%;
    background-color: #E8EAE1;
}
.section5-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    width: 75%;
}
.section6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.return-button {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.8rem 1.8rem;
    background-color: #2F5F48;
    color: #E8EAE1;
    text-decoration: none;
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 500;                /* slightly bolder than normal text */
    font-size: 1.1rem;
    border-radius: 999px;              /* rounded ends */
    border: 2px solid #2F5F48;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
}
.return-button:hover,
.return-button:focus {
    text-decoration: underline;
    text-underline-offset: 1px;      /* controls distance from text */
    text-decoration-thickness: 1px;  /* thickness */
}
.section6 {
    padding: 2rem 0 4rem;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding-bottom: 1rem;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.footer-separator {
    width: 85vw;                    /* make this follow content width */
    margin: 3rem 0 3rem 0;
    height: 1px;                    
    border: none;                   /* remove default border */
    background-color: #000000;
}
.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-content: center;
    width: 100%;
}
.footer-content h2 {
    margin-bottom: 0rem;
}
.footer-content > div {
    text-align: left;
}
.footer-sign {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-self: flex-start;
    width: 55%;
    padding: 0 8% 0 5vw; /* this should all probably be in vw */
}
@media (max-width: 1024px) {
    h1 {
    font-size: clamp(1px, calc(7.37vw - 1.1px), 53px);
    margin: min(40px, 5vw) 0 min(20px, 2.5vw) 0;
    }
    h2 {
    font-size: clamp(1px, calc(5vw - 1px), 42px);
    margin: min(20px, 2.5vw) 0 min(20px, 2.5vw) 0;
    }
    h3 {
    font-size: clamp(1px, 7.5vw, 60px);
    margin: min(40px, 5vw) 0 min(20px, 2.5vw) 0;
    }
    p {
    font-size: clamp(1px, calc(4.38vw - 0.8px), 32px);
    }
    li {
    font-size: clamp(1px, calc(4vw - 1.4px), 32px);
    text-align: center;
    }
    .page header,
    .page footer {
        padding: 0 5vw 0 5vw;
    }
    .page section {
        padding: 5vw 5vw 5vw 5vw;
    }
    .logo {
    padding: 1vw 0 0 0;
    }
    .logo img {
        height: 18vw;
    }
    .header-placeholder {
        padding: 0 0 0 0;   
    }
    .header-placeholder-image {
        width: 0px;
    }
    .section1 {
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;
        min-height: unset;
        max-height: unset;
    }
    .section1-text {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 0 0 0;
    }
    .section1-text-h {
        width: 100%;
        height: 30%;
    }
    .section1-video {
    aspect-ratio: 1.14/1;
    width: 100%;
    }
    .section2 {
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;
        min-height: unset;
        max-height: unset;
    }
    .section2-text {
        padding: 0 0 0 0;
    }
    .section2 > div {
        width: 100%;
    }
    .section3-contents {
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;
        min-height: unset;
        max-height: unset;
    }
    .section3-contents > div {
        width: 100%;
        padding: 3vw 3vw 3vw 3vw;
    }
    .section3-contents img {
        width: 95%;
        border-radius: 5px;                    /* rounded edges on images */
        aspect-ratio: 1.14/1;
    }
    .section4-text-p {
        margin-right: calc(24% - 28px);  
        margin-left: calc(24% - 28px); 
    }
    .footer {
        flex-direction: column;
        align-items: center;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer-content > div {
        text-align: center;
    }
    .footer-sign {
        justify-content: center;
        align-self: center;
        width: 100%;
    }
}

/* div { outline: 2px dashed lime !important; }
section { outline: 2px dashed rgb(255, 0, 166) !important; }

nav { outline: 2px solid rgb(105, 187, 255) !important; }
header { outline: 2px dashed rgb(255, 0, 166) !important; }
body { outline: 2px solid rgb(0, 0, 0) !important; }
a { outline: 2px dashed rgb(105, 187, 255) !important; } */

/* ────────────────────────────────────────────────
   Mobile Menu
───────────────────────────────────────────────── */

.nav-toggle {
    display: none;                    /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1100;
}

.nav-toggle span {
    background: #333;
    height: 3px;
    width: 28px;
    position: absolute;
    left: 6px;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* "X" animation when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #FDF9F2;               /* match body bg or use #2F5F48 for contrast */
    color: #333;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 3.5rem;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-links {
    list-style: none;
    text-align: center;
}

.mobile-menu-links li {
    margin: 2.2rem 0;
}

.mobile-menu-links a {
    color: #333;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    text-decoration: none;
    transition: color 0.25s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a:focus {
    color: #2F5F48;
}

/* Hide normal nav links on mobile */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .header-placeholder {
        display: none;   /* optional - removes empty space */
    }
}