/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
  /* Colors - Elegant, Warm, Professional Palette */
  --color-primary: #1A1A2E;        /* Rich charcoal */
  --color-secondary: #1E3A5F;      /* Deep navy accent */
  --color-hero-dark: #0D0D1A;      /* Deepest background for hero gradient */
  --color-accent: #B8860B;         /* Muted gold/bronze */
  --color-accent-light: #C4A052;   /* Lighter gold */
  --color-accent-hover: #9A7009;   /* Darker gold for hover */
  --color-accent-alpha: rgba(184, 134, 11, 0.12); /* Gold with transparency for focus rings */

  /* Warm neutral scale */
  --color-neutral-50: #F5F5F3;     /* Warm off-white */
  --color-neutral-100: #EEEDE9;    /* Very light cream */
  --color-neutral-200: #E2E1DC;    /* Light warm gray */
  --color-neutral-300: #C5C4BC;    /* Medium warm gray */
  --color-neutral-400: #A8A79F;    /* Warm gray */
  --color-neutral-500: #8B8A82;    /* Medium gray */
  --color-neutral-600: #6E6D65;    /* Dark warm gray */
  --color-neutral-700: #524F45;    /* Darker warm gray */
  --color-neutral-800: #3A3830;    /* Near charcoal */
  --color-neutral-900: #2D2B24;    /* Deep charcoal */
  --color-white: #ffffff;          /* Pure white */
  --color-stone: #FAFAF8;          /* Body background - warm off-white */

  /* Semantic Colors */
  --color-success: #2D6A4F;
  --color-warning: #D4A017;
  --color-error: #C0392B;
  --color-info: #1E3A5F;

  /* Typography */
  --font-primary: 'Poppins', 'Inter', sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Line Heights */
  --line-height-base: 1.7;
  --line-height-heading: 1.25;

  /* Font Sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */
  --text-6xl: 3.75rem;  /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 9999px;

  /* Shadows - subtle for light theme */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.08);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.10);
  --shadow-lg: 0 10px 30px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 20px 40px rgba(26, 26, 46, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1010;
  --z-modal-overlay: 1040;
  --z-modal: 1050;
  --z-tooltip: 1060;
  --z-toast: 1070;
}

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

html {
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-color: var(--color-stone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

/* Remove default image styles */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-700);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-lg {
  max-width: 1400px;
}

.container-sm {
  max-width: 800px;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ===== HEADER STYLES ===== */
.header {
  position: fixed;
  top: 42px; /* Account for top-bar height */
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-200);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
}

.logo h1 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin: 0;
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  color: var(--color-neutral-700);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: var(--space-1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 20px;
  justify-content: space-between;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--color-white);
  z-index: var(--z-modal);
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.open {
  right: 0;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-neutral-200);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-100);
  color: var(--color-neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}

.mobile-menu-links {
  flex: 1;
  padding: var(--space-4);
}

.mobile-menu-links li {
  margin-bottom: var(--space-2);
}

.mobile-menu-links a {
  display: block;
  padding: var(--space-4);
  color: var(--color-neutral-700);
  font-weight: var(--font-medium);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-links a:hover {
  background: var(--color-neutral-50);
  color: var(--color-accent);
}

/* ===== PAGE TRANSITION PROGRESS BAR ===== */
.page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  z-index: 99999;
  transition: width 0.3s ease-out;
}

.page-progress-bar.animating {
  animation: progress-bar 0.6s ease-out forwards;
}

@keyframes progress-bar {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-top: 122px; /* Header height (80px) + Top bar height (42px) */
  min-height: calc(100vh - 122px);
}

/* Page Transition */
.page {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

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

/* Scroll-triggered fade-in animations */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate {
  opacity: 1;
  transform: translateY(0);
}

/* Hero section - button adjustments for dark background */
.hero .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Hero gold accent decoration */
.hero-text h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-4);
}

/* Feature card hover enhancement */
.feature-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-family: var(--font-heading);
}

/* Service card improvements */
.service-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
  transition: box-shadow var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.service-card li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-neutral-100);
  color: var(--color-neutral-700);
}

/* Testimonial card improvements */
.testimonial-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-neutral-200);
}

.testimonial-content p {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-neutral-800);
  line-height: 1.7;
}

.testimonial-author strong {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.testimonial-author span {
  color: var(--color-accent);
  font-size: var(--text-sm);
}
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h3 {
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  font-family: var(--font-heading);
}

.footer-section h4 {
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  font-weight: var(--font-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.footer-section p {
  color: var(--color-neutral-400);
  margin-bottom: var(--space-6);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  color: var(--color-neutral-400);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--color-accent-light);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-accent);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: var(--font-medium);
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--color-accent-hover);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal p {
  color: var(--color-neutral-400);
  margin: 0;
}

.footer-legal ul {
  display: flex;
  gap: var(--space-6);
}

.footer-legal ul li a {
  color: var(--color-neutral-400);
  transition: color var(--transition-fast);
}

.footer-legal ul li a:hover {
  color: var(--color-accent-light);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 248, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-neutral-200);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== PAGE LAYOUTS ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.page-hero h1 {
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.page-hero p {
  font-size: var(--text-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 60%, var(--color-hero-dark) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 2;
  padding: var(--space-20) 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text h1 {
  font-size: var(--text-5xl);
  font-family: var(--font-heading);
  margin-bottom: var(--space-6);
  line-height: 1.15;
  color: var(--color-white);
}

.hero-text p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  opacity: 0.85;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
}

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

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

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

/* Features Section */
.features-section {
  padding: var(--space-20) 0;
  background: var(--color-neutral-50);
}

.features-section h2 {
  text-align: center;
  margin-bottom: var(--space-16);
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-2xl);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  color: var(--color-primary);
}

/* Featured Sections */
.featured-properties,
.featured-products {
  padding: var(--space-20) 0;
}

.featured-products {
  background: var(--color-neutral-50);
}

/* Services Overview */
.services-overview {
  padding: var(--space-20) 0;
  background: var(--color-neutral-50);
}

.services-overview h2 {
  text-align: center;
  margin-bottom: var(--space-16);
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
}

.service-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-6);
}

.service-card li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-neutral-200);
}

.service-card li:last-child {
  border-bottom: none;
}

/* Testimonials */
.testimonials {
  padding: var(--space-20) 0;
  background: var(--color-white);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: var(--space-16);
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial-content {
  margin-bottom: var(--space-6);
}

.testimonial-content p {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-neutral-700);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  color: var(--color-primary);
}

.testimonial-author span {
  color: var(--color-neutral-600);
  font-size: var(--text-sm);
}

/* CTA Section */
.cta-section {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-content h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  color: var(--color-white);
}

.cta-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA section - buttons on dark background */
.cta-section .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.cta-section .btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Team Grid */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-12);
  justify-content: center;
  padding: var(--space-8) 0;
}

.team-grid .team-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 1000px;
}

/* Horizontal Team Card Layout */
.team-card.team-card-horizontal {
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden;
  min-height: 500px;
  align-items: stretch;
}

.team-card.team-card-horizontal .team-card-image {
  flex: 0 0 40% !important;
  width: 40% !important;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  display: block !important;
}

.team-card.team-card-horizontal .team-card-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 500px;
  object-fit: cover !important;
  object-position: center;
}

.team-card.team-card-horizontal .team-card-content {
  flex: 1 !important;
  width: 60% !important;
  display: flex;
  flex-direction: column;
  padding: var(--space-10);
  background: var(--color-white);
}

.team-card-header {
  margin-bottom: var(--space-6);
}

.team-card-name {
  font-size: var(--text-4xl);
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.team-title {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.team-experience {
  color: var(--color-text-light);
  font-size: var(--text-base);
}

.team-card-bio {
  flex: 1;
  margin-bottom: var(--space-6);
}

.team-card-bio p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  gap: var(--space-4);
}

.team-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
}

.contact-info-item i {
  color: var(--color-primary);
  width: 20px;
}

.contact-info-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-item i {
  color: var(--color-accent);
  font-size: var(--text-xl);
  margin-top: var(--space-1);
  width: 24px;
  text-align: center;
}

.contact-item h4 {
  margin-bottom: var(--space-1);
  color: var(--color-white);
}

.contact-item p {
  color: var(--color-neutral-300);
  margin: 0;
}

/* About Content */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-12);
  align-items: start;
}

.about-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.about-text h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-4);
  color: var(--color-primary);
}

.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-neutral-200);
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Filters Section */
.filters-section {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-sm);
}

.filters-section h2 {
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
  color: var(--color-neutral-700);
}

.filter-group select {
  padding: var(--space-3);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  background: var(--color-white);
}

/* Search Bar */
.search-bar {
  margin-bottom: var(--space-12);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Properties and Products Grids */
.properties-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-neutral-700);
  transition: all var(--transition-fast);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 9998;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--color-white);
  transition: transform var(--transition-base);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-neutral-200);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  cursor: pointer;
  color: var(--color-neutral-600);
}

.mobile-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-links li {
  border-bottom: 1px solid var(--color-neutral-200);
}

.mobile-menu-links a {
  display: block;
  padding: var(--space-4) var(--space-6);
  color: var(--color-neutral-700);
  text-decoration: none;
  transition: background-color var(--transition-base);
}

.mobile-menu-links a:hover {
  background: var(--color-neutral-50);
}

.body.mobile-menu-open .mobile-menu-overlay,
body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
}

.body.mobile-menu-open .mobile-menu,
body.mobile-menu-open .mobile-menu {
  transform: translateX(-300px);
}

/* Pagination Container */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-container {
    padding: var(--space-4);
  }
  
  .logo h1 {
    font-size: var(--text-xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: var(--text-3xl);
  }
  
  .hero-image {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .filters-container {
    grid-template-columns: 1fr;
  }
}

/* ===== ADDITIONAL MOBILE STYLES ===== */

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .card-action-btn,
  .action-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link,
  .dropdown-item,
  .filter-chip {
    padding: var(--space-3) var(--space-4);
  }
  
  /* Remove hover effects on touch devices */
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: var(--space-8) 0;
  }
  
  .modal-content {
    max-height: 90vh;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi),
       (min-resolution: 2dppx) {
  /* Ensure crisp images and icons */
  .logo,
  .action-btn i,
  .card-action-btn i {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Dark mode support (system preference) - intentionally minimal; site uses warm light theme */
@media (prefers-color-scheme: dark) {
  /* We keep the light theme intentionally for brand consistency */
}

/* Focus and accessibility improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 9999;
}

.skip-link:focus {
  top: 6px;
}

/* Screen reader only text */
.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;
}

/* Loading states improvements */
.loading-skeleton {
  position: relative;
  overflow: hidden;
}

.loading-skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced error states */
.error-boundary {
  padding: var(--space-8);
  text-align: center;
  background: var(--color-neutral-50);
  border-radius: var(--radius-lg);
}

.error-icon {
  font-size: var(--text-5xl);
  color: var(--color-error);
  margin-bottom: var(--space-4);
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}

/* Print optimizations */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  .page-break {
    page-break-before: always;
  }
  
  img {
    max-width: 100% !important;
  }
}