/* Custom Properties */
:root {
    /* Colors */
    --clr-primary: #F5F2EB;
    /* Antique Cream/Linen */
    --clr-primary-dark: #E6E1D6;
    --clr-secondary: #1D2A3B;
    /* Deep Atlantic Blue */
    --clr-secondary-light: #2c3e50;
    --clr-accent: #C5A880;
    /* Weathered Brass */
    --clr-accent-dark: #8A6B4E;
    /* Warm Walnut */
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    --clr-white: #FFFFFF;

    /* Typography */
    --ff-heading: 'Playfair Display', serif;
    --ff-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-primary);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

::selection {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-heading);
    color: var(--clr-secondary);
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 8rem 0;
}

.text-center {
    text-align: center;
}

.bg-alt {
    background-color: var(--clr-white);
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mt-4 {
    margin-top: 2rem;
}

/* Typography Utilities */
.section-title {
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--clr-text-light);
    font-family: var(--ff-heading);
    font-style: italic;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    font-family: var(--ff-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--clr-secondary);
    color: var(--clr-primary);
}

.btn-primary:hover {
    background-color: var(--clr-accent-dark);
    color: var(--clr-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(29, 42, 59, 0.2);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--clr-white);
    padding: 1rem 0;
}



.nav-container {
    width: 95%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    max-width: 100%;
    /* Prevent stretching beyond viewport */
}

/* Nav Left (Menu) */
.nav-left {
    display: flex;
    justify-content: flex-start;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: var(--clr-secondary);
    transition: opacity 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.hamburger {
    position: relative;
    width: 25px;
    height: 1px;
    background-color: var(--clr-secondary);
    display: inline-block;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--clr-secondary);
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.menu-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 1.5rem);
    /* Below navbar (+ padding) */
    left: 0;
    background-color: var(--clr-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    flex-direction: column;
    min-width: 250px;
    z-index: 999;
}

.dropdown-menu.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    padding: 1.2rem 2rem;
    color: var(--clr-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--clr-primary);
    color: var(--clr-accent-dark);
}

/* Center Logo (Arc) */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    width: 100%;
    min-width: 0;
    /* allows grid item to shrink */
    max-width: 100%;
}

.logo-svg {
    width: 100%;
    max-width: 480px;
    /* Slightly wider to allow text to spread */
    height: auto;
}

.logo-sub {
    font-family: var(--ff-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    margin-top: 6px;
}

.logo-est {
    font-family: var(--ff-body);
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    margin-top: -6px;
}

/* Nav Right (Reserve) */
.nav-right {
    display: flex;
    justify-content: flex-end;
}

.cta-nav {
    border: 1px solid var(--clr-secondary);
    padding: 0.6rem 1.8rem;
    border-radius: 2px;
    color: var(--clr-secondary);
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 500;
    text-decoration: none;
}

.cta-nav:hover {
    background-color: var(--clr-secondary);
    color: var(--clr-white) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    /* Push to bottom */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 15vh;
    /* Keep it nicely above the bottom edge */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    will-change: transform;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(29, 42, 59, 0.45) 0%, rgba(29, 42, 59, 0.2) 20%, rgba(29, 42, 59, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-btn {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    padding: 1.2rem 3.5rem;
    letter-spacing: 3px;
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

.hero-btn:hover {
    background-color: var(--clr-accent-dark);
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Intro Section */
.grid-2 {
    display: grid;
    grid-template-columns: 10fr 12fr;
    gap: 5rem;
    align-items: center;
}

.intro-image-wrapper {
    position: relative;
}

.intro-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--clr-accent);
    z-index: 0;
}

.intro-image-wrapper img {
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-height: 650px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.intro-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.intro-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: var(--clr-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.5px;
    opacity: 0.4;
}

.timeline-item {
    padding: 50px 0;
    position: relative;
    background-color: inherit;
    width: 50%;
    display: flex;
    flex-direction: column;
    padding-right: 60px;
}

.timeline-item.reverse {
    left: 50%;
    padding-right: 0;
    padding-left: 60px;
}

.timeline-img {
    margin-bottom: 2rem;
    border-radius: 2px;
    overflow: hidden;
    height: 350px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.parallax-img {
    width: 100%;
    height: 125%;
    object-fit: cover;
    transform: translateY(-10%);
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(29, 42, 59, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.bento-item:hover img {
    transform: scale(1.08);
}

.bento-item:hover .bento-overlay {
    opacity: 1;
}

.bento-overlay h4 {
    color: var(--clr-white);
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 1px;
}

.bento-item:hover .bento-overlay h4 {
    transform: translateY(0);
}

.main-item {
    grid-column: span 2;
    grid-row: span 2;
}

/* Stay Section */
.stay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 0;
    color: var(--clr-white);
}

.stay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.stay-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 42, 59, 0.85);
    /* Deep Atlantic Blue Overlay */
}

.stay h2 {
    color: var(--clr-primary);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.stay p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(245, 242, 235, 0.9);
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--clr-accent);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-logo {
    font-family: var(--ff-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--clr-accent);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-up {
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.img-reveal {
    position: relative;
    overflow: hidden;
}

.img-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-primary);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.img-reveal.visible::after {
    transform: scaleX(0);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .stay h2 {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item.reverse {
        left: 0;
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .main-item {
        grid-column: span 2;
        grid-row: span 1;
        height: 400px;
    }

    .bento-item {
        height: 300px;
    }

    .nav-container {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.5rem;
    }

    .logo-svg {
        max-width: 100%;
        width: 320px;
    }

    .menu-text {
        display: none;
    }

    .logo-sub {
        font-size: 0.5rem;
        margin-top: 6px;
    }

    .logo-est {
        font-size: 0.45rem;
        margin-top: -4px;
    }

    .cta-nav {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .main-item {
        grid-column: span 1;
    }

    .logo-svg {
        max-width: 250px;
        width: 70vw;
    }

    .logo-sub {
        font-size: 0.45rem;
        margin-top: 6px;
    }

    .logo-est {
        font-size: 0.4rem;
        margin-top: -2px;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    .btn {
        padding: 1rem 2rem;
        width: 100%;
    }
}

/* Adjustments for Hero Contrast on Desktop */
@media screen and (min-width: 1025px) {
    .hero-bg {
        background-position: center top;
        transform: scale(1.05);
        /* Return to normal scale */
    }


}