/* ============================================================
   Pongratz Properties — professional polish layer
   ------------------------------------------------------------
   ADDITIVE ONLY. Keeps the existing Astra theme, green brand
   colors (#56b259), Poppins/Noto Serif fonts, all photos, the
   layout, and every function intact. This file only refines
   spacing, depth, motion, typographic rhythm, and accessibility.
   Remove the <link> to polish.css to revert completely.
   ============================================================ */

:root {
  --pp-green: #56b259;
  --pp-green-dark: #45984a;
  --pp-dark: #181e19;
  --pp-muted: #5f695f;
  --pp-line: #e2e7e2;
}

/* Crisper text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html {
  scroll-behavior: smooth;
}

/* Consistent, gentle motion on interactive elements */
a,
button,
input,
select,
textarea,
.wp-block-button__link,
.ast-button,
.ast-custom-button,
.ast-outline-button,
.entry-content a[role="button"],
.entry-content img,
.wp-block-cover {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* ---------- Typographic rhythm (content area) ---------- */
.entry-content {
  line-height: 1.7;
}
.entry-content h1 {
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.entry-content h2 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.55em;
}
.entry-content h3 {
  line-height: 1.28;
}
.entry-content p {
  margin-bottom: 1.15em;
}
.entry-content h2 + p,
.entry-content h3 + p {
  margin-top: 0.2em;
}

/* Eyebrow labels (h6) -> refined uppercase green kicker */
.entry-content h6 {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pp-green);
  font-weight: 600;
  margin-bottom: 0.45em;
}

/* ---------- Buttons: subtle depth + hover lift (same green) ---------- */
.entry-content a[role="button"],
.wp-block-button__link,
.ast-button,
.ast-custom-button {
  box-shadow: 0 2px 6px rgba(24, 30, 25, 0.08);
}
.entry-content a[role="button"]:hover,
.wp-block-button__link:hover,
.ast-button:hover,
.ast-custom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(86, 178, 89, 0.26);
}

/* ---------- Photos & cover blocks: soft rounding + depth ---------- */
.entry-content img {
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(24, 30, 25, 0.1);
}
.entry-content figure {
  overflow: hidden;
}
.entry-content img:hover {
  transform: scale(1.012);
}
.wp-block-cover,
.wp-block-cover-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(24, 30, 25, 0.12);
}

/* ---------- Links inside content ---------- */
.entry-content p a:not([role="button"]),
.entry-content li a {
  color: var(--pp-green-dark);
  text-underline-offset: 3px;
}
.entry-content p a:not([role="button"]):hover,
.entry-content li a:hover {
  color: var(--pp-green);
}

/* Property name headings that are links */
.entry-content h3 a {
  color: var(--pp-dark);
}
.entry-content h3 a:hover {
  color: var(--pp-green);
}

/* ---------- Accessibility: clear, on-brand focus ring ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid rgba(86, 178, 89, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Contact form polish (keeps fields & behavior) ---------- */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="number"],
.entry-content textarea,
.entry-content select,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  border: 1px solid var(--pp-line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfbfb;
}
.entry-content input:focus,
.entry-content textarea:focus,
.entry-content select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--pp-green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(86, 178, 89, 0.15);
  outline: none;
}
.wpcf7 input[type="submit"] {
  box-shadow: 0 2px 6px rgba(24, 30, 25, 0.08);
}
.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(86, 178, 89, 0.26);
}

/* ============================================================
   Layout corrections — fix transparent-header overlap and the
   uncentered, full-width page-builder content. Keeps the
   header, logo, colors, fonts, and photos as-is.
   ============================================================ */

/* 1) Clear the absolutely-positioned transparent header so the
      logo no longer sits on top of the first heading. */
.ast-page-builder-template #primary,
.ast-page-builder-template .site .site-content #primary {
  padding-top: 140px !important;
}

/* 2) Contain the content in a comfortable centered column (no longer
      full-width text jammed against the left edge) WITHOUT force-centering
      every line. Headings center; body text keeps its natural alignment. */
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > .wp-block-buttons {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Left-align ALL content (headings, prose, lists). Only the homepage
   hero stays centered. This is the fix for "stop centering the text". */
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  text-align: left;
}
/* Override the original inline-centered paragraphs too */
.entry-content p[style*="center"],
.entry-content h1[style*="center"],
.entry-content h2[style*="center"],
.entry-content h3[style*="center"] {
  text-align: left !important;
}

/* ============================================================
   Homepage hero — Roger Plaza photo background, brand on top.
   ============================================================ */

/* Let the hero sit flush at the top so the transparent header
   overlays the photo (only on the homepage). */
body.home .ast-page-builder-template #primary,
body.home .ast-page-builder-template .site .site-content #primary {
  padding-top: 0 !important;
}

.pp-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: 180px 24px 96px;
  margin-bottom: 8px;
  background: #1b211c url("wp-content/uploads/2020/08/20200515_123800-scaled.jpg")
    center / cover no-repeat;
}
.pp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 30, 25, 0.5) 0%,
    rgba(24, 30, 25, 0.78) 100%
  );
}
.pp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  color: #fff;
}
.pp-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.85rem;
  color: #9be39e;
  margin-bottom: 14px;
}
.pp-hero__title {
  color: #fff !important;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 10px;
}
.pp-hero__tagline {
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin-bottom: 18px;
}
.pp-hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 auto 30px;
}
.pp-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pp-hero__office a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
}
.pp-hero__office a:hover {
  color: #fff;
}

/* Hero buttons */
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
}
.pp-btn--primary {
  background: var(--pp-green);
  color: #fff;
  border-color: var(--pp-green);
  box-shadow: 0 10px 24px rgba(86, 178, 89, 0.42);
}
.pp-btn--primary:hover {
  background: var(--pp-green-dark);
  border-color: var(--pp-green-dark);
  transform: translateY(-2px);
}
.pp-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.pp-btn--ghost:hover {
  background: #fff;
  color: var(--pp-dark);
  transform: translateY(-2px);
}

/* ============================================================
   "APPLICATION" header button — filled green & prominent
   (was a faint outline tucked in the corner).
   ============================================================ */
.ast-custom-button-link .ast-button,
.ast-custom-button .ast-button {
  background: var(--pp-green) !important;
  color: #fff !important;
  border: 2px solid var(--pp-green) !important;
  padding: 11px 26px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(86, 178, 89, 0.38);
}
.ast-custom-button-link:hover .ast-button,
.ast-custom-button-link:focus .ast-button {
  background: var(--pp-green-dark) !important;
  border-color: var(--pp-green-dark) !important;
  transform: translateY(-2px);
}

/* ============================================================
   Homepage header — fully transparent over the hero photo, with
   light, readable nav text. Removes the white header block.
   (Inner pages keep their normal light header + dark text.)
   ============================================================ */
/* Brute-force overlay: the header sits ON TOP of the hero photo with
   no background, so no white bar can appear regardless of theme JS. */
body.home #masthead.site-header {
  position: relative !important;
  z-index: 99 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* Header stays in flow but transparent; pull the content up underneath
   it so the hero photo fills the top and the header overlays it. */
body.home #content {
  margin-top: -230px !important;
  position: relative;
  z-index: 1;
}
body.home #masthead .main-header-bar-wrap,
body.home #masthead .main-header-bar,
body.home #masthead .ast-main-header-bar-alignment,
body.home #masthead .ast-above-header,
body.home #masthead .below-header-bar {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* Reset the wrapper chain so no white gap sits above the hero.
   (NOTE: #content keeps its negative margin from the rule above —
   do not reset #content's margin here.) */
body.home #content > .ast-container,
body.home #primary,
body.home #main,
body.home .ast-article-single,
body.home .ast-article-post,
body.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
}
/* The empty (title-less) entry header reserved blank space — remove it */
body.home .entry-header.ast-no-title,
body.home .entry-header.ast-header-without-markup {
  display: none !important;
}
body.home .pp-hero {
  margin-top: 0 !important;
}
/* Nav links readable (white) over the photo */
body.home #masthead .main-header-menu .menu-link,
body.home #masthead .ast-builder-menu .menu-link,
body.home #masthead .main-header-bar-navigation a {
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
body.home #masthead .main-header-menu .menu-link:hover {
  color: #c4eec6 !important;
}
/* Inner pages have a light header (no photo) — nav must be DARK to be
   visible (the theme defaults to white for the transparent header). */
body:not(.home) #masthead .main-header-menu .menu-link,
body:not(.home) #masthead .ast-builder-menu .menu-link,
body:not(.home) #masthead .main-header-bar-navigation a {
  color: var(--pp-dark) !important;
  text-shadow: none !important;
}
body:not(.home) #masthead .main-header-menu .menu-link:hover {
  color: var(--pp-green) !important;
}

/* ============================================================
   Modern type scale — the theme's headings were oversized, which
   made content read like a spreadsheet of giant rows.
   ============================================================ */
.entry-content :where(h1) {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.12;
}
.entry-content :where(h2) {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  margin-top: 1.2em;
}
.entry-content :where(h3) {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.3;
}

/* ============================================================
   Chip / badge grids — replaces the long stacked single-line
   headings (location, amenities, features) with a tidy, modern
   wrapped grid of pills.
   ============================================================ */
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  max-width: 1080px;
  margin: 16px auto 34px;
  padding: 0 24px;
}
.pp-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(86, 178, 89, 0.1);
  color: #1f5d28;
  border: 1px solid rgba(86, 178, 89, 0.35);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
}
.pp-chip::before {
  content: "✓";
  color: var(--pp-green);
  font-weight: 800;
  margin-right: 8px;
}
.pp-chip:hover {
  background: rgba(86, 178, 89, 0.18);
  transform: translateY(-2px);
}
.pp-chips-label {
  text-align: left;
  max-width: 1080px;
  margin: 6px auto 2px;
  padding: 0 24px;
}

/* ============================================================
   Prince Apartments photo gallery
   ============================================================ */
.pp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 18px auto 36px;
  padding: 0 24px;
}
.pp-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.pp-gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(24, 30, 25, 0.12);
}
.pp-gallery a:hover img {
  transform: scale(1.04);
}
@media (max-width: 768px) {
  .pp-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .pp-gallery img {
    height: 180px;
  }
}

/* ============================================================
   Content bullet lists -> centered green checkmark lists
   (excludes the chip grids and any nav lists).
   ============================================================ */
.entry-content ul:not(.pp-chips) {
  list-style: none;
  max-width: 1080px;
  margin: 6px auto 26px;
  padding: 0 24px;
  text-align: left;
  display: block;
}
.entry-content ul:not(.pp-chips) li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.5;
}
.entry-content ul:not(.pp-chips) li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pp-green);
  font-weight: 800;
}

/* 3) Keep photos prominent and add vertical rhythm around them */
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > .wp-block-cover {
  margin-top: 2.6em;
  margin-bottom: 2.6em;
}

/* Breathing room before the footer */
.entry-content {
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .ast-page-builder-template #primary,
  .ast-page-builder-template .site .site-content #primary {
    padding-top: 88px !important;
  }
  .entry-content > h1,
  .entry-content > h2,
  .entry-content > h3,
  .entry-content > p {
    padding-left: 18px;
    padding-right: 18px;
  }
}



