/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-900: #064E3B;
    --emerald-800: #065F46;
    --emerald-700: #0B5D3F;
    --emerald-600: #047857;
    --emerald-500: #10B981;
    --cream-50: #FAF8F4;
    --cream-100: #F5F0E8;
    --cream-200: #EDE6D6;
    --cream-300: #E5DCC8;
    --text-dark: #1A1A1A;
    --text-mid: #3D3D3D;
    --text-light: #6B6B6B;
    --text-inverse: #F5F0E8;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ─── Navigation ───────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    border-bottom-color: var(--cream-200);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--emerald-700);
    letter-spacing: 0.02em;
    border: 1px solid var(--emerald-700);
    padding: 0.2em 0.55em;
    line-height: 1.4;
}

.nav-logo-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-700);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--emerald-700);
}

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

.nav-link--cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--emerald-700);
    color: var(--emerald-700);
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 0;
    position: relative;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--emerald-700);
}

.hero-title {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.08;
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-title-line {
    display: block;
}

.hero-title-line--accent {
    color: var(--emerald-700);
}

.hero-title-line--serif {
    font-style: italic;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(11, 93, 63, 0.15);
    pointer-events: none;
}

.hero-accent-block {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--emerald-700);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accent-block-number {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-200);
    font-weight: 400;
}

.accent-block-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--cream-50);
    font-style: italic;
}

.hero-scroll-line {
    position: absolute;
    bottom: 0;
    left: 2rem;
    width: 1px;
    height: 80px;
    background: var(--cream-300);
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--emerald-700);
    animation: scrollLine 2.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -40%; }
    100% { top: 100%; }
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.btn--primary {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.btn--primary:hover {
    background: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6, 95, 70, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--cream-300);
}

.btn--ghost:hover {
    border-color: var(--emerald-700);
    color: var(--emerald-700);
}

.btn--outline {
    background: transparent;
    color: var(--emerald-700);
    border: 1px solid var(--emerald-700);
}

.btn--outline:hover {
    background: var(--emerald-700);
    color: var(--cream-50);
}

.btn--light {
    background: var(--cream-50);
    color: var(--emerald-700);
    border: 1px solid var(--cream-50);
}

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

/* ─── Divider ──────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--emerald-700);
    opacity: 0.5;
}

/* ─── Section Shared ───────────────────────────────────── */
.section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.title-accent {
    color: var(--emerald-700);
    font-style: italic;
}

.section-lead {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 600px;
    margin-bottom: 1.25rem;
}

.section-body {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 1rem;
}

.label-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--emerald-700);
    margin-bottom: 0.75rem;
}

.label-text {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
}

/* ─── Heritage ─────────────────────────────────────────── */
.heritage {
    background: var(--cream-50);
}

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

.heritage-content {
    padding-top: 0.5rem;
}

.heritage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--cream-300);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--emerald-700);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-light);
    line-height: 1.5;
}

/* ─── Visit ────────────────────────────────────────────── */
.visit {
    background: var(--cream-100);
}

.visit-header {
    margin-bottom: 4rem;
}

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

.visit-card {
    background: var(--cream-50);
    padding: 2.25rem 1.75rem;
    border: 1px solid var(--cream-200);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.visit-card:hover {
    border-color: var(--emerald-700);
    transform: translateY(-2px);
}

.visit-card--feature {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: 1.5rem;
}

.visit-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.visit-card-text {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-mid);
}

.visit-card-text a {
    color: var(--emerald-700);
    border-bottom: 1px solid var(--cream-300);
    transition: border-color 0.3s ease;
}

.visit-card-text a:hover {
    border-color: var(--emerald-700);
}

/* ─── Community ────────────────────────────────────────── */
.community {
    background: var(--cream-50);
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.community-images {
    position: relative;
}

.community-img {
    overflow: hidden;
}

.community-img--main {
    margin-bottom: 1.5rem;
}

.community-img--main img {
    aspect-ratio: 56/70;
    object-fit: cover;
    width: 100%;
}

.community-img--secondary {
    position: absolute;
    bottom: 0;
    right: -2rem;
    border: 4px solid var(--cream-50);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.community-img--secondary img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
}

.community-content {
    padding-top: 1rem;
}

/* ─── Location ─────────────────────────────────────────── */
.location {
    background: var(--cream-100);
}

.location-header {
    margin-bottom: 4rem;
}

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

.location-map {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.location-map a {
    display: block;
    position: relative;
}

.location-map img {
    width: 100%;
    aspect-ratio: 72/42;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.location-map:hover img {
    transform: scale(1.02);
}

.map-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cream-50);
    padding: 0.6rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-700);
    border: 1px solid var(--cream-200);
    transition: background 0.3s ease;
}

.location-map:hover .map-overlay {
    background: var(--emerald-700);
    color: var(--cream-50);
    border-color: var(--emerald-700);
}

.location-info {
    padding-top: 0.5rem;
}

.location-info-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.location-address {
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cream-300);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.location-detail-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.location-detail a {
    color: var(--emerald-700);
    font-size: 0.95rem;
    font-weight: 300;
    border-bottom: 1px solid var(--cream-300);
    transition: border-color 0.3s ease;
}

.location-detail a:hover {
    border-color: var(--emerald-700);
}

.location-detail span:last-child {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-mid);
}

/* ─── CTA ──────────────────────────────────────────────── */
.cta {
    background: var(--emerald-900);
    padding: 7rem 0;
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cream-200);
    margin-bottom: 1.25rem;
}

.cta-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.12;
    color: var(--cream-50);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.cta-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--cream-200);
    margin-bottom: 2.5rem;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.cta-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--cream-100);
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    padding-bottom: 0.25rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.cta-contact-item:hover {
    border-color: var(--cream-100);
    color: var(--cream-50);
}

.cta-contact-item svg {
    color: var(--emerald-500);
}

.cta-contact-item--address {
    font-size: 0.88rem;
    color: var(--cream-300);
    border: none;
    padding: 0;
}

.cta-contact-item--address:hover {
    color: var(--cream-50);
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
    background: var(--emerald-900);
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    padding: 3.5rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cream-200);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--cream-300);
    letter-spacing: 0.04em;
    max-width: 200px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-300);
    transition: color 0.3s ease;
}

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

.footer-contact {
    text-align: right;
}

.footer-contact a {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--cream-100);
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    transition: border-color 0.3s ease;
}

.footer-contact a:hover {
    border-color: var(--cream-100);
}

.footer-contact p {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--cream-300);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--cream-300);
    letter-spacing: 0.04em;
    opacity: 0.7;
}

/* ─── Mobile Menu ──────────────────────────────────────── */
.nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream-50);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.nav-menu.open.active {
    opacity: 1;
    pointer-events: all;
}

.nav-menu.open .nav-link {
    font-size: 1rem;
    letter-spacing: 0.15em;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }

    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .visit-card--feature {
        grid-column: span 2;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cream-50);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
    }

    .nav-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 3rem 2rem 4rem;
        gap: 3rem;
    }

    .hero-right {
        order: -1;
    }

    .hero-image-frame img {
        aspect-ratio: 4/3;
    }

    .hero-accent-block {
        bottom: -1rem;
        left: -0.5rem;
        padding: 1rem 1.5rem;
    }

    .hero-scroll-line {
        display: none;
    }

    .section {
        padding: 5rem 0;
    }

    .heritage-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .visit-card--feature {
        grid-column: span 1;
    }

    .community-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .community-img--secondary {
        right: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-column: span 1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .footer-tagline {
        max-width: none;
    }
}

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

    .nav-inner {
        padding: 0 1.25rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

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

    .btn {
        justify-content: center;
        width: 100%;
    }
}

/* ─── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
