/*
Theme Name: Own In Sedona
Theme URI: https://owninsedona.com
Author: William Hamburg / Own In Sedona
Description: A luxury real estate theme for Own In Sedona by William Hamburg, Associate Broker at Realty ONE Group Mountain Desert. Built to work with Elementor Pro, Flexmls IDX, and Fluent Forms. Black / gold / ivory palette with editorial typography.
Version: 2.1
License: GPL v2 or later
Text Domain: owninsedona
*/

:root {
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --charcoal: #2a2a2a;
  --slate: #4a4a4a;
  --stone: #7a7a7a;
  --light-gray: #e8e4dc;
  --ivory: #f8f4ec;
  --cream: #faf7f0;
  --white: #ffffff;
  --gold: #c4a354;
  --gold-deep: #a88940;
  --gold-light: #d4b86a;
  --gold-subtle: #e5d9b5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h2 em, h1 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(196, 163, 84, 0.15);
}
.site-header .logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 500;
  color: var(--white); letter-spacing: 0.02em;
}
.site-header .logo img { height: 44px; width: auto; }

.nav-links {
  display: flex; gap: 2.25rem;
  list-style: none; align-items: center;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--white);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta, .nav-links .nav-cta a, .nav-links li.nav-cta a {
  padding: 0.7rem 1.5rem;
  background: var(--gold);
  color: var(--black) !important;
  border-radius: 2px;
  font-size: 0.75rem; letter-spacing: 0.15em;
  transition: all 0.3s;
}
.nav-cta:hover, .nav-links .nav-cta a:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-cta::after, .nav-links .nav-cta a::after { display: none; }

/* Header right-side tools wrapper (phone + menu toggle). */
.header-tools { display: flex; align-items: center; gap: 1.5rem; }

/* Two header phone elements: full-text shows on desktop, icon-only on mobile.
   They are mutually exclusive — !important guards against LiteSpeed CCSS or
   Elementor injecting overrides at higher cascade priority. */
.header-phone {
  color: var(--white);
  align-items: center;
  text-decoration: none;
}
.header-phone:hover { color: var(--gold); }

.header-phone--text {
  display: inline-flex !important;
  gap: 0.4rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  padding: 0.5rem; min-height: 44px;
}
.header-phone--icon {
  display: none !important;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
}
.header-phone--icon svg { width: 18px; height: 18px; }

/* Mobile-menu phone item — appended into the primary nav UL by
   ois_mobile_menu_phone_item(). Only shows inside the expanded mobile overlay. */
.mobile-menu-phone { display: none !important; }

.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0; position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 28px; height: 1.5px; background: var(--white);
  transition: 0.3s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translate(-50%, -50%); }
.menu-toggle span:nth-child(3) { bottom: 14px; }

/* HERO */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, transparent 30%, transparent 50%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1440px; width: 100%;
  margin: 0 auto; padding: 0 3rem 5rem;
}
.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; font-weight: 500;
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
h1.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 2rem;
  max-width: 18ch;
  opacity: 0; animation: fadeUp 1.2s ease 0.5s forwards;
}
h1.hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  max-width: 540px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem; line-height: 1.6;
  opacity: 0; animation: fadeUp 1s ease 0.8s forwards;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s ease 1.1s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1.1rem 2.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--gold); color: var(--black); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
section { position: relative; z-index: 2; }
.section-inner { max-width: 1440px; margin: 0 auto; padding: 8rem 3rem; }
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; margin-bottom: 5rem; align-items: end;
}
.section-desc {
  font-size: 1.05rem; color: var(--slate);
  max-width: 480px; line-height: 1.7; padding-bottom: 0.75rem;
}
.rule-gold {
  display: inline-block; width: 60px; height: 2px;
  background: var(--gold); margin-bottom: 1.25rem;
}

/* STORY / ABOUT */
.story { background: var(--ivory); }
.story-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: 1440px; margin: 0 auto; padding: 8rem 3rem;
}
.story-image { position: relative; }
.story-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story-image::after {
  content: ''; position: absolute;
  top: 2rem; left: 2rem; right: -2rem; bottom: -2rem;
  border: 1px solid var(--gold); z-index: -1;
}
.story-content h2 { margin-bottom: 2rem; }
.story-content p { margin-bottom: 1.5rem; color: var(--slate); font-size: 1.05rem; line-height: 1.75; }
.story-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3rem; padding-top: 3rem;
  border-top: 1px solid var(--light-gray);
}
.story-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem; font-weight: 300;
  color: var(--ink); line-height: 1;
}
.story-stat-label {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--stone);
  margin-top: 0.5rem; font-weight: 500;
}

/* FEATURED LISTINGS */
.featured-listings { background: var(--black); color: var(--white); }
.featured-listings .section-desc { color: rgba(255, 255, 255, 0.7); }
.featured-listings h2 { color: var(--white); }
.featured-listings h2 em { color: var(--gold); }
.featured-listings .eyebrow { color: var(--gold); }
.listing-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem; }
.listing-grid > .listing-card { grid-column: span 2; }
.featured-listings .listing-grid > .listing-card:nth-child(4) { grid-column: 2 / span 2; }
.featured-listings .listing-grid > .listing-card:nth-child(5) { grid-column: 4 / span 2; }
.listing-card {
  position: relative; display: block;
  text-decoration: none; color: inherit;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.listing-card:hover { transform: translateY(-6px); }
.listing-image {
  aspect-ratio: 4 / 3; overflow: hidden;
  position: relative; margin-bottom: 1.5rem;
}
.listing-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.listing-card:hover .listing-image img { transform: scale(1.05); }
.listing-tag {
  position: absolute; top: 1.25rem; left: 1.25rem;
  padding: 0.4rem 0.9rem;
  background: var(--gold); color: var(--black);
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 600;
  z-index: 2;
}
.listing-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--gold); margin-bottom: 0.5rem;
}
.listing-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--white); line-height: 1.2; margin-bottom: 1rem;
}
.listing-specs {
  display: flex; gap: 1.5rem;
  font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7); font-weight: 500;
}

/* TESTIMONIALS */
.testimonials { background: var(--ivory); overflow: hidden; }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.testimonial-card {
  background: var(--white); padding: 3rem 2.5rem;
  position: relative; border: 1px solid var(--light-gray);
}
.testimonial-card::before {
  content: '"';
  position: absolute; top: 1rem; left: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem; color: var(--gold);
  opacity: 0.3; line-height: 1;
}
.testimonial-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400;
  line-height: 1.5; color: var(--ink);
  margin-bottom: 2rem; position: relative; z-index: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--light-gray);
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; }
.testimonial-name { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink); }

/* BLOG */
.blog-section { background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-image {
  aspect-ratio: 3 / 2; overflow: hidden;
  margin-bottom: 1.5rem; background: var(--light-gray);
}
.blog-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blog-card:hover .blog-image img { transform: scale(1.04); }
.blog-meta {
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 0.8rem; font-weight: 600;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem; font-weight: 400;
  line-height: 1.2; color: var(--ink);
  margin-bottom: 0.75rem; transition: color 0.2s;
}
.blog-card:hover .blog-title { color: var(--gold-deep); }
.blog-excerpt { font-size: 0.95rem; color: var(--slate); line-height: 1.6; }

/* CTA BAND */
.cta-band {
  background: var(--black); color: var(--white);
  padding: 7rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(196, 163, 84, 0.15) 0%, transparent 70%);
}
.cta-band-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 1.5rem; }
.cta-band h2 em { color: var(--gold); }
.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem; margin-bottom: 3rem; line-height: 1.6;
}

/* FOOTER */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 3rem 2rem;
  border-top: 1px solid rgba(196, 163, 84, 0.15);
}
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img.footer-logo { height: 48px; width: auto; }
.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px; margin: 1.5rem 0; line-height: 1.7;
}
.footer-brand .contact-info {
  margin-top: 2rem; font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-brand .contact-info a {
  color: var(--gold); display: block;
  margin-bottom: 0.3rem; letter-spacing: 0.05em;
}
.footer-brand .contact-info a:hover { color: var(--gold-light); }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-compliance {
  max-width: 1440px; margin: 2.5rem auto 0;
  display: flex; flex-wrap: wrap;
  gap: 2rem; align-items: center;
  justify-content: space-between;
}
.footer-logos { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer-logos img {
  height: 44px; width: auto; opacity: 0.85;
  transition: opacity 0.3s; filter: brightness(0) invert(1);
}
.footer-logos img.keep-color { filter: none; }
.footer-logos img:hover { opacity: 1; }
.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7; max-width: 520px;
}
.footer-legal strong { color: rgba(255, 255, 255, 0.75); }
.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0.5rem; text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}
.footer-legal a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1440px; margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center; line-height: 1.8;
}

/* PAGE HEADER */
.page-header {
  background: var(--black); color: var(--white);
  padding: 12rem 3rem 6rem;
  text-align: center; position: relative;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(196, 163, 84, 0.15) 0%, transparent 60%);
}
.page-header > * { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--gold); margin-bottom: 1rem; display: inline-block; }
.page-header h1 { color: var(--white); max-width: 20ch; margin: 0 auto; }
.page-header .meta {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.post-content {
  max-width: 760px; margin: 0 auto;
  padding: 5rem 2rem 6rem;
  font-size: 1.1rem; line-height: 1.8; color: var(--charcoal);
}
.post-content h2, .post-content h3 { margin: 3rem 0 1.25rem; color: var(--ink); }
.post-content h2 { font-size: 2.25rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content img { margin: 2.5rem 0; }
.post-content a {
  color: var(--gold-deep); text-decoration: underline;
  text-decoration-color: var(--gold-subtle); text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: var(--gold); }
.post-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.5rem;
  color: var(--ink); line-height: 1.4;
}
.post-content ul, .post-content ol { margin: 0 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }

.featured-image {
  max-width: 1200px; margin: -3rem auto 0;
  padding: 0 2rem; position: relative; z-index: 2;
}
.featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; transition: gap 0.3s;
}
.back-link:hover { gap: 0.8rem; }

/* LISTING SINGLE */
.listing-hero { position: relative; background: var(--black); }
.listing-hero-video { width: 100%; aspect-ratio: 16 / 9; background: var(--black); }
.listing-hero-video iframe { width: 100%; height: 100%; display: block; border: 0; }
.listing-hero-fallback { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.listing-info { background: var(--ivory); padding: 5rem 3rem; }
.listing-info-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr; gap: 4rem;
}
.listing-address-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300; line-height: 1.1;
  color: var(--ink); margin-bottom: 1rem;
}
.listing-price-large {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; color: var(--gold-deep);
  margin-bottom: 2rem; font-weight: 400;
  line-height: 1;
}
.listing-specs-large {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 2rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 1.5rem;
  background: var(--ivory);
}
.spec-item {
  text-align: center; padding: 0 1rem;
  border-left: 1px solid var(--gold);
}
.spec-item:first-child { border-left: 0; }
.spec-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--ink); line-height: 1;
}
.spec-label {
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone);
  margin-top: 0.5rem; font-weight: 600;
}
.listing-description { font-size: 1.05rem; line-height: 1.8; color: var(--slate); }
.listing-description p { margin-bottom: 1.5rem; }

.agent-card {
  position: sticky; top: 120px;
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--light-gray);
  text-align: center;
}
.agent-card .agent-image {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--gold);
}
.agent-card .agent-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--ink); margin-bottom: 0.3rem;
}
.agent-card .agent-title {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-deep);
  margin-bottom: 1.5rem; font-weight: 600;
}
.agent-card .agent-contact {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.5rem; font-size: 0.9rem;
}
.agent-card .agent-contact a { color: var(--ink); }
.agent-card .agent-contact a:hover { color: var(--gold-deep); }

/* ABOUT PAGE */
.hero.hero-about { min-height: 85vh; }

.about-stats { background: var(--black); color: var(--ivory); padding: 5rem 2rem; }
.about-stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.about-stat { text-align: center; padding: 0 1.5rem; border-left: 1px solid rgba(196, 163, 84, 0.3); }
.about-stat:first-child { border-left: 0; }
.about-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: var(--ivory); line-height: 1;
}
.about-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-top: 0.85rem; font-weight: 500;
}

.about-work { background: var(--ivory); }
.about-work-head { max-width: 720px; margin-bottom: 4rem; }
.about-work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.about-work-card {
  background: var(--ivory);
  border: 1px solid var(--light-gray);
  padding: 2.75rem 2.25rem;
  border-radius: 2px;
}
.about-work-card .eyebrow { display: block; margin-bottom: 0.85rem; }
.about-work-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--ink); margin-bottom: 1rem; line-height: 1.2;
}
.about-work-card p { font-size: 0.98rem; color: var(--slate); line-height: 1.7; }

.about-beyond { background: var(--black); color: var(--ivory); padding: 6rem 2rem; }
.about-beyond-inner { max-width: 1440px; margin: 0 auto; }
.about-beyond-head { max-width: 720px; margin-bottom: 4rem; }
.about-beyond-head .eyebrow { display: block; margin-bottom: 1rem; color: var(--gold); }
.about-beyond-head h2 { color: var(--ivory); }
.about-beyond-head h2 em { color: var(--gold); }
.about-beyond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.about-beyond-block,
.about-beyond-block h3,
.about-beyond-block p { text-align: center; }
.about-beyond-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--ivory); line-height: 1.25; margin-bottom: 0.75rem;
}
.about-beyond-block h3 em { color: var(--gold); font-style: italic; }
.about-beyond-block p {
  font-size: 0.92rem; line-height: 1.7;
  color: rgba(248, 244, 236, 0.72);
}

.cta-band-contact {
  margin-top: 1.75rem;
  font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.cta-band-contact a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.cta-band-contact a:hover { color: var(--gold); }

/* CONTACT PAGE */
.contact-hero {
  background: var(--black); color: var(--ivory);
  padding: 9rem 2rem 6rem;
  position: relative;
}
.contact-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(196, 163, 84, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.contact-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.contact-hero-eyebrow { color: var(--gold); display: block; margin-bottom: 1.25rem; }
.contact-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--ivory); letter-spacing: -0.02em;
  margin-bottom: 1.5rem; max-width: 18ch;
}
.contact-hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.contact-hero-lede {
  font-size: 1.1rem; line-height: 1.65;
  color: rgba(248, 244, 236, 0.78);
  max-width: 600px; margin-bottom: 4rem;
}
.contact-quick {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; padding-top: 3rem;
  border-top: 1px solid rgba(196, 163, 84, 0.25);
}
.contact-quick-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 600; margin-bottom: 0.85rem;
}
.contact-quick-value {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--ivory); line-height: 1.2;
  margin-bottom: 0.6rem;
  transition: color 0.25s;
}
.contact-quick-value:hover { color: var(--gold); }
.contact-quick-meta {
  font-size: 0.82rem; color: rgba(248, 244, 236, 0.55);
  letter-spacing: 0.04em;
}

.contact-form-section { background: var(--ivory); padding: 7rem 2rem; }
.contact-form-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: 6rem; align-items: start;
}
.contact-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; line-height: 1.1;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--ink); margin-bottom: 2.5rem;
}
.contact-form-title em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
.contact-response {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}
.contact-response-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 1rem;
}
.contact-response-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.25rem;
  line-height: 1.5; color: var(--slate);
}

.contact-form-placeholder {
  border: 1px dashed var(--gold);
  padding: 3rem 2rem; text-align: center;
  background: rgba(196, 163, 84, 0.05);
}
.contact-form-placeholder-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 1rem;
}
.contact-form-placeholder p { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }
.contact-form-placeholder code {
  background: var(--white);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--light-gray);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem; color: var(--ink);
}

/* Fluent Forms — minimal Aman/Aesop styling, scoped to the contact page wrapper */
.contact-form-wrap .fluentform .ff-el-input--label label,
.contact-form-wrap .fluentform label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.72rem !important; letter-spacing: 0.22em !important;
  text-transform: uppercase !important; color: var(--gold-deep) !important;
  font-weight: 600 !important; margin-bottom: 0.6rem !important;
}
.contact-form-wrap .fluentform input[type="text"],
.contact-form-wrap .fluentform input[type="email"],
.contact-form-wrap .fluentform input[type="tel"],
.contact-form-wrap .fluentform input[type="url"],
.contact-form-wrap .fluentform input[type="number"],
.contact-form-wrap .fluentform select,
.contact-form-wrap .fluentform textarea {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--light-gray) !important;
  border-radius: 0 !important;
  padding: 0.85rem 0 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.15rem !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  width: 100% !important;
  transition: border-color 0.25s !important;
}
.contact-form-wrap .fluentform textarea { min-height: 120px !important; resize: vertical !important; }
.contact-form-wrap .fluentform input:focus,
.contact-form-wrap .fluentform select:focus,
.contact-form-wrap .fluentform textarea:focus {
  outline: 0 !important;
  border-bottom-color: var(--gold) !important;
}
.contact-form-wrap .fluentform .ff-el-group { margin-bottom: 2rem !important; }
.contact-form-wrap .fluentform button[type="submit"],
.contact-form-wrap .fluentform .ff-btn-submit {
  background: var(--ink) !important;
  color: var(--ivory) !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 1.1rem 2.25rem !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.78rem !important; font-weight: 600 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.contact-form-wrap .fluentform button[type="submit"]:hover,
.contact-form-wrap .fluentform .ff-btn-submit:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
  border-color: var(--gold) !important;
}

.contact-office { background: var(--ivory); padding: 6rem 2rem; }
.contact-office-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.contact-office-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; line-height: 1.1;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--ink); margin-bottom: 2.5rem;
}
.contact-office-title em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
.contact-office-block { margin-bottom: 2.5rem; }
.contact-office-block:last-child { margin-bottom: 0; }
.contact-office-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 0.85rem;
}
.contact-office-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--ink); line-height: 1.4;
  margin-bottom: 0.6rem;
}
.contact-office-meta { font-size: 0.92rem; color: var(--slate); line-height: 1.6; }
.contact-office-meta a {
  color: var(--gold-deep);
  text-decoration: underline; text-decoration-color: var(--gold-subtle);
  text-underline-offset: 3px;
  margin-left: 0.25rem; white-space: nowrap;
}
.contact-office-meta a:hover { text-decoration-color: var(--gold); color: var(--ink); }
.contact-office-map { position: relative; }
.contact-office-map::after {
  content: ''; position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  background: rgba(196, 163, 84, 0.25);
  z-index: 0;
}
.contact-office-map iframe {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3;
  border: 0; display: block;
  background: var(--light-gray);
}

.contact-affiliation {
  background: var(--ivory);
  padding: 4rem 2rem 6rem;
  text-align: center;
}
.contact-affiliation-inner {
  max-width: 720px; margin: 0 auto;
  padding-top: 4rem;
  border-top: 1px solid rgba(196, 163, 84, 0.3);
}
.contact-affiliation-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-bottom: 1.25rem;
}
.contact-affiliation-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.35rem;
  line-height: 1.5; color: var(--slate);
}
.contact-affiliation-text em { font-style: italic; color: var(--gold-deep); font-weight: 500; }

/* THANK YOU PAGE */
.ty-hero {
  background: var(--black); color: var(--ivory);
  padding: 9rem 2rem 6rem;
  position: relative; text-align: center;
}
.ty-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(196, 163, 84, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.ty-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.ty-hero-rule { margin-left: auto; margin-right: auto; display: block; }
.ty-hero-eyebrow { color: var(--gold); display: block; margin-bottom: 1.25rem; }
.ty-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--ivory); letter-spacing: -0.02em;
  margin: 0 auto 1.75rem;
}
.ty-hero-title em { font-style: italic; color: var(--gold); font-weight: 400; }
.ty-hero-body {
  font-size: 1.1rem; line-height: 1.7;
  color: rgba(248, 244, 236, 0.8);
  max-width: 580px; margin: 0 auto 2rem;
}
.ty-hero-signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.4rem;
  color: var(--gold-deep); line-height: 1;
}

.ty-steps { background: var(--ivory); padding: 6rem 2rem; }
.ty-steps-inner { max-width: 1200px; margin: 0 auto; }
.ty-section-head { max-width: 720px; margin-bottom: 4rem; }
.ty-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300; line-height: 1.1;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--ink);
}
.ty-section-title em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
.ty-section-title--light { color: var(--ivory); }
.ty-section-title--light em { color: var(--gold); }

.ty-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.ty-step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: var(--gold-deep); line-height: 1;
  margin-bottom: 1.25rem;
}
.ty-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--ink); margin-bottom: 0.85rem; line-height: 1.2;
}
.ty-step p { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--slate); line-height: 1.7; }

.ty-cards-section { background: var(--black); color: var(--ivory); padding: 6rem 2rem; }
.ty-cards-inner { max-width: 1200px; margin: 0 auto; }
.ty-cards-section .ty-section-head { color: var(--ivory); }
.ty-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.ty-card {
  display: flex; flex-direction: column;
  padding: 3rem;
  background: transparent;
  border: 1px solid rgba(196, 163, 84, 0.3);
  text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ty-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.ty-card-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 600; margin-bottom: 1rem;
}
.ty-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; font-weight: 400;
  color: var(--ivory); line-height: 1.2; margin-bottom: 1rem;
}
.ty-card-body {
  font-size: 0.97rem; line-height: 1.7;
  color: rgba(248, 244, 236, 0.72);
  margin-bottom: 2rem; flex: 1;
}
.ty-card-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); transition: color 0.25s;
}
.ty-card:hover .ty-card-cta { color: var(--gold-light); }

.ty-note { background: var(--ivory); padding: 6rem 2rem; }
.ty-note-inner { max-width: 1100px; margin: 0 auto; }
.ty-note-inner--with-image {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: 5rem; align-items: center;
}
.ty-note-image img {
  width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; display: block;
}
.ty-note-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.5rem;
  line-height: 1.5; color: var(--ink);
  margin: 1.5rem 0 1.5rem; padding: 0;
  border: 0;
}
.ty-note-attribution {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--stone);
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-inner { padding: 6rem 2rem; }
  .story-inner { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2rem; }
  .story-image::after { display: none; }
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-listings .listing-grid > .listing-card:nth-child(4) { grid-column: span 2; }
  .featured-listings .listing-grid > .listing-card:nth-child(5) { grid-column: 2 / span 2; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .listing-info-inner { grid-template-columns: 1fr; }
  .agent-card { position: static; }
  .listing-specs-large { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .spec-item { border-left: 1px solid var(--gold); }
  .spec-item:nth-child(3n+1) { border-left: 0; }
  .about-stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .about-stat { border-left: 0; }
  .about-stat:nth-child(2n) { border-left: 1px solid rgba(196, 163, 84, 0.3); }
  .about-work-grid { grid-template-columns: 1fr; }
  .about-beyond-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
}
@media (max-width: 768px) {
  .site-header { padding: 1rem 1.5rem; }
  .site-header.scrolled { padding: 0.75rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.mobile-visible {
    display: flex; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 2rem; gap: 1.5rem;
  }
  .menu-toggle { display: block; }
  /* Swap header phone elements: hide full-text, show icon-only. */
  .header-phone--text { display: none !important; }
  .header-phone--icon { display: inline-flex !important; }
  /* Full number with icon inside the expanded mobile nav overlay only. */
  .nav-links.mobile-visible .mobile-menu-phone { display: block !important; margin-top: 0.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .mobile-menu-phone a {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--gold); font-size: 1.05rem;
    font-weight: 500; letter-spacing: 0.04em;
    min-height: 44px;
  }
  .hero-content { padding: 0 1.5rem 3rem; }
  h1.hero-title { font-size: clamp(2rem, 7.5vw, 2.75rem); line-height: 1.05; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .section-inner { padding: 4rem 1.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .story-stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-grid > .listing-card,
  .featured-listings .listing-grid > .listing-card:nth-child(4),
  .featured-listings .listing-grid > .listing-card:nth-child(5) { grid-column: auto; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 2rem; }
  .blog-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cta-band { padding: 4rem 1.5rem; }
  .site-footer { padding: 3rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
  .footer-compliance { flex-direction: column; align-items: flex-start; }
  .page-header { padding: 7rem 1.5rem 3rem; }
  .listing-specs-large { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(3n+1) { border-left: 1px solid var(--gold); }
  .spec-item:nth-child(2n+1) { border-left: 0; }
  .listing-price-large { font-size: 2.5rem; }
  .hero.hero-about { min-height: 70vh; }
  .about-stats { padding: 4rem 1.5rem; }
  .about-stats-inner { grid-template-columns: 1fr; row-gap: 0; }
  .about-stat { border-left: 0; padding: 1.75rem 1rem; border-top: 1px solid rgba(196, 163, 84, 0.2); }
  .about-stat:nth-child(2n) { border-left: 0; }
  .about-stat:first-child { border-top: 0; padding-top: 0; }
  .about-stat-value { font-size: 2.75rem; }
  .about-beyond { padding: 4rem 1.5rem; }
  .about-beyond-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-work-card { padding: 2rem 1.75rem; }
}
@media (max-width: 900px) {
  .contact-hero { padding: 7rem 1.5rem 5rem; }
  .contact-hero-lede { margin-bottom: 3rem; }
  .contact-quick { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .contact-form-section { padding: 5rem 1.5rem; }
  .contact-form-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-office { padding: 5rem 1.5rem; }
  .contact-office-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-office-map::after { top: 10px; left: 10px; right: -10px; bottom: -10px; }
  .contact-affiliation { padding: 3rem 1.5rem 5rem; }
  .contact-affiliation-inner { padding-top: 3rem; }
  .ty-hero { padding: 6rem 1.5rem 4rem; }
  .ty-hero-title { font-size: clamp(2.25rem, 7vw, 3rem); }
  .ty-steps { padding: 4rem 1.5rem; }
  .ty-steps-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ty-cards-section { padding: 4rem 1.5rem; }
  .ty-cards-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ty-card { padding: 2.25rem; }
  .ty-note { padding: 4rem 1.5rem; }
  .ty-note-inner--with-image { grid-template-columns: 1fr; gap: 2.5rem; }
  .ty-note-image img { aspect-ratio: 1 / 1; }
  .ty-section-head { margin-bottom: 3rem; }
}

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.alignleft { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ----------------------------------------------------------
 * LISTING STATUS — Pending overlay, Sold badge / banner.
 * Used on cards (homepage + archive) and on single hero.
 * ---------------------------------------------------------- */

/* Status badge in card image corner — replaces the gold tag for non-active. */
.listing-status-badge {
  position: absolute; top: 1.25rem; left: 1.25rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  z-index: 3; color: var(--white);
}
.listing-status-badge--pending { background: #1a1a1a; color: var(--gold); border: 1px solid var(--gold); }
.listing-status-badge--sold { background: #8b1a1a; color: var(--white); }

/* Pending overlay — translucent dark band across the image with PENDING text. */
.listing-status-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 10, 0.78);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  text-align: center; z-index: 2;
  border-top: 1px solid rgba(196, 163, 84, 0.5);
}

/* Sold cards: dim the image so the badge reads instantly. */
.listing-card--sold .listing-image::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.35);
  z-index: 1;
}

/* HERO BANNER — diagonal stamp across single-listing hero. */
.listing-hero { overflow: hidden; }
.listing-hero-banner {
  position: absolute; top: 1.5rem; right: -3.5rem;
  transform: rotate(35deg);
  padding: 0.6rem 4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--white);
  z-index: 4;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.listing-hero-banner--sold { background: #8b1a1a; }
.listing-hero-banner--pending {
  background: var(--ink); color: var(--gold);
  border: 1px solid var(--gold);
}

/* Pending tag inline beside the price on single page. */
.listing-price-pending-tag {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: var(--ink); color: var(--gold);
  border: 1px solid var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  vertical-align: middle;
}

/* Eyebrow color overrides on single page when sold/pending. */
.listing-eyebrow--sold { color: #b62a2a; }
.listing-eyebrow--pending { color: var(--gold-deep); }

/* Sold page agent card — "similar in [neighborhood]?" prompt above CTA. */
.agent-card-similar-prompt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; line-height: 1.4;
  color: var(--ink);
  margin: 0.5rem 0 1.25rem;
}

/* ----------------------------------------------------------
 * ARCHIVE — /featured-listings/ bottom CTAs row.
 * Reuses .page-header (already dark/gold) for the top header,
 * and .featured-listings (already dark) for the grid section.
 * ---------------------------------------------------------- */
.featured-archive-ctas {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid rgba(196, 163, 84, 0.18);
}

@media (max-width: 600px) {
  .featured-archive-ctas { flex-direction: column; align-items: stretch; }
  .featured-archive-ctas .btn { width: 100%; justify-content: center; }
  .listing-hero-banner { font-size: 0.9rem; padding: 0.5rem 3rem; right: -3rem; }
}
/* ===========================================
   LUXURY PAGE — EDITORIAL SECTION
   Used on /luxury-homes-in-sedona/
   =========================================== */

.ois-idx-page .ois-idx-editorial {
  background: var(--ivory);
  color: var(--deep-brown, #3a2f25);
  padding: 6rem 2rem;
}

.ois-idx-page .ois-idx-editorial__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ois-idx-page .ois-idx-editorial__lede {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}

.ois-idx-editorial__eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.ois-idx-editorial__h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--deep-brown, #3a2f25);
}

.ois-idx-editorial__intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(58, 47, 37, 0.85);
}

.ois-idx-editorial__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}

.ois-idx-editorial__block h3.ois-idx-editorial__h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--deep-brown, #3a2f25);
}

.ois-idx-editorial__block p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(58, 47, 37, 0.78);
}

.ois-idx-editorial__block strong {
  color: var(--deep-brown, #3a2f25);
  font-weight: 500;
}

/* IDX listings intro (sits just above the embed) */
.ois-idx-listings__intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.ois-idx-listings__intro-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(58, 47, 37, 0.75);
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
  .ois-idx-editorial { padding: 4rem 1.5rem; }
  .ois-idx-editorial__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ois-idx-editorial__lede { margin-bottom: 3rem; }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .ois-idx-editorial { padding: 3rem 1.25rem; }
}
/* ===========================================
   MARKET STATS PAGE — Chart sections + iframe responsive scaling
   Used on /real-estate-market-stats-for-sedona-arizona/
   =========================================== */

.ois-idx-page .ois-stats-chart {
  background: var(--ivory);
  padding: 5rem 2rem;
}

.ois-idx-page .ois-stats-chart--alt {
  background: rgba(58, 47, 37, 0.03);
}

.ois-stats-chart__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ois-stats-chart__h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--deep-brown, #3a2f25);
  text-align: center;
  margin-bottom: 1rem;
}

.ois-stats-chart__desc {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(58, 47, 37, 0.78);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* Responsive iframe wrapper — preserves 4:3 aspect ratio (800x600) */
.ois-stats-chart__embed {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid rgba(58, 47, 37, 0.08);
  box-shadow: 0 2px 12px rgba(58, 47, 37, 0.04);
  overflow: hidden;
}

.ois-stats-chart__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Data source disclaimer */
.ois-idx-page .ois-stats-source {
  background: var(--ivory);
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.ois-stats-source__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.ois-stats-source p {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(58, 47, 37, 0.55);
  margin: 0;
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
  .ois-stats-chart { padding: 4rem 1.5rem; }
  .ois-stats-chart__desc { margin-bottom: 2rem; }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .ois-stats-chart { padding: 3rem 1.25rem; }
  .ois-stats-chart__desc { font-size: 0.95rem; }
  .ois-stats-chart__embed { aspect-ratio: 3 / 4; } /* taller on narrow screens for chart legibility */
}

/* CRITICAL OVERRIDES FOR IDX EDITORIAL SECTIONS — applied to defeat cascade conflicts */
.ois-idx-page .ois-idx-editorial { padding: 6rem 2rem !important; }
.ois-idx-page .ois-idx-editorial__inner { max-width: 1200px !important; margin: 0 auto !important; padding: 0 !important; }
.ois-idx-page .ois-idx-editorial__lede { max-width: 760px !important; margin: 0 auto 4rem !important; text-align: center !important; }
.ois-idx-page .ois-idx-editorial__lede .ois-idx-editorial__h2,
.ois-idx-page .ois-idx-editorial__lede .ois-idx-editorial__intro,
.ois-idx-page .ois-idx-editorial__lede .ois-idx-editorial__eyebrow { text-align: center !important; }
.ois-idx-page .ois-idx-listings__intro { max-width: 760px !important; margin: 0 auto 3rem !important; text-align: center !important; }
.ois-idx-page .ois-idx-listings__intro .ois-idx-editorial__h2,
.ois-idx-page .ois-idx-listings__intro .ois-idx-editorial__eyebrow,
.ois-idx-page .ois-idx-listings__intro .ois-idx-listings__intro-text { text-align: center !important; }
