/* ===================================
   Maris Stella Inn — Styles
   =================================== */

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

:root {
    --forest: #1A3A2A;
    --forest-light: #2A5A42;
    --forest-dark: #0F2419;
    --cream: #F5F2EB;
    --cream-light: #FAF8F4;
    --sand: #D4C9A8;
    --sand-light: #E8E0CC;
    --text-dark: #1A1A1A;
    --text-mid: #3A3A3A;
    --text-light: #6A6A6A;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---- Label ---- */
.label {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ---- Section Title ---- */
.section-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--forest);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 520px;
    line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn--dark {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}

.btn--dark:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
}

.btn--light {
    background: var(--cream);
    color: var(--forest);
    border-color: var(--cream);
}

.btn--light:hover {
    background: var(--white);
    border-color: var(--white);
}

.btn--outline-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(245, 242, 235, 0.5);
}

.btn--outline-light:hover {
    background: var(--cream);
    color: var(--forest);
    border-color: var(--cream);
}

.btn--lg {
    padding: 1.25rem 3rem;
    font-size: 0.9rem;
}

.btn--full {
    width: 100%;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 58, 42, 0.08);
    transition: all 0.4s var(--ease);
}

.site-header.scrolled {
    background: rgba(250, 248, 244, 0.97);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--forest);
    letter-spacing: 0.02em;
}

.logo-mark {
    font-size: 0.75rem;
    color: var(--sand);
    letter-spacing: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.main-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.3s var(--ease);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--forest);
    transition: width 0.4s var(--ease);
}

.main-nav a:hover {
    color: var(--forest);
}

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

.btn-nav {
    font-size: 0.75rem !important;
    padding: 0.6rem 1.5rem !important;
    background: var(--forest);
    color: var(--cream) !important;
    border-radius: 2px;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    transition: all 0.3s var(--ease) !important;
}

.btn-nav::after {
    display: none !important;
}

.btn-nav:hover {
    background: var(--forest-dark) !important;
    color: var(--cream) !important;
}

/* ---- Nav Toggle ---- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--forest);
    transition: all 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- Nav Overlay ---- */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream-light);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner {
    text-align: center;
}

.logo--mobile {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--forest);
    padding: 0.5rem;
}

.nav-overlay-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-overlay-list a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--forest);
    transition: opacity 0.3s;
}

.nav-overlay-list a:hover {
    opacity: 0.6;
}

.nav-overlay-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand-light);
}

.nav-overlay-cta a {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--forest-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 36, 25, 0.4) 0%,
        rgba(15, 36, 25, 0.55) 50%,
        rgba(15, 36, 25, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1.0;
    color: var(--cream);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(245, 242, 235, 0.75);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 242, 235, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245,242,235,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Intro ---- */
.intro {
    padding: 8rem 0;
    background: var(--cream-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text .section-title {
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.9;
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

/* ---- Rooms ---- */
.rooms {
    padding: 7rem 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-desc {
    margin: 0 auto;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.room-card {
    background: var(--cream-light);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 58, 42, 0.1);
}

.room-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.room-card-body {
    padding: 2rem;
}

.room-card-body h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.room-card-body p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.room-amenities {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.room-amenities li {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--sand-light);
    border-radius: 2px;
}

/* ---- Divider ---- */
.thin-divider {
    padding: 0;
}

.thin-line {
    width: 100%;
    height: 1px;
    background: var(--sand-light);
}

/* ---- Experience ---- */
.experience {
    padding: 7rem 0;
    background: var(--cream-light);
}

.experience-header {
    text-align: center;
    margin-bottom: 4rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.experience-item {
    padding: 2rem;
    border: 1px solid var(--sand-light);
    border-radius: 2px;
    transition: all 0.4s var(--ease);
}

.experience-item:hover {
    border-color: var(--forest);
    background: var(--cream);
}

.experience-item .exp-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--sand);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.experience-item h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.experience-item p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* ---- Photo Strip ---- */
.photo-strip {
    padding: 3rem 0;
    background: var(--forest-dark);
    overflow: hidden;
}

.photo-strip-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollStrip 40s linear infinite;
}

.photo-strip-item img {
    width: 400px;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.photo-strip-item img:hover {
    opacity: 1;
}

@keyframes scrollStrip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Why Us ---- */
.why-us {
    padding: 7rem 0;
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.why-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-mid);
}

.why-feature svg {
    color: var(--forest);
    flex-shrink: 0;
}

.why-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 2px;
}

/* ---- Location ---- */
.location {
    padding: 7rem 0;
    background: var(--cream-light);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.location-address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin: 1.5rem 0;
}

.location-address strong {
    color: var(--forest);
    font-weight: 500;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.location-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-mid);
}

.location-detail svg {
    color: var(--forest);
    flex-shrink: 0;
}

.location-detail a {
    color: var(--forest);
    transition: opacity 0.3s;
}

.location-detail a:hover {
    opacity: 0.7;
}

.location-map iframe {
    width: 100%;
    border-radius: 2px;
    filter: saturate(0.6) contrast(1.05);
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background: var(--forest-dark);
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content .label {
    color: var(--sand);
}

.cta-content .section-title {
    color: var(--cream);
    margin-bottom: 1.25rem;
}

.cta-content p {
    font-size: 1.05rem;
    color: rgba(245, 242, 235, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ---- Contact ---- */
.contact {
    padding: 7rem 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-detail a,
.contact-detail span {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.contact-detail a:hover {
    color: var(--forest);
}

/* ---- Form ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    border: 1px solid var(--sand-light);
    border-radius: 2px;
    padding: 0.85rem 1rem;
    transition: border-color 0.3s var(--ease);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--forest);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-success {
    text-align: center;
    font-size: 0.9rem;
    color: var(--forest);
    padding: 1rem;
    background: rgba(26, 58, 42, 0.06);
    border-radius: 2px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--forest-dark);
    color: var(--cream);
    padding: 4rem 0 2.5rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245, 242, 235, 0.1);
    margin-bottom: 2.5rem;
}

.footer-top .logo {
    color: var(--cream);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(245, 242, 235, 0.5);
    font-weight: 300;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(245, 242, 235, 0.4);
}

.footer-bottom a {
    color: rgba(245, 242, 235, 0.5);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--cream);
}

/* ---- Reveal Animation ---- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease-out);
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    .intro-grid,
    .why-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .intro-image {
        order: -1;
    }

    .intro-image img,
    .why-image img {
        height: 350px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .photo-strip-item img {
        width: 280px;
        height: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .location-map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .intro,
    .rooms,
    .experience,
    .why-us,
    .location,
    .contact {
        padding: 5rem 0;
    }

    .cta {
        padding: 5rem 0;
    }
}
