/* ==========================================================================
   PV Elements — tokens, section classes and shared helpers (loaded everywhere).
   Source of truth for the look: Pineview Cottage/preview V7/ (= pineview.rymd.co)
   and Pineview Cottage/design-system/design-system.md.
   ========================================================================== */

:root {
    /* colour (design-system.md §1) */
    --pv-sea: #354D3D;
    --pv-sea-deep: #2A3F32;
    --pv-sea-darker: #233A2B;
    --pv-sage: #70826A;
    --pv-mist: #ACB69E;
    --pv-ivory: #EFE2CF;
    --pv-ivory-2: #FBF7EF;
    --pv-plum: #7C5866;
    --pv-gold: #BE8C50;
    --pv-ink: #2B342C;
    --pv-body: #5C6558;
    --pv-page: #FDFBF6;
    --pv-footer: #1F2E24;
    --pv-white: #FFFFFF;

    /* text tints for small labels — the base sage/gold fail WCAG AA at eyebrow size
       (sage on ivory 3.2:1, gold on cream 2.9:1). Dots, icons and large type keep the base colours. */
    --pv-sage-ink: #566650;   /* ≥4.8:1 on ivory, cream and white */
    --pv-gold-ink: #80592A;   /* ≥4.8:1 on ivory, cream and white */
    --pv-gold-soft: #D2A66C;  /* ≥5:1 on the dark greens */

    /* accent — swapped to plum by .pv-accent-plum (Memory Care) */
    --pv-accent: var(--pv-gold);
    --pv-accent-ink: var(--pv-gold-ink);

    /* type */
    --pv-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --pv-font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --pv-fs-h1: clamp(2.6rem, 4.8vw, 4.1rem);
    --pv-fs-h2: clamp(1.95rem, 3.1vw, 2.7rem);
    --pv-fs-h3: 1.28rem;
    --pv-fs-body: 1.12rem;
    --pv-fs-lede: 1.26rem;
    --pv-fs-label: .88rem;

    /* layout */
    --pv-wrap: 1304px;                         /* V7 .wrap 1400 incl. 2 × 48px */
    --pv-gutter: clamp(20px, 3.4vw, 48px);     /* V7 kept 48px on phones (content 294px at 390) */
    --pv-sec: 100px;
    --pv-sec-tight: 72px;

    /* shape + depth + motion */
    --pv-r-lg: 16px;
    --pv-r-md: 10px;
    --pv-r-sm: 8px;
    --pv-r-card: 22px;
    --pv-shadow-sm: 0 2px 10px rgba(43, 52, 44, .06);
    --pv-shadow-md: 0 12px 32px -8px rgba(43, 52, 44, .14);
    --pv-shadow-lg: 0 24px 60px -16px rgba(43, 52, 44, .22);
    --pv-ease: cubic-bezier(.22, .61, .36, 1);
    --pv-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@media (max-width: 1024px) {
    :root { --pv-sec: 84px; --pv-sec-tight: 64px; }
}
@media (max-width: 767px) {
    :root { --pv-sec: 64px; --pv-sec-tight: 52px; }
}

.pv-accent-plum,
.pv-accent-plum .pv-accent-scope { --pv-accent: var(--pv-plum); --pv-accent-ink: var(--pv-plum); }

/* ── Page ─────────────────────────────────────────────────────────────── */

body.pv-site {
    background-color: var(--pv-page);
    color: var(--pv-ink);
    font-family: var(--pv-font-body);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Section containers (classes on the outer Elementor container) ────────
   Padding lives in the container variables, so the editor's own Padding control still wins. */
.e-con.pv-sec {
    --padding-top: var(--pv-sec);
    --padding-bottom: var(--pv-sec);
    --padding-left: var(--pv-gutter);
    --padding-right: var(--pv-gutter);
    --gap: 0px;
    --row-gap: 0px;
    --column-gap: 0px;
    --widgets-spacing: 0px;
    --widgets-spacing-row: 0px;
    --widgets-spacing-column: 0px;
    --kit-widget-spacing: 0px;
    position: relative;
    color: var(--pv-ink);
    font-family: var(--pv-font-body);
}
.e-con.pv-sec > .e-con-inner { position: relative; z-index: 1; }
.e-con.pv-sec--tight { --padding-top: var(--pv-sec-tight); --padding-bottom: var(--pv-sec-tight); }
.e-con.pv-sec--flush-top { --padding-top: 0px; }
.e-con.pv-sec--ivory { background-color: var(--pv-ivory); }
.e-con.pv-sec--cream { background-color: var(--pv-page); }
.e-con.pv-sec--dark { background-color: var(--pv-sea-deep); color: #fff; overflow: hidden; }
.e-con.pv-sec--dark::before {
    content: ""; position: absolute; top: -120px; left: -120px; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 140, 80, .16), transparent 70%); pointer-events: none;
}
/* hero + interior page header: the card itself carries the design */
.e-con.pv-sec--hero { --padding-top: 32px; --padding-bottom: 64px; --padding-left: 0px; --padding-right: 0px; }
.e-con.pv-sec--header { --padding-top: 32px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
/* closing banner: full-bleed with a small frame (V7 .cta-wrap) */
.e-con.pv-sec--cta { --padding-top: 60px; --padding-bottom: 60px; --padding-left: 24px; --padding-right: 24px; }
@media (max-width: 1024px) {
    .e-con.pv-sec--hero, .e-con.pv-sec--header { --padding-left: 20px; --padding-right: 20px; }
}
@media (max-width: 767px) {
    .e-con.pv-sec--hero { --padding-top: 16px; --padding-bottom: 40px; --padding-left: 12px; --padding-right: 12px; }
    .e-con.pv-sec--header { --padding-top: 16px; --padding-left: 12px; --padding-right: 12px; }
    .e-con.pv-sec--cta { --padding-top: 48px; --padding-bottom: 48px; --padding-left: 12px; --padding-right: 12px; }
}
/* gap between two blocks stacked in one section (section head → grid, story → story) */
.e-con.pv-sec > .e-con-inner > .elementor-widget + .elementor-widget,
.e-con.pv-sec > .elementor-widget + .elementor-widget { margin-top: var(--pv-stack-gap, 0px); }

/* Custom widgets fill their container (BUG-039 — aspect-ratio boxes collapse otherwise) */
.e-con > .elementor-widget[class*="elementor-widget-pv-"] { width: 100%; max-width: 100%; }

/* ── Shared type ──────────────────────────────────────────────────────── */

.pv-w h1, .pv-w h2, .pv-w h3, .pv-w h4,
.pv-w .pv-h1, .pv-w .pv-h2, .pv-w .pv-h3 {
    font-family: var(--pv-font-display);
    color: var(--pv-sea-deep);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}
.pv-w .pv-h1 { font-size: var(--pv-fs-h1); line-height: 1.1; }
.pv-w .pv-h2 { font-size: var(--pv-fs-h2); line-height: 1.22; }
.pv-w .pv-h3 { font-size: var(--pv-fs-h3); line-height: 1.3; font-weight: 700; }
.pv-w .pv-h3--lg { font-size: clamp(1.4rem, 2vw, 1.6rem); font-weight: 500; }
.pv-w p { color: var(--pv-body); font-size: var(--pv-fs-body); line-height: 1.65; margin: 0; }
.pv-w p + p { margin-top: 14px; }
.pv-w .pv-lede { font-size: var(--pv-fs-lede); color: var(--pv-body); }
.pv-w em { font-style: italic; color: var(--pv-plum); }
.pv-w strong { color: var(--pv-sea-deep); }
.pv-w .pv-rich > *:first-child { margin-top: 0; }
.pv-w .pv-rich p { margin: 0; }
.pv-w .pv-rich p + p, .pv-w .pv-rich ul, .pv-w .pv-rich ol { margin-top: 14px; }
.pv-w .pv-rich a { color: var(--pv-sea-deep); text-decoration: underline; text-underline-offset: 3px; }
.pv-w .pv-rich a:hover { color: var(--pv-sage-ink); }

/* eyebrow: "• HARBOR SPRINGS, MICHIGAN" */
.pv-w .pv-eyebrow {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--pv-font-body);
    font-size: var(--pv-fs-label); font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--pv-sage-ink);
    margin: 0 0 14px;
    line-height: 1.4;
}
.pv-w .pv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pv-accent); display: inline-block; flex-shrink: 0; }
.pv-w.pv-center .pv-eyebrow, .pv-w .pv-center .pv-eyebrow { justify-content: center; }

/* tag: "• ASSISTED LIVING" in the accent colour */
.pv-w .pv-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--pv-fs-label); font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
    color: var(--pv-accent-ink);
    margin: 0 0 20px;
    line-height: 1.4;
}
.pv-w .pv-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pv-accent); display: inline-block; }

/* on dark panels */
.pv-on-dark .pv-eyebrow, .pv-sec--dark .pv-w .pv-eyebrow { color: var(--pv-mist); }
.pv-on-dark .pv-tag { color: var(--pv-gold-soft); }
.pv-on-dark .pv-tag::before { background: var(--pv-gold); }
.pv-on-dark h1, .pv-on-dark h2, .pv-on-dark h3, .pv-on-dark .pv-h1, .pv-on-dark .pv-h2, .pv-on-dark .pv-h3,
.pv-sec--dark .pv-w .pv-h2, .pv-sec--dark .pv-w .pv-h3 { color: #fff; }
.pv-on-dark p, .pv-sec--dark .pv-w p { color: rgba(255, 255, 255, .78); }

/* ── Buttons (scoped with .pv-w — Hello's reset/link rules tie with one class, BUG-040/045) ── */

.pv-w .pv-btn,
.pv-w .pv-btn:visited {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--pv-font-body); font-weight: 700; font-size: 1.02rem; line-height: 1.25;
    padding: 16px 30px; border-radius: 100px; border: 0;
    background-color: var(--pv-sea-deep); color: var(--pv-ivory-2);
    text-decoration: none; text-align: center; cursor: pointer;
    box-shadow: var(--pv-shadow-sm);
    transition: transform .25s var(--pv-spring), box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.pv-w .pv-btn:hover, .pv-w .pv-btn:focus-visible {
    transform: translateY(-3px) scale(1.02); box-shadow: var(--pv-shadow-md);
    background-color: var(--pv-sea); color: var(--pv-ivory-2);
}
.pv-w .pv-btn--sm { padding: 12px 24px; font-size: .96rem; }
.pv-w .pv-btn--gold, .pv-w .pv-btn--gold:visited { background-color: var(--pv-gold); color: #3A2C17; }
.pv-w .pv-btn--gold:hover, .pv-w .pv-btn--gold:focus-visible { background-color: #CC9A5C; color: #3A2C17; }
.pv-w .pv-btn--ghost, .pv-w .pv-btn--ghost:visited { background-color: #fff; color: var(--pv-sea-deep); box-shadow: var(--pv-shadow-sm), inset 0 0 0 1.5px rgba(53, 77, 61, .14); }
.pv-w .pv-btn--ghost:hover, .pv-w .pv-btn--ghost:focus-visible { background-color: var(--pv-ivory); color: var(--pv-sea-deep); }
.pv-w .pv-btn:focus-visible { outline: 3px solid var(--pv-gold); outline-offset: 3px; }
.pv-w .pv-btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.pv-w.pv-center .pv-btn-row, .pv-w .pv-center .pv-btn-row { justify-content: center; }
@media (max-width: 480px) {
    .pv-w .pv-btn { white-space: normal; }
}

/* ── Lists ────────────────────────────────────────────────────────────── */

.pv-w .pv-check {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--pv-ivory); color: var(--pv-sage);
    display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.pv-w .pv-check svg { width: 12px; height: 12px; stroke: currentColor; }
.pv-w .pv-features { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pv-w .pv-features li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; font-weight: 600; color: var(--pv-sea-deep); line-height: 1.5; margin: 0; }
.pv-w .pv-features .pv-check svg { width: 14px; height: 14px; }

/* ── Photos ───────────────────────────────────────────────────────────── */

.pv-w .pv-photo {
    position: relative; overflow: hidden;
    border-radius: var(--pv-r-lg);
    background: linear-gradient(160deg, var(--pv-mist), #8D9A7F);
    box-shadow: var(--pv-shadow-md);
}
.pv-w .pv-photo > img, .pv-w .pv-photo .pv-img-cover {
    position: absolute; inset: 0; width: 100%; height: 100%;
    max-width: none; border-radius: 0;
    object-fit: cover; object-position: var(--pv-img-x, 50%) var(--pv-img-y, 50%);
}
/* soft bottom shade, as on the design's photo slots */
.pv-w .pv-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(37, 56, 48, .35));
}
.pv-w .pv-photo--plain::after { display: none; }
.pv-w .pv-photo.pv-tone-warm { background: linear-gradient(160deg, #D8C6A3, var(--pv-gold)); }
.pv-w .pv-photo.pv-tone-deep { background: linear-gradient(160deg, var(--pv-sage), var(--pv-sea)); }
.pv-accent-plum .pv-w .pv-photo, .pv-w.pv-accent-plum .pv-photo { background: linear-gradient(160deg, #A9899A, var(--pv-plum)); }

/* ── Reveal (blur-fade) — hidden states exist only with JS on (html.pv-js) ── */

/* html.pv-js (0,1,1) + attribute: beats any widget's own hover transition (0,2,0) while revealing;
   pv-frontend.js removes the attribute once the fade is done, so hover transitions take over. */
html.pv-js [data-pv-reveal] {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(5px);
    transition: opacity .75s var(--pv-ease), transform .75s var(--pv-ease), filter .75s var(--pv-ease);
    transition-delay: var(--pv-delay, 0ms);
}
html.pv-js [data-pv-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Hero / page header load-in: keyframes omit `to` so elements settle at their computed style */
@keyframes pv-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pv-fade { from { opacity: 0; } }

/* Elementor editor: always show everything (BUG-010) */
.elementor-editor-active [data-pv-reveal],
.elementor-editor-preview [data-pv-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
.elementor-editor-active .pv-rise > *,
.elementor-editor-active .pv-fade-in { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
    html.pv-js [data-pv-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
    .pv-rise > *, .pv-fade-in { animation: none !important; }
}

/* ── Utilities ────────────────────────────────────────────────────────── */

.pv-w .screen-reader-text, .pv-sr {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Consult box (dark panel) — pv-consult + pv-cost (V7 .consult-box / .consult-box-centered) ── */

.pv-w .pv-consult {
    position: relative; overflow: hidden;
    background-color: var(--pv-sea-deep); color: #fff;
    border-radius: var(--pv-r-lg); padding: 48px;
    box-shadow: var(--pv-shadow-lg);
}
.pv-w .pv-consult::before {
    content: ""; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; border-radius: 50%;
    background: rgba(190, 140, 80, .2); pointer-events: none;
}
.pv-w .pv-consult > * { position: relative; }
.pv-w .pv-consult .pv-tag { margin-bottom: 4px; }
.pv-w .pv-consult .pv-consult__title { font-family: var(--pv-font-display); color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1.35; margin: 16px 0 18px; }
.pv-w .pv-consult .pv-consult__text { color: rgba(255, 255, 255, .82); margin: 0 0 20px; }
.pv-w .pv-consult .pv-consult__list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pv-w .pv-consult .pv-consult__list li { margin: 0; display: flex; gap: 10px; font-size: 1.04rem; color: rgba(255, 255, 255, .88); line-height: 1.5; }
.pv-w .pv-consult .pv-consult__list li::before { content: "\2713"; color: var(--pv-gold); font-weight: 800; flex-shrink: 0; }
.pv-w .pv-consult .pv-consult__fine { font-size: .94rem; color: rgba(255, 255, 255, .7); margin-top: 18px; }
.pv-w .pv-consult .pv-btn-row { margin-top: 24px; }
.pv-w .pv-consult--centered { text-align: center; max-width: 820px; margin: 0 auto; }
.pv-w .pv-consult--centered .pv-consult__title { font-size: 1.5rem; margin: 16px 0 14px; }
.pv-w .pv-consult--centered .pv-consult__text { max-width: 520px; margin: 0 auto 20px; }
.pv-w .pv-consult--centered .pv-btn-row { justify-content: center; margin-top: 8px; }
.pv-w .pv-consult--centered .pv-consult__list { align-items: center; }
@media (max-width: 767px) {
    .pv-w .pv-consult { padding: 36px 24px; }
    .pv-w .pv-consult .pv-btn-row .pv-btn { width: 100%; }
}
