/* ===================================
   GOLDFARB RE - GLOBAL STYLES
   Refined Luxury Real Estate Design
   Inspired by high-end residential advisory aesthetics
   =================================== */

/* CSS Variables - Brand Colors */
:root {
  /* Primary Palette - Warm & Sophisticated */
  --deep-charcoal: #1C1C1C;
  --warm-bronze: #B5936C;
  --terra-cotta: #C17B5A;

  /* Neutral Backgrounds - Warm Tones */
  --cream: #F9F8F4;
  --ecru: #FBFBF9;
  --white: #FFFFFF;

  /* Text Colors - Softer than Black */
  --charcoal-gray: #403E3F;
  --warm-gray: #7D807A;

  /* Support Colors */
  --deep-teal: #133E45;

  /* Legacy Compatibility (will be phased out) */
  --primary-navy: var(--deep-charcoal);
  --accent-bronze: var(--warm-bronze);
  --neutral-light: var(--cream);
  --secondary-gray: var(--warm-gray);
  --support-blue: var(--deep-teal);
  --charcoal: var(--charcoal-gray);

  /* Spacing System - Luxury Real Estate Standard */
  --spacing-xxs: 0.5rem;
  /* 8px */
  --spacing-xs: 1rem;
  /* 16px */
  --spacing-sm: 1.5rem;
  /* 24px */
  --spacing-md: 2rem;
  /* 32px */
  --spacing-lg: 3rem;
  /* 48px */
  --spacing-xl: 4rem;
  /* 64px */
  --spacing-2xl: 6rem;
  /* 96px */
  --spacing-3xl: 8rem;
  /* 128px */

  /* Shadows - Subtle & Elegant */
  --shadow-subtle: 0 2px 8px rgba(28, 28, 28, 0.06);
  --shadow-medium: 0 4px 16px rgba(28, 28, 28, 0.08);
  --shadow-strong: 0 8px 32px rgba(28, 28, 28, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal-gray);
  background-color: var(--cream);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Elegant Serif + Clean Sans */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
  color: var(--deep-charcoal);
}

h1 {
  font-size: 4.375rem;
  /* 70px */
  font-weight: 400;
}

h2 {
  font-size: 3rem;
  /* 48px */
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  /* 32px */
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 500;
}

h5 {
  font-size: 1.25rem;
  /* 20px */
  font-weight: 500;
}

h6 {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 500;
}

/* Body text optimized for luxury readability */
p {
  margin-bottom: var(--spacing-md);
  line-height: 1.75;
  color: var(--charcoal-gray);
  font-size: 1.0625rem;
  /* 17px - easier reading */
}

/* Links - Warm and inviting */
a {
  color: var(--warm-bronze);
  text-decoration: none;
  transition: all var(--transition-base);
}

a:hover {
  color: var(--terra-cotta);
}

/* Layout Components - Grid Discipline */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-2xl) 0;
}

/* Divider Lines - Architectural precision */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-bronze), transparent);
  margin: var(--spacing-xl) 0;
}

/* Header & Navigation - Refined Elegance */
header {
  background-color: rgba(249, 248, 244, 0.98);
  color: var(--deep-charcoal);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-subtle);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo img {
  display: block;
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-links a {
  color: var(--charcoal-gray);
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--warm-bronze);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--warm-bronze);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section - Bold, Warm, Sophisticated */
.hero {
  background-color: var(--deep-charcoal);
  color: var(--ecru);
  padding: var(--spacing-xl) 0;
  /* Reduced from 3xl to xl */
  text-align: left;
  position: relative;
}

/* Filter Styles */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--warm-gray);
  color: var(--charcoal-gray);
  padding: 0.5rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.filter-btn:hover {
  border-color: var(--accent-bronze);
  color: var(--accent-bronze);
}

.filter-btn.active {
  background-color: var(--accent-bronze);
  border-color: var(--accent-bronze);
  color: var(--white);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--warm-bronze), transparent);
  opacity: 0.4;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ecru);
  margin-bottom: var(--spacing-lg);
  font-size: 4.375rem;
  /* 70px */
  line-height: 1.15;
  max-width: 920px;
  font-weight: 400;
}

.hero p {
  font-size: 1.375rem;
  /* 22px */
  color: var(--cream);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  line-height: 1.65;
  font-weight: 400;
}

/* Buttons - Refined Luxury CTAs */
.btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 600;
  text-align: center;
  border-radius: 0;
  transition: all var(--transition-base);
  cursor: pointer;
  border: 1px solid;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.btn-primary {
  background-color: var(--warm-bronze);
  color: var(--white);
  border-color: var(--warm-bronze);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--warm-bronze);
  border-color: var(--warm-bronze);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ecru);
  border-color: var(--ecru);
}

.btn-secondary:hover {
  background-color: var(--ecru);
  color: var(--deep-charcoal);
  border-color: var(--ecru);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--warm-bronze);
  border-color: var(--warm-bronze);
}

.btn-tertiary:hover {
  background-color: var(--warm-bronze);
  color: var(--white);
  border-color: var(--warm-bronze);
}

/* Cards - Elegant, Sophisticated, Minimal */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.card {
  background-color: var(--white);
  padding: var(--spacing-xl);
  border: 1px solid rgba(28, 28, 28, 0.06);
  transition: all var(--transition-base);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--warm-bronze);
  transition: width var(--transition-slow);
}

.card:hover {
  border-color: rgba(181, 147, 108, 0.2);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card:hover::before {
  width: 100%;
}

.card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--deep-charcoal);
  margin-bottom: var(--spacing-md);
  font-size: 1.75rem;
  font-weight: 600;
}

.card h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--deep-charcoal);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 500;
}

.card p {
  color: var(--warm-gray);
  line-height: 1.75;
  font-size: 1rem;
}

/* Article Content Specific Styles */
article h2,
.article-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--deep-charcoal);
}

article h3,
.article-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--deep-charcoal);
}

article ul,
article ol,
.article-content ul,
.article-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: 1rem;
}

article li,
.article-content li {
  margin-bottom: 0.5rem;
}

/* Remove emoji icons - use minimal visual language */
.card-icon {
  display: none;
}

/* Stats & Metrics Display */
.stat-block {
  text-align: center;
  padding: var(--spacing-lg);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-bronze);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-gray);
  font-weight: 500;
}

/* Footer - Confident, Structured */
footer {
  background-color: var(--primary-navy);
  color: var(--neutral-light);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(248, 249, 250, 0.15);
}

.footer-section h4 {
  color: var(--accent-bronze);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-section p {
  color: var(--neutral-light);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--neutral-light);
  display: block;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--accent-bronze);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  color: var(--secondary-gray);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Forms - Clean, Minimal, Functional */
.form-group {
  margin-bottom: var(--spacing-lg);
}

label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(28, 37, 51, 0.15);
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: var(--white);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-bronze);
  box-shadow: 0 0 0 3px rgba(181, 139, 67, 0.1);
}

textarea {
  resize: vertical;
  min-height: 180px;
}

/* Section Headings - Evidence-backed structure */
.section-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bronze);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-navy);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--warm-gray);
  max-width: 800px;
  line-height: 1.6;
}

/* Badge/Tag Styling */
.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid;
  margin-bottom: var(--spacing-md);
}

.badge-bronze {
  background-color: var(--accent-bronze);
  color: var(--white);
  border-color: var(--accent-bronze);
}

.badge-blue {
  background-color: var(--support-blue);
  color: var(--white);
  border-color: var(--support-blue);
}

.badge-navy {
  background-color: var(--primary-navy);
  color: var(--white);
  border-color: var(--primary-navy);
}

/* List Styling - Clean and structured */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-bronze);
  font-weight: 700;
}

/* About Page - Profile Sidebar */
.about-profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.profile-photo-card {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg,
      rgba(249, 248, 244, 0.85) 0%,
      rgba(181, 147, 108, 0.08) 100%);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(28, 28, 28, 0.05);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.profile-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.05) brightness(1.02);
}

.profile-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.profile-photo-caption {
  font-size: 0.9375rem;
  text-align: center;
  color: var(--warm-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-contact-card {
  margin-top: var(--spacing-sm);
  padding: 1.75rem;
  background-color: var(--neutral-light);
  border-left: 4px solid var(--accent-bronze);
  border-radius: 6px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-contact-card h4 {
  margin-bottom: 0.5rem;
}

.about-contact-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--charcoal-gray);
}

.about-contact-card a {
  word-break: break-word;
}

@media (max-width: 768px) {
  .about-profile-sidebar {
    margin-bottom: var(--spacing-lg);
  }
}

/* Responsive Design - Mobile First */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-2xl: 4rem;
    --spacing-xl: 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 5rem 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .nav-links {
    gap: var(--spacing-md);
    font-size: 0.875rem;
  }

  .logo img {
    height: 56px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-2xl: 3rem;
    --spacing-xl: 2rem;
    --spacing-lg: 1.5rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    display: block;
    padding: 0.875rem 1.5rem;
  }

  .nav-links {
    gap: var(--spacing-sm);
  }

  .logo img {
    height: 48px;
  }
}