/* ChrisAllen.tv XD Design Implementation */

/* CSS Variables */
:root {
  /* Colors */
  --color-navy: #1a1a2e;
  --color-navy-alt: #0f0f23;
  --color-blue: #3050df;
  --color-blue-alt: #2844c3;
  --color-teal: #2ec4b6;
  --color-teal-alt: #34c759;
  --color-light-blue: #7b8cde;
  --color-light-bg: #e8edf8;
  --color-orange: #f77f00;
  --color-white: #ffffff;
  --color-text-dark: #333333;
  --color-text-medium: #555555;
  --color-text-light: #767676;
  --color-border: #e8e8e8;
  
  /* Typography */
  --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 40px;
  --font-size-stat: 48px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;
  
  /* Layout */
  --container-max: 1140px;
  --gutter: 30px;
  --navbar-height: 70px;
  
  /* Effects */
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-nav: 0 2px 10px rgba(0,0,0,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 24px);
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-white);
}

section[id] {
  scroll-margin-top: calc(var(--navbar-height) + 24px);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation */
.navbar {
  background: var(--color-white);
  box-shadow: var(--shadow-nav);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 140px;
  position: relative;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: none; /* Hidden by default, shown when logo fails */
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  color: var(--color-navy);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: none; /* Hidden by default, shown when logo fails */
}

/* When logo fails, show text and mark */
.nav-brand.has-fallback .brand-text,
.nav-brand.has-fallback .brand-mark,
.nav-brand:has(.logo-fallback) .brand-text,
.nav-brand:has(.logo-fallback) .brand-mark {
  display: inline-flex;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

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

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

.search-btn, .menu-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.search-btn:hover, .menu-btn:hover {
  background-color: var(--color-light-bg);
}

/* Hero Section */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: calc(var(--navbar-height) + 60px) 0 var(--space-3xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero-circles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-light-blue);
  opacity: 0.1;
}

.hero-circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -100px;
}

.hero-circle-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -50px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: var(--space-2xl);
  align-items: center;
}

.hero-side {
  display: grid;
  gap: var(--space-xl);
}

.hero-headshot-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.hero-headshot {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto 16px;
}

.hero-headshot-copy {
  text-align: center;
}

.hero-headshot-label {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 4px;
}

.hero-headshot-title {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-teal);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
  max-width: 600px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-stat);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-navy);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-teal-alt);
  transform: translateY(-2px);
}

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

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

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}

.about-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
}

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

.about-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
}

.about-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.about-card p {
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* Guest Grid */
.guests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.guest-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

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

.guest-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-light-bg);
}

.guest-content {
  padding: var(--space-lg);
}

.guest-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.guest-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-medium);
  margin-bottom: var(--space-md);
}

.guest-episode {
  font-size: var(--font-size-xs);
  color: var(--color-teal);
  font-weight: 600;
  text-transform: uppercase;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gutter);
}

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

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

.service-icon {
  font-size: 48px;
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--color-text-medium);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.service-link {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--color-teal);
}

/* Newsletter */
.newsletter {
  background: var(--color-teal);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter h2 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.newsletter p {
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

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

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-base);
}

.newsletter-form button {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  padding: 14px 24px;
  white-space: nowrap;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-item {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-icon {
  font-size: 24px;
  width: 50px;
  height: 50px;
  background: var(--color-teal);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

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

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

/* Footer */
.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-logo {
  height: 40px;
  margin-bottom: var(--space-lg);
}

.footer-col p {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer-col h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-teal);
}

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

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--color-teal);
}

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

.social-links a {
  color: var(--color-white);
  text-decoration: none;
  padding: 10px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

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

.footer-bottom p {
  opacity: 0.6;
  font-size: var(--font-size-sm);
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: var(--color-teal);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.chat-bubble:hover {
  background: var(--color-teal-alt);
  transform: scale(1.1);
}

.chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  display: none;
  flex-direction: column;
}

.chat-panel.active {
  display: flex;
}

.chat-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.chat-message {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

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

.user-message {
  background: var(--color-blue);
  color: var(--color-white);
  margin-left: auto;
  text-align: right;
}

.chat-input-area {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-sm);
}

.chat-input-area input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.chat-input-area button {
  padding: 10px 16px;
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Podcast CTA */
.podcast-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

.podcast-cta .btn {
  margin: 0 var(--space-sm);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-nav);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-links {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  gap: var(--space-lg);
}

.mobile-nav .nav-links a {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-base);
}

/* Responsive Design */
@media (max-width: 1200px) {
  :root {
    --container-max: 960px;
  }
}

@media (max-width: 992px) {
  :root {
    --container-max: 720px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 32px;
    --font-size-2xl: 28px;
    --font-size-xl: 22px;
    --font-size-stat: 36px;
    --space-3xl: 60px;
    --space-2xl: 40px;
    --gutter: 20px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  /* Navigation */
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
  
  .search-btn {
    display: none; /* Hide search on mobile for simplicity */
  }
  
  /* Hero Section */
  .hero {
    padding: calc(var(--navbar-height) + 40px) 0 var(--space-2xl);
    min-height: auto;
    text-align: center;
  }

  .nav-brand {
    gap: 8px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-side {
    order: -1;
  }

  .hero-headshot {
    max-width: 240px;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    min-height: 44px; /* Touch-friendly height */
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  /* Sections */
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-description {
    font-size: var(--font-size-base);
  }
  
  /* About Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about-card {
    padding: var(--space-lg);
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .service-card {
    padding: var(--space-lg);
  }
  
  /* Guests Grid */
  .guests-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .guest-content {
    padding: var(--space-md);
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  /* Newsletter */
  .newsletter {
    padding: var(--space-xl) 0;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .newsletter-form input,
  .newsletter-form button {
    border-radius: var(--radius-sm);
    min-height: 44px; /* Touch-friendly */
  }
  
  /* Footer */
  .footer {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  
  /* Chat Widget */
  .chat-panel {
    position: fixed;
    width: auto;
    max-width: 350px;
    right: 20px;
    left: 20px;
    bottom: 88px;
  }
  
  .chat-bubble {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}

/* Emergency visibility guardrails */
.nav-brand .logo {
  display: block !important;
}

.about-card,
.service-card,
.guest-card,
.section-header {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 576px) {
  :root {
    --font-size-3xl: 32px;
    --font-size-2xl: 28px;
    --font-size-xl: 22px;
    --font-size-lg: 20px;
    --font-size-base: 18px;
    --font-size-stat: 36px;
    --space-3xl: 60px;
    --space-2xl: 40px;
    --space-xl: 32px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Logo */
  .logo {
    height: 32px;
  }

  .brand-text {
    font-size: 16px;
  }
  
  /* Hero */
  .hero {
    padding: calc(var(--navbar-height) + 40px) 0 var(--space-xl);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
  }
  
  .hero-description {
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-lg);
    line-height: 1.5;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: none;
  }
  
  .stat {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
  }
  
  /* Cards */
  .about-card,
  .service-card {
    padding: var(--space-lg);
  }
  
  .about-card h3,
  .service-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
  }
  
  .about-card p,
  .service-card p {
    font-size: var(--font-size-base);
    line-height: 1.6;
  }
  
  /* Guests */
  .guests-grid {
    grid-template-columns: 1fr;
  }
  
  .guest-image {
    height: 180px;
  }
  
  /* Form elements */
  .form-group input,
  .form-group textarea,
  .newsletter-form input,
  .newsletter-form button {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Chat Widget */
  .chat-panel {
    position: fixed;
    bottom: 70px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100vw - 20px), 380px);
    max-width: calc(100vw - 20px);
    height: min(60vh, 500px);
  }
  
  .chat-messages {
    min-width: 0;
  }

  .chat-message {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .chat-bubble {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .hero-circle-1,
  .hero-circle-2 {
    display: none; /* Hide decorative elements on very small screens */
  }
  
  .podcast-cta .btn {
    display: block;
    width: 100%;
    margin: var(--space-sm) 0;
  }
  
  /* Stack social links vertically */
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }
  
  .social-links a {
    display: inline-block;
    min-width: 120px;
    text-align: center;
  }
}

/* Landscape mobile phones */
@media (max-width: 812px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--navbar-height) + 20px) 0 var(--space-lg);
  }
  
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }
  
  .stat {
    padding: var(--space-sm);
  }
  
  .stat-number {
    font-size: var(--font-size-xl);
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
/* Accessibility enhancements */
*:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.newsletter-form input:focus-visible {
  outline: 3px solid var(--color-blue);
  border-color: var(--color-blue);
}
