/*
Theme Name: Prairiehaven
Description: Website for Prairiehaven Apartments, Brandon MB - suites, neighbourhood, online applications, resident and staff portals. Works with the 4-plex Manager plugin.
Author: Clay Jackson
Version: 1.6.6
Requires PHP: 7.4
Text Domain: prairiehaven
*/

:root {
	--forest: #24502b;
	--forest-deep: #173a1d;
	--sand: #dccba6;
	--sand-soft: #efe6d2;
	--wheat: #9a7130;
	--mist: #eef1ec;
	--paper: #fafaf7;
	--white: #ffffff;
	--ink: #1d2a21;
	--muted: #5b6b5f;
	--line: #d9dfd6;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--r-lg: 28px;
	--r-md: 16px;
	--r-sm: 10px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--forest-deep); }
h1 em, h2 em, h3 em, .ph-brand em, .ph-footer-name em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.3em; line-height: .85; letter-spacing: -.005em; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.ph-skip:focus { left: 8px; }

.ph-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ph-section { padding: clamp(56px, 8vw, 104px) 0; }
.ph-section.ph-tight { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); }
.ph-mist { background: var(--mist); }
.ph-forest { background: var(--forest); color: var(--white); }
.ph-forest h2 { color: var(--white); }
.ph-forest h2 em { color: var(--sand); }

.ph-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.ph-forest .ph-lead { color: #dfe8dc; }
.ph-lead-dark { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); }
.ph-display { font-size: clamp(34px, 4.6vw, 58px); }
.ph-h2 { font-size: clamp(30px, 3.6vw, 46px); }
.ph-small { font-size: 14px; color: var(--muted); }

/* Buttons */
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 19px 36px; border-radius: 999px; border: 1px solid var(--forest); background: var(--forest); color: var(--white); font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ph-btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--white); }
.ph-btn-sm { padding: 14px 26px; font-size: 16px; }
.ph-btn-ghost { background: transparent; color: var(--forest); }
.ph-btn-ghost:hover { background: var(--forest); color: var(--white); }
.ph-btn-sand { background: var(--sand); border-color: var(--sand); color: var(--forest-deep); }
.ph-btn-sand:hover { background: var(--white); border-color: var(--white); color: var(--forest-deep); }
.ph-btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.ph-btn-ghost-light:hover { background: var(--white); color: var(--forest-deep); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ph-link { font-weight: 500; }

/* Header */
.ph-header { position: sticky; top: 0; z-index: 50; background: rgba(250,250,247,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.ph-header.is-scrolled { border-color: rgba(217,223,214,.8); box-shadow: 0 6px 24px -18px rgba(23,58,29,.35); }
.ph-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; transition: min-height .3s var(--ease); }
.ph-header.is-scrolled .ph-header-in { min-height: 56px; }
.ph-brand { text-decoration: none; color: var(--forest-deep); font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.ph-brand em { color: var(--wheat); font-size: 1.3em; font-weight: 700; }
.ph-footer-name { font-weight: 700; }
.ph-footer-name em { font-weight: 700; }
.ph-logo { max-height: 48px; width: auto; }
.ph-nav { display: flex; align-items: center; gap: 22px; }
.ph-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ph-menu a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.ph-menu a:hover, .ph-menu .current-menu-item > a { border-color: var(--forest); color: var(--forest); }
.ph-burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.ph-burger span:not(.screen-reader-text) { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
@media (max-width: 860px) {
	.ph-burger { display: block; }
	.ph-nav { position: fixed; inset: 68px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 68px); overflow: auto; }
	.ph-nav-open .ph-nav { display: flex; }
	.ph-menu { flex-direction: column; gap: 0; }
	.ph-menu a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
	.ph-nav .ph-btn { margin-top: 18px; }
	.ph-nav-open .ph-burger span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
	.ph-nav-open .ph-burger span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

/* Hero: headline in the sky, building on the horizon */
.ph-hero { padding-top: clamp(28px, 4.5vw, 64px); }
.ph-hero-sky { padding-bottom: clamp(24px, 3.5vw, 44px); }
.ph-hero h1 { font-size: clamp(42px, 6.6vw, 96px); line-height: 1; letter-spacing: -.03em; margin: 0; max-width: 13em; }
.ph-hero h1 em { color: var(--wheat); }
.ph-hero-side { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(18px, 2.4vw, 30px); }
.ph-hero-side .ph-lead { margin: 0; max-width: 30em; }
.ph-hero-side .ph-actions { margin-top: 0; }
.ph-hero-land { position: relative; margin: 0 auto; max-width: calc(var(--wrap) + 200px); padding: 0 clamp(8px, 2vw, 24px); }
.ph-scene { position: relative; height: clamp(420px, 50vw, 660px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.ph-scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ph-scene-photo { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); width: min(40%, 520px); aspect-ratio: 1 / 1.04; margin: 0; z-index: 0; border-radius: 999px 999px 20px 20px; padding: 10px 10px 0; background: var(--sand-soft); box-shadow: 0 30px 60px -30px rgba(23,58,29,.45); }
.ph-scene-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; border-radius: 999px 999px 14px 14px; }
.ph-scene-fg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 24%; z-index: 1; pointer-events: none; }
.ph-chips { z-index: 2; }
@media (max-width: 860px) {
	.ph-scene { height: clamp(380px, 110vw, 520px); }
	.ph-scene-photo { width: min(78%, 400px); bottom: 7%; }
	.ph-scene-fg { height: 18%; }
}
.ph-chips { position: absolute; left: clamp(24px, 4vw, 56px); right: clamp(24px, 4vw, 56px); bottom: clamp(20px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ph-chips li { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.62); backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); border: 1px solid rgba(255,255,255,.7); color: var(--forest-deep); font-size: 15px; font-weight: 500; }
.ph-chips .ph-chip-live { background: var(--forest); color: var(--white); border-color: var(--forest); }
.ph-chips .ph-chip-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8fd39a; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 860px) {
	.ph-chips { position: static; padding: 16px 4px 0; }
	.ph-chips li { background: var(--mist); border-color: var(--line); }
}

/* Inner page hero */
.ph-pagehero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.ph-pagehero h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; max-width: 14em; }
.ph-pagehero h1 em { color: var(--wheat); }
.ph-pagehero .ph-lead { margin-top: 18px; }
.ph-wide { max-width: calc(var(--wrap) + 200px); padding: 0 clamp(8px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px); }
.ph-pagehero-split { display: grid; grid-template-columns: 1.1fr minmax(320px, 0.8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ph-pagehero.is-split h1 { max-width: none; font-size: clamp(40px, 5vw, 72px); }
.ph-pagehero-photo { width: 100%; aspect-ratio: 4 / 5; max-height: 680px; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -36px rgba(23,58,29,.45); }
@media (max-width: 860px) { .ph-pagehero-split { grid-template-columns: 1fr; } .ph-pagehero-photo { aspect-ratio: 4 / 3; } }
.ph-pagehero-img { width: 100%; height: clamp(260px, 40vw, 520px); object-fit: cover; border-radius: var(--r-lg); }

/* Split intro */
.ph-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.ph-split .ph-display { margin: 0; }
.ph-split-text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .ph-split { grid-template-columns: 1fr; } }

/* Benefits: a list with rules, not boxes */
.ph-benefits { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.ph-benefits li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.ph-benefits h3 { font-size: 19px; font-weight: 500; margin: 2px 0 6px; color: var(--ink); letter-spacing: 0; }
.ph-benefits p { margin: 0; color: var(--muted); font-size: 16px; }
.ph-ic { width: 32px; height: 32px; color: var(--forest); flex: none; }
@media (max-width: 960px) { .ph-benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ph-benefits { grid-template-columns: 1fr; } }

/* Suites */
.ph-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ph-suites { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ph-suites > li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 22px 20px; display: flex; flex-direction: column; }
.ph-suites > li.is-open { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.ph-suite-name { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.ph-suite-size { font-size: 44px; font-weight: 300; line-height: 1; margin: 0 0 6px; color: var(--forest-deep); }
.ph-suite-size span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; color: var(--wheat); }
.ph-suite-meta { margin: 0 0 18px; color: var(--muted); }
.ph-suite-state { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 16px; color: var(--ink); }
.is-open .ph-suite-state { color: var(--forest); }
.ph-suites-lg > li { padding: 28px; }
.ph-suite-specs { list-style: none; padding: 0; margin: 8px 0 20px; display: grid; gap: 8px; color: var(--muted); }
.ph-suite-specs li { display: flex; align-items: center; gap: 10px; }
.ph-suite-specs .ph-ic { width: 22px; height: 22px; }
.ph-suites-lg .ph-btn { margin-top: 16px; align-self: flex-start; }
@media (max-width: 960px) { .ph-suites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ph-suites { grid-template-columns: 1fr; } }

.ph-suite-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.ph-suites-lg .ph-suite-actions .ph-btn { margin-top: 0; }
.ph-photos-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--forest); font: 500 14px/1 var(--sans); cursor: pointer; align-self: flex-start; transition: background .2s, border-color .2s, color .2s; }
.ph-photos-btn { padding: 12px 20px 12px 16px; font-size: 15px; font-weight: 600; }
.ph-suite-actions .ph-photos-btn { margin-top: 0; }
.ph-photos-btn:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.ph-photos-btn .ph-ic { width: 18px; height: 18px; color: currentColor; }
.ph-photos-btn span:empty { display: none; }
.ph-photos-btn span { min-width: 20px; padding: 2px 6px; border-radius: 99px; background: var(--mist); color: var(--forest-deep); font-size: 12px; }
.ph-photos-btn:hover span { background: rgba(255,255,255,.2); color: var(--white); }

/* Who pays + details, one compact block */
.ph-facts-sec { padding: clamp(44px, 6vw, 72px) 0; }
.ph-facts { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: clamp(14px, 2vw, 22px); margin-top: clamp(28px, 3.5vw, 44px); align-items: start; }
.ph-facts > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) clamp(10px, 1.4vw, 16px); }
.ph-facts li:last-child, .ph-facts .ph-terms > div:last-child { border-bottom: 0; }
.ph-facts h3 { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 10px; }
.ph-facts .ph-ticks li { padding: 7px 0 7px 26px; font-size: 15px; }
.ph-facts .ph-ticks li::before { top: 13px; }
.ph-facts .ph-ticks-plain li::before { top: 14px; }
.ph-facts .ph-terms > div { grid-template-columns: 80px 1fr; gap: 10px; padding: 7px 0; font-size: 15px; }
@media (max-width: 860px) { .ph-facts { grid-template-columns: 1fr 1fr; } .ph-facts > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ph-facts { grid-template-columns: 1fr; } }

/* Who pays */
.ph-paylist { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ph-paylist h3 { font-size: 20px; font-weight: 500; color: var(--ink); }
.ph-ticks { list-style: none; padding: 0; margin: 0; }
.ph-ticks li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); }
.ph-ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }
.ph-ticks-plain li::before { width: 8px; height: 8px; border: 1.5px solid var(--muted); border-radius: 50%; transform: none; top: 16px; }
@media (max-width: 600px) { .ph-paylist { grid-template-columns: 1fr; } }

.ph-terms { margin: 0; }
.ph-terms > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ph-terms dt { font-weight: 500; }
.ph-terms dd { margin: 0; color: var(--muted); }

/* Gallery */
.ph-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.ph-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.ph-gal-item:first-child { grid-column: span 2; grid-row: span 2; }
.ph-gal-item:first-child img { aspect-ratio: auto; height: 100%; }
@media (max-width: 700px) { .ph-gallery { grid-template-columns: 1fr 1fr; } }
.ph-lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(15,30,18,.97); color: var(--white); display: none; }
.ph-lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.ph-lightbox::backdrop { background: rgba(15,30,18,.6); }
.ph-lb-top { display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 28px); }
.ph-lb-cap { margin: 0; font-size: 18px; font-weight: 500; }
.ph-lb-count { color: #b9c7b6; font-size: 14px; margin-right: auto; }
.ph-lb-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: var(--white); font-size: 26px; cursor: pointer; }
.ph-lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 6vw, 80px); }
.ph-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); }
.ph-lb-prev, .ph-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; }
.ph-lb-prev:hover, .ph-lb-next:hover, .ph-lb-close:hover { background: rgba(255,255,255,.28); }
.ph-lb-prev { left: clamp(8px, 2vw, 20px); }
.ph-lb-next { right: clamp(8px, 2vw, 20px); }
.ph-lb-thumbs { display: flex; gap: 8px; justify-content: safe center; scrollbar-width: thin; overflow-x: auto; padding: 14px 16px 18px; }
.ph-lb-thumbs button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .55; }
.ph-lb-thumbs button[aria-current="true"] { border-color: var(--sand); opacity: 1; }
.ph-lb-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.ph-lb-stage img[src$=".svg"] { width: min(900px, 100%); height: auto; }
.is-single .ph-lb-prev, .is-single .ph-lb-next, .is-single .ph-lb-thumbs { display: none; }

/* Neighbourhood */
.ph-near-teaser { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.ph-near-group { font-size: 15px; font-weight: 500; color: var(--wheat); margin: 28px 0 4px; letter-spacing: 0; }
.ph-near-list { list-style: none; padding: 0; margin: 0 0 20px; }
.ph-near-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ph-near-list li span:last-child { color: var(--muted); white-space: nowrap; font-size: 15px; }
.ph-near-list small { display: block; color: var(--muted); font-size: 13px; }
.ph-map { border-radius: var(--r-lg); overflow: hidden; background: var(--mist); min-height: 360px; position: relative; }
.ph-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph-map-tall { min-height: 560px; }
.ph-map-open { position: absolute; right: 14px; top: 14px; z-index: 2; padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--forest); font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(23,58,29,.4); }
.ph-map-open:hover { background: var(--forest); color: var(--white); }
.ph-map-addr { position: absolute; left: 16px; bottom: 16px; margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.ph-map-addr .ph-ic { width: 18px; height: 18px; }
.ph-near { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.ph-sticky { position: sticky; top: 96px; }
.ph-near-block { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin-bottom: 36px; }
.ph-near-step { font-family: var(--serif); font-style: italic; font-size: 54px; line-height: .9; color: var(--sand); margin: 0; }
.ph-near-title { font-size: 26px; margin-bottom: 6px; }
@media (max-width: 860px) {
	.ph-near-teaser, .ph-near { grid-template-columns: 1fr; }
	.ph-sticky { position: relative; top: 0; }
	.ph-map-tall { min-height: 380px; }
	.ph-near-block { grid-template-columns: 44px 1fr; }
	.ph-near-step { font-size: 40px; }
}

/* FAQ */
.ph-faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 6vw, 96px); }
.ph-faq details { border-bottom: 1px solid var(--line); }
.ph-faq details:first-child { border-top: 1px solid var(--line); }
.ph-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 19px; position: relative; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 300; color: var(--forest); transition: transform .2s; }
.ph-faq details[open] summary::after { transform: rotate(45deg); }
.ph-faq details p { color: var(--muted); padding-bottom: 12px; max-width: 40em; }
@media (max-width: 860px) { .ph-faq-wrap { grid-template-columns: 1fr; } }

/* Apply band */
.ph-band { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 10vw, 136px); }
/* Soft accent shapes behind the band: a sun disc and a prairie hill line. */
.ph-band::before { content: ""; position: absolute; z-index: 0; width: clamp(260px, 34vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(220,203,166,.55), rgba(220,203,166,.18) 60%, transparent 70%); top: 7%; right: -7vw; }
.ph-band::after { content: ""; position: absolute; z-index: 0; left: -2%; right: -2%; bottom: 0; height: 46%; background: url("assets/img/hill-line.svg") center bottom / 100% 100% no-repeat; opacity: .55; }
.ph-band .ph-wrap { position: relative; z-index: 1; }
.ph-band-in { position: relative; overflow: hidden; background: var(--forest-deep); color: var(--white); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 28px; align-items: center; background-image: radial-gradient(120% 140% at 100% 100%, rgba(220,203,166,.22), transparent 55%); }
.ph-band h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 46px); margin: 0; }
.ph-band h2 em { color: var(--sand); }
.ph-band p { margin: 0; color: #d4ded1; }
.ph-band-in > * { position: relative; z-index: 1; }
.ph-band-in::after { content: ""; position: absolute; inset: auto -4% -32% 30%; height: 90%; border-radius: 50%; border: 1px solid rgba(220,203,166,.12); pointer-events: none; }
@media (max-width: 960px) { .ph-band-in { grid-template-columns: 1fr; } .ph-band .ph-btn { justify-self: start; } }

/* Apply page */
.ph-apply { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ph-apply-side { position: sticky; top: 96px; background: var(--mist); border-radius: var(--r-md); padding: 24px; }
.ph-apply-side h2 { font-size: 22px; font-weight: 500; color: var(--ink); }
.ph-apply-side .ph-ticks li { font-size: 15px; }
.ph-apply-side .ph-small { margin-top: 16px; }
@media (max-width: 960px) { .ph-apply { grid-template-columns: 1fr; } .ph-apply-side { position: static; } }

/* Contact */
.ph-contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.ph-contact-info p { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.ph-contact-info .ph-ic { width: 24px; height: 24px; }
.ph-contact-note { margin-top: 32px; padding: 22px; border-radius: var(--r-md); background: var(--mist); }
.ph-contact-note h2 { font-size: 20px; font-weight: 500; color: var(--ink); }
.ph-contact-note p { display: block; font-size: 16px; margin: 0; }
@media (max-width: 860px) { .ph-contact { grid-template-columns: 1fr; } }
.ph-form label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.ph-form input, .ph-form select, .ph-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: inherit; color: var(--ink); }
.ph-form input:focus, .ph-form select:focus, .ph-form textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(36,80,43,.15); }
.ph-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .ph-grid2 { grid-template-columns: 1fr; } }
.ph-hp { position: absolute; left: -9999px; }
.ph-ok, .ph-err, .ph-note { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 18px; }
.ph-ok { background: #e6f2e4; color: var(--forest-deep); }
.ph-err { background: #fbeceb; color: #8f2a22; }
.ph-note { background: var(--sand-soft); }
.ph-emergency { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-top: 24px; }
.ph-emergency .ph-ic { width: 22px; height: 22px; }

.ph-portal-wrap > *, .ph-login-main { max-width: 920px; }
.ph-login-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ph-login-split > * { max-width: none; }
.ph-login-side { background: var(--mist); border-radius: var(--r-md); padding: clamp(22px, 3vw, 32px); }
.ph-login-side h2 { font-size: 22px; font-weight: 600; color: var(--ink); }
.ph-login-side .ph-small { margin: 16px 0 0; }
.ph-login-split .ph-emergency { grid-column: 1 / -1; }
@media (max-width: 860px) { .ph-login-split { grid-template-columns: 1fr; } }
.ph-prose { max-width: 760px; }
.ph-prose h2 { font-size: 32px; margin-top: 1.4em; }

/* ------- Plugin forms, restyled to match ------- */
body .fpm-f { font-family: var(--sans); font-size: 17px; color: var(--ink); max-width: none; }
body .fpm-f .fpm-box, body .fpm-app .fpm-app-sec { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
body .fpm-f h3 { font-weight: 300; font-size: 26px; color: var(--forest-deep); margin-bottom: 10px; }
body .fpm-f label { font-weight: 500; font-size: 15px; }
.fpm-f input[type=text], .fpm-f input[type=email], .fpm-f input[type=tel], .fpm-f input[type=number], .fpm-f input[type=date], .fpm-f input[type=password], .fpm-f select, .fpm-f textarea,
body .fpm-app input[type=text], body .fpm-app input[type=email], body .fpm-app input[type=tel], body .fpm-app input[type=date], body .fpm-app input[type=number], body .fpm-app select, body .fpm-app textarea { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-family: var(--sans); color: var(--ink); padding: 12px 14px; }
body .fpm-f input:focus, body .fpm-f select:focus, body .fpm-f textarea:focus { outline: none; border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 3px rgba(36,80,43,.15); }
body .fpm-f button, body .fpm-f input[type=submit], body .fpm-app .fpm-app-submit button { background: var(--forest); border-radius: 999px; padding: 18px 34px; font-size: 17px; font-family: var(--sans); font-weight: 500; text-transform: none; letter-spacing: 0; }
body .fpm-f button:hover, body .fpm-f input[type=submit]:hover, body .fpm-app .fpm-app-submit button:hover { background: var(--forest-deep); }
body .fpm-f .fpm-ok { background: #e6f2e4; border-color: #b9d8b4; color: var(--forest-deep); border-radius: var(--r-sm); }
body .fpm-f .fpm-err { border-radius: var(--r-sm); }
body .fpm-f .fpm-muted, body .fpm-f small { color: var(--muted); }
body .fpm-app legend { font-weight: 300; font-size: 26px; color: var(--forest-deep); }
body .fpm-app label { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
body .fpm-app .fpm-app-rowlabel { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--wheat); font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 400; }
body .fpm-app .fpm-app-row { border-top-color: var(--line); }
body .fpm-app .fpm-app-check { background: var(--mist); border-radius: var(--r-sm); font-weight: 400; }
body .fpm-app .fpm-app-check input { accent-color: var(--forest); }
body .fpm-app .fpm-app-alert { background: var(--sand-soft); border-color: var(--sand); color: var(--forest-deep); font-weight: 500; border-radius: var(--r-md); text-align: left; }
body .fpm-app .fpm-app-note { color: var(--muted); }
body .fpm-portal .fpm-nav a { border-color: var(--line); color: var(--forest); background: var(--white); }
body .fpm-portal .fpm-nav a:hover { background: var(--forest); color: var(--white); }
body .fpm-portal .fpm-stat { border-color: var(--line); border-radius: var(--r-md); }
body .fpm-portal .fpm-stat strong { font-weight: 300; font-size: 28px; color: var(--forest-deep); }
body .fpm-portal .fpm-head h2 { font-weight: 300; font-size: 34px; }
body .fpm-f input[type=file] { max-width: 100%; width: 100%; font-size: 15px; }
@media (max-width: 600px) {
	body .fpm-f .fpm-row { flex-direction: column; gap: 0; }
	body .fpm-portal .fpm-stat strong { font-size: 22px; }
	body .fpm-portal table { font-size: 14px; }
	body .fpm-portal th, body .fpm-portal td { padding: 8px 4px; }
}
body #loginform p { margin-bottom: 14px; }
body .ph-login-split .fpm-portal > p.fpm-muted:last-child { display: none; }
body #loginform label { display: block; margin-bottom: 6px; }
body #loginform .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }

/* Footer */
.ph-footer { background: var(--forest-deep); color: #c9d5c6; padding: clamp(48px, 7vw, 80px) 0 28px; font-size: 16px; }
.ph-footer a { color: #eef3ec; text-decoration: none; }
.ph-footer a:hover { text-decoration: underline; color: var(--white); }
.ph-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ph-footer h2 { font-size: 15px; font-weight: 500; color: var(--sand); margin-bottom: 12px; letter-spacing: 0; }
.ph-footer ul { list-style: none; padding: 0; margin: 0; }
.ph-footer li { margin-bottom: 8px; }
.ph-footer-name { font-size: 30px; font-weight: 700; color: var(--white); line-height: 1.1; }
.ph-footer-name em { color: var(--sand); }
.ph-footer-brand p:last-child { max-width: 24em; }
.ph-footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
@media (max-width: 860px) { .ph-footer-grid { grid-template-columns: 1fr 1fr; } .ph-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ph-footer-grid { grid-template-columns: 1fr; } }

/* WordPress basics */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1em; }
.wp-caption-text { font-size: 14px; color: var(--muted); }
