/*
Theme Name: PRABOA One-Page (Block)
Theme URI: https://parkhurstvillage.com/
Author: PRABOA
Description: Block-based one-page theme for the Parkhurst Residents & Business Owners Association. Fully editable in the Site Editor (Gutenberg). Brand palette and type are locked in theme.json; this file carries the signature decorative styling.
Version: 1.1.7
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: praboa-onepage
*/

/* ════════════════════════════════════════════════════════════════════
   Everything brand-critical (colours, fonts, sizes) lives in theme.json
   and is edited via the Site Editor. This file only adds the signature
   decorations the editor can't express: dotted dividers, the geometric
   watermark, the confetti strip, card/tab/story chrome.
   ════════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; }

/* ---- signature: the dotted divider --------------------------------
   Add class "praboa-dotline" to any Separator block. Its colour follows
   the Separator's own colour setting. */
hr.praboa-dotline,
.praboa-dotline {
  border: none;
  height: 6px;
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.9px);
  background-size: 14px 6px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: .85;
  width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- signature: geometric watermark --------------------------------
   Add class "praboa-geo" to a Group or Cover block for the watermark. */
.praboa-geo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='2'%3E%3Ccircle cx='30' cy='30' r='18'/%3E%3Crect x='72' y='12' width='30' height='30'/%3E%3Cpath d='M12 78 a18 18 0 0 1 36 0 z'/%3E%3Ccircle cx='90' cy='90' r='14' fill='%23ffffff' fill-opacity='0.05' stroke='none'/%3E%3Cpath d='M60 60 l16 16 -16 16 -16 -16 z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- signature: PRABOA pattern strip --------------------------------
   Add class "praboa-confetti" to a full-width Group (no content needed).
   The original class name is retained so existing Site Editor templates
   automatically use the supplied PRABOA artwork. */
.praboa-confetti {
  height: 57px;
  min-height: 57px;
  background-color: #fbf7ef;
  background-image: url("assets/images/PRABOA-Pattern-01.png");
  background-position: center center;
  background-repeat: repeat-x;
  background-size: auto 57px;
}


/* ---- hero Cover block -------------------------------------------------
   The hero is a true Cover block so its image, focal point, overlay colour
   and overlay opacity remain editable in the Site Editor. The teal colour
   is only a fallback before a background image is selected. */
.praboa-hero-cover {
  background-color: var(--wp--preset--color--teal);
}
.praboa-hero-cover > .wp-block-cover__inner-container {
  width: min(100%, var(--wp--style--global--content-size, 760px));
  margin-left: auto;
  margin-right: auto;
}

/* ---- hero dots row --------------------------------------------------- */
.praboa-dotrow { display: flex; justify-content: center; gap: 14px; }
.praboa-dotrow > span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--wp--preset--color--gold); display: block;
}

/* ---- sticky header ---------------------------------------------------- */
.praboa-sticky-header {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,.12);
}
.praboa-sticky-header .wp-block-navigation a:where(:not(.wp-element-button)) {
  color: #fff; font-size: .88rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.praboa-sticky-header .wp-block-navigation a:hover {
  background: rgba(255,255,255,.15); text-decoration: none;
}

/* ---- buttons: brand variants ------------------------------------------
   In the editor, set button background to Gold / Pink / Teal from the
   palette; these rules just round and bolden every button consistently. */
.wp-block-button .wp-block-button__link {
  border-radius: 26px; font-weight: 700;
  transition: transform .12s, filter .15s;
}
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(1.05); }
@media (prefers-reduced-motion: reduce) {
  .wp-block-button .wp-block-button__link:hover { transform: none; }
}

/* ---- membership plan cards --------------------------------------------
   Apply class "praboa-plan" to each plan's Group. Add "praboa-plan-hot"
   for the highlighted (best value) card. */
.praboa-plan {
  background: #fff; border-radius: 16px; padding: 30px 28px;
  box-shadow: 0 12px 34px rgba(16,24,74,.10);
  border-top: 6px solid var(--wp--preset--color--teal);
  height: 100%;
}
.praboa-plan-hot {
  border-top-color: var(--wp--preset--color--gold);
  box-shadow: 0 18px 44px rgba(16,24,74,.16);
  position: relative;
}
.praboa-plan-hot::after {
  content: "BEST VALUE";
  position: absolute; top: 14px; right: 14px;
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--teal-deep);
  font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  padding: 4px 10px; border-radius: 12px;
}
.praboa-plan ul { padding-left: 18px; font-size: .9rem; }
.praboa-plan ul li { margin-bottom: 7px; }
.praboa-price { font-size: 1.7rem; font-weight: 800; color: var(--wp--preset--color--teal-dark); }
.praboa-price .per { font-size: .85rem; font-weight: 500; color: #777; }

/* ---- Good News story cards --------------------------------------------
   Applied automatically to the Query Loop with class "praboa-stories". */
.praboa-stories .wp-block-post {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(16,24,74,.10);
  display: flex; flex-direction: column;
}
.praboa-stories .wp-block-post-featured-image { margin: 0; }
.praboa-stories .wp-block-post-featured-image img {
  aspect-ratio: 16/10; object-fit: cover; width: 100%;
}
.praboa-stories .wp-block-post-title { font-size: 1.05rem; padding: 14px 18px 0; margin: 0; }
.praboa-stories .wp-block-post-title a { text-decoration: none; }
.praboa-stories .wp-block-post-date { padding: 4px 18px 0; font-size: .76rem; color: #888; }
.praboa-stories .wp-block-post-excerpt { padding: 6px 18px 18px; font-size: .88rem; margin: 0; }
.praboa-stories .wp-block-post-terms { padding: 10px 18px 0; font-size: .68rem; }
.praboa-stories .wp-block-post-terms a {
  background: var(--wp--preset--color--teal);
  color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 12px;
}

/* ---- live embeds (map / directory) ------------------------------------
   The community map uses a useful viewport-based height. The directory
   starts at a safe fallback height, then praboa.js replaces it with the
   exact height posted by the trusted directory app as `praboaHeight`. */
.praboa-embed { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 38px rgba(16,24,74,.14); }
.praboa-embed iframe { display: block; width: 100%; border: 0; }
.praboa-embed.is-map iframe { height: 72vh; min-height: 460px; }
.praboa-embed.is-dir iframe { height: 700px; }

/* ---- Resources: in-place tabs ------------------------------------------
   Structure (all ordinary Groups, fully editable in the Site Editor):

   Group.praboa-tabs
     ├─ Group.praboa-pane   ← first Heading inside becomes the tab label
     ├─ Group.praboa-pane
     └─ Group.praboa-pane

   praboa.js builds the tab bar from the pane headings on the front end.
   In the editor all panes show stacked, which is exactly what you want
   while editing. To add a tab: duplicate a pane Group. Done. */
.praboa-tabs {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(16,24,74,.12);
}
.praboa-tabbar {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--wp--preset--color--teal);
  padding: 12px;
}
.praboa-tabbar button {
  font-family: inherit; font-size: .9rem; font-weight: 600;
  color: #fff; background: transparent; border: 0; cursor: pointer;
  padding: 12px 18px; border-radius: 12px; line-height: 1.25;
}
.praboa-tabbar button:hover { background: rgba(255,255,255,.12); }
.praboa-tabbar button[aria-selected="true"] {
  background: var(--wp--preset--color--gold);
  color: var(--wp--preset--color--teal-deep);
}
.praboa-tabbar button:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }

.praboa-tabs .praboa-pane { padding: 36px 40px; }
@media (max-width: 640px) { .praboa-tabs .praboa-pane { padding: 24px; } }

/* JS toggles these on the front end only (editor unaffected) */
.praboa-tabs.is-ready .praboa-pane { display: none; animation: praboa-fade .35s ease; }
.praboa-tabs.is-ready .praboa-pane.is-active { display: block; }
@keyframes praboa-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .praboa-tabs.is-ready .praboa-pane { animation: none; }
}

/* ---- inner pages (your existing /building-planning/ etc.) ------------- */
.praboa-page-body { background: #fff; border-radius: 16px; padding: 40px; box-shadow: 0 12px 34px rgba(16,24,74,.08); }
@media (max-width: 640px) { .praboa-page-body { padding: 22px; } }

/* ---- accessibility floor ---------------------------------------------- */
:focus-visible { outline: 3px solid var(--wp--preset--color--gold); outline-offset: 2px; }


/* ---- seamless top-level sections --------------------------------------
   WordPress adds a default block gap between sibling template blocks.
   Removing only that outer gap lets the coloured sections meet cleanly,
   while preserving each section's own internal padding and readability. */
.wp-site-blocks > * + *,
.praboa-support-page > * + * {
  margin-block-start: 0 !important;
}

/* ---- subscriptions and donations page -------------------------------- */
.praboa-support-page {
  margin: 0;
}
.praboa-support-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}
.praboa-support-hero .wp-block-group__inner-container,
.praboa-support-hero > * {
  position: relative;
  z-index: 1;
}
.praboa-support-lead {
  max-width: 760px;
  margin-inline: auto;
}
.praboa-support-card,
.praboa-donation-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 14px 38px rgba(16,24,74,.12);
  height: 100%;
}
.praboa-support-card {
  border-top: 6px solid var(--wp--preset--color--teal);
}
.praboa-support-card.is-featured {
  border-top-color: var(--wp--preset--color--gold);
  box-shadow: 0 18px 46px rgba(16,24,74,.17);
}
.praboa-support-card .wp-block-buttons,
.praboa-donation-card .wp-block-buttons {
  margin-top: 24px;
}
.praboa-support-kicker {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--coral);
}
.praboa-support-contact {
  text-align: center;
}
.praboa-support-contact .wp-block-buttons {
  justify-content: center;
}
@media (max-width: 781px) {
  .praboa-support-hero { min-height: 300px; }
  .praboa-support-card,
  .praboa-donation-card { padding: 26px 22px; }
}

/* Homepage section background controller: only the six known section Groups. */
body.home .praboa-managed-section { background-color: var(--praboa-section-color) !important; }
body.home .praboa-managed-section.praboa-bg-image-set { background-image: var(--praboa-section-image) !important; background-size: cover !important; background-position: center center !important; }

/* SafeParks content — scoped to avoid altering saved Site Editor layouts. */
.praboa-safety-highlight{margin-top:2rem;padding:1.5rem 2rem;border:1px solid rgba(30,80,70,.22);border-radius:14px;background:rgba(255,255,255,.68)}
.praboa-safety-highlight h3{margin-top:0}
.praboa-safeparks-page{max-width:none!important}
.praboa-safeparks-hero{padding:clamp(3rem,7vw,6rem) 24px;text-align:center;background:#f0c5b3}
.praboa-safeparks-hero>*{max-width:850px;margin-left:auto!important;margin-right:auto!important}
.praboa-safeparks-hero h1{font-size:clamp(3rem,8vw,5.5rem);margin-bottom:.25rem}
.praboa-safeparks-hero h2{font-size:clamp(1.4rem,3vw,2.2rem);margin-top:0}
.praboa-safeparks-hero .wp-block-buttons{justify-content:center}
.praboa-safeparks-content{padding:clamp(2rem,5vw,4rem) 24px 5rem;max-width:1060px!important}
.praboa-safeparks-content>h2{margin-top:2.6rem}
.praboa-safeparks-package{height:100%;padding:1.5rem;border-radius:16px;background:#f5eee5;border:1px solid rgba(0,0,0,.08)}
.praboa-safeparks-package h3{margin-top:0}
.praboa-safeparks-cta{margin-top:3rem;padding:2rem;border-radius:16px;background:#e8f0eb}
.praboa-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:.85rem}
