/* ========================================
   AIRY HALL PLANTATION MAIN HOUSE
   Bold Editorial · Plum & Amber
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-plum-50:  #faf5f6;
    --color-plum-100: #f3e8eb;
    --color-plum-200: #e8cdd5;
    --color-plum-300: #d4a3b7;
    --color-plum-400: #b87491;
    --color-plum-500: #9b506e;
    --color-plum-600: #7b2d3b;
    --color-plum-700: #632430;
    --color-plum-800: #501d27;
    --color-plum-900: #43181f;
    --color-plum-950: #250c10;

    --color-amber-50:  #fffbf0;
    --color-amber-100: #fff4d6;
    --color-amber-200: #ffe9a8;
    --color-amber-300: #ffd66b;
    --color-amber-400: #ffc233;
    --color-amber-500: #f5a623;
    --color-amber-600: #d4880e;
    --color-amber-700: #a8670a;
    --color-amber-800: #825009;
    --color-amber-900: #6a410a;

    --color-dark:    #1a1416;
    --color-dark-rgb: 26, 20, 22;
    --color-cream:   #faf8f6;
    --color-warm-gray: #6b6468;
    --color-light-text: #3d3538;
    --color-light-muted: #8a8286;

    --font-serif:    'Cormorant Garamond', 'Georgia', serif;
    --font-sans:     'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--color-plum-700);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: 0.875rem;
    font-weight: 500;
}
.skip-link:focus {
    top: var(--space-sm);
}

/* --- Typography --- */
.section-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-amber-700);
    margin-bottom: var(--space-sm);
}

.section-eyebrow--light {
    color: var(--color-amber-300);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

.section-title--light {
    color: #fff;
}

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

.section-title__icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: var(--space-xs);
    color: var(--color-plum-500);
    opacity: 0.5;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-warm-gray);
    max-width: 600px;
}

.text-amber {
    color: var(--color-amber-600);
}

.text-amber-light {
    color: var(--color-amber-300);
}

.divider {
    width: 64px;
    height: 2px;
    background: var(--color-amber-500);
    margin-bottom: var(--space-md);
}

.divider--left {
    margin-left: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-plum-600);
    color: #fff;
    border: 2px solid var(--color-plum-600);
}
.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-plum-700);
    border-color: var(--color-plum-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 0.875rem;
}

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(26, 20, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-amber-400);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-amber-400);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--color-amber-600);
    color: #fff !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-left: var(--space-sm);
}
.nav-link--cta::after {
    display: none;
}
.nav-link--cta:hover {
    background: var(--color-amber-700);
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 110;
}

.hamburger {
    position: relative;
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    transition: all var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-plum-950);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 20, 22, 0.55) 0%,
        rgba(37, 12, 16, 0.7) 50%,
        rgba(26, 20, 22, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: var(--space-lg) var(--space-md);
    color: #fff;
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-amber-400);
    margin-bottom: var(--space-md);
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 194, 51, 0.4);
    border-radius: 50px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    color: #fff;
}

.hero__sub {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin: 0 auto var(--space-lg);
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__text {
    padding-right: var(--space-md);
}

.about__text p {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--color-light-text);
    margin-bottom: var(--space-sm);
}

.about__figure {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.about__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.figure-caption {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-light-muted);
    text-align: center;
    padding: var(--space-sm);
    background: var(--color-plum-100);
}

/* ========================================
   ROOMS
   ======================================== */
.rooms {
    padding: var(--space-2xl) 0;
    background: var(--color-plum-950);
}

.rooms .section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.rooms .section-subtitle {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.6);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.room-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 194, 51, 0.3);
}

.room-card__img-wrap {
    overflow: hidden;
    aspect-ratio: 6 / 4;
}

.room-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover .room-card__img-wrap img {
    transform: scale(1.05);
}

.room-card__body {
    padding: var(--space-md);
}

.room-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.room-card__desc {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-sm);
}

.room-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.room-card__features li {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-amber-400);
    background: rgba(255, 194, 51, 0.1);
    border: 1px solid rgba(255, 194, 51, 0.25);
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
}

.rooms-note {
    text-align: center;
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-md);
}

.rooms-note p {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.rooms-note strong {
    color: var(--color-amber-400);
}

/* ========================================
   GROUNDS (Parallax-style)
   ======================================== */
.grounds {
    position: relative;
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.grounds__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.grounds__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grounds__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 20, 22, 0.88) 0%,
        rgba(67, 24, 31, 0.82) 100%
    );
}

.grounds__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.grounds__desc {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.grounds__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.grounds__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.grounds__icon {
    flex-shrink: 0;
    color: var(--color-amber-400);
}

/* ========================================
   WHY SECTION
   ======================================== */
.why {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.why__text {
    padding-top: var(--space-sm);
}

.why__text p {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--color-light-text);
    margin-bottom: var(--space-sm);
}

.why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.why-card {
    background: #fff;
    border: 1px solid var(--color-plum-100);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition);
}

.why-card:hover {
    border-color: var(--color-amber-300);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.08);
    transform: translateY(-4px);
}

.why-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-plum-200);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.why-card__desc {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-warm-gray);
}

/* ========================================
   LOCATION
   ======================================== */
.location {
    padding: var(--space-2xl) 0;
    background: var(--color-plum-900);
}

.location__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.location__text {
    color: #fff;
}

.location__text .section-title {
    color: #fff;
}

.location__address {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-sm);
}

.location__note {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 4 / 3;
}

.location__map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.contact__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-lg);
}

.contact__info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.contact__phone,
.contact__email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-plum-600);
    transition: color var(--transition);
}

.contact__phone:hover,
.contact__email:hover {
    color: var(--color-amber-700);
}

.contact__divider {
    color: var(--color-plum-200);
    font-size: 1.25rem;
}

/* Contact Form */
.contact-form {
    text-align: left;
    background: #fff;
    border: 1px solid var(--color-plum-100);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 8px 40px rgba(123, 45, 59, 0.06);
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

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

.form-group--full {
    margin-bottom: var(--space-sm);
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-plum-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-dark);
    background: var(--color-cream);
    border: 1.5px solid var(--color-plum-200);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-plum-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-plum-50);
    border: 1px solid var(--color-plum-200);
    border-radius: var(--radius-md);
    color: var(--color-plum-700);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    text-align: center;
    margin-top: var(--space-md);
}

.contact-form__success svg {
    color: var(--color-plum-500);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-plum-950);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-amber-500);
    margin-bottom: var(--space-sm);
}

.footer__contact p {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.footer__contact a {
    color: var(--color-amber-400);
}
.footer__contact a:hover {
    color: var(--color-amber-300);
    text-decoration: underline;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    padding-top: var(--space-md);
    text-align: center;
}

.footer__bottom p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rooms-grid .room-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        inset: 0;
        z-index: 105;
        background: rgba(26, 20, 22, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .primary-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .nav-link {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: var(--space-sm);
    }

    /* Hero */
    .hero__headline {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

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

    /* About */
    .about__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about__text {
        padding-right: 0;
        order: 2;
    }

    .about__figure {
        order: 1;
        max-height: 400px;
    }

    /* Rooms */
    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .rooms-grid .room-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    /* Grounds */
    .grounds__features {
        grid-template-columns: 1fr;
    }

    /* Why */
    .why__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

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

    /* Location */
    .location__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .location__map {
        aspect-ratio: 16 / 9;
    }

    /* Contact form */
    .contact-form__row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }

    .footer__tagline {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero__content {
        padding: var(--space-md) var(--space-sm);
    }

    .contact-form {
        padding: var(--space-md);
    }
}

/* --- 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;
    }
    
    .scroll-indicator {
        animation: none;
    }
}
</style>
<sm-file path="script.js">
/* ========================================
   AIRY HALL PLANTATION MAIN HOUSE
   Interactive Behaviours
   ======================================== */

(function () {
    'use strict';

    /* --- Header Scroll Behaviour --- */
    const header = document.getElementById('site-header');
    let lastScroll = 0;

    function onScroll() {
        const currentScroll = window.pageYOffset;
        if (currentScroll > 80) {
            header.classList.add('scrolled');
        } else {
            header.classList.remove('scrolled');
        }
        lastScroll = currentScroll;
    }

    window.addEventListener('scroll', onScroll, { passive: true });
    onScroll();

    /* --- Mobile Navigation --- */
    const navToggle = document.getElementById('nav-toggle');
    const primaryNav = document.getElementById('primary-nav');
    const navLinks = primaryNav.querySelectorAll('.nav-link');

    function toggleNav() {
        const isOpen = primaryNav.classList.toggle('open');
        navToggle.setAttribute('aria-expanded', isOpen);
        document.body.style.overflow = isOpen ? 'hidden' : '';
    }

    function closeNav() {
        primaryNav.classList.remove('open');
        navToggle.setAttribute('aria-expanded', 'false');
        document.body.style.overflow = '';
    }

    navToggle.addEventListener('click', toggleNav);

    navLinks.forEach(function (link) {
        link.addEventListener('click', closeNav);
    });

    /* Close on Escape key */
    document.addEventListener('keydown', function (e) {
        if (e.key === 'Escape' && primaryNav.classList.contains('open')) {
            closeNav();
            navToggle.focus();
        }
    });

    /* --- Smooth Scroll for Anchor Links --- */
    document.querySelectorAll('a[href^="#"]').forEach(function (anchor) {
        anchor.addEventListener('click', function (e) {
            const targetId = this.getAttribute('href');
            if (targetId === '#') return;
            const target = document.querySelector(targetId);
            if (target) {
                e.preventDefault();
                const headerHeight = header.offsetHeight;
                const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - headerHeight - 20;
                window.scrollTo({
                    top: targetPosition,
                    behavior: 'smooth'
                });
            }
        });
    });

    /* --- Scroll Reveal (progressive enhancement) --- */
    if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
        const revealElements = document.querySelectorAll(
            '.about__inner, .room-card, .why-card, .grounds__content, .location__inner, .contact__inner'
        );

        const revealObserver = new IntersectionObserver(
            function (entries) {
                entries.forEach(function (entry) {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = '1';
                        entry.target.style.transform = 'translateY(0)';
                        revealObserver.unobserve(entry.target);
                    }
                });
            },
            { threshold: 0.15, rootMargin: '0px 0px -40px 0px' }
        );

        revealElements.forEach(function (el) {
            el.style.opacity = '0';
            el.style.transform = 'translateY(24px)';
            el.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
            revealObserver.observe(el);
        });
    }

    /* --- Contact Form --- */
    const contactForm = document.getElementById('contact-form');
    const formSuccess = document.getElementById('form-success');

    if (contactForm) {
        contactForm.addEventListener('submit', function (e) {
            e.preventDefault();

            /* Basic validation */
            const name = document.getElementById('name').value.trim();
            const email = document.getElementById('email').value.trim();

            if (!name || !email) {
                alert('Please fill in your name and email address.');
                return;
            }

            /* Show success message */
            contactForm.style.display = 'none';
            formSuccess.removeAttribute('hidden');
        });
    }

    /* --- Active Nav Link Highlight --- */
    const sections = document.querySelectorAll('section[id]');
    const navItems = document.querySelectorAll('.nav-link:not(.nav-link--cta)');

    function highlightNav() {
        const scrollPos = window.pageYOffset + 200;

        sections.forEach(function (section) {
            const top = section.offsetTop;
            const height = section.offsetHeight;
            const id = section.getAttribute('id');

            if (scrollPos >= top && scrollPos < top + height) {
                navItems.forEach(function (link) {
                    link.classList.remove('is-active');
                    if (link.getAttribute('href') === '#' + id) {
                        link.classList.add('is-active');
                    }
                });
            }
        });
    }

    window.addEventListener('scroll', highlightNav, { passive: true });

})();
