/*
Theme Name: CB Legacy Luxury
Theme URI: https://homes-sanangelo.com
Author: Coldwell Banker Legacy
Author URI: https://homes-sanangelo.com
Description: Premium luxury real estate theme for Coldwell Banker Legacy San Angelo. Custom-built with GSAP animations, mobile-first design, and IDX integration.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cb-legacy
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --cb-navy: #012169;
  --cb-navy-light: #1A3A6E;
  --cb-navy-dark: #0A1628;
  --cb-gold: #C5A44E;
  --cb-gold-light: #D4BA6A;
  --cb-white: #FFFFFF;
  --cb-off-white: #F8F7F4;
  --cb-gray-100: #F3F4F6;
  --cb-gray-300: #D1D5DB;
  --cb-gray-500: #6B7280;
  --cb-gray-700: #374151;
  --cb-text: #1A1A2E;
  --cb-text-muted: #6B7280;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-width: 1200px;
  --container-wide: 1440px;
  --header-height: 90px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-luxury: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-gold: 0 4px 20px rgba(197,164,78,0.3);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--cb-text);
  background: var(--cb-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cb-navy); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--cb-gold); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--cb-navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.875rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.cb-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cb-container--wide {
  max-width: var(--container-wide);
}

.cb-section {
  padding: 5rem 0;
  position: relative;
}

.cb-section--dark {
  background: var(--cb-navy-dark);
  color: var(--cb-white);
}

.cb-section--dark h2,
.cb-section--dark h3,
.cb-section--dark h4 {
  color: var(--cb-white);
}

.cb-section--offwhite {
  background: var(--cb-off-white);
}

.cb-section--navy {
  background: var(--cb-navy);
  color: var(--cb-white);
}

.cb-section--navy h2,
.cb-section--navy h3 {
  color: var(--cb-white);
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.cb-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.cb-section__subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cb-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.cb-section__title {
  margin-bottom: 1rem;
}

.cb-section__divider {
  width: 60px;
  height: 2px;
  background: var(--cb-gold);
  margin: 0 auto;
}

.cb-section__desc {
  max-width: 640px;
  margin: 1.5rem auto 0;
  color: var(--cb-text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.cb-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.cb-btn:hover::after {
  left: 100%;
}

.cb-btn--primary {
  background: var(--cb-gold);
  color: var(--cb-white);
  border-color: var(--cb-gold);
}

.cb-btn--primary:hover {
  background: transparent;
  color: var(--cb-gold);
}

.cb-btn--outline {
  background: transparent;
  color: var(--cb-white);
  border-color: var(--cb-gold);
}

.cb-btn--outline:hover {
  background: var(--cb-gold);
  color: var(--cb-white);
}

.cb-btn--navy {
  background: var(--cb-navy);
  color: var(--cb-white);
  border-color: var(--cb-navy);
}

.cb-btn--navy:hover {
  background: var(--cb-gold);
  border-color: var(--cb-gold);
  color: var(--cb-white);
}

.cb-btn--lg {
  padding: 1.125rem 2.75rem;
  font-size: 1rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.cb-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
  height: var(--header-height);
}

.cb-header--scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.cb-header--transparent {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.1);
}

.cb-header--transparent .cb-nav__link {
  color: var(--cb-white);
}

.cb-header--transparent.cb-header--scrolled {
  background: rgba(255,255,255,0.97);
}

.cb-header--transparent.cb-header--scrolled .cb-nav__link {
  color: var(--cb-text);
}

.cb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.cb-header__logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
}

.cb-header--scrolled .cb-header__logo img {
  height: 40px;
}

/* Desktop Nav */
.cb-nav { display: flex; align-items: center; gap: 0.25rem; }

.cb-nav__item { position: relative; }

.cb-nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cb-text);
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.cb-nav__link:hover { color: var(--cb-gold); }

.cb-nav__link--active { color: var(--cb-gold); }

/* Dropdown */
.cb-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-100);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: 0.75rem 0;
}

.cb-nav__item:hover .cb-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cb-nav__dropdown-link {
  display: block;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  color: var(--cb-text);
  transition: all var(--transition-fast);
}

.cb-nav__dropdown-link:hover {
  color: var(--cb-gold);
  background: var(--cb-off-white);
  padding-left: 1.75rem;
}

/* Mobile Menu Toggle */
.cb-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  z-index: 1001;
}

.cb-menu-toggle__line {
  width: 100%;
  height: 2px;
  background: var(--cb-navy);
  transition: all var(--transition-base);
  transform-origin: center;
}

.cb-menu-toggle--active .cb-menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.cb-menu-toggle--active .cb-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.cb-menu-toggle--active .cb-menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.cb-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cb-navy-dark);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.cb-mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.cb-mobile-menu__link {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--cb-white);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.cb-mobile-menu--open .cb-mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.cb-mobile-menu__link:hover {
  color: var(--cb-gold);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.cb-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cb-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cb-hero__bg video,
.cb-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1,33,105,0.6) 0%,
    rgba(10,22,40,0.75) 100%
  );
  z-index: 1;
}

.cb-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cb-white);
  max-width: 800px;
  padding: 0 2rem;
}

.cb-hero__title {
  color: var(--cb-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cb-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Hero Search Bar */
.cb-hero__search {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.25rem;
  display: flex;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.cb-hero__search-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--cb-white);
  outline: none;
  transition: all var(--transition-base);
}

.cb-hero__search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.cb-hero__search-input:focus {
  border-color: var(--cb-gold);
  background: rgba(255,255,255,0.15);
}

.cb-hero__search-select {
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--cb-white);
  cursor: pointer;
  min-width: 140px;
}

.cb-hero__search-select option {
  background: var(--cb-navy);
  color: var(--cb-white);
}

/* ==========================================================================
   PROPERTY CARDS
   ========================================================================== */
.cb-property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cb-property-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}

.cb-property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

.cb-property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-luxury);
}

.cb-property-card:hover .cb-property-card__image img {
  transform: scale(1.08);
}

.cb-property-card__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--cb-gold);
  color: var(--cb-white);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cb-property-card__price {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 2rem 1.25rem 1rem;
  color: var(--cb-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.cb-property-card__body {
  padding: 1.25rem;
}

.cb-property-card__address {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cb-text);
  margin-bottom: 0.5rem;
}

.cb-property-card__details {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--cb-text-muted);
}

.cb-property-card__detail {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ==========================================================================
   ACTION CARDS (Quick Actions)
   ========================================================================== */
.cb-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cb-action-card {
  background: var(--cb-white);
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid var(--cb-gray-100);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.cb-action-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cb-gold);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.cb-action-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cb-action-card:hover::before {
  transform: scaleX(1);
}

.cb-action-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-action-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--cb-gold);
  fill: none;
  stroke-width: 1.5;
}

.cb-action-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cb-action-card__desc {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   STATS COUNTER
   ========================================================================== */
.cb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.cb-stat {
  padding: 1.5rem;
}

.cb-stat__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--cb-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cb-stat__label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ==========================================================================
   COMMUNITY GRID
   ========================================================================== */
.cb-community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cb-community-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.cb-community-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-luxury);
}

.cb-community-card:hover .cb-community-card__image {
  transform: scale(1.1);
}

.cb-community-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(10,22,40,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--transition-base);
}

.cb-community-card:hover .cb-community-card__overlay {
  background: linear-gradient(transparent 20%, rgba(1,33,105,0.9) 100%);
}

.cb-community-card__name {
  color: var(--cb-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.cb-community-card__count {
  color: var(--cb-gold);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==========================================================================
   CTA SECTION (Property Watch)
   ========================================================================== */
.cb-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cb-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cb-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1,33,105,0.85);
}

.cb-cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cb-white);
}

.cb-cta__title {
  color: var(--cb-white);
  margin-bottom: 1rem;
}

.cb-cta__form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.cb-cta__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: var(--cb-white);
  outline: none;
}

.cb-cta__input::placeholder {
  color: rgba(255,255,255,0.5);
}

.cb-cta__input:focus {
  border-color: var(--cb-gold);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.cb-testimonials {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  min-height: 250px;
}

.cb-testimonial {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transition: opacity var(--transition-luxury);
}

.cb-testimonial--active {
  position: relative;
  opacity: 1;
}

.cb-testimonial__quote-mark {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--cb-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -2rem;
}

.cb-testimonial__text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cb-testimonial__author {
  font-weight: 600;
  font-size: 1rem;
}

.cb-testimonial__role {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
}

.cb-testimonials__progress {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.cb-testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cb-gray-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.cb-testimonials__dot--active {
  background: var(--cb-gold);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   AGENT CARDS
   ========================================================================== */
.cb-agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cb-agent-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}

.cb-agent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cb-gold);
}

.cb-agent-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.cb-agent-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: all var(--transition-luxury);
}

.cb-agent-card:hover .cb-agent-card__image img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.cb-agent-card__curtain {
  position: absolute;
  inset: 0;
  background: var(--cb-navy);
  transform-origin: left;
  z-index: 1;
  transform: scaleX(0);
}

.cb-agent-card__body {
  padding: 1.25rem;
  text-align: center;
}

.cb-agent-card__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.cb-agent-card__title {
  font-size: 0.8125rem;
  color: var(--cb-gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.cb-agent-card__contact {
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.cb-agent-card:hover .cb-agent-card__contact {
  opacity: 1;
  transform: translateY(0);
}

.cb-agent-card__contact a {
  color: var(--cb-navy);
  font-size: 0.8125rem;
}

/* ==========================================================================
   BLOG CARDS
   ========================================================================== */
.cb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cb-blog-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-gray-100);
  overflow: hidden;
  transition: all var(--transition-slow);
}

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

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

.cb-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-luxury);
}

.cb-blog-card:hover .cb-blog-card__image img {
  transform: scale(1.06);
}

.cb-blog-card__body {
  padding: 1.5rem;
}

.cb-blog-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cb-gold);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.cb-blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cb-blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--cb-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cb-blog-card__meta {
  font-size: 0.8125rem;
  color: var(--cb-gray-500);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.cb-footer {
  background: var(--cb-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 0;
}

.cb-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.1);
}

.cb-footer__brand-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 320px;
}

.cb-footer__heading {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb-white);
  margin-bottom: 1.5rem;
}

.cb-footer__links {
  list-style: none;
}

.cb-footer__links li {
  margin-bottom: 0.75rem;
}

.cb-footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.cb-footer__links a:hover {
  color: var(--cb-gold);
  padding-left: 4px;
}

.cb-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.cb-footer__contact-icon {
  color: var(--cb-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.cb-footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cb-footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-base);
}

.cb-footer__social a:hover {
  background: var(--cb-gold);
  border-color: var(--cb-gold);
  color: var(--cb-white);
}

.cb-footer__bottom {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.cb-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.cb-footer__legal a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
}

.cb-footer__legal a:hover {
  color: var(--cb-gold);
}

/* ==========================================================================
   ANIMATIONS (Base states for GSAP)
   ========================================================================== */
.cb-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.cb-reveal--left {
  opacity: 0;
  transform: translateX(-40px);
}

.cb-reveal--right {
  opacity: 0;
  transform: translateX(40px);
}

.cb-reveal--scale {
  opacity: 0;
  transform: scale(0.9);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cb-nav { display: none; }
  .cb-menu-toggle { display: flex; }
  .cb-actions-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-agent-grid { grid-template-columns: repeat(3, 1fr); }
  .cb-stats { grid-template-columns: repeat(2, 1fr); }
  .cb-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cb-section { padding: 3.5rem 0; }
  .cb-hero { height: 85vh; min-height: 500px; }
  .cb-hero__search { flex-direction: column; }
  .cb-property-grid { grid-template-columns: 1fr; }
  .cb-community-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-actions-grid { grid-template-columns: 1fr; }
  .cb-agent-grid { grid-template-columns: repeat(2, 1fr); }
  .cb-blog-grid { grid-template-columns: 1fr; }
  .cb-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cb-stat__number { font-size: 2.5rem; }
  .cb-cta__form { flex-direction: column; }
  .cb-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cb-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cb-footer__legal { justify-content: center; }
}

@media (max-width: 480px) {
  .cb-container { padding: 0 1rem; }
  .cb-community-grid { grid-template-columns: 1fr; }
  .cb-agent-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .cb-reveal, .cb-reveal--left, .cb-reveal--right, .cb-reveal--scale {
    opacity: 1;
    transform: none;
  }
}
