/*
Theme Name: Central Park Tulsa
Theme URI: https://centralparktulsa.com
Author: Central Park HOA
Author URI: https://centralparktulsa.com
Description: Official theme for Central Park Tulsa — urban landmark living in downtown Tulsa, OK.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: central-park
Tags: real-estate, one-page, custom-colors, custom-logo, full-width-template
*/

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

:root {
  --green:   #3a6b3e;
  --green-l: #5a9b60;
  --green-d: #1e3d21;
  --cream:   #f5f0e8;
  --charcoal:#1a1a1a;
  --mid:     #3d3d3d;
  --border:  rgba(58,107,62,.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--charcoal);
  color: var(--cream);
  overflow-x: hidden;
}

/* ── NAV ── */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(26,26,26,.92);
  backdrop-filter: blur(12px);
}
/* ── Logo: icon + text ── */
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Icon image — always brand green */
.cp-logo-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

/* Text block — always white */
.cp-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.cp-logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
}
.cp-logo-sub {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

.site-logo .text-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
}
.site-logo .text-logo span { color: var(--green-l); }

#primary-menu { display: flex; gap: 2.4rem; list-style: none; }
#primary-menu a {
  color: rgba(245,240,232,.7);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a { color: var(--green-l); }
.owner-portal-link {
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid rgba(245,240,232,.65);
  border-radius: 999px;
  padding: .65rem 1rem;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.owner-portal-link:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 70%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 12s ease;
}
#hero:hover .hero-bg { transform: scale(1); }

/* Title block — upper-left of image */
.hero-title {
  position: absolute;
  top: 6.5rem; left: 4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.35);
  padding: .28rem .8rem;
  align-self: flex-start;
}
.hero-title h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 600;
  line-height: 1.02;
  text-shadow: 0 2px 28px rgba(0,0,0,.5);
}
.hero-title h1 em { font-style: italic; color: var(--green-l); }

/* Thin bottom bar — subtitle + buttons in one row */
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(14,20,14,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.hero-content p {
  font-size: .85rem;
  line-height: 1.6;
  color: rgba(245,240,232,.62);
  margin: 0;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 1rem; flex-shrink: 0; }

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--cream);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .9rem 2.2rem;
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--green-l); transform: translateY(-2px); color: var(--cream); }
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(245,240,232,.35);
  color: var(--cream);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .9rem 2.2rem;
  background: transparent; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.btn-ghost:hover { border-color: var(--cream); transform: translateY(-2px); color: var(--cream); }

.hero-scroll-hint { display: none; }

/* ── SECTION BASE ── */
section, .section-wrap { padding: 7rem 4rem; }
.section-label {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-l);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.6rem;
}

/* ── STATS ── */
#stats {
  padding: 0;
  background: var(--green-d);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-num sup { font-size: 1.4rem; vertical-align: super; }
.stat-label { font-size: .75rem; color: rgba(245,240,232,.55); letter-spacing: .1em; }

/* ── ABOUT ── */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-main {
  width: 100%; aspect-ratio: 3/4; display: block;
  background-size: cover; background-position: center;
}
.about-img-accent {
  position: absolute; bottom: -2.5rem; right: -2.5rem;
  width: 55%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  border: 4px solid var(--charcoal);
}
.about-green-bar {
  position: absolute; top: 2rem; left: -1.5rem;
  width: 4px; height: 60%;
  background: var(--green);
}
.about-text p { color: rgba(245,240,232,.7); line-height: 1.85; margin-bottom: 1.2rem; font-size: .95rem; }
.about-address {
  display: flex; gap: .8rem; align-items: flex-start;
  margin-top: 2rem; padding: 1.4rem;
  border: 1px solid var(--border);
}
.about-address-icon { color: var(--green-l); margin-top: .1rem; }
.about-address-icon i, .about-address-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.about-address p { color: var(--cream); margin: 0; font-size: .88rem; line-height: 1.7; }

/* ── AMENITIES ── */
#amenities { background: #111; }
.amenities-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 4rem;
}
.amenities-header-note { max-width: 340px; color: rgba(245,240,232,.55); font-size: .88rem; line-height: 1.8; text-align: right; }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}
.amenity-card { background: #111; padding: 2rem 1.6rem; transition: background .25s; cursor: default; }
.amenity-card:hover { background: var(--green-d); }
.amenity-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.amenity-icon {
  flex-shrink: 0;
  color: var(--green-l);
  display: flex;
  align-items: center;
}
.amenity-icon i,
.amenity-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}
.amenity-name { font-size: .92rem; font-weight: 500; color: var(--cream); line-height: 1.2; }
.amenity-desc { font-size: .75rem; color: rgba(245,240,232,.45); line-height: 1.6; }

/* ── GALLERY ── */
#gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 4px;
  background: var(--charcoal);
}
.gallery-item { overflow: hidden; cursor: zoom-in; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item .lightbox-trigger {
  display: block; width: 100%; height: 100%;
  background: none; border: none; padding: 0; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .5s ease; filter: brightness(.85); }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1); }

/* ── LIGHTBOX ── */
#cp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#cp-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
#cp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
#cp-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(.96);
  transition: transform .25s ease;
}
#cp-lightbox.open #cp-lightbox-inner {
  transform: scale(1);
}
#cp-lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
#cp-lightbox-caption {
  margin-top: .75rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,240,232,.45);
}
#cp-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
#cp-lightbox-close:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
}

/* ── UTILITIES ── */
#utilities {
  background: var(--green);
  padding: 3.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.utilities-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; margin-bottom: .5rem; }
.utilities-text p { font-size: .85rem; color: rgba(245,240,232,.8); }
.utilities-list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.util-pill { border: 1px solid rgba(245,240,232,.4); padding: .45rem 1rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,240,232,.85); }

/* ── FLOOR PLANS ── */
#floor-plans { background: var(--charcoal); }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.plan-card { border: 1px solid var(--border); padding: 2.2rem 1.8rem; }
.plan-type { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--green-l); margin-bottom: .8rem; }
.plan-sqft { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 300; line-height: 1; margin-bottom: .4rem; }
.plan-sqft span { font-size: .9rem; color: rgba(245,240,232,.5); margin-left: .3rem; }
.plan-desc { font-size: .75rem; color: rgba(245,240,232,.5); line-height: 1.6; }
.plans-cta { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ── PETS ── */
#pets { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.pets-img { background-size: cover; background-position: center; min-height: 480px; }
.pets-content { background: var(--green-d); padding: 6rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.pets-content .section-label { color: rgba(245,240,232,.6); }
.pets-content p { color: rgba(245,240,232,.75); line-height: 1.85; font-size: .95rem; }

/* ── LISTINGS ── */
#listings { background: #111; }
.listings-sub { font-size: .78rem; color: rgba(245,240,232,.4); letter-spacing: .06em; margin-bottom: 3rem; margin-top: -.8rem; }
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.listing-card { background: #1a1a1a; border: 1px solid rgba(255,255,255,.07); overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: block; transition: border-color .25s, transform .25s; }
.listing-card:hover { border-color: var(--green); transform: translateY(-4px); }
.listing-img { width: 100%; height: 200px; position: relative; overflow: hidden; background: var(--green-d); }
.listing-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.listing-card:hover .listing-img img { transform: scale(1.05); }
.listing-badge { position: absolute; top: .8rem; left: .8rem; background: var(--green); color: var(--cream); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .7rem; }
.listing-body { padding: 1.4rem; }
.listing-price { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: var(--cream); margin-bottom: .4rem; line-height: 1; }
.listing-address { font-size: .75rem; color: rgba(245,240,232,.5); margin-bottom: 1rem; line-height: 1.5; }
.listing-meta { display: flex; gap: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06); }
.listing-meta-item { display: flex; flex-direction: column; gap: .2rem; }
.listing-meta-val { font-size: .88rem; font-weight: 500; color: var(--cream); }
.listing-meta-key { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,240,232,.35); }
.listing-source { display: flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .65rem; color: rgba(245,240,232,.25); letter-spacing: .08em; }
.listings-cta { display: flex; justify-content: center; margin-top: 1rem; }
.listing-empty { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: rgba(245,240,232,.3); font-size: .9rem; border: 1px dashed rgba(255,255,255,.1); }

/* ── CONTACT ── */
#contact { background: #0e0e0e; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; margin-top: 3.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1.2rem; }
.contact-item-icon { width: 44px; height: 44px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--green-l); flex-shrink: 0; }
.contact-item-icon i, .contact-item-icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
.contact-item-text h4 { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,240,232,.4); margin-bottom: .4rem; }
.contact-item-text p, .contact-item-text a { color: var(--cream); font-size: .9rem; line-height: 1.6; text-decoration: none; }
.contact-item-text a:hover { color: var(--green-l); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--cream);
  padding: .9rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  width: 100%;
  transition: border-color .2s;
  outline: none;
  resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-l); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(245,240,232,.3); }
/* Form notices */
.form-notice {
  padding: 1rem 1.4rem;
  font-size: .88rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.form-notice--success { background: rgba(90,155,96,.15); border: 1px solid var(--green-l); color: var(--green-l); }
.form-notice--error   { background: rgba(200,60,60,.12);  border: 1px solid rgba(200,60,60,.5); color: #e07070; }

/* CF7 overrides */
.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; }
.wpcf7-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wpcf7-form p { margin: 0; }
.wpcf7-submit { background: var(--green); color: var(--cream); border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .9rem 2.2rem; transition: background .2s; width: 100%; }
.wpcf7-submit:hover { background: var(--green-l); }

/* ── FOOTER ── */
#colophon {
  background: var(--charcoal);
  padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: .6rem; }
.footer-logo-icon { height: 32px; width: auto; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1; }
.footer-logo-text .cp-logo-name { font-size: 1.1rem; color: #fff; }
.footer-logo-text .cp-logo-sub  { font-size: .6rem; color: rgba(255,255,255,.75); letter-spacing: .2em; }
#colophon p { font-size: .72rem; color: rgba(245,240,232,.45); }
.footer-social a { display: inline-flex; align-items: center; gap: .45rem; color: rgba(245,240,232,.6); text-decoration: none; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: color .2s; }
.footer-social a:hover { color: var(--cream); }
.footer-social a i, .footer-social a svg { width: 16px; height: 16px; stroke-width: 1.8; flex-shrink: 0; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
/* ── Hamburger button ───────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dim overlay behind open mobile nav */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.55);
}
.nav-open .nav-overlay { display: block; }

/* ─────────────────────────────────────────────────────────────
   TABLET  ≤ 1024px
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #masthead { padding: 1.2rem 2rem; }
  section, .section-wrap { padding: 5rem 2rem; }

  #stats { grid-template-columns: repeat(2, 1fr); }

  #about { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-accent { right: -1rem; }

  .amenities-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .amenities-header-note { text-align: left; max-width: 100%; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }

  #gallery { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item { height: 200px; }

  .plans-grid { grid-template-columns: repeat(2, 1fr); }

  #pets { grid-template-columns: 1fr; }
  .pets-img { min-height: 280px; }
  .pets-content { padding: 3.5rem 2rem; }

  .listings-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  #utilities { padding: 3rem 2rem; }

  #colophon { padding: 2rem; flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }
}

/* ─────────────────────────────────────────────────────────────
   TABLET PORTRAIT  ≤ 768px
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav — hamburger */
  .nav-toggle { display: flex; }

  #primary-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: 75vw; max-width: 320px;
    background: rgba(20,26,20,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5.5rem 2rem 2rem;
    z-index: 150;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    list-style: none;
  }
  .nav-open #primary-menu { transform: translateX(0); }
  #primary-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  #primary-menu a {
    display: block;
    padding: 1rem 0;
    font-size: .9rem;
    letter-spacing: .14em;
  }
  .owner-portal-link {
    position: fixed;
    right: 4.8rem;
    top: 1.1rem;
    z-index: 160;
    padding: .55rem .8rem;
    font-size: .65rem;
  }

  /* Hero: title moves closer to nav on tablet */
  .hero-title { top: 5rem; left: 1.5rem; }
  /* Bottom bar stacks on tablet */
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.5rem;
  }
  .hero-content p { max-width: 100%; }

  #stats { grid-template-columns: repeat(2, 1fr); }

  #gallery { grid-template-columns: repeat(2, 1fr); }

  .amenities-grid { grid-template-columns: repeat(2, 1fr); }

  .plans-grid { grid-template-columns: 1fr; }

  .listings-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   MOBILE  ≤ 640px
───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  #masthead { padding: 1rem 1.2rem; }
  .owner-portal-link {
    right: 4.2rem;
    top: 1rem;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    padding: .5rem .6rem;
    font-size: .58rem;
    letter-spacing: .07em;
  }

  section, .section-wrap { padding: 4rem 1.2rem; }

  /* Stats: 2×2 grid */
  #stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 2rem 1.2rem; }
  .stat-num { font-size: 2.6rem; }

  /* About */
  .about-img-accent { display: none; }

  /* Amenities */
  .amenities-grid { grid-template-columns: 1fr; }

  /* Gallery: single column */
  #gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { height: 160px; }

  /* Pets */
  .pets-content { padding: 2.5rem 1.2rem; }

  /* Listings */
  .listings-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .contact-form .form-row,
  .wpcf7-form .form-row { grid-template-columns: 1fr; }

  /* Utilities */
  #utilities { padding: 2.5rem 1.2rem; }
  .utilities-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  #colophon { padding: 1.5rem 1.2rem; gap: 1rem; }

  /* Floor plan cards */
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { flex-direction: column; }
}
