/* ============================================
   FAIRHAVEN PROPERTY SOLUTIONS
   Premium Boutique Property Management Website
   Design System & Styles - ULTRA SMOOTH EDITION
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
  /* Background Colors */
  --bg-primary: #F5F3EE;
  --bg-secondary: #E9E5DD;
  --bg-dark: #1A1A1A;
  
  /* Accent Colors - Olive, Gold, Black */
  --accent-gold: #C89F5E;
  --accent-gold-hover: #B8924F;
  --accent-olive: #6B7B4C;
  --accent-olive-light: #8B9B6C;
  --accent-black: #1A1A1A;
  
  /* Text Colors */
  --text-primary: #2B2B2B;
  --text-secondary: #6E6A62;
  --text-light: #F5F3EE;
  --text-muted: #9A958A;
  
  /* UI Colors */
  --border-light: rgba(43, 43, 43, 0.12);
  --border-medium: rgba(43, 43, 43, 0.2);
  --shadow-soft: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  
  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;
  
  /* Spacing */
  --section-padding: 8vh;
  --content-max-width: 1400px;
  
  /* Transitions - ULTRA FAST */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-pill: 999px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.0;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.2;
}

h4 {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.3;
}

p {
  font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Label/Micro Text */
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.label-light {
  color: var(--text-light);
  opacity: 0.9;
}

/* ============================================
   HEADER WRAPPER - Combined Top Bar + Nav
   ============================================ */

.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.header-wrapper.scrolled {
  background: rgba(245, 243, 238, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   TOP BAR - Portal Buttons Right Aligned
   ============================================ */

.top-bar {
  background: var(--accent-black);
  padding: 0.5rem 0;
  transition: all var(--transition-fast);
}

.top-bar-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.portal-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.75);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.portal-link:hover {
  color: var(--text-light);
  background: rgba(245, 243, 238, 0.1);
}

.portal-link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.portal-link:hover svg {
  transform: translateX(2px);
}

.portal-link.cta {
  background: var(--accent-gold);
  color: var(--text-primary);
}

.portal-link.cta:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* ============================================
   MAIN NAVIGATION - Centered Layout
   ============================================ */

.main-nav {
  padding: 1rem 0;
  transition: all var(--transition-fast);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.02);
}

/* Nav Links - Centered */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  flex: 1;
  margin: 0 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  transform: translateY(12px);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  min-width: 620px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border: 1px solid var(--border-light);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.dropdown-column h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dropdown-column ul {
  list-style: none;
}

.dropdown-column li {
  margin-bottom: 0.625rem;
}

.dropdown-column a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  padding: 0.25rem 0;
  transition: all var(--transition-fast);
  position: relative;
}

.dropdown-column a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.dropdown-column a:hover {
  color: var(--text-primary);
  padding-left: 0.75rem;
}

.dropdown-column a:hover::before {
  transform: translateY(-50%) scale(1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform var(--transition-fast);
}

.mobile-menu-close:hover {
  transform: rotate(90deg);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all var(--transition-medium);
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.3s; }

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  display: block;
  transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
  color: var(--accent-gold);
}

.mobile-dropdown {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-gold);
}

.mobile-dropdown h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0.75rem;
}

.mobile-dropdown a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.mobile-dropdown .mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-dropdown .mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 0.75rem;
  margin-top: 0.5rem;
  border-left: 2px solid var(--accent-gold);
}

.mobile-dropdown .mobile-sub.open {
  display: flex;
}

.mobile-dropdown .mobile-sub a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.mobile-portals {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-portal-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  text-align: center;
  transition: all var(--transition-fast);
}

.mobile-portal-link:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.mobile-portal-link.cta {
  background: var(--accent-gold);
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.mobile-portal-link.cta:hover {
  background: var(--accent-gold-hover);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 159, 94, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--text-light);
  color: var(--text-primary);
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn-text {
  background: none;
  padding: 0.5rem 0;
  color: var(--text-primary);
  position: relative;
  font-size: 0.8125rem;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.btn-text:hover::after {
  transform: scaleX(1);
}

.btn-text:hover {
  padding-left: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
}

.hero-split {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 7rem);
}

.hero-image {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image:hover img {
  transform: scale(1.02);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(0,0,0,0));
}

.hero-content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4vw;
  background: var(--bg-primary);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-olive);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-title {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.7s ease forwards 0.3s;
}

.hero-title span {
  display: block;
}

.hero-cycler {
  display: block;
  color: var(--accent-gold);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-cycler.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-cycler.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.mosaic-cycler {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mosaic-cycler.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.5s;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.7s;
}

.hero-location {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ============================================
   SECTIONS - GENERAL
   ============================================ */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-light {
  background: var(--bg-primary);
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-olive);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* ============================================
   TRUST STATS SECTION
   ============================================ */

.trust-stats {
  padding: 4rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.services-content {
  padding-right: 2rem;
}

.services-title {
  margin-bottom: 1.5rem;
}

.services-title span {
  display: block;
}

.services-description {
  margin-bottom: 2rem;
  max-width: 90%;
}

.services-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  aspect-ratio: 1;
}

.mosaic-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mosaic-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.mosaic-tile:hover img {
  transform: scale(1.08);
}

.mosaic-tile.gold {
  background: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mosaic-tile.gold:hover {
  background: var(--accent-gold-hover);
}

.mosaic-label {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* ============================================
   FOCUS SECTION
   ============================================ */

.focus-section {
  min-height: 80vh;
  display: flex;
}

.focus-split {
  display: flex;
  width: 100%;
}

.focus-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.focus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.focus-image:hover img {
  transform: scale(1.03);
}

.focus-content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw;
  background: var(--bg-primary);
}

.focus-title {
  margin-bottom: 1.5rem;
}

.focus-title span {
  display: block;
}

.focus-description {
  margin-bottom: 2rem;
  max-width: 90%;
}

/* ============================================
   FEATURE SECTIONS (Multifamily, HOA, Brokerage)
   ============================================ */

.feature-section {
  min-height: 90vh;
  display: flex;
}

.feature-split {
  display: flex;
  width: 100%;
}

.feature-split.reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.feature-image:hover img {
  transform: scale(1.03);
}

.feature-content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 4vw;
  background: var(--bg-primary);
}

.feature-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-olive);
  margin-bottom: 1rem;
}

.feature-title {
  margin-bottom: 1.5rem;
}

.feature-title span {
  display: block;
}

.feature-description {
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.feature-list li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  margin-top: 0.5rem;
  transition: all var(--transition-fast);
}

.feature-list li:hover::before {
  transform: scale(1.3);
  background: var(--accent-olive);
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */

.testimonial-section {
  min-height: 80vh;
  display: flex;
}

.testimonial-split {
  display: flex;
  width: 100%;
}

.testimonial-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.testimonial-image:hover img {
  transform: scale(1.03);
}

.testimonial-content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw;
  background: var(--bg-primary);
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.testimonial-attribution {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 6rem 0;
  background: var(--bg-dark);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-title {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.cta-description {
  color: rgba(245, 243, 238, 0.7);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.contact-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info > p {
  margin-bottom: 2.5rem;
}

.contact-details {
  margin-bottom: 2.5rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.contact-detail:hover {
  transform: translateX(4px);
}

.contact-detail h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

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

.contact-detail a {
  color: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
}

.contact-detail a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

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

.contact-detail a:hover::after {
  transform: scaleX(1);
}

/* Contact Form */
.contact-form {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px var(--shadow-soft);
  transition: all var(--transition-fast);
}

.contact-form:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(200, 159, 94, 0.1);
}

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

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

/* Form Message */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease;
}

.form-message--success {
  background: rgba(107, 123, 76, 0.1);
  color: var(--accent-olive);
  border: 1px solid rgba(107, 123, 76, 0.2);
}

.form-message--error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* ============================================
   CALENDLY SECTION - TRUE INLINE
   ============================================ */

.calendly-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.calendly-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calendly-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* True inline Calendly styling */
.calendly-inline-widget {
  min-width: 320px;
  height: 750px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-soft);
}

.calendly-inline-widget iframe {
  border: none !important;
  background: var(--bg-primary) !important;
}

/* Custom Calendly color overrides via CSS injection */
.calendly-wrapper {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================
   LISTINGS SECTION
   ============================================ */

.listings-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.listings-header {
  text-align: center;
  margin-bottom: 3rem;
}

.listings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-gold);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: content var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-medium);
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 1rem;
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  transition: transform var(--transition-fast);
}

.footer-logo:hover {
  transform: scale(1.02);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-column h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  max-width: var(--content-max-width);
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 5rem;
  background: var(--bg-primary);
}

.about-hero-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.about-hero h1 {
  margin-bottom: 1.5rem;
}

.about-hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.values-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.values-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  transition: all var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-8px);
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.value-card:hover .value-icon {
  transform: scale(1.1);
  background: var(--accent-olive);
}

.value-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.value-card h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .hero-split,
  .focus-split,
  .feature-split,
  .testimonial-split {
    flex-direction: column;
  }
  
  .hero-image,
  .hero-content,
  .focus-image,
  .focus-content,
  .feature-image,
  .feature-content,
  .testimonial-image,
  .testimonial-content {
    flex: none;
    width: 100%;
  }
  
  .hero-image,
  .focus-image,
  .feature-image,
  .testimonial-image {
    height: 45vh;
    min-height: 280px;
  }
  
  .services-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
  
  .dropdown-menu {
    min-width: 500px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  
  .hero {
    padding-top: 5rem;
    min-height: auto;
  }

  .hero-split {
    min-height: auto;
  }
  
  .hero-content,
  .focus-content,
  .feature-content,
  .testimonial-content {
    padding: 3rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .services-mosaic {
    gap: 0.75rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-menu {
    min-width: auto;
    width: 90vw;
    grid-template-columns: 1fr;
    left: 5vw;
    transform: translateY(12px);
  }
  
  .dropdown:hover .dropdown-menu {
    transform: translateY(8px);
  }
  
  .calendly-inline-widget {
    height: 600px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

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

.text-olive {
  color: var(--accent-olive);
}

.bg-gold {
  background: var(--accent-gold);
}

.bg-olive {
  background: var(--accent-olive);
}

.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; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--accent-gold);
  color: var(--text-primary);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ============================================
   MOBILE — COMPREHENSIVE FIXES
   ============================================ */

/* Tablet: reset min-heights so stacked sections don't balloon */
@media (max-width: 1024px) {
  .feature-section,
  .testimonial-section,
  .focus-section {
    min-height: auto;
  }

  /* Always show image first (top) for reversed splits on mobile */
  .feature-split.reverse {
    flex-direction: column;
  }

  /* Reduce section header bottom margin */
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Services content — remove right padding when stacked */
  .services-content {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  /* Tighter nav padding */
  .nav-inner {
    padding: 0 1.25rem;
  }

  /* About hero — reduce excessive top padding */
  .about-hero {
    padding: 7rem 0 3rem;
    min-height: auto;
  }

  /* Reduce image panel height on mobile — was 45vh, make less aggressive */
  .hero-image,
  .focus-image,
  .feature-image,
  .testimonial-image {
    height: 52vw;
    min-height: 200px;
    max-height: 340px;
  }

  /* Tighter content padding */
  .hero-content,
  .focus-content,
  .feature-content,
  .testimonial-content {
    padding: 2.5rem 1.25rem;
  }

  /* All grid container padding */
  .stats-grid,
  .services-grid,
  .contact-grid,
  .faq-grid,
  .footer-grid,
  .values-grid,
  .cta-content,
  .calendly-container,
  .listings-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Contact form */
  .contact-form {
    padding: 1.75rem 1.25rem;
  }

  /* Reduce CTA, trust-stats, and footer section padding */
  .cta-section {
    padding: 4rem 0;
  }
  .trust-stats {
    padding: 2.5rem 0;
  }
  .footer {
    padding: 3rem 0 2rem;
  }

  /* Testimonial quote — smaller on mobile */
  .testimonial-quote {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
  }

  /* FAB button — move in from edge */
  .git-fab {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* Very small phones — reduce all padding further */
  .nav-inner {
    padding: 0 1rem;
  }

  .logo img {
    height: 34px;
  }

  .hero-content,
  .focus-content,
  .feature-content,
  .testimonial-content {
    padding: 2rem 1rem;
  }

  .stats-grid,
  .services-grid,
  .contact-grid,
  .faq-grid,
  .footer-grid,
  .values-grid,
  .cta-content,
  .calendly-container,
  .listings-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header {
    margin-bottom: 1.75rem;
    padding: 0 1rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  /* Image panels even more compact on small phones */
  .hero-image,
  .focus-image,
  .feature-image,
  .testimonial-image {
    height: 50vw;
    min-height: 180px;
    max-height: 260px;
  }

  /* About hero */
  .about-hero {
    padding: 6rem 0 2.5rem;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.9375rem;
  }

  /* Feature list */
  .feature-list li {
    font-size: 0.875rem;
  }

  /* Footer bottom */
  .footer-bottom {
    padding: 1.5rem 1rem 0;
  }

  /* CTA section */
  .cta-section {
    padding: 3rem 0;
  }

  /* FAB button */
  .git-fab-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   FLOATING GET IN TOUCH BUTTON
   ============================================ */

.git-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.git-fab-btn {
  background: #4A5240;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.git-fab-btn:hover {
  background: #5a6450;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.git-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.git-modal-overlay.active {
  display: flex;
}

.git-modal {
  background: var(--bg-primary);
  border-radius: 12px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.git-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
}

.git-modal-close:hover {
  color: var(--text-primary);
}