/* =========================================================================
   Pine Grove – brand layer on top of the shared Smartland theme.css
   (Breakwater design system). Only tokens, Gravity Forms skin and the few
   Pine Grove-only blocks live here.
   ========================================================================= */

/* ---------- Brand tokens: Breakwater's navy + Smartland pink, which is also
   the Pine Grove logo colour. Change --brand-navy / --pg-shade to re-tint. ---------- */
:root {
  --pg-shade: 14, 42, 58; /* rgb of --brand-navy for overlays */
}

/* Overlays hard-coded with Breakwater navy in theme.css */
.bwt-hero__overlay { background: linear-gradient(180deg, rgba(var(--pg-shade), .55) 0%, rgba(var(--pg-shade), .78) 100%); }
.bwt-hero--has-video .bwt-hero__overlay { background: linear-gradient(180deg, rgba(var(--pg-shade), .55) 0%, rgba(var(--pg-shade), .86) 100%); }
.bwt-amenity-card__overlay { background: linear-gradient(0deg, rgba(var(--pg-shade), .85) 0%, rgba(var(--pg-shade), 0) 60%); }
.bwt-drawer__scrim { background: rgba(var(--pg-shade), .55); }
.bwt-form-card--dark { background: rgba(var(--pg-shade), .84); }
.bwt-header.is-scrolled { box-shadow: 0 2px 12px rgba(var(--pg-shade), .10); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.bwt-header__logo img { max-height: 50px; width: auto; }
.bwt-nav-item.is-current > .bwt-nav-link { color: var(--accent); }

/* Drawer extras */
.pgt-drawer-ctas { display: flex; gap: .5rem; margin-top: 1.5rem; }
.pgt-drawer-ctas .bwt-btn { flex: 1; }
.pgt-drawer-phone { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--brand-navy); }

/* ---------- Fluent Forms – same look as mybreakwatertower.com ----------
   Breakwater uses Fluent's default field styling (white inputs, 7px radius,
   grey border) with a pink submit button, hidden labels on the short "mini
   lead" forms and two-column rows on the contact / tour forms.
   Fluent prints its own CSS after the theme, hence the extra specificity. */
.pgt-ff .fluentform { margin: 0; }
.pgt-ff .fluentform .ff-el-group { margin-bottom: 20px; }
.pgt-ff .fluentform .ff-el-form-control { background-color: #fff; color: #606266; border: 1px solid #dadbdd; border-radius: 7px; padding: 11px 15px; font-size: .9rem; line-height: 1.3; min-height: 42px; box-shadow: none; width: 100%; }
.pgt-ff .fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.pgt-ff .fluentform .ff-el-form-control:focus { border-color: var(--accent); outline: none; box-shadow: none; }
.pgt-ff .fluentform .ff-el-input--label label { font-size: 1rem; font-weight: 500; color: var(--fg); }
.pgt-ff .fluentform .ff-el-is-required.asterisk-right label:after { color: var(--accent); }
.pgt-ff .fluentform .ff-btn-submit.ff_btn_style:not(.ff_btn_no_style),
.pgt-ff .fluentform .ff-btn-submit:not(.ff_btn_no_style) { background-color: var(--accent) !important; color: #fff !important; border: 1px solid transparent !important; border-radius: 7px; padding: 8px 22px; min-height: 42px; font-size: 16px; font-weight: 500; }
.pgt-ff .fluentform .ff-btn-submit:not(.ff_btn_no_style):hover { background-color: var(--brand-pink-dark) !important; opacity: 1; }
.pgt-ff .fluentform .ff-message-success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.3); border-radius: 8px; padding: .85rem 1rem; font-size: .9rem; box-shadow: none; }
.pgt-ff .fluentform .text-danger, .pgt-ff .fluentform .error { font-size: .8rem; }
/* CAPTCHA: no label, as on Breakwater. */
.pgt-ff .fluentform .ff-el-group:has(.ff-el-recaptcha, .g-recaptcha, .h-captcha, .cf-turnstile) .ff-el-input--label { display: none; }

/* Short forms (hero card, availability panels, gallery CTA): labels hidden,
   placeholders carry the field names – as on Breakwater. */
.pgt-ff--availability .fluentform .ff-el-input--label,
.pgt-ff--contact_mini .fluentform .ff-el-input--label { display: none !important; }
.pgt-ff--availability .fluentform .ff-el-group { margin-bottom: 14px; }
.pgt-ff--availability .fluentform .ff_submit_btn_wrapper { margin-bottom: 0; }

/* Dark hero card keeps Breakwater's white inputs on the glass panel. */
.pgt-form-host--dark .slpg-form-fallback, .pgt-form-host--dark .slpg-form-fallback a { color: rgba(255,255,255,.82); }
.pgt-form-host--dark .ff-message-success { background: rgba(16,185,129,.2) !important; color: #d1fae5 !important; }

/* Two-column rows on the contact and tour forms (Breakwater layout). */
@media (min-width: 641px) {
  .pgt-ff--contact .fluentform fieldset, .pgt-ff--tour .fluentform fieldset { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .pgt-ff--contact .fluentform fieldset > *, .pgt-ff--tour .fluentform fieldset > * { grid-column: 1 / -1; }
  .pgt-ff--contact .fluentform fieldset > .ff-el-group:has(input[name^="your_name"], input[name^="your_email"], input[name^="name"], input[name^="email"], input[name^="phone"]),
  .pgt-ff--tour .fluentform fieldset > .ff-el-group:has(input[name^="first_name"], input[name^="last_name"], input[name^="email"], input[name^="phone"], input[name^="move_in"], input[name^="appointment_date"]) { grid-column: auto; }
}
@media (max-width: 640px) {
  .pgt-ff .fluentform .ff-btn-submit { width: 100%; }
}

/* Fallback contact line under every form */
.slpg-form-fallback { font-size: .82rem; color: var(--fg-muted); margin: .85rem 0 0; line-height: 1.45; }
.slpg-form-fallback a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pgt-form-missing { font-size: .9rem; }

.pgt-tour-card__heading { font-size: 1.35rem; margin: 0 0 1.25rem; }

/* ---------- Available Now extras ---------- */
.pgt-unit-tag { display: inline-block; margin-left: .45rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-navy); background: rgba(var(--pg-shade), .08); border-radius: 999px; padding: .15rem .5rem; vertical-align: middle; }

/* Floor card price chip */
.bwt-floor-card__image { position: relative; }
.pgt-floor-card__price { position: absolute; left: 1rem; bottom: 1rem; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.pgt-fp-gallery__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pgt-fp-gallery__grid .bwt-fp-gallery__item img { background: #fff; object-fit: contain; width: 100%; height: 260px; }

/* ---------- Fees / distances cards ---------- */
.pgt-terms__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.pgt-terms__card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); }
.pgt-terms__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(235,20,110,.08); color: var(--accent); margin-bottom: 1rem; }
.pgt-terms__card h3 { font-size: 1.08rem; margin: 0 0 .75rem; }
.pgt-terms__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; color: var(--fg-muted); }
.pgt-terms__card li { padding-left: 1rem; position: relative; line-height: 1.45; }
.pgt-terms__card li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pgt-terms__card strong { color: var(--fg); }
.pgt-distances .pgt-terms__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .pgt-terms__grid, .pgt-distances .pgt-terms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pgt-terms__grid, .pgt-distances .pgt-terms__grid { grid-template-columns: 1fr; } }

/* FAQ group headings */
.pgt-faq-group { font-size: 1.15rem; margin: 2rem 0 .75rem; color: var(--brand-navy); }
.pgt-faq-group:first-child { margin-top: 0; }

/* Events */
.bwt-event-card__img--placeholder { background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-soft)); aspect-ratio: 16/10; }
.pgt-event-past { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1.5rem; }

/* Footer hours */
.pgt-footer-hours { font-size: .85rem; opacity: .8; }

/* Legacy page.php content keeps Elementor; just constrain it. */
.pgt-legacy__content { max-width: 100%; overflow-x: hidden; }

/* Neighbourhood tab icons are inline SVG here */
.bwt-nbhd-tab-btn svg { flex-shrink: 0; }

/* Mobile: never allow sideways scroll */
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .bwt-avail-now__wrap { overflow-x: auto; }
  .bwt-hero__subtitle { font-size: 1rem; }
}

/* Five floor plans: 3 + 2 rows, centred (Breakwater shows 2 plans). */
@media (min-width: 900px) {
  .bwt-floor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.75rem; }
  .bwt-floor-grid > .bwt-floor-card { flex: 0 1 calc((100% - 3.5rem) / 3); min-width: 0; }
}
.bwt-floor-card__actions { flex-wrap: wrap; }
.bwt-floor-card__actions .bwt-btn { flex: 1 1 140px; justify-content: center; }

/* Gallery: fill every row (21 photos + 3 wide tiles = 6 full rows of 4). */
.bwt-gallery { grid-auto-flow: dense; }

/* Narrow phones: the 304px reCAPTCHA widget was forcing the contact / tour
   grid wider than the screen. */
.bwt-tour-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.bwt-contact-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 900px) { .bwt-contact-layout, .bwt-tour-layout { grid-template-columns: minmax(0, 1fr); } }
.bwt-contact-form-card, .bwt-tour-card, .bwt-contact-sidebar, .bwt-tour-sidebar { min-width: 0; }
@media (max-width: 380px) {
  .pgt-ff .g-recaptcha, .pgt-ff .ff-el-recaptcha { transform: scale(.86); transform-origin: 0 0; }
  .bwt-contact-form-card, .bwt-tour-card { padding: 1.25rem; }
}
/* Neighborhood address card stacks on phones. */
@media (max-width: 640px) {
  .bwt-nbhd-address-card { flex-direction: column; align-items: stretch; gap: 1rem; }
  .bwt-nbhd-address-card__info, .bwt-nbhd-address-card__actions { min-width: 0; max-width: 100%; }
  .bwt-nbhd-address-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
  .bwt-nbhd-address-card__actions .bwt-btn { flex: 1 1 140px; justify-content: center; }
}
