/* ==========================================================================
   PolyHomes — design system
   Palette and components reconstructed from the client's updated frames.
   ========================================================================== */

:root {
    /* --- brand ------------------------------------------------------ */
    --bg-deep: #12301f;
    --bg-deep-soft: #163a26;   /* stat tiles, raised surfaces on green */
    --gold: #ae9624;
    --gold-soft: #c9ae37;
    --gold-line: rgba(174, 150, 36, 0.5);
    --gold-hairline: rgba(174, 150, 36, 0.28);

    /* --- surfaces --------------------------------------------------- */
    --surface-grey: #d9d9d9;
    --card-grey: #f1f0ee;
    --off-white: #f7f7f5;
    --pill-green: #123d27;
    --near: #1f7a4d;
    --pin: #e8532e;
    --white: #ffffff;

    /* --- ink -------------------------------------------------------- */
    --ink: #101010;
    --ink-soft: #2c2c2c;
    --ink-mute: #545454;
    --on-gold: #10240f;        /* text sitting on a gold field */
    --muted: #d7dbd6;          /* body text on deep green */
    --muted-soft: #dfe2df;
    --line: rgba(255, 255, 255, 0.42);
    --line-dark: rgba(16, 16, 16, 0.22);

    /* --- status ----------------------------------------------------- */
    --danger: #c2361f;
    --danger-soft: #fdecea;
    --success: #1f7a4d;
    --success-soft: #e8f5ee;

    /* --- spacing ---------------------------------------------------- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.6rem;
    --space-8: 3.5rem;
    --space-9: 4.5rem;

    /* --- radius ----------------------------------------------------- */
    --radius-sm: 0.35rem;
    --radius-md: 0.6rem;
    --radius-lg: 0.9rem;
    --radius-pill: 999px;

    /* --- elevation -------------------------------------------------- */
    --shadow-sm: 0 1px 2px rgba(16, 16, 16, 0.06);
    --shadow-md: 0 6px 18px rgba(16, 16, 16, 0.08);
    --shadow-lg: 0 18px 44px rgba(16, 16, 16, 0.14);

    /* --- type ------------------------------------------------------- */
    /* Client moved the site from Montserrat to Inter (10 Aug 2026). Set here
       rather than on body so every rule inherits one source of truth; the
       Cormorant italic is deliberately kept for the brand-lockup tagline only,
       which is unchanged in their latest header mockups. */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;

    --fs-xs: 0.72rem;
    --fs-sm: 0.82rem;
    --fs-base: 0.92rem;
    --fs-md: 1rem;
    --fs-lg: 1.15rem;
    --fs-xl: 1.4rem;
    --fs-h2: clamp(1.35rem, 5vw, 1.75rem);
    --fs-h1: clamp(2.5rem, 11vw, 3.4rem);

    /* --- layering --------------------------------------------------- */
    --z-nav: 1000;
    --z-drawer: 1100;
}

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

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    font-family: inherit;
}

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

/**
 * The HTML `hidden` attribute must win.
 *
 * Components below set an explicit `display` (.ph-btn is inline-flex), and a
 * class selector outranks the UA's `[hidden]` rule - so `hidden` was being
 * ignored and the wizard's Submit button stayed visible on step 1.
 */
[hidden] {
    display: none !important;
}

.container {
    width: min(1180px, 100% - 2rem);
    margin-inline: auto;
}

/* Visible focus for keyboard users on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--gold-soft);
    outline-offset: 2px;
    border-radius: 2px;
}

/* On a gold field the gold ring would disappear. */
.ph-cta a:focus-visible,
.ph-stats-grid a:focus-visible {
    outline-color: var(--bg-deep);
}

.ph-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: calc(var(--z-drawer) + 1);
    background: var(--gold);
    color: var(--on-gold);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
}

.ph-skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ============================ BUTTONS ============================
   Shared button system. The bespoke CTAs elsewhere in this file predate
   it and are kept as-is so existing markup is unaffected.
   ================================================================ */

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.1rem;
    padding: 0 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ph-btn.gold {
    background: var(--gold);
    color: var(--on-gold);
}

.ph-btn.gold:hover {
    background: var(--gold-soft);
}

.ph-btn.dark {
    background: var(--bg-deep);
    color: var(--white);
}

.ph-btn.dark:hover {
    background: var(--pill-green);
}

.ph-btn.outline {
    border-color: currentColor;
    background: transparent;
    color: var(--bg-deep);
}

.ph-btn.outline:hover {
    background: var(--bg-deep);
    border-color: var(--bg-deep);
    color: var(--white);
}

.ph-btn.on-dark.outline {
    color: var(--white);
}

.ph-btn.on-dark.outline:hover {
    background: var(--white);
    color: var(--bg-deep);
}

.ph-btn.lg {
    min-height: 3.5rem;
    padding-inline: 2.2rem;
}

/* Secondary actions sitting inside a form step - the default 3.1rem is too
   heavy next to a field. The class was already in use on the host wizard's
   location buttons but had never been defined. */
.ph-btn.sm {
    min-height: 2.5rem;
    padding-inline: 1rem;
    font-size: var(--fs-xs);
}

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

.ph-btn[disabled],
.ph-btn.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================ HEADER ============================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-deep);
}

.ph-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ph-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Sized by height with auto width: the mark is 1.555:1, and the source PNG is
   cropped to the artwork itself (the original had 68% transparent padding,
   which is why it rendered far smaller than its box). */
.ph-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.ph-brand-text {
    display: grid;
    gap: 0.1rem;
}

.ph-brand-name {
    font-size: 1.1rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

/* The script tagline from the brand lockup. */
.ph-brand-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    color: var(--gold-soft);
    line-height: 1.1;
    white-space: nowrap;
}

.ph-desktop-nav {
    display: none;
}

.ph-desktop-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.ph-desktop-links a.is-current {
    color: var(--gold-soft);
    border-bottom-color: var(--gold-soft);
}

.ph-desktop-links a {
    color: #edf2ee;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ph-desktop-links a:hover {
    color: var(--gold-soft);
    border-bottom-color: var(--gold-soft);
}

.ph-nav-cta {
    display: none;
    background: var(--gold);
    color: #10240f;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.6rem;
    transition: background 0.2s ease;
}

.ph-nav-cta:hover {
    background: var(--gold-soft);
}

.ph-menu-toggle {
    width: 46px;
    height: 46px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    background: transparent;
    display: grid;
    place-content: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.ph-menu-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--white);
}

/* Mobile drawer */

.ph-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-deep);
    z-index: 1100;
    transform: translateX(101%);
    transition: transform 0.3s ease;
}

.ph-mobile-menu.open {
    transform: translateX(0);
}

.ph-mobile-menu-inner {
    width: min(760px, 100%);
    margin: 0 auto;
    min-height: 100%;
    padding: 1.1rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
}

.ph-mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.ph-menu-close {
    width: 46px;
    height: 46px;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.ph-mobile-links {
    display: grid;
}

.ph-mobile-links a {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    font-weight: 600;
}

.ph-menu-cta {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--gold);
    color: #10240f;
    font-size: 1rem;
    font-weight: 700;
}

main {
    padding-top: 76px;
}

/* ============================ HERO ============================ */

.ph-hero {
    position: relative;
    background: var(--bg-deep);
    padding: 2.4rem 0 2.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(78vh, 44rem);
}

.ph-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ph-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ph-hero-bg::after {
    /* darkens the photo top-down so the white display type stays legible */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 17, 0.62) 0%, rgba(10, 26, 17, 0.34) 42%, rgba(10, 26, 17, 0.5) 100%);
}

.ph-hero .container {
    position: relative;
    z-index: 1;
}

.ph-hero-content {
    max-width: 34rem;
}

.ph-hero-content h1 {
    color: var(--white);
    font-size: var(--fs-h1);
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 800;
    margin-bottom: 0.9rem;
    text-wrap: balance;
}

.ph-hero-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 27rem;
}

/* Store badges sit at the foot of the hero photo. */
.ph-hero .ph-store-row {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
}

/* Search card overlapping the hero photo */

.ph-search-card {
    margin-top: 2.6rem;
    background: var(--bg-deep);
    padding: 1.4rem 1.15rem 1.5rem;
}

.ph-category-tabs {
    display: flex;
    gap: 1.6rem;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ph-category-tabs::-webkit-scrollbar {
    display: none;
}

.ph-category-tabs button {
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 0.98rem;
    white-space: nowrap;
    padding: 0 0 0.7rem;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ph-category-tabs button.active {
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
}

.ph-search-box {
    margin-top: 1.5rem;
    background: #d9d9d9;
    color: #161616;
    min-height: 3.4rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1rem;
}

.ph-search-box i {
    font-size: 1rem;
    color: #4a4a4a;
}

.ph-search-box input {
    border: 0;
    background: transparent;
    width: 100%;
    color: #242424;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.ph-search-btn {
    margin-top: 1.1rem;
    width: 100%;
    min-height: 3.4rem;
    text-transform: uppercase;
    border: 0;
    background: var(--gold);
    color: #10240f;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ph-search-btn:hover {
    background: var(--gold-soft);
}

/* ======================= DOWNLOAD + STATS ======================= */

.ph-download {
    background: var(--bg-deep);
    padding: 2.6rem 0 0;
}

.ph-download h2 {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

/* ------------------------- store badges ------------------------- */

.ph-store-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    justify-items: center;
    margin-inline: auto;
    width: min(23rem, 100%);
}

.ph-store-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    min-height: 3.1rem;
    padding: 0 0.75rem;
    background: #050505;
    color: var(--white);
    position: relative;
}

.ph-store-btn i {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.ph-store-btn .label {
    display: block;
    line-height: 1.15;
}

.ph-store-btn small {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ph-store-btn strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Rendered when no store URL is configured yet - reads as a badge, but is
   not a link and is not clickable. */
.ph-store-btn.is-soon {
    opacity: 0.72;
    cursor: default;
}

.ph-store-btn .soon-flag {
    position: absolute;
    top: -0.5rem;
    right: -0.35rem;
    background: var(--gold);
    color: var(--on-gold);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}

/* ---------------------------- stats ---------------------------- */

.ph-stats {
    background: var(--bg-deep);
    padding: 2.2rem 0 2.6rem;
}

.ph-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.ph-stats-grid article {
    min-height: 6.5rem;
    background: var(--bg-deep-soft);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    color: var(--white);
    display: grid;
    place-content: center;
    text-align: center;
    padding: 1rem 0.75rem;
}

.ph-stats-grid strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.ph-stats-grid span {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ========================= SECTION HEADINGS ========================= */

.ph-section-heading {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 1.6rem;
}

.ph-section-heading .eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.9rem;
}

.ph-section-heading .eyebrow::before,
.ph-section-heading .eyebrow::after {
    content: '';
    display: inline-block;
    width: clamp(2rem, 8vw, 3.5rem);
    height: 1px;
    background: currentColor;
    margin: 0 0.7rem;
    transform: translateY(-0.3rem);
}

.ph-section-heading h2 {
    color: var(--white);
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ph-section-heading .desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* light-background variant */
.ph-section-heading.dark .eyebrow {
    color: #1c1c1c;
    font-weight: 500;
}

.ph-section-heading.dark h2 {
    color: #101010;
}

.ph-section-heading.dark .desc {
    color: #3c3c3c;
}

.ph-dark-section {
    padding: 2.8rem 0;
    background: var(--bg-deep);
}

/* ========================= HOW IT WORKS ========================= */

.ph-how-works {
    background: var(--surface-grey);
    color: var(--ink);
    padding: 2.6rem 0 2.2rem;
}

.ph-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(16, 16, 16, 0.18);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ph-toggle button {
    border: 0;
    min-height: 3.4rem;
    text-transform: uppercase;
    background: transparent;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ph-toggle button.active {
    background: var(--bg-deep);
    color: var(--white);
}

.ph-steps {
    display: none;
}

.ph-steps.active {
    display: block;
}

.ph-steps-intro {
    color: #303030;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 1.4rem 0 0.3rem;
}

.ph-steps article {
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line-dark);
}

.ph-steps article:last-of-type {
    border-bottom: 0;
}

/* number and kicker share one row above the step title */
.ph-steps .step-head {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    margin-bottom: 0.7rem;
}

.ph-steps .num {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.ph-steps .kicker {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.ph-steps h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.ph-steps p {
    color: var(--ink-soft);
    font-size: var(--fs-base);
    line-height: 1.55;
}

.ph-steps-cta {
    padding-top: 1.6rem;
}

.ph-steps-cta .ph-btn {
    width: 100%;
}

.ph-section-more {
    margin-top: 2rem;
    text-align: center;
}

/* ====================== HANDPICKED PROPERTIES ====================== */

.ph-properties {
    background: var(--white);
    color: var(--ink);
    padding: 2.6rem 0 2.8rem;
}

.ph-property-list {
    display: grid;
    gap: 1.1rem;
}

/* The whole card is a link - booking happens in the app, so it routes to
   download.php. */
.ph-property-card {
    display: block;
    background: var(--card-grey);
    border-radius: var(--radius-lg);
    padding: 0.65rem 0.65rem 0.9rem;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-property-card:hover,
.ph-property-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ph-property-card img {
    transition: transform 0.4s ease;
}

.ph-property-card:hover img {
    transform: scale(1.05);
}

.ph-property-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pill-green);
}

.ph-property-card .card-cta i {
    transition: transform 0.2s ease;
}

.ph-property-card:hover .card-cta i {
    transform: translateX(3px);
}

.ph-property-card .img-wrap {
    position: relative;
    border-radius: 0.6rem;
    overflow: hidden;
}

.ph-property-card img {
    width: 100%;
    height: 11.5rem;
    object-fit: cover;
}

.ph-property-card .price-pill {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    background: var(--pill-green);
    color: var(--white);
    border-radius: 0.35rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.ph-property-card .price-pill small {
    font-size: 0.72rem;
    font-weight: 500;
}

.ph-property-card .body {
    padding: 0.85rem 0.35rem 0;
}

.ph-property-card .title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.ph-property-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: #101010;
}

.ph-property-card .rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.65rem;
}

.ph-property-card .rating i {
    color: var(--gold-soft);
}

.ph-property-card .loc {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #2c2c2c;
    margin-bottom: 0.3rem;
}

.ph-property-card .loc i {
    color: var(--pin);
}

/* ====================== FOR PROPERTY OWNERS ====================== */

.ph-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.ph-outline-card {
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-lg);
    color: #eff2ee;
    padding: 1.35rem 1.15rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.ph-outline-card .card-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-soft);
    display: grid;
    place-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.ph-outline-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.ph-outline-card p {
    color: #e3e5e3;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.4rem;
}

.ph-outline-card a {
    margin-top: auto;
    color: var(--gold-soft);
    font-size: 0.82rem;
    white-space: nowrap;
}

.ph-outline-card a i {
    margin-left: 0.35rem;
}

/* ========================== REAL STORIES ========================== */

.ph-stories {
    background: var(--white);
    color: var(--ink);
    padding: 2.6rem 0 2.8rem;
}

.ph-story-list {
    display: grid;
}

.ph-story-card {
    border-top: 2px solid var(--gold);
    padding: 1.5rem 0 1.7rem;
}

.ph-story-card .quote {
    font-size: 1.4rem;
    color: #101010;
    margin-bottom: 0.9rem;
}

.ph-story-card .text {
    color: #141414;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.3rem;
}

.ph-story-card .author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ph-story-card .author img {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    object-fit: cover;
}

.ph-story-card .author strong {
    display: block;
    font-size: 0.95rem;
}

.ph-story-card .author span {
    display: block;
    color: #545454;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.stars {
    color: var(--gold-soft);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

/* ========================= WHY POLYHOMES ========================= */

.ph-why .ph-section-heading {
    text-align: left;
    margin-inline: 0;
}

.ph-why .ph-section-heading .eyebrow {
    text-align: center;
}

.ph-why .ph-section-heading h2 {
    text-align: center;
}

.ph-why .ph-section-heading .desc {
    line-height: 1.9;
}

.ph-why-list {
    list-style: none;
    display: grid;
    margin-top: 0.5rem;
}

.ph-why-list li {
    padding: 1.2rem 0;
    border-top: 1px solid rgba(174, 150, 36, 0.5);
}

.ph-why-list h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.ph-why-list p {
    color: #dfe2df;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================== CTA ============================== */

.ph-cta {
    background: var(--gold);
    padding: 2.6rem 0 3rem;
}

.ph-cta h2 {
    color: #12301f;
    text-align: center;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 1.5rem;
}

.ph-cta .actions {
    display: grid;
    gap: 1rem;
}

.ph-cta a {
    display: block;
    text-align: center;
    min-height: 3.5rem;
    line-height: 3.5rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.ph-cta .primary {
    background: var(--bg-deep);
    color: var(--white);
}

.ph-cta .primary:hover {
    background: var(--pill-green);
}

.ph-cta .secondary {
    border: 2px solid var(--white);
    color: var(--white);
    line-height: calc(3.5rem - 4px);
}

.ph-cta .secondary:hover {
    background: var(--white);
    color: var(--bg-deep);
}

/* ============================= FOOTER ============================= */

.footer {
    background: var(--bg-deep);
    padding: 2.6rem 0 0;
    color: #d9ddd9;
    position: relative;
    overflow: hidden;
}

/* Oversized wordmark bleeding off the bottom edge, as drawn. */
.ph-footer-watermark {
    margin-top: 1.5rem;
    text-align: center;
    font-size: clamp(3rem, 17vw, 11rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 0.78;
    color: rgba(255, 255, 255, 0.07);
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.ph-footer-grid {
    display: grid;
    gap: 1.7rem;
}

.ph-footer-brand h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.ph-footer-brand p {
    color: #d8ddd8;
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 31rem;
    margin-bottom: 1.2rem;
}

.ph-footer-socials {
    display: flex;
    gap: 0.6rem;
}

.ph-footer-socials a {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--bg-deep);
    display: grid;
    place-content: center;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.ph-footer-socials a:hover {
    background: var(--gold-soft);
}

/* Shown until the client supplies real profile URLs. */
.ph-footer-socials .ph-social-fallback {
    width: auto;
    gap: 0.5rem;
    grid-auto-flow: column;
    align-items: center;
    padding: 0 0.85rem;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ph-footer-col h4 {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}

.ph-footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.ph-footer-col li,
.ph-footer-col a {
    color: #dfe3df;
    font-size: 0.9rem;
}

.ph-contact-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ph-contact-list i {
    width: 1rem;
    text-align: center;
    padding-top: 0.2rem;
    flex-shrink: 0;
}

.ph-footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(241, 241, 241, 0.35);
    text-align: center;
}

.ph-footer-bottom p {
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

.ph-footer-bottom .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.ph-footer-bottom .links a {
    color: #dde1dd;
    font-size: 0.82rem;
}

/* ========================= WIZARD CHROME =========================
   Shared by the host onboarding form (host.php) and the property wizard
   (host-property-new.php). Defined here rather than in either page's own
   stylesheet, since both need it - the property wizard previously rendered
   its progress rail as a bare numbered list because these lived only in
   host.css.
   ================================================================ */

.ph-step-rail {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.ph-step-rail::-webkit-scrollbar {
    display: none;
}

.ph-step-rail li {
    flex: 1 0 auto;
    min-width: 2.2rem;
    height: 0.3rem;
    border-radius: var(--radius-pill);
    background: rgba(16, 16, 16, 0.14);
    transition: background 0.25s ease;
}

.ph-step-rail li.is-done,
.ph-step-rail li.is-current {
    background: var(--gold);
}

.ph-step-counter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.3rem 1rem;
    font-size: var(--fs-sm);
    color: var(--ink-mute);
    margin-bottom: 1.6rem;
}

.ph-step-counter strong {
    color: var(--bg-deep);
    font-size: var(--fs-md);
}

.ph-step-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(16, 16, 16, 0.12);
}

.ph-step-nav .ph-btn {
    flex: 1;
}

/* Only rendered when the wizard is unpaged (no JS). */
.ph-submit-row {
    display: none;
    margin-top: 2rem;
}

/* ------------------ Google Drive photo panel ------------------ */

.ph-drive-panel {
    background: var(--bg-deep);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.3rem 1.7rem;
    margin-bottom: 1.8rem;
}

.ph-drive-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--fs-lg);
    margin-bottom: 0.7rem;
}

.ph-drive-panel h3 i {
    color: var(--gold-soft);
}

.ph-drive-panel p {
    color: var(--muted);
    font-size: var(--fs-base);
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.ph-drive-panel .ph-btn {
    width: 100%;
}

.ph-drive-warning {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: rgba(174, 150, 36, 0.16);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.9rem;
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--white);
    margin-top: 1.1rem;
}

.ph-drive-warning i {
    color: var(--gold-soft);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.ph-drive-unset {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--gold-line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--muted);
}

/* ============================= FORMS =============================
   Nothing here existed before; the contact form rendered as raw browser
   default. Used by contact.php and host.php.
   ================================================================ */

.ph-fieldset {
    border: 0;
    margin-bottom: 2.2rem;
}

.ph-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bg-deep);
    padding-bottom: 0.85rem;
    margin-bottom: 1.4rem;
    border-bottom: 2px solid var(--gold);
}

.ph-legend .step-no {
    display: grid;
    place-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--bg-deep);
    color: var(--white);
    font-size: var(--fs-xs);
    flex-shrink: 0;
}

.ph-grid {
    display: grid;
    gap: 1.1rem;
}

.ph-field {
    display: grid;
    gap: 0.4rem;
    /* Pack rows to the top. Without this the field stretches to match the
       tallest cell in its .ph-grid row and, being a grid itself, shares that
       extra height out between its own rows - so a control sitting beside a
       field with help text (ID Type next to ID Number, or the step-8 payout
       rows) was pushed visibly lower than its neighbour. */
    align-content: start;
}

.ph-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink);
}

.ph-label .req {
    color: var(--danger);
    margin-left: 0.15rem;
}

.ph-label .opt {
    color: var(--ink-mute);
    font-weight: 500;
    margin-left: 0.3rem;
}

.ph-input,
.ph-select,
.ph-textarea {
    width: 100%;
    min-height: 3.1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(16, 16, 16, 0.25);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: var(--fs-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ph-textarea {
    min-height: 8rem;
    resize: vertical;
}

.ph-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23101010' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 0.7rem;
    padding-right: 2.4rem;
}

.ph-input:focus,
.ph-select:focus,
.ph-textarea:focus {
    border-color: var(--bg-deep);
    box-shadow: 0 0 0 3px rgba(174, 150, 36, 0.25);
    outline: none;
}

.ph-input.has-error,
.ph-select.has-error,
.ph-textarea.has-error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.ph-help {
    font-size: var(--fs-sm);
    color: var(--ink-mute);
    line-height: 1.45;
}

.ph-error {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--danger);
}

.ph-error::before {
    content: '\26A0';
    margin-right: 0.35rem;
}

/* ---- choice controls ---- */

.ph-check-grid {
    display: grid;
    gap: 0.6rem;
}

.ph-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(16, 16, 16, 0.18);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: var(--fs-base);
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ph-check:hover {
    border-color: var(--gold);
}

.ph-check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    accent-color: var(--bg-deep);
    flex-shrink: 0;
    cursor: pointer;
}

.ph-check:has(input:checked) {
    border-color: var(--bg-deep);
    background: var(--off-white);
}

/* inline yes/no pairs */
.ph-inline-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ph-inline-choices .ph-check {
    flex: 0 0 auto;
    min-width: 6rem;
}

/* selectable policy cards */
.ph-choice-cards {
    display: grid;
    gap: 0.85rem;
}

.ph-choice-card {
    position: relative;
    display: block;
    border: 2px solid rgba(16, 16, 16, 0.16);
    border-radius: var(--radius-md);
    padding: 1.1rem 1rem;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ph-choice-card:hover {
    border-color: var(--gold);
}

.ph-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ph-choice-card .head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-sm);
    color: var(--bg-deep);
    margin-bottom: 0.5rem;
}

.ph-choice-card .head i {
    font-size: 1.1rem;
    color: var(--gold);
}

.ph-choice-card p {
    font-size: var(--fs-base);
    color: var(--ink-soft);
    line-height: 1.5;
}

.ph-choice-card:has(input:checked) {
    border-color: var(--bg-deep);
    box-shadow: 0 0 0 3px rgba(174, 150, 36, 0.22);
}

/* form-level banners */
.ph-form-note {
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--gold);
    background: var(--off-white);
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--ink-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ph-alert {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-base);
    line-height: 1.5;
    margin-bottom: 1.6rem;
}

.ph-alert.error {
    background: var(--danger-soft);
    border-left: 4px solid var(--danger);
    color: #7d1f0f;
}

.ph-alert.success {
    background: var(--success-soft);
    border-left: 4px solid var(--success);
    color: #145635;
}

/* honeypot - hidden from people, visible to naive bots */
.ph-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ========================= INTERIOR PAGES ========================= */

.page-banner {
    position: relative;
    min-height: 15rem;
    display: grid;
    align-content: end;
    padding: 1.6rem;
    overflow: hidden;
    background: linear-gradient(120deg, var(--bg-deep), #1c4b31);
}

/* The banner photo is a real <img> for alt text and lazy-loading, so it is
   positioned behind the heading rather than left as an unsized grid item. */
.page-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 48, 31, 0.45) 0%, rgba(18, 48, 31, 0.85) 100%);
    z-index: 1;
}

.page-banner > .container,
.page-banner h1,
.page-banner p {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
}

.page-banner p {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: var(--fs-md);
    max-width: 38rem;
}

/* ============================ DESKTOP ============================ */

@media (min-width: 900px) {
    /* --- shared form + wizard layout (used by host.php and the wizard) --- */
    .ph-grid.two   { grid-template-columns: 1fr 1fr; }
    .ph-grid.three { grid-template-columns: repeat(3, 1fr); }
    .ph-grid .span-2 { grid-column: span 2; }

    .ph-check-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .ph-check-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

    .ph-choice-cards { grid-template-columns: repeat(3, 1fr); }

    .ph-drive-panel { padding: 2rem 1.9rem 2.1rem; }
    .ph-drive-panel .ph-btn { width: auto; min-width: 18rem; }

    .ph-step-nav { justify-content: flex-end; }
    .ph-step-nav .ph-btn { flex: 0 0 auto; min-width: 11rem; }

    .ph-nav {
        min-height: 92px;
    }

    main {
        padding-top: 92px;
    }

    .ph-brand-logo {
        height: 58px;
        width: auto;
    }

    .ph-brand-name {
        font-size: 1.3rem;
    }

    .ph-brand-tagline {
        font-size: 0.82rem;
    }

    .ph-menu-toggle {
        display: none;
    }

    .ph-desktop-nav {
        display: block;
    }

    .ph-nav-cta {
        display: flex;
    }

    .ph-hero {
        padding: 6rem 0 4.5rem;
        min-height: 42rem;
        justify-content: flex-end;
    }

    .ph-hero-bg::after {
        background: linear-gradient(100deg, rgba(10, 26, 17, 0.78) 0%, rgba(10, 26, 17, 0.45) 55%, rgba(10, 26, 17, 0.3) 100%);
    }

    .ph-hero-content h1 {
        font-size: clamp(3rem, 4.6vw, 4.25rem);
    }

    .ph-hero-content p {
        font-size: 1.1rem;
    }

    .ph-hero .ph-store-row {
        margin-inline: 0;
        margin-top: 2.5rem;
    }

    .ph-download {
        padding-top: 4rem;
    }

    .ph-download h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .ph-store-row {
        width: min(30rem, 100%);
        gap: 1rem;
    }

    .ph-stats {
        padding-block: 3.5rem;
    }

    .ph-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .ph-stats-grid article {
        min-height: 8.5rem;
    }

    .ph-stats-grid strong {
        font-size: 2rem;
    }

    .ph-stats-grid span {
        font-size: 0.8rem;
    }

    .ph-dark-section,
    .ph-how-works,
    .ph-properties,
    .ph-stories {
        padding-block: 4.5rem;
    }

    .ph-section-heading {
        margin-bottom: 2.5rem;
    }

    .ph-section-heading h2 {
        font-size: clamp(1.85rem, 2.6vw, 2.5rem);
    }

    .ph-section-heading .desc {
        font-size: 1.05rem;
    }

    .ph-toggle {
        width: min(30rem, 100%);
        margin-inline: auto;
    }

    .ph-steps-intro {
        text-align: center;
        max-width: 42rem;
        margin-inline: auto;
        font-size: 1.02rem;
    }

    .ph-steps.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
        align-items: start;
    }

    /* the searching panel has three steps — one balanced row */
    #searching.ph-steps.active {
        grid-template-columns: repeat(3, 1fr);
    }

    .ph-steps-intro,
    .ph-steps-cta {
        grid-column: 1 / -1;
    }

    .ph-steps-cta {
        text-align: center;
    }

    .ph-steps-cta .ph-btn {
        width: auto;
        min-width: 17rem;
    }

    .ph-steps article {
        border-bottom: 0;
    }

    .ph-property-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ph-property-card img {
        height: 13.5rem;
    }

    .ph-card-grid.outline-cards {
        width: min(60rem, 100%);
        margin-inline: auto;
    }

    .ph-outline-card {
        padding: 1.75rem 1.6rem 1.9rem;
    }

    .ph-outline-card h3 {
        font-size: 1.2rem;
    }

    .ph-outline-card p {
        font-size: 0.98rem;
    }

    .ph-story-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .ph-story-card {
        padding-bottom: 0;
    }

    .ph-why .ph-section-heading {
        text-align: center;
        margin-inline: auto;
    }

    .ph-why-list {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
    }

    .ph-cta {
        padding-block: 4rem;
    }

    .ph-cta h2 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .ph-cta .actions {
        grid-auto-flow: column;
        justify-content: center;
    }

    .ph-cta a {
        min-width: 17rem;
    }

    .footer {
        padding: 4rem 0 2.5rem;
    }

    .ph-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 2.5rem;
    }

    .ph-footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .ph-footer-bottom p {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   WhatsApp floating button
   Sits above the footer watermark and below the nav/drawer, so it never
   overlaps an open mobile menu. Collapsed to the icon on small screens,
   where a labelled pill would cover too much of the listing grid.
   ========================================================================== */

.ph-whatsapp-fab {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: calc(var(--z-nav) - 1);

    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    padding: 0.85rem;
    border-radius: var(--radius-pill);
    background: #25d366;              /* WhatsApp brand green, not a site token */
    color: #07301a;
    box-shadow: var(--shadow-lg);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ph-whatsapp-fab i {
    font-size: 1.65rem;
    line-height: 1;
}

.ph-whatsapp-fab .ph-whatsapp-label {
    display: none;
    font-weight: 600;
    font-size: var(--fs-base);
    padding-right: 0.4rem;
    white-space: nowrap;
}

.ph-whatsapp-fab:hover,
.ph-whatsapp-fab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(7, 48, 26, 0.34);
}

@media (min-width: 768px) {
    .ph-whatsapp-fab {
        right: 1.6rem;
        bottom: 1.6rem;
        padding: 0.8rem 1.15rem;
    }

    .ph-whatsapp-fab .ph-whatsapp-label {
        display: inline;
    }
}

/* Respect a reduced-motion preference - the lift is decorative. */
@media (prefers-reduced-motion: reduce) {
    .ph-whatsapp-fab {
        transition: none;
    }

    .ph-whatsapp-fab:hover,
    .ph-whatsapp-fab:focus-visible {
        transform: none;
    }
}

/* The open mobile drawer must cover it. */
body.menu-open .ph-whatsapp-fab {
    display: none;
}

/* ==========================================================================
   Header account menu
   Built to the client's 10 Aug 2026 mockup. The same rows render as a
   dropdown at >=900px and as a bottom sheet below it; main.js picks which one
   to open from the same breakpoint, so the two never disagree.
   ========================================================================== */

.ph-account {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.ph-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--gold);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ph-account-btn:hover,
.ph-account-btn[aria-expanded="true"] {
    background: rgba(174, 150, 36, 0.18);
    border-color: var(--gold-soft);
}

.ph-account-btn > i:first-child { font-size: 1.15rem; color: var(--gold-soft); }
.ph-account-btn .caret        { font-size: 0.7rem; transition: transform 0.2s ease; }
.ph-account-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* The brand lockup already fills a narrow phone; drop the word rather than
   let the header wrap onto two lines. */
.ph-account-btn-text { display: none; }

/* ---- shared row styling (dropdown and sheet) ---- */

.ph-acct-head {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-mute);
    padding: 0.55rem 0.75rem 0.75rem;
    margin: 0;
}

.ph-acct-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--ink);
    transition: background 0.15s ease;
}

.ph-acct-row:hover,
.ph-acct-row:focus-visible {
    background: var(--off-white);
}

.ph-acct-ico {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--card-grey);
    color: var(--bg-deep);
    display: grid;
    place-content: center;
    font-size: 1rem;
}

.ph-acct-ico.plus {
    background: var(--bg-deep);
    color: var(--gold-soft);
}

.ph-acct-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ph-acct-label {
    font-weight: 700;
    font-size: var(--fs-base);
    line-height: 1.3;
}

.ph-acct-desc {
    font-size: var(--fs-sm);
    color: var(--ink-mute);
    line-height: 1.3;
}

.ph-acct-go {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ink-mute);
    flex-shrink: 0;
}

.ph-acct-row.is-footer {
    margin-top: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line-dark);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ---- desktop dropdown ---- */

.ph-account-panel {
    position: absolute;
    top: calc(100% + 0.85rem);
    right: 0;
    z-index: var(--z-drawer);
    width: 21rem;
    max-width: calc(100vw - 2rem);
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
}

.ph-account-panel[hidden] { display: none; }

/* Below the desktop breakpoint the dropdown is never used - the sheet is. */
@media (max-width: 899.98px) {
    .ph-account-panel { display: none !important; }
}

/* ---- mobile bottom sheet ---- */

.ph-acct-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 17, 0.55);
    z-index: var(--z-drawer);
}

.ph-acct-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--z-drawer) + 1);
    padding: 0.6rem 0.9rem calc(1.4rem + env(safe-area-inset-bottom));
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -18px 44px rgba(16, 16, 16, 0.24);
    animation: ph-sheet-up 0.22s ease;
}

.ph-acct-sheet[hidden],
.ph-acct-sheet-backdrop[hidden] { display: none; }

.ph-acct-grabber {
    display: block;
    width: 2.6rem;
    height: 0.25rem;
    margin: 0.25rem auto 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--line-dark);
}

.ph-acct-sheet .ph-acct-head {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 0.5rem;
}

@keyframes ph-sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ph-acct-sheet { animation: none; }
}

/* The sheet is a phone pattern only. */
@media (min-width: 900px) {
    .ph-acct-sheet,
    .ph-acct-sheet-backdrop { display: none !important; }
}

@media (min-width: 480px) {
    .ph-account-btn-text { display: inline; }
}

@media (min-width: 900px) {
    /* DOM order already places the pill between the nav links and the CTA;
       reset the mobile auto-margin so space-between spaces them evenly. */
    .ph-account {
        margin-left: 0;
    }

    .ph-account-btn {
        padding: 0.55rem 0.95rem;
    }
}

/* ===================================================================
   Affiliate registration form
   Sections, track chooser and declaration, added for the client's
   "Polyhomes Affiliate Registration Form". Built on the existing
   .ph-field / .ph-input primitives so it inherits their focus states.
   =================================================================== */

.ph-form-section {
    margin: 2rem 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(16, 16, 16, 0.1);
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bg-deep);
}

.ph-radio-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ph-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border: 1.5px solid rgba(16, 16, 16, 0.16);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ph-radio:has(input:checked) {
    border-color: var(--bg-deep);
    background: rgba(18, 48, 31, 0.06);
    font-weight: 600;
}

.ph-track-list {
    display: grid;
    gap: 0.8rem;
}

.ph-track {
    display: flex;
    gap: 0.85rem;
    padding: 1.05rem 1.15rem;
    border: 1.5px solid rgba(16, 16, 16, 0.16);
    border-radius: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ph-track:hover { border-color: var(--bg-deep); }

.ph-track:has(input:checked) {
    border-color: var(--bg-deep);
    background: rgba(18, 48, 31, 0.05);
}

.ph-track > input { margin-top: 0.3rem; flex: 0 0 auto; }

.ph-track-body { display: block; }

.ph-track-name {
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.ph-track-blurb {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-mute);
}

.ph-track-agreement {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bg-deep);
}

.ph-check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ink-mute);
    cursor: pointer;
}

.ph-check > input { margin-top: 0.28rem; flex: 0 0 auto; }
