/* The Title Guy Ghost Theme CSS */
/* Tesla/Apple Design Inspired Professional Theme */

/* ================================
   CSS Variables & Color Scheme
   ================================ */
/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: bold;
  transition: top 0.3s;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 6px;
  opacity: 1;
  pointer-events: auto;
}

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

:root {
  /* Primary Colors */
  --primary-color: #3abdb8;
  --primary-hover: #32a6a1;
  --secondary-color: #000000;
  --accent-color: #dc2626;
  
  /* Neutral Colors */
  --white: #ffffff;
  --black: #000000;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Text Colors */
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-muted: #737373;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-dark: #000000;
  
  /* Fonts */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

/* ================================
   Base Styles
   ================================ */
* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-hover);
}

/* ================================
   Container & Layout
   ================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--gray-800);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-nav {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.btn-mobile {
  width: 100%;
}

.btn-full {
  width: 100%;
  padding: 1rem 2rem;
}

.btn-icon {
  margin-right: 0.5rem;
  width: 1.25rem;
  height: 1.25rem;
}

/* ================================
   Navigation
   ================================ */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

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

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo .site-logo {
  height: 2rem;
}

.nav-logo .site-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

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

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.current {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

.mobile-link.current {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-base);
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.mobile-link {
  padding: var(--spacing-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.mobile-btn-wrapper {
  padding: var(--spacing-sm);
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.trust-icon {
  color: var(--accent-color);
  width: 1.25rem;
  height: 1.25rem;
}

.trust-item span {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.hero-media {
  position: relative;
  animation: slideInLeft 0.8s ease-out;
}

.video-container {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
}

.stats-card {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-premium);
}

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

.stats-number {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-color);
  line-height: 1;
}

.stats-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ================================
   Sections
   ================================ */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto var(--spacing-3xl) auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Value Proposition */
.value-proposition {
  padding: var(--spacing-3xl) 0;
  background-color: var(--white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.value-card {
  text-align: center;
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: var(--transition-slow);
  background-color: var(--white);
}

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

.value-icon {
  width: 5rem;
  height: 5rem;
  background-color: var(--accent-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 2rem;
  transition: var(--transition-base);
}

.value-card:hover .value-icon {
  transform: scale(1.1);
}

/* Services Overview */
.services-overview {
  padding: var(--spacing-3xl) 0;
  background-color: var(--black);
  color: var(--white);
}

.services-overview .section-header {
  color: var(--white);
}

.services-overview .section-header h2,
.services-overview .section-header p {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  background-color: var(--gray-800);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  border: 1px solid var(--gray-600);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  background-color: var(--gray-700);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.service-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--gray-100);
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.service-link {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  transition: var(--transition-base);
}

.service-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

.arrow-icon {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
  transition: var(--transition-base);
}

/* About Section */
.about-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about-intro {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.credentials {
  margin: var(--spacing-lg) 0;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.credential-icon {
  font-size: 1.5rem;
  width: 2rem;
  flex-shrink: 0;
}

.credential-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.credential-text p {
  margin: 0;
  font-size: 0.875rem;
}

.testimonial-highlight {
  background-color: rgba(var(--accent-color), 0.05);
  border-left: 4px solid var(--accent-color);
  padding: var(--spacing-md);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin-top: var(--spacing-lg);
}

.testimonial-highlight blockquote {
  margin: 0 0 var(--spacing-sm) 0;
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-highlight cite {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.about-image {
  display: flex;
  justify-content: center;
}

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

.image-placeholder {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-premium);
  max-width: 300px;
}

.brian-photo {
  font-size: 6rem;
  margin-bottom: var(--spacing-sm);
}

/* Testimonials */
.testimonials {
  padding: var(--spacing-3xl) 0;
  background-color: var(--white);
}

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

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

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

.stars {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.testimonial-card blockquote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 var(--spacing-sm) 0;
  font-style: italic;
}

.testimonial-card cite {
  display: block;
}

.testimonial-card cite strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

.testimonial-card cite span {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-3xl) 0;
  background-color: var(--black);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.cta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  color: var(--white);
  font-weight: var(--font-weight-semibold);
  margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.contact-form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-slow);
}

.contact-form-wrapper:hover {
  transform: translateY(-4px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.form-group label {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 189, 184, 0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-card,
.hours-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.contact-card h3,
.hours-card h4 {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--accent-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--white);
  width: 1.25rem;
  height: 1.25rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.contact-value {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.hours-item span:last-child {
  font-weight: var(--font-weight-medium);
}

.emergency-notice {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: var(--radius-lg);
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

/* Footer */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
  margin-bottom: var(--spacing-xl);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  color: var(--gray-300);
  max-width: 400px;
  margin-bottom: var(--spacing-lg);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.social-link svg {
  color: var(--white);
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-400);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: var(--transition-base);
}

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

/* ================================
   Post & Page Styles
   ================================ */
.post-content,
.page-content {
  padding: var(--spacing-3xl) 0;
}

.post-header,
.page-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-tag {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.post-title,
.page-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.post-excerpt,
.page-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

.post-image,
.page-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.post-image img,
.page-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content-body,
.page-content-body {
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.8;
}

.post-content-body h2,
.post-content-body h3,
.post-content-body h4 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.post-content-body p {
  margin-bottom: var(--spacing-md);
}

.post-tags {
  margin: var(--spacing-xl) 0;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--gray-200);
}

.tags-label {
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  margin-right: var(--spacing-sm);
}

.tag-link {
  background-color: var(--gray-100);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-right: var(--spacing-xs);
  transition: var(--transition-base);
}

.tag-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.post-author {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--gray-200);
}

.author-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-image {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.author-name {
  margin: 0;
  font-size: 1.1rem;
}

.author-bio {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Related Posts */
.related-posts {
  padding: var(--spacing-3xl) 0;
  background-color: var(--gray-50);
}

.related-posts h3 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.related-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

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

.related-image {
  height: 12rem;
  overflow: hidden;
}

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

.related-content {
  padding: var(--spacing-md);
}

.related-content h4 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.1rem;
}

.related-content time {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Post Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.post-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

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

.post-card .post-image {
  height: 16rem;
  margin-bottom: 0;
  border-radius: 0;
}

.post-card .post-content {
  padding: var(--spacing-lg);
}

.post-card .post-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.post-card .post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-card .post-title a:hover {
  color: var(--primary-color);
}

.post-card .post-excerpt {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.post-card .post-meta {
  justify-content: flex-start;
  margin: 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-base);
}

.pagination a {
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--gray-200);
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.pagination .current {
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
}

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

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

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .cta-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-section {
    padding: 6rem 0 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1.1rem;
  }
  
  .value-grid,
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-title,
  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .stats-card {
    position: static;
    margin-top: var(--spacing-lg);
  }
  
  .value-card,
  .service-card,
  .testimonial-card {
    padding: var(--spacing-md);
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* ================================
   Ghost Content Editor Classes
   ================================ */
.kg-width-wide {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 1200px;
  margin-left: calc(50% - 600px);
  margin-right: calc(50% - 600px);
}

.kg-width-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-gallery-card {
  margin: var(--spacing-xl) 0;
}

.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.kg-gallery-row {
  display: flex;
  gap: var(--spacing-sm);
}

.kg-gallery-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.kg-embed-card {
  margin: var(--spacing-xl) 0;
}

.kg-bookmark-card {
  margin: var(--spacing-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  padding: var(--spacing-lg);
  flex: 1;
}

.kg-bookmark-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
}

.kg-bookmark-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.kg-bookmark-thumbnail {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================
   Membership Styles
   ================================ */
.membership-cta {
  padding: var(--spacing-xl) 0;
  background-color: var(--gray-50);
}

.membership-content {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.membership-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.membership-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.membership-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.membership-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  font-size: 1rem;
}

.membership-form button {
  white-space: nowrap;
}

.membership-status p {
  font-weight: var(--font-weight-medium);
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.message-success,
.message-error {
  display: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

.message-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: rgb(21, 128, 61);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.message-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(185, 28, 28);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.membership-form[data-success] .message-success {
  display: block;
}

.membership-form[data-error] .message-error {
  display: block;
}

/* Print Styles */
@media print {
  .navigation,
  .cta-section,
  .contact-section,
  .site-footer {
    display: none;
  }
  
  .post-content,
  .page-content {
    padding: 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* ================================
   Homepage Template Styles
   ================================ */

/* Hero Section Overrides */
.hero-section {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
  padding: 6rem 0 4rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-placeholder {
  width: 100%;
  height: 400px;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--gray-300);
}

.placeholder-content {
  text-align: center;
  color: var(--text-muted);
}

.placeholder-content svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Services Section */
.services-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.service-icon-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon-placeholder svg {
  color: var(--text-muted);
}

/* About Section */
.about-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
}

.about-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

/* Latest Posts Section */
.latest-posts-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

/* Contact Section Updates */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-base);
}

.contact-detail:hover {
  color: var(--primary-hover);
}

/* Responsive Updates */
@media (max-width: 768px) {
  .hero-grid,
  .about-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .hero-section {
    padding: 4rem 0 2rem;
    min-height: auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .trust-indicators {
    gap: var(--spacing-sm);
  }
  
  .trust-item {
    font-size: 0.75rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* ================================
   Page Template Styles
   ================================ */

/* About Page */
.about-page .page-hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding: var(--spacing-3xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
}

.about-sidebar .credentials-card,
.about-sidebar .contact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.credential-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.credential-icon {
  color: var(--primary-color);
}

.contact-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-sm);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
}

.contact-btn:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.about-specialties {
  margin-top: var(--spacing-lg);
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.specialty-tag {
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

/* Services Page */
.services-page .services-hero {
  background: var(--black);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
}

.services-page .services-hero h1,
.services-page .services-hero p {
  color: var(--white);
}

.services-intro {
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.all-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-3xl) 0;
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

.service-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-detail-card .service-image {
  width: 100%;
  height: 200px;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-detail-card .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin: var(--spacing-sm) 0;
}

.feature-tag {
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

.service-detail-link {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.services-cta {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

/* Testimonials Page */
.testimonials-page .testimonials-intro {
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-3xl) 0;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

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

.testimonial-card .stars {
  color: gold;
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 var(--spacing-md) 0;
}

.testimonial-card cite {
  display: block;
}

.testimonial-card cite strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

.testimonial-card .client-type {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.client-photo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.client-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonials-stats {
  background: var(--black);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
  margin: var(--spacing-3xl) 0;
  border-radius: var(--radius-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  color: var(--white);
  font-weight: var(--font-weight-medium);
  margin-top: 0.5rem;
}

.testimonials-cta {
  text-align: center;
  padding: var(--spacing-3xl);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
}

/* Contact Page */
.contact-page .contact-intro {
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-top: var(--spacing-3xl);
}

.contact-form-section {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-premium);
}

.form-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.form-header h2 {
  margin-bottom: var(--spacing-sm);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.method-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon svg {
  color: var(--white);
}

.method-details h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
}

.method-details p {
  margin: 0 0 0.25rem 0;
}

.method-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

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

.business-hours,
.service-areas {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-lg);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--gray-200);
}

.hours-item:last-child {
  border-bottom: none;
}

.emergency-note {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  color: var(--primary-color);
  font-size: 0.875rem;
  text-align: center;
}

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.area-tag {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

/* For Realtors Page */
.realtors-page .realtors-hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
}

.realtors-page .realtors-hero h1,
.realtors-page .realtors-hero p {
  color: var(--white);
}

.realtor-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.benefit-icon {
  color: var(--primary-color);
}

.partner-benefits {
  padding: var(--spacing-3xl) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

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

.benefit-icon-large {
  width: 80px;
  height: 80px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.benefit-icon-large svg {
  color: var(--primary-color);
}

.realtor-pricing {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  margin: var(--spacing-3xl) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.pricing-tier {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition-base);
}

.pricing-tier.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-tier .price {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin: var(--spacing-sm) 0;
}

.price-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-lg);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--gray-200);
}

.features-list li:last-child {
  border-bottom: none;
}

.realtors-cta {
  text-align: center;
  padding: var(--spacing-3xl);
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
}

.realtors-cta h2 {
  color: var(--white);
}

/* Service Page Template */
.service-page .service-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
}

.service-page .service-hero h1,
.service-page .service-hero p {
  color: var(--white);
}

.service-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.quick-info-item {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
}

.service-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.service-process {
  margin: var(--spacing-3xl) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.process-step {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--spacing-md);
}

.service-features {
  background: var(--gray-50);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  margin: var(--spacing-3xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
}

.feature-icon {
  color: var(--primary-color);
}

.related-services {
  margin: var(--spacing-3xl) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.related-service {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.related-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto var(--spacing-sm);
}

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

.related-link {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  font-size: 0.875rem;
}

.service-testimonial {
  background: var(--gray-50);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--spacing-3xl) 0;
}

.service-testimonial blockquote {
  font-size: 1.25rem;
  font-style: italic;
  margin: 0 0 var(--spacing-md) 0;
}

.service-cta {
  background: var(--black);
  color: var(--white);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-top: var(--spacing-3xl);
}

.service-cta h2 {
  color: var(--white);
}

/* Responsive Design for Page Templates */
@media (max-width: 768px) {
  .about-grid,
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .all-services-grid,
  .benefits-grid,
  .pricing-grid,
  .process-steps,
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-buttons,
  .service-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .realtor-benefits,
  .service-quick-info {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .pricing-tier.featured {
    transform: none;
  }
}

/* Blog Page */
.blog-page .blog-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.blog-page .blog-hero h1,
.blog-page .blog-hero p {
  color: var(--white);
}

.blog-intro {
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.featured-posts {
  margin: var(--spacing-3xl) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.featured-post-card,
.blog-post-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

.featured-post-card:hover,
.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-post-card .post-image,
.blog-post-card .post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-post-card .post-image {
  height: 150px;
}

.featured-post-card .post-image img,
.blog-post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.featured-post-card:hover .post-image img,
.blog-post-card:hover .post-image img {
  transform: scale(1.05);
}

.featured-post-card .post-content,
.blog-post-card .post-content {
  padding: var(--spacing-lg);
}

.blog-post-card .post-content {
  padding: var(--spacing-md);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-category {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.featured-post-card .post-title,
.blog-post-card .post-title {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.blog-post-card .post-title {
  font-size: 1.125rem;
}

.featured-post-card .post-title a,
.blog-post-card .post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.featured-post-card .post-title a:hover,
.blog-post-card .post-title a:hover {
  color: var(--primary-color);
}

.featured-post-card .post-excerpt,
.blog-post-card .post-excerpt {
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-base);
}

.read-more:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}

.read-more::after {
  content: '→';
  transition: var(--transition-base);
}

.category-section {
  margin: var(--spacing-3xl) 0;
  padding: var(--spacing-3xl) 0;
  border-top: 1px solid var(--gray-200);
}

.category-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.category-header h2 {
  margin-bottom: var(--spacing-sm);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.view-all {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.newsletter-section {
  background: var(--black);
  color: var(--white);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  text-align: center;
  margin: var(--spacing-3xl) 0;
}

.newsletter-content h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
  color: var(--white);
  margin-bottom: var(--spacing-lg);
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive for Blog */
@media (max-width: 768px) {
  .featured-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post-card .post-image,
  .blog-post-card .post-image {
    height: 180px;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--spacing-sm) 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
}

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

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 var(--spacing-xs);
  color: var(--text-muted);
}

.breadcrumb-item:last-child {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

/* ================================
   Blog Listing Template (home.hbs)
   ================================ */

.blog-listing .blog-header {
  background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
  color: var(--white);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.blog-listing .blog-title {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.blog-listing .blog-description {
  color: var(--white);
  font-size: 1.25rem;
  opacity: 0.9;
}

.blog-listing .blog-content {
  padding: var(--spacing-3xl) 0;
}

.featured-section {
  margin-bottom: var(--spacing-3xl);
}

.featured-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.featured-article {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

.featured-article:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
}

.featured-article .article-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.featured-article:hover .article-image img {
  transform: scale(1.05);
}

.featured-article .article-content {
  padding: var(--spacing-xl);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-tag {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.featured-article .article-title {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.featured-article .article-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.featured-article .article-title a:hover {
  color: var(--primary-color);
}

.featured-article .article-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more-btn {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.read-more-btn:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
}

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

/* All Posts Section */
.all-posts-section {
  margin: var(--spacing-3xl) 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

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

.post-card .post-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.post-card .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

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

.post-card .post-content {
  padding: var(--spacing-lg);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.post-tag {
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

.post-card .post-title {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-card .post-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.post-card .post-title a:hover {
  color: var(--primary-color);
}

.post-card .post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card .read-more {
  color: var(--primary-color);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.post-card .read-more:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}

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

/* Tags Section */
.tags-section {
  background: var(--gray-50);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  margin: var(--spacing-3xl) 0;
  text-align: center;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.tag-link {
  background: var(--white);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--gray-200);
  transition: var(--transition-base);
}

.tag-link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Newsletter CTA */
.newsletter-cta {
  margin: var(--spacing-3xl) 0;
}

.newsletter-card {
  background: var(--black);
  color: var(--white);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-xl);
  text-align: center;
}

.newsletter-card h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.newsletter-card p {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

/* No Posts State */
.no-posts {
  text-align: center;
  padding: var(--spacing-3xl);
  color: var(--text-muted);
}

.no-posts h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

/* Responsive for Blog Listing */
@media (max-width: 768px) {
  .blog-listing .blog-title {
    font-size: 2.5rem;
  }
  
  .featured-posts-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-article .article-image {
    height: 200px;
  }
  
  .post-card .post-image {
    height: 150px;
  }
  
  .tags-cloud {
    justify-content: flex-start;
  }
  
  .article-footer,
  .post-footer {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }
}