/* ==========================================================================
   Public website styles
   Design language: warm luxury - gold accent, serif display, generous space.
   Motion is intentionally restrained (short fades only, no parallax).
   ========================================================================== */

:root {
    --white: #ffffff;
    --off-white: #faf9f6;
    --beige: #f4ece0;
    --beige-light: #fbf7f1;
    --sand: #e8d9c5;
    --gold: #b8963e;
    --gold-light: #d4af65;
    --gold-pale: #f0e4c8;
    --charcoal: #1c1c1c;
    --dark: #111111;
    --gray: #6b6b6b;
    --gray-light: #9a9a9a;
    --border: rgba(184, 150, 62, 0.18);
    --border-light: rgba(0, 0, 0, 0.08);

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --wrap: 1240px;
    --radius: 2px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--sans);
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------------------------------------------------- */

.eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.display {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.display em { font-style: italic; color: var(--gold); }

h1.display { font-size: clamp(2.4rem, 5vw, 4rem); }
h2.display { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3.display { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.lede { color: var(--gray); font-size: 1.02rem; max-width: 60ch; }

.section { padding: 96px 0; }
.section--tint { background: var(--off-white); }

.section-head { margin-bottom: 48px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

/* ---------- Buttons ------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn--outline { border-color: var(--border); color: var(--charcoal); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.45); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--charcoal); }

/* ---------- Header -------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 74px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.brand span { color: var(--gold); }

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

.nav a {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--charcoal);
    transition: color 0.2s;
}
.nav a:hover,
.nav a.is-active { color: var(--gold); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.region-switch {
    position: relative;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.region-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--charcoal);
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.region-switch__btn:hover { border-color: var(--gold); color: var(--gold); }

.region-switch__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
}
.region-switch.is-open .region-switch__menu { display: block; }

.region-switch__menu a {
    display: block;
    padding: 10px 12px;
    color: var(--charcoal);
}
.region-switch__menu a:hover { background: var(--beige-light); color: var(--gold); }
.region-switch__menu a.is-active { color: var(--gold); }

.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--charcoal); margin: 5px 0; }

/* ---------- Hero ---------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2620 55%, #3a3128 100%);
    color: var(--white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.82) 0%, rgba(17, 17, 17, 0.5) 60%, rgba(17, 17, 17, 0.3) 100%);
}

/* Video hero */
.hero--video { min-height: 88vh; }

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 56px;
    align-items: center;
    padding: 88px 24px;
}

.hero__form {
    background: var(--white);
    color: var(--charcoal);
    border-radius: 6px;
    padding: 30px 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.hero__form-eyebrow {
    font-size: 0.56rem; font-weight: 600;
    letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.hero__form-title { font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.15; }
.hero__form-title em { font-style: italic; color: var(--gold); }
.hero__form-sub { font-size: 0.84rem; color: var(--gray); margin: 8px 0 18px; }

.hero__content { position: relative; z-index: 2; padding: 90px 0; max-width: 680px; }
.hero__grid .hero__content { padding: 0; max-width: none; }
.hero__content .eyebrow { color: var(--gold-light); }
.hero__content h1 { margin: 18px 0 20px; color: var(--white); }
.hero__content .lede { color: rgba(255, 255, 255, 0.82); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ribbon -------------------------------------------------- */

.ribbon { background: var(--charcoal); color: var(--white); }

.ribbon__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 34px 0;
    text-align: center;
}

.ribbon__value { font-family: var(--serif); font-size: 2rem; color: var(--gold-light); line-height: 1.2; }
.ribbon__label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

/* ---------- Cards --------------------------------------------------------- */

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card-prop {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card-prop:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.09); transform: translateY(-3px); }

.card-prop__media { position: relative; aspect-ratio: 4 / 3; background: var(--beige); overflow: hidden; }
.card-prop__media img { width: 100%; height: 100%; object-fit: cover; }

.card-prop__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 2rem; color: var(--sand);
    background: var(--beige-light);
}

.card-prop__tag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--charcoal);
    padding: 6px 12px;
    font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}

.card-prop__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-prop__place { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-light); }
.card-prop__title { font-family: var(--serif); font-size: 1.28rem; line-height: 1.25; }
.card-prop__price { font-size: 1.02rem; font-weight: 600; color: var(--gold); margin-top: auto; }

.card-prop__meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding-top: 12px; border-top: 1px solid var(--border-light);
    font-size: 0.76rem; color: var(--gray);
}

.card-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--beige);
}
.card-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card-tile:hover img { transform: scale(1.04); }

.card-tile__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.78) 0%, rgba(17, 17, 17, 0.1) 55%, transparent 100%);
}

.card-tile__text { position: absolute; left: 20px; right: 20px; bottom: 18px; color: var(--white); }
.card-tile__text h3 { font-family: var(--serif); font-size: 1.3rem; }
.card-tile__text span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }

.logo-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.logo-strip__item {
    display: flex; align-items: center; justify-content: center;
    min-height: 96px; padding: 18px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-align: center;
    transition: border-color 0.25s;
}
.logo-strip__item:hover { border-color: var(--gold); }
.logo-strip__item img { max-height: 46px; width: auto; object-fit: contain; }
.logo-strip__item span { font-family: var(--serif); font-size: 1.05rem; }

/* ---------- CTA band ------------------------------------------------------ */

.cta-band { background: var(--charcoal); color: var(--white); text-align: center; padding: 92px 0; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); margin: 0 auto 32px; max-width: 56ch; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); padding: 72px 0 28px; }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand { color: var(--white); display: inline-block; margin-bottom: 14px; }
.site-footer h4 {
    color: var(--white); font-size: 0.68rem; letter-spacing: 0.18em;
    text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { font-size: 0.86rem; transition: color 0.2s; }
.site-footer a:hover { color: var(--gold-light); }

.site-footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 22px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45);
}

/* ---------- Empty state --------------------------------------------------- */

.empty {
    padding: 60px 24px; text-align: center;
    border: 1px dashed var(--border);
    color: var(--gray);
    background: var(--beige-light);
}

/* ---------- Reveal --------------------------------------------------------
   Progressive enhancement: content is visible by default and only starts
   hidden once JS has confirmed it can reveal it again. A failed script must
   never leave the page blank.
   -------------------------------------------------------------------------- */

.js-on .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js-on .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1024px) {
    .grid--4, .logo-strip { grid-template-columns: repeat(3, 1fr); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav {
        position: fixed; inset: 74px 0 auto 0;
        background: var(--white);
        flex-direction: column; align-items: flex-start;
        gap: 0; padding: 10px 24px 24px;
        border-bottom: 1px solid var(--border-light);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 0; width: 100%; }
    .burger { display: block; }
    .section { padding: 68px 0; }
    .grid--3, .grid--4, .logo-strip { grid-template-columns: repeat(2, 1fr); }
    .ribbon__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 24px; }
    .hero--video { min-height: auto; }
}

@media (max-width: 560px) {
    .grid--3, .grid--4, .logo-strip { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .hero { min-height: 68vh; }
    /* Skip the background video on small screens - the poster is enough. */
    .hero__video { display: none; }
}

/* ==========================================================================
   Listing + detail pages
   ========================================================================== */

.page-head { background: var(--beige-light); border-bottom: 1px solid var(--border); padding: 54px 0 44px; }
.page-head--tight { padding: 22px 0; background: transparent; border-bottom: 0; }
.page-head h1 { margin: 10px 0 12px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--gray-light); }
.crumbs a { color: var(--gray); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Filter bar ---------------------------------------------------- */

.filters {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: end;
    padding: 22px;
    margin-top: -28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.filters__field { display: flex; flex-direction: column; gap: 7px; }
.filters__field--wide { grid-column: span 2; }

.filters label {
    font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gray-light); font-weight: 600;
}

.filters input,
.filters select {
    width: 100%;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--charcoal);
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
.filters input:focus,
.filters select:focus { outline: none; border-color: var(--gold); }

.filters__actions { display: flex; gap: 10px; grid-column: span 6; }
.filters__actions .btn { padding: 12px 26px; }

/* ---------- Pagination ---------------------------------------------------- */

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 52px; }

.pager__link {
    min-width: 42px;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--charcoal);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color 0.2s, color 0.2s;
}
.pager__link:hover { border-color: var(--gold); color: var(--gold); }
.pager__link.is-current { background: var(--gold); border-color: var(--gold); color: var(--white); }
.pager__link.is-disabled { color: var(--gray-light); opacity: 0.55; pointer-events: none; }
.pager__gap { padding: 10px 4px; color: var(--gray-light); }

/* ---------- Gallery ------------------------------------------------------- */

.gallery { margin-bottom: 40px; }

.gallery__main {
    width: 100%;
    height: clamp(280px, 52vh, 560px);
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--beige);
}

.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.gallery__thumb {
    width: 120px; height: 84px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.75;
}
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--gold); opacity: 1; }

.gallery__empty {
    display: flex; align-items: center; justify-content: center;
    height: 280px;
    background: var(--beige-light);
    border: 1px dashed var(--border);
    color: var(--gray);
    border-radius: var(--radius);
}

/* ---------- Detail layout ------------------------------------------------- */

.detail { display: grid; grid-template-columns: 1fr 360px; gap: 52px; padding-bottom: 90px; }

.detail__intro { padding-bottom: 26px; border-bottom: 1px solid var(--border-light); }
.detail__intro h1 { margin: 12px 0 8px; }
.detail__place { color: var(--gray); font-size: 0.94rem; }
.detail__price { margin-top: 18px; font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.detail__price span { font-family: var(--sans); font-size: 0.9rem; color: var(--gray); }

.specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border-light);
}
.specs__item { display: flex; flex-direction: column; gap: 4px; }
.specs__label { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-light); }
.specs__value { font-family: var(--serif); font-size: 1.4rem; }

.detail__block { padding: 34px 0; border-bottom: 1px solid var(--border-light); }
.detail__block h2 { margin-bottom: 18px; }

.prose { color: var(--gray); white-space: pre-line; line-height: 1.8; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
    padding: 9px 16px;
    background: var(--beige-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
}

.downloads { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sidebar panels ------------------------------------------------ */

.detail__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; align-self: start; }

.panel { padding: 26px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); }
.panel__title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px; }
.panel__text { color: var(--gray); font-size: 0.9rem; margin-bottom: 18px; }

.panel__row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.86rem;
    color: var(--gray);
}
.panel__row:last-child { border-bottom: 0; }
.panel__row strong { color: var(--charcoal); text-align: right; font-weight: 600; }

.card-prop__period { font-weight: 400; color: var(--gray); font-size: 0.82rem; }

@media (max-width: 1024px) {
    .filters { grid-template-columns: repeat(3, 1fr); }
    .filters__field--wide, .filters__actions { grid-column: span 3; }
    .detail { grid-template-columns: 1fr; gap: 34px; }
    .detail__side { position: static; }
}

@media (max-width: 640px) {
    .filters { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
    .filters__field--wide, .filters__actions { grid-column: span 2; }
    .specs { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Directories : developers + communities
   ========================================================================== */

.card-dev {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 22px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.card-dev:hover {
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
    transform: translateY(-3px);
}

.card-dev__logo {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 72px;
}
.card-dev__logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.card-dev__logo span { font-family: var(--serif); font-size: 2.2rem; color: var(--sand); }

.card-dev__name { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.card-dev__count { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-light); }

/* ---------- Profile header ------------------------------------------------ */

.profile-head { display: flex; align-items: center; gap: 26px; margin-top: 14px; }
.profile-head h1 { margin: 8px 0 6px; }

.profile-head__logo {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 110px; height: 110px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.profile-head__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Community hero ------------------------------------------------ */

.community-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: flex-end;
    background: var(--charcoal);
    color: var(--white);
    overflow: hidden;
}
.community-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.community-hero__veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.35) 60%, rgba(17, 17, 17, 0.2) 100%);
}
.community-hero__inner { position: relative; z-index: 2; padding: 48px 0 40px; }
.community-hero__inner h1 { color: var(--white); margin: 10px 0 8px; }
.community-hero__inner .lede { color: rgba(255, 255, 255, 0.82); }

.crumbs--light { margin-bottom: 16px; color: rgba(255, 255, 255, 0.65); }
.crumbs--light a { color: rgba(255, 255, 255, 0.85); }
.crumbs--light a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
    .profile-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .community-hero { min-height: 38vh; }
}

/* ==========================================================================
   Enquiry form + contact
   ========================================================================== */

.eform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eform__grid--single { grid-template-columns: 1fr; }

.eform__field { display: flex; flex-direction: column; gap: 7px; }
.eform__field--wide { grid-column: 1 / -1; }

.eform label {
    font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gray-light); font-weight: 600;
}

.eform input,
.eform textarea {
    width: 100%;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    resize: vertical;
}
.eform input:focus,
.eform textarea:focus { outline: none; border-color: var(--gold); }

/* Honeypot stays out of sight without display:none (some bots skip hidden inputs). */
.eform__trap { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

.notice { padding: 15px 18px; margin-bottom: 18px; font-size: 0.88rem; border-radius: var(--radius); }
.notice--ok { background: #f0f7f0; border: 1px solid #bcd9bc; color: #2e6b2e; }
.notice--error { background: #fdf3f2; border: 1px solid #eac3bf; color: #a13c31; }

.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

.btn--wa { background: #25d366; border-color: #25d366; color: var(--white); }
.btn--wa:hover { background: #1fb556; border-color: #1fb556; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
    padding: 44px 0 90px;
}
.contact-aside { display: flex; flex-direction: column; gap: 20px; }

/* ==========================================================================
   Mortgage calculator
   ========================================================================== */

.calc {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
    padding: 44px 0 90px;
}

.calc__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.calc__field { display: flex; flex-direction: column; gap: 8px; }
.calc__field label {
    font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gray-light); font-weight: 600;
}
.calc__field input {
    padding: 13px 14px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
.calc__field input:focus { outline: none; border-color: var(--gold); }

.calc__result {
    padding: 30px;
    background: var(--charcoal);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calc__label { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.calc__value { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-light); line-height: 1.1; }

.calc__rows { display: grid; gap: 9px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.calc__rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.65); }
.calc__rows strong { color: var(--white); font-weight: 600; }

.calc__note { font-size: 0.76rem; color: rgba(255, 255, 255, 0.45); }

@media (max-width: 900px) {
    .contact-layout, .calc { grid-template-columns: 1fr; }
}

/* ---------- Price ---------------------------------------------------------- */

.price__period { font-weight: 400; color: var(--gray); font-size: 0.82rem; margin-left: 4px; }
.price__on-request { font-weight: 500; }

.eform__hint { display: block; margin-top: 5px; font-size: 0.7rem; color: var(--gray-light); }

/* ==========================================================================
   Broker profile + consultation form
   ========================================================================== */

.ct-section { padding: 96px 0; background: var(--off-white); }

.ct-container { max-width: 1080px; margin: 0 auto; }

.ct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 48px 120px rgba(0, 0, 0, 0.09),
        0 12px 32px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(184, 150, 62, 0.1);
}

.ct-broker {
    background: var(--white);
    padding: 64px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-light);
}
.ct-broker::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--gold-pale) 0%, var(--gold) 40%, var(--gold-pale) 100%);
}

.ct-broker-header { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 26px; }

.ct-photo-wrap { position: relative; flex-shrink: 0; width: 116px; height: 144px; }
.ct-photo-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    border-radius: 4px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.13);
}

.ct-photo-badge {
    position: absolute; bottom: -9px; right: -9px;
    background: var(--gold); color: var(--white);
    padding: 5px 10px; border-radius: 2px;
    font-size: 0.48rem; font-weight: 700;
    letter-spacing: 0.24em; text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(184, 150, 62, 0.32);
}

.ct-name-block { flex: 1; padding-top: 6px; }
.ct-eyebrow {
    font-size: 0.56rem; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
}
.ct-name { font-family: var(--serif); font-size: 2.1rem; font-weight: 400; line-height: 1.1; margin-bottom: 9px; }
.ct-title { font-size: 0.74rem; color: var(--gray); line-height: 1.6; }

.ct-bio {
    font-size: 0.9rem; color: var(--gray);
    line-height: 1.84; font-weight: 300;
    margin-bottom: 24px;
    border-left: 2px solid var(--gold-pale);
    padding-left: 16px;
}

.ct-stats {
    display: flex;
    padding: 20px 0; margin-bottom: 26px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.ct-stat {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
    padding-right: 16px;
    border-right: 1px solid var(--border-light);
}
.ct-stat:last-child { border-right: none; padding-right: 0; }
.ct-sv { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1; }
.ct-sl { font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-light); }

.ct-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

.ct-action-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 18px; border-radius: 3px;
    font-size: 0.82rem; font-weight: 500;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ct-action-btn.primary { background: var(--gold); color: var(--white); box-shadow: 0 8px 24px rgba(184, 150, 62, 0.22); }
.ct-action-btn.primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(184, 150, 62, 0.32); }
.ct-action-btn.wa { background: #25d366; color: var(--white); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.18); }
.ct-action-btn.wa:hover { background: #1db954; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.28); }

.ct-action-ico {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.22); flex-shrink: 0;
}
.ct-action-text { display: flex; flex-direction: column; gap: 1px; }
.ct-action-label { font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.72; }
.ct-action-val { font-weight: 600; font-size: 0.88rem; }

.ct-brokerage {
    font-size: 0.67rem; color: var(--gray-light);
    line-height: 1.65; padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.ct-form-side { background: var(--beige-light); padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; }
.ct-form-eyebrow { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ct-form-ttl { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.15; margin-bottom: 12px; }
.ct-form-ttl em { font-style: italic; color: var(--gold); }
.ct-form-sub { font-size: 0.86rem; color: var(--gray); margin-bottom: 22px; }

@media (max-width: 900px) {
    .ct-grid { grid-template-columns: 1fr; }
    .ct-broker { border-right: 0; border-bottom: 1px solid var(--border-light); padding: 48px 32px; }
    .ct-form-side { padding: 48px 32px; }
}

@media (max-width: 560px) {
    .ct-broker-header { flex-direction: column; }
    .ct-stats { flex-wrap: wrap; gap: 16px 0; }
    .ct-stat { flex: 0 0 50%; }
    .ct-stat:nth-child(2) { border-right: none; }
}

/* ==========================================================================
   Property gallery slider
   ========================================================================== */

.pgallery { background: var(--charcoal); padding: 82px 0 68px; margin-bottom: 46px; }
.pgal-head { text-align: center; margin-bottom: 44px; padding: 0 24px; }
.pgal-head .eyebrow { display: block; color: var(--gold-light); margin-bottom: 12px; }
.pgal-head h2 { color: var(--white); }
.pgal-head h2 em { color: var(--gold-light); }

.swiper-gal { width: 100%; padding: 0 56px 46px !important; }

.swiper-gal .swiper-slide {
    height: 520px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.swiper-gal .swiper-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.swiper-gal .swiper-slide:hover img { transform: scale(1.05); }

.slide-cap {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 26px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
    font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

.gal-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.gal-btn {
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
    transition: background 0.3s, border-color 0.3s;
}
.gal-btn:hover { background: var(--gold); border-color: var(--gold); }

.swiper-gal .swiper-pagination-bullet { background: rgba(255, 255, 255, 0.35); opacity: 1; width: 6px; height: 6px; }
.swiper-gal .swiper-pagination-bullet-active { background: var(--gold-light); width: 18px; border-radius: 3px; }

/* ==========================================================================
   Gated document download modal
   ========================================================================== */

.dlmodal {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(20, 18, 15, 0.72);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
}
.dlmodal.is-open { display: flex; }

.dlmodal__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 940px;
    max-height: 92vh;
    overflow: hidden;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.dlmodal__visual { position: relative; min-height: 380px; background: var(--beige); overflow: hidden; }
.dlmodal__visual img { width: 100%; height: 100%; object-fit: cover; }
.dlmodal__visual-veil {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.25) 60%, rgba(17, 17, 17, 0.1) 100%);
}
.dlmodal__visual-text { position: absolute; left: 26px; right: 26px; bottom: 24px; color: var(--white); }
.dlmodal__visual-text h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.dlmodal__visual-text p { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; margin-top: 6px; }

.dlmodal__side { display: flex; flex-direction: column; overflow-y: auto; }

.dlmodal__tabs { display: flex; border-bottom: 1px solid var(--border-light); }
.dlmodal__tab {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 18px 8px;
    background: var(--off-white);
    border: 0; border-right: 1px solid var(--border-light);
    font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gray);
    transition: background 0.2s, color 0.2s;
}
.dlmodal__tab:last-child { border-right: 0; }
.dlmodal__tab:hover { color: var(--gold); }
.dlmodal__tab.is-active { background: var(--white); color: var(--charcoal); box-shadow: inset 0 -2px 0 var(--gold); }

.dlmodal__body { padding: 26px 28px 28px; }

.dlmodal__field { margin-bottom: 14px; }
.dlmodal__field label {
    display: block; margin-bottom: 6px;
    font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gray-light); font-weight: 600;
}
.dlmodal__field input {
    width: 100%;
    padding: 13px 14px;
    font-family: inherit; font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
.dlmodal__field input:focus { outline: none; border-color: var(--gold); }

@media (max-width: 820px) {
    .dlmodal__panel { grid-template-columns: 1fr; max-height: 94vh; }
    .dlmodal__visual { min-height: 170px; }
}

/* Lightbox */
.lbox {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(10, 10, 10, 0.94);
    display: none; align-items: center; justify-content: center;
    padding: 34px;
}
.lbox.is-open { display: flex; }
.lbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 3px; }
.lbox__close {
    position: absolute; top: 22px; right: 26px;
    width: 42px; height: 42px;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white); font-size: 1.3rem; line-height: 1;
    border-radius: 2px;
}
.lbox__close:hover { background: var(--gold); border-color: var(--gold); }

@media (max-width: 640px) {
    .swiper-gal { padding: 0 20px 40px !important; }
    .swiper-gal .swiper-slide { height: 320px; }
    .pgallery { padding: 56px 0 46px; }
}
