/* ==========================================================================
   Paradise Kingston — component system
   Bump PK_ASSET_VER in functions.php on every deploy or the CDN serves stale.
   ========================================================================== */

:root {
	--pk-ink:        #16211c;
	--pk-body:       #33403a;
	--pk-muted:      #5c6b64;

	--pk-green-900:  #143126;
	--pk-green-700:  #1f4a3a;
	--pk-green-600:  #2c5a47;
	--pk-green-100:  #dfe9e3;

	--pk-sand-50:    #faf7f1;
	--pk-sand-100:   #f1ebe0;
	--pk-sand-200:   #e2d8c6;

	--pk-brass:      #8a6430;
	--pk-brass-soft: #b98f4f;

	--pk-white:      #ffffff;
	--pk-line:       #d9d2c4;  /* decorative separators only */
	--pk-line-strong:#74837c;  /* interactive boundaries — must clear 3:1 (WCAG 1.4.11) */

	--pk-radius:     4px;
	--pk-radius-lg:  8px;

	--pk-shadow:     0 1px 2px rgba(20, 49, 38, .06), 0 8px 24px rgba(20, 49, 38, .07);
	--pk-shadow-lg:  0 2px 4px rgba(20, 49, 38, .07), 0 16px 48px rgba(20, 49, 38, .11);

	--pk-serif:      "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--pk-sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--pk-measure:    68ch;
	--pk-gutter:     clamp(1.25rem, 4vw, 2.5rem);
	--pk-container:  1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--pk-sans);
	font-size: clamp(1rem, .97rem + .16vw, 1.0625rem);
	line-height: 1.65;
	color: var(--pk-body);
	background: var(--pk-white);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
	font-family: var(--pk-serif);
	color: var(--pk-ink);
	line-height: 1.15;
	margin: 0 0 .5em;
	font-weight: 600;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
h3 { font-size: clamp(1.185rem, 1.1rem + .5vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-family: var(--pk-sans); font-weight: 700; }

p, li { max-width: var(--pk-measure); }

a { color: var(--pk-green-700); text-underline-offset: .18em; }
a:hover { color: var(--pk-green-900); }

:focus-visible {
	outline: 3px solid var(--pk-brass);
	outline-offset: 2px;
	border-radius: 2px;
}

.pk-eyebrow {
	font-family: var(--pk-sans);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--pk-brass);
	margin: 0 0 .65rem;
}

.pk-lede { font-size: 1.15rem; color: var(--pk-body); }

/* --- Layout -------------------------------------------------------------- */

.pk-container {
	width: 100%;
	max-width: var(--pk-container);
	margin-inline: auto;
	padding-inline: var(--pk-gutter);
}

.pk-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.pk-section--sand { background: var(--pk-sand-50); }
.pk-section--tint { background: var(--pk-green-100); }

.pk-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.pk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.pk-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }

/* Grid children default to min-width:auto, so a long value refuses to shrink
   and spills into the neighbouring cell. This shipped once as "From $463,9994". */
.pk-grid > * { min-width: 0; }

.pk-skip {
	position: absolute;
	left: -9999px;
}
.pk-skip:focus {
	left: 1rem; top: 1rem;
	z-index: 100;
	padding: .75rem 1.25rem;
	background: var(--pk-white);
	box-shadow: var(--pk-shadow-lg);
}

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

.pk-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.97);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--pk-line);
}

.pk-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.25rem;
}

.pk-brand {
	font-family: var(--pk-serif);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--pk-ink);
	text-decoration: none;
	line-height: 1.1;
}
.pk-brand small {
	display: block;
	font-family: var(--pk-sans);
	font-size: .68rem;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--pk-muted);
	font-weight: 600;
}

.pk-nav__list {
	display: flex; flex-wrap: wrap; gap: 1.35rem;
	list-style: none; margin: 0; padding: 0;
}
.pk-nav__item { max-width: none; }
.pk-nav__link {
	font-size: .93rem; font-weight: 600;
	color: var(--pk-body);
	text-decoration: none;
	padding-block: .5rem;
	display: inline-block;
}
.pk-nav__link:hover,
.pk-nav__link[aria-current="page"] { color: var(--pk-green-700); }

.pk-header__cta { display: flex; align-items: center; gap: .85rem; }

.pk-nav-toggle {
	display: none;
	border: 1px solid var(--pk-line-strong);
	background: var(--pk-white);
	border-radius: var(--pk-radius);
	min-height: 44px; min-width: 44px;
	font-size: .9rem; font-weight: 600;
	color: var(--pk-ink);
	cursor: pointer;
}

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

.pk-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .7rem 1.4rem;
	border-radius: var(--pk-radius);
	font-weight: 700; font-size: .95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pk-btn--primary { background: var(--pk-green-700); color: var(--pk-white); }
.pk-btn--primary:hover { background: var(--pk-green-900); color: var(--pk-white); }

.pk-btn--ghost { background: transparent; color: var(--pk-green-700); border-color: var(--pk-line-strong); }
.pk-btn--ghost:hover { border-color: var(--pk-green-700); color: var(--pk-green-900); }

.pk-btn--phone { background: var(--pk-sand-100); color: var(--pk-ink); }
.pk-btn--phone:hover { background: var(--pk-sand-200); color: var(--pk-ink); }

/* --- Hero / page header -------------------------------------------------- */

.pk-hero { position: relative; isolation: isolate; background: var(--pk-green-900); }

.pk-hero__media {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover;
}

/* Left-weighted scrim on desktop so the copy column stays legible;
   flips to top-to-bottom under 720px where copy sits below centre. */
.pk-hero::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg,
		rgba(11,28,22,.92) 0%,
		rgba(11,28,22,.78) 38%,
		rgba(11,28,22,.32) 68%,
		rgba(11,28,22,.18) 100%);
}

.pk-hero__inner {
	padding-block: clamp(3.5rem, 9vw, 7rem);
	max-width: 44rem;
}

.pk-hero h1 { color: var(--pk-white); }
.pk-hero p { color: #e8efe9; font-size: 1.15rem; }
.pk-hero .pk-eyebrow { color: var(--pk-brass-soft); }
.pk-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.pk-hero .pk-btn--ghost { color: var(--pk-white); border-color: rgba(255,255,255,.5); }
.pk-hero .pk-btn--ghost:hover { color: var(--pk-white); border-color: var(--pk-white); }

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

.pk-card {
	background: var(--pk-white);
	border: 1px solid var(--pk-line);
	border-radius: var(--pk-radius-lg);
	overflow: hidden;
	display: flex; flex-direction: column;
	box-shadow: var(--pk-shadow);
}

.pk-card__media { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pk-card__body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pk-card__title { margin: 0; font-size: 1.24rem; }
.pk-card__meta { font-size: .88rem; color: var(--pk-muted); margin: 0; }
.pk-card__foot { margin-top: auto; padding-top: .85rem; }

.pk-badge {
	display: inline-block;
	padding: .2rem .6rem;
	border-radius: 999px;
	background: var(--pk-green-100);
	color: var(--pk-green-900);
	font-size: .74rem; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase;
}
.pk-badge--rendering { background: var(--pk-sand-200); color: #5a4a2c; }

.pk-stat { display: flex; flex-direction: column; gap: .15rem; }
.pk-stat__value { font-family: var(--pk-serif); font-size: 1.85rem; color: var(--pk-ink); line-height: 1; }
.pk-stat__label { font-size: .82rem; color: var(--pk-muted); text-transform: uppercase; letter-spacing: .06em; }

/* --- Figures / captions -------------------------------------------------- */

.pk-figure { margin: 0; }
.pk-figure img { display: block; width: 100%; height: auto; border-radius: var(--pk-radius-lg); }
.pk-figure figcaption {
	font-size: .85rem; color: var(--pk-muted);
	margin-top: .55rem; max-width: var(--pk-measure);
}

/* --- FAQ accordions (source of the FAQPage schema) ----------------------- */

.pk-faq details {
	border-bottom: 1px solid var(--pk-line);
	padding: 1.1rem 0;
}
.pk-faq summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--pk-ink);
	font-size: 1.05rem;
	list-style: none;
	display: flex; justify-content: space-between; gap: 1rem;
	min-height: 44px; align-items: center;
}
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after { content: "+"; color: var(--pk-brass); font-size: 1.5rem; line-height: 1; }
.pk-faq details[open] summary::after { content: "–"; }

/* --- Reciprocal community strip ------------------------------------------ */

.pk-network { background: var(--pk-green-900); color: var(--pk-white); }
.pk-network h2 { color: var(--pk-white); }
.pk-network p { color: #d5e2da; }
.pk-network__card {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: var(--pk-radius-lg);
	overflow: hidden;
	display: flex; flex-direction: column;
}
.pk-network__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pk-network__body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pk-network__body h3 { color: var(--pk-white); margin: 0; font-size: 1.15rem; }
.pk-network__body p { margin: 0; font-size: .92rem; }
.pk-network__body .pk-btn { margin-top: auto; align-self: flex-start; }
.pk-network .pk-btn--ghost { color: var(--pk-white); border-color: rgba(255,255,255,.45); }
.pk-network .pk-btn--ghost:hover { border-color: var(--pk-white); color: var(--pk-white); }

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

.pk-footer { background: var(--pk-sand-50); border-top: 1px solid var(--pk-line); }
.pk-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.pk-footer h2 { font-size: .82rem; font-family: var(--pk-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--pk-muted); }
.pk-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pk-footer a { color: var(--pk-body); text-decoration: none; font-size: .93rem; }
.pk-footer a:hover { color: var(--pk-green-700); text-decoration: underline; }

.pk-disclaimer {
	border-top: 1px solid var(--pk-line);
	margin-top: 2.5rem; padding-top: 1.5rem;
	font-size: .82rem; color: var(--pk-muted);
	max-width: none;
}
.pk-disclaimer p { max-width: none; margin: 0 0 .6rem; }

/* --- Responsive ---------------------------------------------------------
   Overrides come AFTER the components they override — equal specificity
   means source order decides.
   ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	.pk-nav { display: none; }
	.pk-nav.is-open {
		display: block;
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--pk-white);
		border-bottom: 1px solid var(--pk-line);
		padding: 1rem var(--pk-gutter) 1.5rem;
		box-shadow: var(--pk-shadow-lg);
	}
	.pk-nav.is-open .pk-nav__list { flex-direction: column; gap: .25rem; }
	.pk-nav.is-open .pk-nav__link { padding-block: .7rem; min-height: 44px; }
	.pk-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.pk-header { position: relative; }
}

@media (max-width: 720px) {
	.pk-hero::after {
		background: linear-gradient(to bottom,
			rgba(11,28,22,.55) 0%,
			rgba(11,28,22,.80) 45%,
			rgba(11,28,22,.93) 100%);
	}
	.pk-hero__inner { padding-block: clamp(2.5rem, 12vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Coming-soon status badge in the hero — the single, clear community-status label. */
.pk-hero__status{margin:0 0 .85rem;}
.pk-hero__status .pk-badge{background:var(--pk-sand-200);color:#5a4a2c;}

/* pk-header small-screen tightening — the phone number was wrapping to three lines
   and the tour button to two, making the header very tall on a phone. */
@media (max-width: 620px) {
  .pk-header .pk-btn--phone { white-space: nowrap; font-size: .92rem; padding: .5rem .7rem; }
  .pk-header .pk-btn { white-space: nowrap; }
  .pk-header .pk-btn--primary { font-size: .92rem; padding: .55rem .8rem; }
  .pk-brand { font-size: .95rem; }
}
@media (max-width: 480px) {
  .pk-header .pk-btn--phone { display: none; }
}
