/* =====================================================================
   XPND Bali — Property & Legal :: Design System
   Light & airy resort. Warm sand & ivory canvas, soft tropical light,
   refined gold accent, XPND green for action & "verified" trust signals.
   ===================================================================== */

:root {
    /* ---- Brand & palette ---- */
    --ink:        #20262b;   /* warm charcoal: headings */
    --ink-soft:   #313a40;
    --ink-700:    #4a555c;
    --body:       #5c635f;   /* warm slate body text */
    --muted:      #8a8d86;   /* warm muted */
    --line:       #ece6dc;   /* warm sand hairline */
    --paper:      #fffdfa;   /* warm ivory canvas */
    --paper-2:    #f8f3ea;   /* sand tint section */
    --paper-3:    #f1e9db;   /* deeper sand */

    --sand:       #f3ece0;
    --sand-deep:  #e9ddc9;

    --brand:      #2E7D32;   /* XPND green — CTA + verified/secure */
    --brand-dark: #1B5E20;
    --brand-soft: #e7f1e6;

    --gold:       #b48a4e;   /* refined Bali luxury accent */
    --gold-dark:  #946f38;
    --gold-soft:  #f4ead6;
    --gold-line:  #e6d6b8;

    /* legal status colors */
    --c-freehold:  #2E7D32;
    --c-leasehold: #b48a4e;
    --c-hakpakai:  #1565C0;
    --c-pma:       #6b7280;

    /* ---- Type ---- */
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* ---- Layout ---- */
    --container: 1200px;
    --radius:    22px;
    --radius-sm: 14px;
    --shadow-sm: 0 1px 2px rgba(86,70,40,.05), 0 2px 6px rgba(86,70,40,.04);
    --shadow:    0 18px 40px -20px rgba(86,70,40,.22);
    --shadow-lg: 0 40px 80px -28px rgba(86,70,40,.30);
    --section:   clamp(4.5rem, 8.5vw, 8rem);
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--body);
    background: var(--paper);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1.1rem; }

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

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

.container { max-width: var(--container); }

/* selection */
::selection { background: var(--gold-soft); color: var(--ink); }

/* ------------------------------------------------------------ helpers */
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--sand { background: linear-gradient(180deg, var(--sand) 0%, var(--paper-2) 100%); }
.section--ink { background: var(--ink); color: #cdd5e1; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 30px; height: 1px;
    background: var(--gold-line);
}
.section--ink .eyebrow { color: var(--gold); }

.lede {
    font-size: 1.18rem;
    color: var(--ink-700);
    line-height: 1.65;
    max-width: 42ch;
}
.section--ink .lede { color: #aeb8c7; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .lede { max-width: 60ch; margin-inline: auto; }

/* divider with gold tick */
.rule-gold { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 1.5rem 0; }

/* ------------------------------------------------------------- buttons */
.btn {
    --bs-btn-padding-y: .85rem;
    --bs-btn-padding-x: 1.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    border-radius: 999px;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(46,125,50,.6);
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 12px 26px -10px rgba(46,125,50,.7); }

.btn-ink {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
}
.btn-ink:hover { background: #000; color: #fff; }

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

.btn-light {
    background: #fff;
    border: 1px solid #fff;
    color: var(--ink);
}
.btn-light:hover { background: var(--gold-soft); color: var(--ink); }

.btn-wa { background: #25D366; border: 1px solid #25D366; color: #06351a; }
.btn-wa:hover { background: #1faa52; color: #fff; }

.btn-lg { --bs-btn-padding-y: 1.05rem; --bs-btn-padding-x: 2rem; font-size: 1.05rem; }

/* -------------------------------------------------------------- cards */
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card__icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.5rem;
    margin-bottom: 1.3rem;
}
.feature-card h3 { margin-bottom: .6rem; }
.feature-card p { margin-bottom: 0; font-size: .98rem; }

/* gold variant for legal-focused cards */
.feature-card--gold .feature-card__icon { background: var(--gold-soft); color: var(--gold); }

/* --------------------------------------------------------- trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.trust-strip__item { background: #fff; padding: 2rem 1.5rem; text-align: center; }
.trust-strip__num { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); line-height: 1; }
.trust-strip__label { font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-top: .5rem; text-transform: uppercase; }

/* on ink bg */
.section--ink .trust-strip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.section--ink .trust-strip__item { background: transparent; }
.section--ink .trust-strip__num { color: #fff; }
.section--ink .trust-strip__label { color: #8e9aad; }

/* ------------------------------------------------------ legal badges */
.legal-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.legal-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .73rem; font-weight: 700; letter-spacing: .02em;
    padding: .32rem .65rem; border-radius: 999px;
    background: #fff; color: var(--ink-700);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.legal-badge i { font-size: .85rem; }
.legal-badge.is-freehold  { color: #fff; background: var(--c-freehold);  border-color: var(--c-freehold); }
.legal-badge.is-leasehold { color: #fff; background: var(--c-leasehold); border-color: var(--c-leasehold); }
.legal-badge.is-hakpakai  { color: #fff; background: var(--c-hakpakai);  border-color: var(--c-hakpakai); }
.legal-badge.is-pma       { color: #fff; background: var(--c-pma);       border-color: var(--c-pma); }

/* --------------------------------------------------- property cards */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 991px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .property-grid { grid-template-columns: 1fr; } }

.property-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.property-card__media {
    position: relative; display: block;
    aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3);
}
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property-card:hover .property-card__media img { transform: scale(1.05); }
.property-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: #c7cdd8; }
.property-card__media .legal-badges { position: absolute; left: .8rem; top: .8rem; }

.property-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.property-card__loc { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .4rem; }
.property-card__title { font-size: 1.3rem; margin: 0 0 .5rem; line-height: 1.2; }
.property-card__title a { color: var(--ink); }
.property-card__title a:hover { color: var(--brand); }
.property-card__price { font-family: var(--font-body); font-weight: 800; color: var(--brand-dark); font-size: 1.12rem; margin-bottom: .9rem; }
.property-card__specs { list-style: none; display: flex; gap: 1.1rem; padding: 0; margin: 0 0 1.2rem; flex-wrap: wrap; }
.property-card__specs li { font-size: .85rem; color: var(--body); display: inline-flex; align-items: center; gap: .35rem; }
.property-card__specs i { color: var(--gold); }
.property-card__cta {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .9rem;
    padding: .7rem 1rem; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark);
    transition: background .2s ease, color .2s ease;
}
.property-card__cta:hover { background: var(--brand); color: #fff; }

/* --------------------------------------------------- sticky WA float */
.lead-float {
    position: fixed; right: 20px; bottom: 22px; z-index: 900;
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--brand); color: #fff;
    padding: .85rem 1.35rem; border-radius: 999px;
    font-weight: 700; font-size: .95rem;
    box-shadow: 0 16px 34px -12px rgba(46,125,50,.7);
    transition: transform .2s ease, background .2s ease;
}
.lead-float:hover { transform: translateY(-2px) scale(1.02); background: var(--brand-dark); color: #fff; }
.lead-float i { font-size: 1.2rem; }
@media (max-width: 575px) { .lead-float span { display: none; } .lead-float { padding: .95rem; } }

/* ------------------------------------------------------- page content */
.page-hero { padding: clamp(3rem, 6vw, 5rem) 0 2rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { margin: 2.4rem 0 1rem; }
.entry-content h3 { margin: 1.8rem 0 .8rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 3px solid var(--gold); padding-left: 1.2rem; font-style: italic; color: var(--ink-700); }

/* breadcrumb */
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

/* --------------------------------------------- single property page */
.prop-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .9rem; }
@media (max-width: 767px) { .prop-gallery { grid-template-columns: 1fr; } }
.prop-gallery__main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--paper-3); }
.prop-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.prop-gallery__thumbs { display: grid; grid-template-rows: repeat(2, 1fr); gap: .9rem; }
@media (max-width: 767px) { .prop-gallery__thumbs { grid-template-rows: none; grid-template-columns: repeat(4, 1fr); } }
.prop-gallery__thumb { border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-3); aspect-ratio: 4/3; }
.prop-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 575px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-tile { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1rem; text-align: center; }
.spec-tile i { font-size: 1.4rem; color: var(--gold); }
.spec-tile strong { display: block; font-size: 1.25rem; color: var(--ink); margin-top: .4rem; line-height: 1; }
.spec-tile span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.legal-panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.legal-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 575px) { .legal-rows { grid-template-columns: 1fr; } }
.legal-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.legal-row span { color: var(--muted); font-size: .92rem; display: inline-flex; align-items: center; gap: .5rem; }
.legal-row span i { color: var(--gold); }
.legal-row strong { color: var(--ink); text-align: right; }

.prop-cta { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.prop-cta__price { font-family: var(--font-display); font-size: 2rem; color: var(--brand-dark); line-height: 1; }
.prop-cta__note { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.prop-cta__trust { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.prop-cta__trust div { font-size: .88rem; color: var(--ink-700); display: flex; align-items: center; gap: .5rem; }
.prop-cta__trust i { color: var(--brand); }

/* pagination */
.pagination { display: flex; gap: .4rem; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
a.page-numbers:hover { background: var(--paper-2); }

/* ---------------------------------------------- property filter bar */
.property-filter {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: .9rem;
    align-items: end;
}
@media (max-width: 767px) { .property-filter { grid-template-columns: 1fr; } }
.property-filter__field { display: flex; flex-direction: column; min-width: 0; }
.property-filter label {
    font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 .45rem .15rem;
}
.property-filter select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    width: 100%; border: 1px solid var(--line); background-color: var(--paper-2);
    border-radius: var(--radius-sm); padding: .85rem 2.4rem .85rem .95rem;
    font-size: .95rem; color: var(--ink); font-family: var(--font-body); cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8d86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .95rem center; background-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.property-filter select:hover { border-color: var(--gold-line); background-color: #fff; }
.property-filter select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.property-filter__submit { width: 100%; justify-content: center; height: 100%; min-height: 50px; }
@media (max-width: 767px) { .property-filter__submit { margin-top: .3rem; } }

/* ---------------------------------------------- clickable feature card */
.feature-card--link { color: inherit; display: flex; flex-direction: column; }
.feature-card--link h3 { color: var(--ink); }
.feature-card--link:hover { border-color: transparent; }
.feature-card--link:hover h3 { color: var(--brand-dark); }
.feature-card__more {
    margin-top: auto; padding-top: 1rem;
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
    color: var(--gold-dark);
}
.feature-card__more i { transition: transform .25s ease; }
.feature-card--link:hover .feature-card__more i { transform: translateX(4px); }

/* large two-column checklist */
.checklist--lg { display: grid; grid-template-columns: 1fr; gap: .3rem; margin-top: 0; }
.checklist--lg li { font-size: 1.04rem; padding: .55rem 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.checklist--lg li:last-child { border-bottom: 0; }

/* -------------------------------------- shared layout components
   (used by the homepage AND the page templates — must load site-wide) */

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
@media (max-width: 991px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 2rem 1.6rem; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: .7rem; display: block; }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; margin: 0; color: var(--body); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .steps--3 { grid-template-columns: 1fr; } }

/* split (image + text) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 850px) { .split { grid-template-columns: 1fr; } }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--paper-3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__badge { position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(255,253,250,.95); backdrop-filter: blur(6px); border-radius: var(--radius-sm); padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .8rem; }
.split__badge i { font-size: 1.8rem; color: var(--gold); }
.split__badge strong { display: block; color: var(--ink); font-size: 1.05rem; }
.split__badge span { font-size: .82rem; color: var(--muted); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; color: var(--ink-700); }
.checklist i { color: var(--brand); margin-top: .25rem; font-size: 1.1rem; flex-shrink: 0; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 850px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.quote__stars { color: var(--gold); margin-bottom: 1rem; font-size: .95rem; letter-spacing: .15em; }
.quote__text { font-size: 1.02rem; color: var(--ink-700); line-height: 1.65; }
.quote__author { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font-weight: 700; }
.quote__author strong { color: var(--ink); display: block; font-size: .95rem; }
.quote__author span { font-size: .82rem; color: var(--muted); }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.3rem 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; color: var(--gold); transition: transform .25s ease; font-size: 1.1rem; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.4rem; margin: 0; color: var(--body); }

/* --------------------------------------------------- contact page */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.contact-form { margin-top: 1.4rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 575px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.contact-form label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem .15rem; }
.contact-form input, .contact-form textarea {
    width: 100%; border: 1px solid var(--line); background: var(--paper-2);
    border-radius: var(--radius-sm); padding: .85rem .95rem; font-size: .98rem; color: var(--ink);
    font-family: var(--font-body); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px var(--gold-soft); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.contact-form__alt { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); text-align: center; }

/* FluentForm — match the theme buttons/inputs */
.contact-card .fluentform .ff-el-input--label label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card .fluentform input[type=text], .contact-card .fluentform input[type=email], .contact-card .fluentform input[type=tel], .contact-card .fluentform input[type=number], .contact-card .fluentform textarea, .contact-card .fluentform select {
    border: 1px solid var(--line) !important; background: var(--paper-2) !important; border-radius: var(--radius-sm) !important; color: var(--ink) !important; font-family: var(--font-body) !important;
}
.contact-card .fluentform input:focus, .contact-card .fluentform textarea:focus, .contact-card .fluentform select:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px var(--gold-soft) !important; background: #fff !important; }
.contact-card .fluentform .ff-btn-submit, .contact-card .fluentform .ff_submit_btn_wrapper button {
    background: var(--brand) !important; border: 1px solid var(--brand) !important; color: #fff !important;
    border-radius: 999px !important; padding: .9rem 1.9rem !important; font-family: var(--font-body) !important; font-weight: 600 !important; font-size: .98rem !important;
    box-shadow: 0 8px 20px -8px rgba(46,125,50,.6); transition: background .2s ease, transform .18s ease;
}
.contact-card .fluentform .ff-btn-submit:hover, .contact-card .fluentform .ff_submit_btn_wrapper button:hover { background: var(--brand-dark) !important; transform: translateY(-1px); }

.contact-methods { display: grid; gap: .9rem; }
.contact-method {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.contact-method:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--ink); }
.contact-method--static { cursor: default; }
.contact-method__icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark); font-size: 1.25rem; }
.contact-method strong { display: block; font-size: 1rem; line-height: 1.2; }
.contact-method small { color: var(--muted); font-size: .85rem; }

/* ---------------------------------------------- legal pillar page */
.legalhero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .legalhero { grid-template-columns: 1fr; } }
.legalhero__media { aspect-ratio: 5 / 4; }
@media (max-width: 900px) { .legalhero__media { aspect-ratio: 16 / 10; margin-top: .5rem; } }
.legalhero__assurance { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; margin: 1.6rem 0 1.9rem; padding: 0; list-style: none; }
.legalhero__assurance li { display: flex; align-items: center; gap: .5rem; font-size: .94rem; color: var(--ink-700); font-weight: 500; }
.legalhero__assurance i { color: var(--brand); font-size: 1.15rem; }
.legalhero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* premium numbered service card */
.legal-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.legal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.legal-card__num { position: absolute; top: .9rem; right: 1.4rem; font-family: var(--font-display); font-size: 3.4rem; color: var(--paper-3); line-height: 1; pointer-events: none; transition: color .25s ease; }
.legal-card:hover .legal-card__num { color: var(--gold-soft); }
.legal-card__icon { width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.2rem; transition: background .25s ease, color .25s ease; }
.legal-card:hover .legal-card__icon { background: var(--gold); color: #fff; }
.legal-card h3 { font-size: 1.3rem; margin-bottom: .5rem; position: relative; }
.legal-card p { font-size: .96rem; color: var(--body); margin-bottom: 1.2rem; }
.legal-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.legal-card__more i { transition: transform .25s ease; }
.legal-card:hover .legal-card__more i { transform: translateX(4px); }

/* ownership comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { text-align: left; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--paper-2); font-family: var(--font-body); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--paper-2); }
.compare td { font-size: .95rem; color: var(--ink-700); }
.compare td .compare__sub { display: block; font-size: .82rem; color: var(--muted); margin-top: .25rem; }

/* ---------------------------------------------- buyer's guide */
/* journey timeline */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.journey__step { position: relative; text-align: center; padding-top: 3.4rem; }
.journey__step::before { content: ""; position: absolute; top: 1.45rem; left: 50%; right: -50%; height: 2px; background: var(--gold-line); z-index: 0; }
.journey__step:last-child::before { display: none; }
.journey__num { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--gold-dark); font-family: var(--font-display); font-size: 1.2rem; display: grid; place-items: center; z-index: 1; }
.journey__step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.journey__step p { font-size: .88rem; margin: 0; color: var(--muted); }
@media (max-width: 900px) {
    .journey { grid-template-columns: 1fr; gap: 0; }
    .journey__step { text-align: left; padding: 0 0 1.9rem 4rem; }
    .journey__step::before { top: 2.9rem; bottom: -.1rem; left: 1.45rem; right: auto; width: 2px; height: auto; }
    .journey__step:last-child::before { display: none; }
    .journey__num { left: 0; transform: none; }
}

/* cost cards */
.cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .cost-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .cost-grid { grid-template-columns: 1fr; } }
.cost-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.cost-card__amt { font-family: var(--font-display); font-size: 2rem; color: var(--brand-dark); line-height: 1; }
.cost-card h3 { font-size: 1.05rem; margin: .65rem 0 .35rem; }
.cost-card p { font-size: .86rem; color: var(--muted); margin: 0; }

/* red flags we screen for */
.flags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 767px) { .flags { grid-template-columns: 1fr; } }
.flags li { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink-700); font-size: .98rem; }
.flags i { color: #c2410c; font-size: 1.15rem; margin-top: .1rem; flex-shrink: 0; }

/* utility */
.text-gold { color: var(--gold) !important; }
.bg-tint { background: var(--paper-2); }
.lift { transition: transform .2s ease, box-shadow .2s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
