/*
Theme Name: Mark Reeves Luxury Real Estate
Theme URI: https://markreeves.com
Author: Mark Reeves
Author URI: https://markreeves.com
Description: A dark luxury real estate theme for Mark Reeves — Miami's premier luxury real estate specialist. Features custom property listings, testimonials, and a sophisticated dark design with gold accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mark-reeves
Tags: real-estate, dark, luxury, custom-menu, custom-post-types, responsive-layout
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ═══════════════════════════════════════════
   MARK REEVES LUXURY REAL ESTATE
   Dark Luxury Design System
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --dark: #1A1A2E;
  --dark-2: #16162B;
  --dark-3: #121225;
  --surface: #1F1F35;
  --surface-2: #25253F;
  --border: #2A2A48;
  --ivory: #F5F0EB;
  --ivory-muted: #D8D0C8;
  --gold: #C9A84C;
  --gold-hover: #DFC06A;
  --gold-muted: rgba(201,168,76,.15);
  --success: #4CAF50;
  --text: #F5F0EB;
  --text-muted: #9B96A6;
  --text-body: #C5C0CC;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.35);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.2);
  --transition: .3s ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ivory); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-style: italic;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 12px;
}

.mx-auto { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ══════════════════════════════
   NAVIGATION
   ══════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(26,26,46,.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ivory);
  font-weight: 700;
  letter-spacing: .5px;
}

.nav-logo .gold { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .88rem;
  color: var(--ivory-muted);
  font-weight: 400;
  transition: var(--transition);
  letter-spacing: .3px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: var(--gold-hover) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ivory);
  transition: var(--transition);
}

/* WordPress Menu Support */
.nav-links .menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links .menu li { list-style: none; }
.nav-links .menu li a {
  font-size: .88rem;
  color: var(--ivory-muted);
  font-weight: 400;
  transition: var(--transition);
  letter-spacing: .3px;
  text-decoration: none;
}
.nav-links .menu li a:hover,
.nav-links .menu li.current-menu-item a,
.nav-links .menu li.current_page_item a { color: var(--gold); }
.nav-links .menu li.menu-item-contact a {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
}
.nav-links .menu li.menu-item-contact a:hover { background: var(--gold-hover) !important; }

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A1A2E 0%, #0D1B2A 50%, #1B2838 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(201,168,76,.08) 0%, transparent 60%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 20px;
}

.hero-text h1 .gold { color: var(--gold); }

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  max-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow);
}

.hero-badge .amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
}

.hero-badge .label {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ══════════════════════════════
   STATS STRIP
   ══════════════════════════════ */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.stat-item .label {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ══════════════════════════════
   FEATURED LISTINGS
   ══════════════════════════════ */
.listings-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201,168,76,.25);
}

.property-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.property-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-img .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--dark);
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.property-img .price {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(26,26,46,.85);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 6px 16px;
  border-radius: 4px;
}

.property-info {
  padding: 20px;
}

.property-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.property-info .address {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.property-meta {
  display: flex;
  gap: 20px;
  font-size: .82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.property-meta span { display: flex; align-items: center; gap: 6px; }

/* ══════════════════════════════
   TESTIMONIALS
   ══════════════════════════════ */
.testimonials {
  padding: 100px 0;
  background: var(--dark-2);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  opacity: .5;
}

.testimonial-card p {
  font-family: var(--font-accent);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ivory-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .8rem; color: var(--dark);
  background: var(--gold);
}

.testimonial-name { font-weight: 500; color: var(--ivory); font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: var(--text-muted); }

/* ══════════════════════════════
   AREAS SERVED
   ══════════════════════════════ */
.areas {
  padding: 100px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.area-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}

.area-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,.9) 0%, transparent 60%);
}

.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.area-card .area-info {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
}

.area-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.area-card .listings-count { font-size: .8rem; color: var(--gold); }

/* ══════════════════════════════
   CTA BANNER
   ══════════════════════════════ */
.cta-banner {
  padding: 100px 0;
  background: var(--dark-3);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,.06) 0%, transparent 70%);
}

.cta-banner .container { position: relative; }

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ══════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════ */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════
   FILTERS (Listings page)
   ══════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ivory-muted);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .88rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B96A6' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  min-width: 160px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* ══════════════════════════════
   ALL-LISTINGS GRID
   ══════════════════════════════ */
.all-listings {
  padding: 60px 0 100px;
}

/* ══════════════════════════════
   SOLD PAGE
   ══════════════════════════════ */
.sold-section {
  padding: 60px 0 100px;
}

.sold-card .property-info .prices {
  display: flex;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 10px;
}

.sold-card .ask-price {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.sold-card .sale-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
}

.sold-card .sold-badge {
  background: rgba(201,168,76,.12);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.sold-card .sale-date {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════
   ABOUT PAGE
   ══════════════════════════════ */
.about-section {
  padding: 80px 0 100px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-portrait {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }

.credentials {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.credential-tag {
  background: var(--gold-muted);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,.2);
}

.values-section {
  padding: 80px 0;
  background: var(--dark-2);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.value-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h4 { margin-bottom: 10px; }

/* ══════════════════════════════
   BLOG
   ══════════════════════════════ */
.blog-section {
  padding: 60px 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-body {
  padding: 22px;
}

.blog-body .category {
  font-size: .72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-body p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.blog-meta .author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--dark); font-weight: 600;
}

.blog-meta .dot { color: var(--border); }

/* ══════════════════════════════
   CONTACT
   ══════════════════════════════ */
.contact-section {
  padding: 60px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  color: var(--ivory-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--ivory);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.form-submit:hover {
  background: var(--gold-hover);
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-info-card h3 { margin-bottom: 24px; }

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-detail .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail .text h4 {
  font-size: .9rem;
  margin-bottom: 4px;
}

.contact-detail .text p {
  font-size: .88rem;
  color: var(--text-muted);
}

.contact-detail .text a { color: var(--gold); }
.contact-detail .text a:hover { color: var(--gold-hover); }

.map-placeholder {
  margin-top: 30px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.footer {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  background: var(--gold-muted);
}

.footer-col h4 {
  font-size: .9rem;
  color: var(--ivory);
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--gold); }

/* WordPress Footer Menu Support */
.footer-col .menu { list-style: none; margin: 0; padding: 0; }
.footer-col .menu li { margin-bottom: 10px; }
.footer-col .menu li a {
  font-size: .88rem;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.footer-col .menu li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════
   LIGHTBOX
   ══════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2001;
}

/* ══════════════════════════════
   PLACEHOLDER IMAGES
   ══════════════════════════════ */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ph-1 { background: linear-gradient(135deg, #1B2838, #2A3D55); }
.ph-2 { background: linear-gradient(135deg, #1F2B3D, #2E4156); }
.ph-3 { background: linear-gradient(135deg, #1A2744, #2B3F5E); }
.ph-4 { background: linear-gradient(135deg, #1E2A3A, #2D4050); }
.ph-5 { background: linear-gradient(135deg, #1C2836, #324A62); }
.ph-6 { background: linear-gradient(135deg, #1B2540, #2A3E5B); }
.ph-7 { background: linear-gradient(135deg, #1D2F45, #2C4260); }
.ph-8 { background: linear-gradient(135deg, #192636, #283C54); }

.ph-icon {
  font-size: 2.5rem;
  opacity: .25;
}

.ph-icon.sm { font-size: 1.6rem; }
.ph-icon.lg { font-size: 3.5rem; }

/* ══════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════
   GALLERY GRID
   ══════════════════════════════ */
.gallery-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 22px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 1;
  border: 1px solid var(--border);
}

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }

.gallery-item:hover { transform: scale(1.02); border-color: var(--gold); }

/* ══════════════════════════════
   WORDPRESS SPECIFIC
   ══════════════════════════════ */
.wp-block-image img { border-radius: var(--radius); }
.entry-content { padding: 60px 0 100px; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { margin: 30px 0 16px; }
.entry-content h3 { margin: 24px 0 12px; }

/* Single Post */
.single-post-header { padding: 140px 0 40px; text-align: center; background: var(--dark-2); border-bottom: 1px solid var(--border); }
.single-post-header .category { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 12px; }
.single-post-header h1 { margin-bottom: 16px; }
.single-post-header .post-meta { font-size: .85rem; color: var(--text-muted); }

.single-post-content { max-width: 800px; margin: 0 auto; padding: 60px 0 100px; }
.single-post-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }

/* WordPress Alignment */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 400px; margin: 0 auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--dark-2);
    flex-direction: column;
    padding: 80px 30px 40px;
    gap: 20px;
    transition: var(--transition);
    border-left: 1px solid var(--border);
  }

  .nav-links.open { right: 0; }
  .nav-links .menu { flex-direction: column; gap: 20px; }

  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .listings-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
