/*
Theme Name: Real Hodge Group
Theme URI: https://realhodge.com
Author: Real Hodge Group
Author URI: https://realhodge.com
Description: A luxury real estate theme for Real Hodge Group â featuring IDX integration, home valuation, community pages, and premium design.
Version: 1.0.0
License: Private
Text Domain: realhodge
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand Colors - Real Hodge Group */
  --rh-navy: #1496d4;
  --rh-navy-light: #1080b8;
  --rh-blue: #1496d4;
  --rh-blue-dark: #1080b8;
  --rh-blue-light: #3AAADE;
  --rh-gold: #d4af35;
  --rh-gold-light: #DFC05A;
  --rh-gold-dark: #b8961e;
  --rh-silver: #c1c0c0;
  --rh-silver-light: #d6d5d5;
  --rh-silver-dark: #a8a7a7;
  --rh-white: #FFFFFF;
  --rh-off-white: #F8F6F3;
  --rh-cream: #F0EBE3;
  --rh-charcoal: #2C2C2C;
  --rh-gray: #6B7280;
  --rh-gray-light: #E5E7EB;
  --rh-black: #111111;

  /* Typography */
  --font-heading: 'Trajan Pro', 'Cinzel', Georgia, serif;
  --font-body: 'Noto Serif', Georgia, serif;
  --font-accent: 'Noto Serif', Georgia, serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1280px;
  --container-narrow: 960px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--rh-charcoal);
  line-height: 1.7;
  background: var(--rh-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--rh-navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--rh-gray);
  font-size: 1.05rem;
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--rh-gold);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rh-gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--rh-gray);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding);
}

.section-dark {
  background: var(--rh-navy);
}

.section-cream {
  background: var(--rh-off-white);
}

.text-center {
  text-align: center;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4,
.text-white p, .text-white {
  color: var(--rh-white);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--rh-gold);
  color: var(--rh-navy);
  border-color: var(--rh-gold);
}

.btn-primary:hover {
  background: var(--rh-blue);
  border-color: var(--rh-blue);
  color: var(--rh-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 150, 212, 0.35);
}

.btn-large {
  padding: 1.1rem 3rem;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.btn-outline {
  background: transparent;
  color: var(--rh-white);
  border-color: var(--rh-white);
}

.btn-outline:hover {
  background: var(--rh-white);
  color: var(--rh-navy);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--rh-navy);
  border-color: var(--rh-navy);
}

.btn-outline-dark:hover {
  background: var(--rh-navy);
  color: var(--rh-white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--rh-navy);
  color: var(--rh-white);
  border-color: var(--rh-navy);
}

.btn-dark:hover {
  background: var(--rh-navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 150, 212, 0.3);
}

.btn-blue {
  background: var(--rh-blue);
  color: var(--rh-white);
  border-color: var(--rh-blue);
}

.btn-blue:hover {
  background: var(--rh-blue-dark);
  border-color: var(--rh-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 150, 212, 0.35);
}

.btn-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: var(--transition-slow);
  padding: 1.2rem 0;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(20, 150, 212, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
  border-bottom: 2px solid var(--rh-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 45px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--rh-white);
  font-weight: 600;
  line-height: 1.1;
}

.site-logo .logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rh-gold);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1.1rem;
  position: relative;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--rh-gold);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rh-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 60%;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--rh-white);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 0.75rem 0;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.5rem;
  color: var(--rh-charcoal) !important;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.nav-dropdown a:hover {
  color: var(--rh-gold) !important;
  background: var(--rh-off-white);
}

.nav-dropdown a::after {
  display: none;
}

/* Header CTA */
.header-cta {
  margin-left: 1rem;
}

.header-cta .btn {
  padding: 0.6rem 1.6rem;
  font-size: 0.78rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 28px;
  height: 2px;
  background: var(--rh-white);
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--rh-navy);
  z-index: 2000;
  padding: 5rem 2rem 2rem;
  transition: var(--transition-slow);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--rh-white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--rh-white);
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a:hover {
  color: var(--rh-gold);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(20, 150, 212, 0.5) 0%,
    rgba(20, 150, 212, 0.3) 40%,
    rgba(20, 150, 212, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--rh-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--rh-gold);
}

.hero h1 {
  color: var(--rh-white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Search Bar */
.hero-search {
  margin-top: 3rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: var(--rh-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.hero-search .btn {
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--rh-gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--rh-navy);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 53, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(212, 175, 53, 0.35);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rh-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   FEATURED LISTINGS
   ============================================ */
.listings-section {
  padding: var(--section-padding);
  background: var(--rh-off-white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.listing-card {
  background: var(--rh-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.listing-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover .listing-image img {
  transform: scale(1.05);
}

.listing-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--rh-gold);
  color: var(--rh-navy);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.listing-favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.listing-favorite:hover {
  background: var(--rh-gold);
  color: var(--rh-white);
}

.listing-details {
  padding: 1.5rem;
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--rh-navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.listing-address {
  font-size: 0.95rem;
  color: var(--rh-gray);
  margin-bottom: 1rem;
}

.listing-meta {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rh-gray-light);
}

.listing-meta span {
  font-size: 0.82rem;
  color: var(--rh-gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.listing-meta svg {
  width: 16px;
  height: 16px;
  color: var(--rh-gold);
}

/* ============================================
   SERVICES / WHY CHOOSE US
   ============================================ */
.services-section {
  padding: var(--section-padding);
  background: var(--rh-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.service-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  background: var(--rh-off-white);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--rh-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--rh-gold);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--rh-gold);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  color: var(--rh-white);
}

.service-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
  padding: var(--section-padding);
  background: var(--rh-navy);
  position: relative;
  overflow: hidden;
}

.about-preview::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(212, 175, 53, 0.15);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--rh-gold);
  z-index: -1;
}

.about-content h2 {
  color: var(--rh-white);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content .btn {
  margin-top: 1rem;
}

/* ============================================
   COMMUNITIES / AREAS
   ============================================ */
.communities-section {
  padding: var(--section-padding);
  background: var(--rh-white);
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1.5rem;
}

.communities-grid .community-card:first-child {
  grid-row: span 2;
}

.community-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.community-card:hover img {
  transform: scale(1.08);
}

.community-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(20, 150, 212, 0.85), transparent);
}

.community-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.community-info h3 {
  color: var(--rh-white);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.community-info p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.community-info .community-count {
  display: inline-block;
  background: var(--rh-gold);
  color: var(--rh-navy);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--rh-off-white);
  position: relative;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-item {
  display: none;
}

.testimonial-item.active {
  display: block;
}

.testimonial-quote-mark {
  font-family: var(--font-accent);
  font-size: 6rem;
  color: var(--rh-gold);
  line-height: 1;
  margin-bottom: -1rem;
  opacity: 0.4;
}

.testimonial-text {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--rh-charcoal);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--rh-navy);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--rh-gray);
}

.testimonial-stars {
  color: var(--rh-gold);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rh-gray-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--rh-gold);
  width: 30px;
  border-radius: 5px;
}

/* ============================================
   HOME VALUATION CTA
   ============================================ */
.valuation-cta {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--rh-navy) 0%, var(--rh-navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.valuation-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('assets/images/home-valuation-bg.jpg') center/cover;
  opacity: 0.15;
}

.valuation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.valuation-content {
  position: relative;
  z-index: 2;
}

.valuation-content h2 {
  color: var(--rh-white);
  margin-bottom: 1rem;
}

.valuation-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.valuation-form {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem;
}

.valuation-form h3 {
  color: var(--rh-white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--rh-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rh-gold);
  background: rgba(255,255,255,0.12);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.4);
}

.valuation-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Light form variant */
.form-light .form-group label {
  color: var(--rh-gray);
}

.form-light .form-group input,
.form-light .form-group select,
.form-light .form-group textarea {
  background: var(--rh-white);
  border-color: var(--rh-gray-light);
  color: var(--rh-charcoal);
}

.form-light .form-group input:focus,
.form-light .form-group select:focus,
.form-light .form-group textarea:focus {
  border-color: var(--rh-gold);
}

.form-light .form-group input::placeholder {
  color: var(--rh-gray);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
  padding: var(--section-padding);
  background: var(--rh-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--rh-white);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--rh-gold);
  color: var(--rh-navy);
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-content {
  padding: 1.5rem 0;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--rh-gray);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.blog-card:hover h3 {
  color: var(--rh-gold-dark);
}

.blog-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rh-gold-dark);
  margin-top: 1rem;
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(4px);
}

/* ============================================
   CONTACT CTA
   ============================================ */
.contact-cta {
  padding: 80px 0;
  background: var(--rh-cream);
  text-align: center;
}

.contact-cta h2 {
  margin-bottom: 1rem;
}

.contact-cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.contact-cta .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--rh-black);
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--rh-white);
  margin-bottom: 1rem;
}

.footer-brand .logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rh-gold);
  margin-top: 3px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 1rem 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--rh-gold);
  border-color: var(--rh-gold);
  color: var(--rh-navy);
}

.footer-col h4 {
  color: var(--rh-white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--rh-gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--rh-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--rh-gold);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rh-navy);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  color: var(--rh-white);
  margin-bottom: 1rem;
}

.page-hero .breadcrumbs {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumbs a {
  color: var(--rh-gold);
}

.breadcrumbs span {
  margin: 0 0.5rem;
}

/* ============================================
   PROPERTY SEARCH PAGE
   ============================================ */
.search-filters {
  background: var(--rh-white);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rh-gray);
  margin-bottom: 0.4rem;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rh-gray-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--rh-charcoal);
  outline: none;
  transition: var(--transition);
  background: var(--rh-white);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--rh-gold);
}

.search-results {
  padding: 3rem 0 5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.results-count {
  font-size: 0.95rem;
  color: var(--rh-gray);
}

.results-sort select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--rh-gray-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  background: var(--rh-white);
}

/* IDX Container */
.idx-container {
  min-height: 600px;
  background: var(--rh-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--rh-gray-light);
  margin: 2rem 0;
  padding: 3rem;
  text-align: center;
}

.idx-container p {
  font-size: 1.1rem;
  color: var(--rh-gray);
}

/* ============================================
   SERVICE PAGES (Buyer/Seller/Commercial/International)
   ============================================ */
.service-page {
  padding: var(--section-padding);
}

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-intro.reversed {
  direction: rtl;
}

.service-intro.reversed > * {
  direction: ltr;
}

.service-intro-image {
  height: 450px;
  overflow: hidden;
}

.service-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-feature {
  padding: 2rem;
  background: var(--rh-off-white);
  text-align: center;
  transition: var(--transition);
}

.service-feature:hover {
  background: var(--rh-navy);
}

.service-feature:hover h4,
.service-feature:hover p {
  color: var(--rh-white);
}

.service-feature:hover p {
  color: rgba(255,255,255,0.7);
}

.service-feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--rh-gold);
}

/* ============================================
   COMMUNITY/AREA PAGE
   ============================================ */
.area-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: var(--section-padding);
}

.area-content h2 {
  margin-bottom: 1.5rem;
}

.area-content p {
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.area-sidebar {
  padding: 2rem;
  background: var(--rh-off-white);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.area-sidebar h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.area-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rh-gray-light);
  font-size: 0.9rem;
}

.area-stat span:last-child {
  font-weight: 600;
  color: var(--rh-navy);
}

.area-schools,
.area-restaurants {
  padding: 4rem 0;
}

.school-card,
.restaurant-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--rh-off-white);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.school-card:hover,
.restaurant-card:hover {
  background: var(--rh-cream);
}

.school-rating,
.restaurant-rating {
  width: 50px;
  height: 50px;
  background: var(--rh-gold);
  color: var(--rh-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: var(--section-padding);
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--rh-off-white);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card-stars {
  color: var(--rh-gold);
  margin-bottom: 1rem;
}

.testimonial-card-text {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--rh-charcoal);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--rh-navy);
  color: var(--rh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-page {
  padding: var(--section-padding);
}

.blog-page .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rh-gray-light);
}

.blog-featured .blog-image {
  height: 350px;
}

.blog-featured .blog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.blog-featured h3 {
  font-size: 1.8rem;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.blog-pagination a,
.blog-pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rh-gray-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.blog-pagination a:hover,
.blog-pagination span.current {
  background: var(--rh-navy);
  color: var(--rh-white);
  border-color: var(--rh-navy);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--rh-off-white);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-info-card:hover {
  background: var(--rh-cream);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--rh-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--rh-gold);
}

.contact-form {
  padding: 2.5rem;
  background: var(--rh-off-white);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page {
  padding: var(--section-padding);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  filter: grayscale(20%);
  transition: var(--transition);
}

.team-card:hover .team-photo {
  filter: grayscale(0%);
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--rh-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .listings-grid,
  .blog-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .service-intro,
  .valuation-grid,
  .contact-grid,
  .about-story {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .communities-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .communities-grid .community-card:first-child {
    grid-row: auto;
  }

  .area-overview {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .blog-page .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: 600px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .listings-grid,
  .blog-grid,
  .blog-page .blog-grid,
  .services-grid,
  .service-features {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-column: span 1;
  }

  .communities-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search input {
    text-align: center;
  }

  .hero-search .btn {
    width: 100%;
  }

  .search-filters {
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .service-intro.reversed {
    direction: ltr;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--rh-gray-light) 25%, #f0f0f0 50%, var(--rh-gray-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ==============================================
   MOBILE OPTIMISATION
   ============================================== */

html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .btn,
  .hero-search .btn,
  button {
    min-height: 44px;
  }

  .rhg-hero {
    height: 220px;
  }

  .rhg-stats-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .rhg-stat {
    flex: 0 0 calc(50% - 0.375rem);
  }

  .rhg-fields-grid {
    grid-template-columns: 1fr;
  }

  .rhg-prequal-cta {
    padding: 16px 0 24px;
  }

  .rhg-btn-prequal,
  .rhg-contact-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .rhg-contact-box {
    flex-direction: column;
    gap: 1rem;
  }

  .rhg-detail-top {
    padding: 1rem;
  }

  .rhg-back-btn {
    margin: 0.75rem 1rem;
  }

}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .rhg-stat {
    flex: 0 0 100%;
  }

  .section-title,
  .rhg-detail-price {
    font-size: 1.4rem;
  }

  .rhg-gallery-strip img {
    height: 160px;
    width: auto;
  }

}

/* Reduce gap on Property Search page when MLS plugin is active */
.page-template-template-property-search .section {
  padding: 1.5rem 0;
}
