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

:root {
    --navy:    #0a1f3f;
    --navy-lt: #132d54;
    --mint:    #7dd3c0;
    --mint-dk: #5bbfad;
    --cream:   #f7f8f9;
    --white:   #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--gray-600); }

.label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mint-dk);
    margin-bottom: 12px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 400;
    letter-spacing: .02em;
    transition: all .3s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--navy);
    color: var(--white);
}
.btn-primary:hover { background: var(--navy-lt); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.06); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--navy);
}
.logo-mark { color: var(--mint-dk); }
.logo-text { font-weight: 500; }

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-list a {
    font-size: .85rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: .02em;
    position: relative;
    transition: color .25s var(--ease);
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint-dk);
    transition: width .3s var(--ease);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    transition: all .3s var(--ease);
    transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--navy);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('https://images.pexels.com/photos/37750394/pexels-photo-37750394.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: .45;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,31,63,.72) 0%,
        rgba(10,31,63,.55) 50%,
        rgba(10,31,63,.80) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 120px 24px 80px;
}
.hero-eyebrow {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 20px;
}
.hero-title {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 300;
}
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.hero-scroll span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%,100% { opacity: .4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Intro ────────────────────────────────────────────── */
.intro { padding: 100px 0; }
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.intro-text .label { margin-bottom: 14px; }
.intro-text h2 { margin-bottom: 20px; }
.intro-text p { margin-bottom: 14px; }
.intro-image img {
    border-radius: 4px;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ── Section header ───────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.section-header .label { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1rem; }

/* ── Rooms ────────────────────────────────────────────── */
.rooms {
    padding: 100px 0;
    background: var(--gray-50);
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.room-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.room-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.room-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.room-info { padding: 24px; }
.room-info h3 { margin-bottom: 10px; }
.room-info p { font-size: .9rem; margin-bottom: 16px; line-height: 1.6; }
.room-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.room-features li {
    font-size: .82rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}
.room-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--mint);
    flex-shrink: 0;
}

/* ── Stay ─────────────────────────────────────────────── */
.stay { padding: 100px 0; }
.stay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.stay-image img {
    border-radius: 4px;
    width: 100%;
    height: 560px;
    object-fit: cover;
}
.stay-content .label { margin-bottom: 14px; }
.stay-content h2 { margin-bottom: 32px; }
.stay-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 28px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.detail-value {
    font-size: .95rem;
    color: var(--gray-700);
}
.stay-note {
    font-size: .875rem;
    color: var(--gray-500);
    padding: 16px 20px;
    background: var(--gray-50);
    border-left: 2px solid var(--mint);
    border-radius: 0 4px 4px 0;
}

/* ── Edgartown ────────────────────────────────────────── */
.edgartown {
    padding: 100px 0;
    background: var(--gray-50);
}
.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.place-card {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.place-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.place-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.place-info { padding: 20px; }
.place-info h3 { margin-bottom: 8px; font-size: 1.15rem; }
.place-info p { font-size: .875rem; line-height: 1.6; }

/* ── CTA ──────────────────────────────────────────────── */
.cta {
    padding: 100px 0;
    background: var(--navy);
    text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-eyebrow {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 16px;
}
.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}
.cta p {
    color: rgba(255,255,255,.7);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* ── Contact ──────────────────────────────────────────── */
.contact { padding: 100px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.contact-info .label { margin-bottom: 14px; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info address {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
}
.contact-phone a {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 400;
    border-bottom: 1px solid var(--gray-300);
    transition: border-color .2s var(--ease);
}
.contact-phone a:hover { border-color: var(--mint-dk); }
.contact-note {
    font-size: .85rem;
    color: var(--gray-500);
    margin-top: 16px;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .06em;
    color: var(--gray-600);
}
.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 300;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    outline: none;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mint-dk);
    box-shadow: 0 0 0 3px rgba(125,211,192,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-note {
    font-size: .8rem;
    color: var(--gray-400);
    margin-top: 4px;
}
.form-note a { color: var(--mint-dk); border-bottom: 1px solid transparent; transition: border-color .2s; }
.form-note a:hover { border-color: var(--mint-dk); }

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(125,211,192,.1);
    border: 1px solid var(--mint);
    border-radius: 6px;
    color: var(--navy);
    font-size: .9rem;
}
.form-success svg { color: var(--mint-dk); flex-shrink: 0; }

/* ── Map ──────────────────────────────────────────────── */
.map-section { border-top: 1px solid var(--gray-200); }
.map-container { height: 380px; }
.map-container iframe { width: 100%; height: 100%; }

/* ── Footer ───────────────────────────────────────────── */
.footer {
    padding: 48px 0 36px;
    background: var(--navy);
    color: rgba(255,255,255,.6);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer .logo { color: var(--white); }
.footer-brand p { font-size: .82rem; margin-top: 6px; color: rgba(255,255,255,.5); }
.footer-contact a {
    font-size: .9rem;
    color: var(--mint);
    transition: color .2s;
}
.footer-contact a:hover { color: var(--white); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ── Reveal (progressive enhancement) ─────────────────── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .intro-grid,
    .stay-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .rooms-grid,
    .places-grid { grid-template-columns: 1fr 1fr; }
    .stay-image img { height: 400px; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .nav-list {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
        transition: max-height .4s var(--ease), border-color .3s var(--ease);
    }
    .nav-list.open {
        max-height: 300px;
        border-bottom-color: var(--gray-200);
    }
    .nav-list li { width: 100%; text-align: center; }
    .nav-list a {
        display: block;
        padding: 16px 24px;
        font-size: .95rem;
    }
    .nav-list a::after { display: none; }
    .rooms-grid,
    .places-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stay-details { grid-template-columns: 1fr; }
    .hero-content { padding: 100px 20px 80px; }
    .footer-inner { flex-direction: column; text-align: center; }
}
