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

:root {
    --blue: #608098;
    --green: #8b8f68;
    --navy: #1d2e86;
    --navy-btn: #2a3585;
    --maroon: #5d2c23;
    --cream: #fcf1eb;
    --lavender: #c3c1ef;
    --white: #ffffff;

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;

    --gutter: 40px;
    --max-w: 1424px;
    --header-h: 106px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-weight: 400;
    background: var(--cream);
    color: var(--blue);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ── SHARED TYPE ─────────────────────────────────── */
.label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;
}

.display {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.15;
    font-size: clamp(34px, 4.6vw, 65px);
    margin-bottom: 0.5em;
}

.display:last-child {
    margin-bottom: 0;
}

.body-lg {
    font-family: var(--sans);
    font-weight: 400;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.5;
}

/* ── BUTTONS ─────────────────────────────────────── */
/* Matches the Figma "Button" component: flat solid fill, square corners,
   no border, 40px tall, 22px/10px padding, 14px bold uppercase. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 10px 22px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Default → hover colour swaps match the Button component states:
   blue → maroon, navy → green, cream → blue. */
.btn--blue {
    background: var(--blue);
    color: var(--white);
}
.btn--blue:hover,
.btn--blue:focus-visible {
    background: var(--maroon);
    color: var(--white);
}

.btn--navy {
    background: var(--navy-btn);
    color: var(--white);
}
.btn--navy:hover,
.btn--navy:focus-visible {
    background: var(--green);
    color: var(--white);
}

.btn--cream {
    background: var(--cream);
    color: var(--blue);
}
.btn--cream:hover,
.btn--cream:focus-visible {
    background: var(--blue);
    color: var(--white);
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--gutter);
    background: #26343f url('hero.jpg') center 40% / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,28,36,0.25) 0%, rgba(20,28,36,0.05) 45%, rgba(20,28,36,0.35) 100%);
}

.hero__logo {
    position: relative;
    z-index: 1;
    width: min(52%, 886px);
    height: auto;
    filter: drop-shadow(0 2px 24px rgba(0,0,0,0.35));
}

/* ── HEADER (sticky, below hero) ─────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-inline: var(--gutter);
}

.header-logo {
    height: 38px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 44px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 44px;
    list-style: none;
}

.nav__link {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--blue);
    transition: opacity 0.2s ease;
}
.nav__link:hover,
.nav__link:focus-visible {
    opacity: 0.6;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ── LEASING BANNER (blue) ───────────────────────── */
.leasing {
    background: var(--blue);
    color: var(--cream);
    text-align: center;
    padding: clamp(90px, 12vw, 200px) var(--gutter);
}
.leasing__inner {
    max-width: 900px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.leasing .display {
    color: var(--white);
}
.leasing__body {
    max-width: 560px;
    opacity: 0.92;
}

/* ── INTRO (cream) ───────────────────────────────── */
.intro {
    background: var(--cream);
    padding: clamp(64px, 8vw, 120px) var(--gutter);
}
.intro__inner {
    max-width: var(--max-w);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}
.intro__text {
    display: flex;
    flex-direction: column;
    gap: 40px;
    color: var(--blue);
    max-width: 560px;
}
.intro__photo img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

/* ── OPPORTUNITY (green) ─────────────────────────── */
.opportunity {
    background: var(--green);
    color: var(--cream);
    padding: clamp(72px, 9vw, 130px) var(--gutter);
}
.opportunity__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-bottom: clamp(48px, 6vw, 90px);
}
.opportunity .display {
    color: var(--white);
    text-align: center;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(40px, 5vw, 80px) clamp(30px, 4vw, 70px);
}
.stat__num {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(48px, 6vw, 90px);
    line-height: 1;
    color: var(--white);
}
.stat__unit {
    font-weight: 500;
    font-size: clamp(17px, 1.4vw, 20px);
    margin-top: 6px;
    color: var(--white);
}
.stat__rule {
    border: none;
    border-top: 1px solid rgba(252,241,235,0.45);
    margin: 14px 0 12px;
    max-width: 345px;
}
.stat__desc {
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.4;
    max-width: 320px;
    opacity: 0.92;
}
.opportunity__source {
    margin-top: clamp(32px, 4vw, 56px);
    font-size: 13px;
    opacity: 0.8;
}

/* ── THE OFFER (lavender + retail cards) ─────────── */
.offer {
    background: var(--lavender);
    padding: clamp(72px, 9vw, 130px) 0;
    color: var(--navy);
}
.offer__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: clamp(40px, 5vw, 70px);
}
.offer .label { color: var(--navy); }
.offer .display { color: var(--navy); text-align: center; }

/* Swiper slider: first slide aligns to the content margin, the track bleeds
   off the right edge so the remaining cards overflow. Slides-per-view is set
   responsively in JS (1 on mobile → 4 on desktop). */
.offer__slider {
    width: 100%;
    padding-left: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter)));
    /* right side intentionally has no padding → cards bleed off-screen */
}
.offer__slider .swiper-wrapper {
    align-items: stretch;
}
.card {
    position: relative;
    width: 100%;
    height: 462px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 24px;
    color: var(--white);
    box-sizing: border-box;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.28);
    z-index: 1;
}
.card img.card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.card__title {
    position: relative;
    z-index: 2;
    font-family: var(--serif);
    font-weight: 300;
    font-size: 40px;
    line-height: 1;
    max-width: 240px;
}
.card__sub {
    position: relative;
    z-index: 2;
    font-weight: 400;
    font-size: 18px;
}

/* Pitch card */
.card--pitch {
    background: var(--lavender);
    color: var(--navy);
    border: 1px solid rgba(42,53,133,0.25);
    justify-content: flex-start;
    gap: 24px;
}
.card--pitch::before { display: none; }
.card--pitch .card__title {
    color: var(--navy);
    font-size: 40px;
}
.card--pitch__doodle {
    position: absolute;
    right: -10px;
    bottom: 70px;
    width: 200px;
    height: auto;
    z-index: 0;
    opacity: 0.9;
}
.card--pitch .btn {
    position: relative;
    z-index: 2;
    margin-top: auto;
    align-self: flex-start;
}

.offer__cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(40px, 5vw, 64px);
}

/* ── LOCATION (cream + map) ──────────────────────── */
.location {
    background: var(--cream);
    padding: clamp(72px, 9vw, 130px) var(--gutter);
    color: var(--blue);
}
.location__head {
    max-width: 900px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}
.location .display { color: var(--blue); }
.location__map {
    max-width: var(--max-w);
    margin-inline: auto;
}
.location__map-canvas {
    width: 100%;
    height: clamp(360px, 45vw, 680px);
    border-radius: 2px;
    overflow: hidden;
    background: #eceae5;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Fallback text shown only until Google Maps renders (or if no API key). */
.location__map-fallback {
    font-size: 14px;
    color: var(--blue);
    opacity: 0.7;
    padding: 0 20px;
    text-align: center;
}
.location__map-canvas .gm-style p { margin: 0; }
.legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}
.legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}
.legend__swatch {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}
.legend__swatch--transport { background: #e8933a; }
.legend__swatch--parks { background: #8b8f68; }

/* ── ENQUIRE (gradient) + FOOTER ─────────────────── */
.enquire {
    background: linear-gradient(180deg, #6d789e 0%, #8b869c 30%, #bdb0af 55%, #dc9a68 82%, #e58b51 100%);
    color: var(--cream);
    padding: clamp(72px, 9vw, 120px) var(--gutter) clamp(40px, 5vw, 60px);
}
.enquire__inner {
    max-width: 1100px;
    margin-inline: auto;
    text-align: center;
}
.enquire .display { color: var(--white); }
.enquire__intro {
    max-width: 910px;
    margin: 26px auto 0;
    opacity: 0.95;
}

.form {
    max-width: 525px;
    margin: clamp(40px, 5vw, 60px) auto 0;
    text-align: left;
}
.form__status {
    padding: 14px 18px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    font-weight: 500;
}
.form__status--success {
    background-color: rgba(209, 231, 221, 0.95);
    color: #0f5132;
    border: 1px solid #badbcc;
}
.form__status--error {
    background-color: rgba(248, 215, 218, 0.95);
    color: #842029;
    border: 1px solid #f5c2c7;
}
.form__field {
    margin-bottom: 26px;
}
.form__label {
    display: block;
    font-size: 16px;
    color: rgba(252,241,235,0.9);
    margin-bottom: 10px;
}
.form__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(252,241,235,0.55);
    color: var(--white);
    font-family: var(--sans);
    font-size: 16px;
    padding: 6px 0;
    outline: none;
}
.form__input:focus {
    border-bottom-color: var(--white);
}
.form__input--error {
    border-bottom-color: #ff6b6b !important;
}
.form__textarea.form__input--error {
    outline: 2px solid #ff6b6b !important;
}
.form__field-error {
    display: none;
    font-size: 13px;
    color: #ff6b6b;
    margin-top: 6px;
    font-weight: 500;
}
.form__field--message .form__label { margin-bottom: 12px; }
.form__textarea {
    width: 100%;
    min-height: 147px;
    background: var(--cream);
    border: none;
    border-radius: 2px;
    color: var(--blue);
    font-family: var(--sans);
    font-size: 16px;
    padding: 14px;
    outline: none;
    resize: vertical;
}
.form__textarea::placeholder { color: rgba(96,128,152,0.75); }
.form__mandatory {
    display: block;
    text-align: right;
    font-size: 13px;
    opacity: 0.85;
    margin-top: 8px;
}
.form__privacy {
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(252, 241, 235, 0.85);
}
.form__privacy-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--cream);
}
.form__privacy-text {
    margin-bottom: 8px;
}
.form__privacy-text:last-child {
    margin-bottom: 0;
}
.form__privacy a {
    text-decoration: underline;
    transition: color 0.2s ease;
}
.form__privacy a:hover,
.form__privacy a:focus-visible {
    color: var(--white);
}
.form__submit {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.form__input:-webkit-autofill {
    -webkit-text-fill-color: var(--white);
    transition: background-color 9999s ease;
}

/* Footer contact block */
.footer-contact {
    text-align: center;
    margin-top: clamp(64px, 8vw, 110px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}
.footer-contact__logo {
    width: 138px;
    height: auto;
}
.footer-contact__title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 25px;
    color: var(--cream);
}
.footer-contact__details {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
}
.footer-contact__details a:hover { text-decoration: underline; }

.footer-bottom {
    max-width: var(--max-w);
    margin: clamp(48px, 6vw, 80px) auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(252,241,235,0.5);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}
.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}
.footer-bottom__links a:hover { text-decoration: underline; }
.footer-bottom__sep {
    width: 13px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}
.footer-bottom__mark {
    width: 46px;
    height: auto;
    margin-inline: auto;
}
.footer-bottom__credit {
    font-size: 13px;
    text-align: right;
}
.footer-bottom__credit a:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1200px) {
    :root { --gutter: 32px; }
}

@media (max-width: 960px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    :root { --header-h: 72px; }

    .header-logo { height: 30px; }

    .nav__toggle { display: flex; }

    /* Open menu = blue panel with white links (matches Figma menu component).
       Anchored to the header so it stays attached whether the header is
       stuck at the top or still sitting in-flow below the hero. JS adds
       .nav--up to flip the panel above the header when there isn't room
       below (see index.html placeMenu()). */
    .nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--blue);
        min-width: 240px;
        max-width: 80vw;
        max-height: calc(100vh - var(--header-h) - 16px);
        overflow-y: auto;
        padding: 12px 28px 22px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        box-shadow: 0 16px 26px rgba(0,0,0,0.18);
    }
    /* Flip above the header when there isn't enough room below it. */
    .nav--up .nav__links {
        top: auto;
        bottom: 100%;
        transform: translateY(8px);
        box-shadow: 0 -16px 26px rgba(0,0,0,0.18);
    }
    .nav.is-open .nav__links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav__links .nav__link {
        display: block;
        width: 100%;
        padding: 16px 0;
        color: var(--white);
    }
    .nav__links .nav__link:hover,
    .nav__links .nav__link:focus-visible {
        opacity: 0.75;
    }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .intro__inner { grid-template-columns: 1fr; }
    .intro__photo { order: -1; }

    .hero__logo { width: min(78%, 620px); }
}

@media (max-width: 620px) {
    :root { --gutter: 20px; }

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

    .legend { gap: 24px; flex-wrap: wrap; }

    .container {
        padding: 0;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 24px;
    }
    .footer-bottom__credit { text-align: center; }
    .footer-bottom__mark { order: -1; }

    .nav {
        gap: 24px;
    }
}

/* Anchor offset for sticky header */
:target { scroll-margin-top: calc(var(--header-h) + 20px); }
section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
