:root {
  color-scheme: light;
  --bg: #fdf8f3;
  --bg-alt: #fff9f5;
  --bg-dark: #2c2420;
  --text: #3d2c24;
  --muted: #7a6b63;
  --accent: #8b4d3b;
  --accent-light: #c9856f;
  --accent-dark: #6b3a2c;
  --accent-glow: rgba(139, 77, 59, 0.4);
  --accent-secondary: #4a6741;
  --card: #fffcf9;
  --border: #e6ddd5;
  --gold: #b8860b;
  --cream: #f5ebe0;
  --shadow: 0 25px 60px rgba(60, 44, 36, 0.1);
  --shadow-glow: 0 0 40px rgba(139, 77, 59, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'DM Sans', Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  background: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 600;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 77, 59, 0.25);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(139, 77, 59, 0.35);
  transform: translateY(-1px);
}

.btn-primary:focus {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  background: var(--accent-dark);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:focus {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  background: var(--accent);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 4rem 0 5rem;
  background-image:
    linear-gradient(
      180deg,
      rgba(253, 248, 243, 0.92) 0%,
      rgba(245, 235, 224, 0.92) 100%
    ),
    url("Office space.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: grid;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.highlight-title {
  font-weight: 600;
  display: block;
  color: var(--accent-dark);
}

.highlight-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card {
  background: var(--card);
  padding: 2.2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card h2 {
  color: var(--accent-dark);
}

.hero-card-copy {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
}

.hero-card-details {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-card-details h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
  color: var(--accent-dark);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.split p {
  margin-bottom: 1rem;
}

.callout {
  background: var(--cream);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.callout h3 {
  color: var(--accent-dark);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.callout ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.callout li {
  margin-bottom: 0.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  min-height: 180px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--accent-dark);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--muted);
}

.cta-inline {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.cta-inline p {
  font-size: 1.1rem;
  color: var(--text);
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.team-role {
  color: var(--accent);
  margin-bottom: 1rem;
  font-style: italic;
}

.badge {
  background: linear-gradient(135deg, var(--cream) 0%, #f0e6da 100%);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.badge p {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.badge h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
  color: var(--accent-dark);
}

.badge span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.contact-grid a {
  color: var(--accent);
  transition: color 0.2s;
}

.contact-grid a:hover {
  color: var(--accent-dark);
}

.contact-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hours-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
}

.hours-card h3 {
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.note {
  color: var(--muted);
  margin: 1rem 0;
  font-style: italic;
}

.site-footer {
  background: var(--bg-dark);
  color: #e8e0d8;
  padding: 3.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.site-footer h4 {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #e8e0d8;
  display: block;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent-light);
}

.footer-note {
  text-align: center;
  margin-top: 2.5rem;
  color: #9a8b7f;
  font-style: italic;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Mobile menu toggle button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(60, 44, 36, 0.15);
    border-top: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    gap: 1rem;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ========== INTERACTIVE HEARING EXPERIENCE ========== */
.hearing-experience {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #3d2e28 50%, #2a201c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hearing-experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(139, 77, 59, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 133, 111, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.experience-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.experience-header .eyebrow {
  color: var(--accent-light);
}

.experience-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 0 auto;
}

.experience-demo {
  position: relative;
  z-index: 2;
}

.waveform-container {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  overflow: hidden;
}

.waveform-container canvas {
  display: block;
  width: 100%;
  height: 200px;
}

.wave-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 36, 32, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  pointer-events: none;
  transition: all 0.4s ease;
}

.clarity-slider-wrap {
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.clarity-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, rgba(139, 77, 59, 0.3) 0%, rgba(139, 77, 59, 0.6) 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  position: relative;
}

.clarity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 4px 20px rgba(139, 77, 59, 0.5), 0 0 20px rgba(139, 77, 59, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.clarity-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 30px rgba(139, 77, 59, 0.6), 0 0 40px rgba(139, 77, 59, 0.4);
}

.clarity-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.clarity-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  border-radius: 50%;
  cursor: grab;
  border: none;
  box-shadow: 0 4px 20px rgba(139, 77, 59, 0.5);
}

.clarity-value {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}

.clarity-value span {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.exp-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.exp-card-highlight {
  background: linear-gradient(135deg, rgba(139, 77, 59, 0.2) 0%, rgba(201, 133, 111, 0.1) 100%);
  border-color: rgba(139, 77, 59, 0.4);
}

.exp-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.exp-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.exp-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

.experience-cta {
  text-align: center;
  position: relative;
  z-index: 2;
}

.experience-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn-glow {
  box-shadow: 0 8px 30px rgba(139, 77, 59, 0.5), 0 0 40px rgba(139, 77, 59, 0.2);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 30px rgba(139, 77, 59, 0.4), 0 0 40px rgba(139, 77, 59, 0.2);
  }
  50% {
    box-shadow: 0 8px 40px rgba(139, 77, 59, 0.6), 0 0 60px rgba(139, 77, 59, 0.3);
  }
}

/* ========== FLOATING PARTICLES ========== */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(201, 133, 111, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect for cards */
.cards .reveal-on-scroll:nth-child(1) { transition-delay: 0s; }
.cards .reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }

/* ========== ENHANCED BUTTONS ========== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* ========== ENHANCED HERO CARD ========== */
.hero-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(60, 44, 36, 0.15);
}

/* ========== REVIEWS SECTION ========== */
.reviews-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--cream) 100%);
}

.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
}

.reviews-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.5rem 0 1rem;
}

.reviews-header p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.review-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(60, 44, 36, 0.08);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(60, 44, 36, 0.12);
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

.star {
  font-size: 1.2rem;
  color: #d4c8bc;
}

.star.filled {
  color: var(--gold);
}

.review-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.review-info h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--accent-dark);
}

.review-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

.reviews-cta {
  text-align: center;
}

.reviews-cta p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Empty state for reviews */
.reviews-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  grid-column: 1 / -1;
}

.reviews-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ========== AI ASSISTANT CHAT WIDGET ========== */
.ai-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  font-family: 'DM Sans', Georgia, sans-serif;
}

.ai-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(139, 77, 59, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  -webkit-font-smoothing: antialiased;
}

.ai-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(139, 77, 59, 0.5);
}

.ai-icon, .ai-close {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 1.4rem;
}

.ai-assistant.open .ai-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.ai-assistant.open .ai-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

.ai-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(60, 44, 36, 0.25);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.ai-assistant.open .ai-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.ai-header h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.ai-status {
  font-size: 0.8rem;
  opacity: 0.85;
}

.ai-messages {
  height: 240px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--cream);
}

.ai-message {
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-message p {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ai-bot {
  align-self: flex-start;
}

.ai-bot p {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.ai-user {
  align-self: flex-end;
}

.ai-user p {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ai-typing p {
  display: flex;
  gap: 4px;
  padding: 1rem 1.2rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Follow-up suggestion buttons in chat */
.ai-followup {
  max-width: 100% !important;
}

.followup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.followup-btn {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--accent-light);
  border-radius: 16px;
  background: rgba(139, 77, 59, 0.08);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.followup-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ai-suggestions {
  padding: 0.7rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.ai-suggestion {
  padding: 0.5rem 0.8rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-suggestion:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ai-input-wrap {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.ai-input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.ai-input:focus {
  border-color: var(--accent);
}

.ai-send {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  -webkit-font-smoothing: antialiased;
}

.ai-send:hover {
  transform: scale(1.05);
}

/* Pulse animation for attention */
.ai-assistant.pulse .ai-toggle {
  animation: attentionPulse 1s ease-in-out 2;
}

@keyframes attentionPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(139, 77, 59, 0.4); }
  50% { box-shadow: 0 8px 50px rgba(139, 77, 59, 0.7), 0 0 0 15px rgba(139, 77, 59, 0.1); }
}

/* ========== LOCATIONS SECTION ========== */
.locations-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 100%);
}

.locations-header {
  text-align: center;
  margin-bottom: 3rem;
}

.locations-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.5rem 0 1rem;
}

.locations-header p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
  padding-top: 1rem;
}

.location-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2.2rem;
  padding-top: 2.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: visible;
  scroll-margin-top: 120px;
  margin-top: 12px;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover::before {
  transform: scaleX(1);
}

.location-card .location-details {
  flex: 1;
}

/* Locations CTA */
.locations-cta {
  text-align: center;
  margin-top: 4rem;
  padding: 3.5rem 2rem;
  background: var(--card);
  border-radius: 16px;
  border: 2px solid var(--accent-light);
  scroll-margin-top: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.locations-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(139, 77, 59, 0.15);
}

.locations-cta h3 {
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

.locations-cta-note {
  margin-top: 1rem;
  color: var(--muted);
}

.locations-cta-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.locations-cta-note a:hover {
  color: var(--accent-dark);
  background: rgba(139, 77, 59, 0.1);
}

.locations-cta-note a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(139, 77, 59, 0.1);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(60, 44, 36, 0.15);
  border-color: var(--accent-light);
}

.location-card-alt {
  background: var(--cream);
}

.location-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--accent);
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(139, 77, 59, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  white-space: nowrap;
}

.location-card:hover .location-badge {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 77, 59, 0.4);
}

.location-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 1.2rem;
  position: relative;
  width: 180px;
  height: 180px;
  overflow: visible;
  flex-shrink: 0;
}

.location-image-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(139, 77, 59, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  flex-shrink: 0;
}

.location-image {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.9);
  animation: imageFadeIn 0.6s ease-out forwards;
  display: block !important;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  margin: 0;
  padding: 0;
}

.location-card:nth-child(1) .location-image {
  animation-delay: 0.1s;
}

.location-card:nth-child(2) .location-image {
  animation-delay: 0.2s;
}

@keyframes imageFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.location-card:hover .location-image-container {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(139, 77, 59, 0.3);
  border-color: var(--accent-dark);
}

.location-card:hover .location-image {
  transform: scale(1);
}

.location-image:focus {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
}

.location-card h3 {
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.location-card:hover h3 {
  color: var(--accent);
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.location-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

.location-card:hover .location-item {
  transform: translateX(2px);
}

.location-icon {
  font-size: 1.2rem;
  color: var(--accent);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.location-card:hover .location-icon {
  color: var(--accent-dark);
  transform: scale(1.1);
}

.location-item p {
  margin: 0;
  line-height: 1.5;
}

.location-item a {
  color: var(--accent);
  transition: color 0.2s;
  text-decoration: none;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.location-item a:hover {
  color: var(--accent-dark);
  background: rgba(139, 77, 59, 0.1);
}

.location-item a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(139, 77, 59, 0.1);
}

.location-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3rem;
}

/* Contact section updates */
.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h2 {
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer updates */
.footer-tagline {
  color: var(--accent-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* ========== APPROACH SECTION ========== */
.approach-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
}

.approach-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.approach-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.5rem 0 1rem;
}

.approach-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.approach-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.approach-icon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

.approach-card h3 {
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

.approach-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ========== SERVICES SECTION ENHANCEMENTS ========== */
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.services-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.5rem 0 1rem;
}

.services-header p {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  background: linear-gradient(135deg, var(--cream) 0%, #f8f0e8 100%);
  border-color: var(--accent-light);
}

.service-icon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ========== VALUES SECTION ========== */
.values-section {
  background: var(--bg);
}

.values-header {
  text-align: center;
  margin-bottom: 3rem;
}

.values-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0.5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.value-item {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-icon {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

.value-item h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ========== MISSION SECTION ========== */
.mission-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 4rem 0;
}

.mission-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-content .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.mission-content blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: none;
}

/* ========== TEAM SECTION ========== */
.team-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.team-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.5rem 0 1rem;
}

.team-header p {
  color: var(--muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-card-featured {
  background: linear-gradient(135deg, var(--cream) 0%, #f8f0e8 100%);
  border-color: var(--accent-light);
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .team-card-featured {
    grid-column: auto;
  }
}

.team-card-header {
  margin-bottom: 1rem;
}

.team-card-header--with-photo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.team-photo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(139, 77, 59, 0.25);
  box-shadow: 0 14px 35px rgba(60, 44, 36, 0.12);
  flex: 0 0 auto;
}

.team-header-text {
  min-width: 0;
}

@media (max-width: 520px) {
  .team-card-header--with-photo {
    align-items: flex-start;
  }

  .team-photo {
    width: 80px;
    height: 80px;
  }
}

.team-card h3 {
  font-size: 1.3rem;
  color: var(--accent-dark);
  margin-bottom: 0.3rem;
}

.team-title {
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin: 0;
}

.team-bio {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.team-credentials {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(139, 77, 59, 0.05);
  border-radius: 8px;
}

.team-credentials p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
}

.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-commitment {
  text-align: center;
  padding: 2rem;
  background: var(--cream);
  border-radius: 12px;
  margin-top: 2rem;
}

.team-commitment p {
  color: var(--accent-dark);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

.specialty-tag,
.badge .specialty-tag {
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
  .service-details-grid {
    grid-template-columns: 1fr;
  }
  
  .service-columns {
    grid-template-columns: 1fr;
  }
  
  .integrated-approach {
    padding: 2rem;
  }
  
  .service-emphasis {
    flex-direction: column;
    text-align: center;
  }
  
  .location-image-wrapper {
    width: 160px !important;
    height: 160px !important;
  }
  
  .location-image-container {
    width: 160px !important;
    height: 160px !important;
    border-width: 3px;
  }
  
  .location-image {
    width: 100% !important;
    height: 100% !important;
  }
}

/* Mobile adjustments */

@media (max-width: 480px) {
  .location-image-wrapper {
    width: 140px !important;
    height: 140px !important;
    margin: 1.2rem auto 1rem;
  }
  
  .location-image-container {
    width: 140px !important;
    height: 140px !important;
    border-width: 3px;
  }
  
  .location-image {
    width: 100% !important;
    height: 100% !important;
  }
  
  .locations-grid {
    gap: 1.5rem;
  }
  
  .location-card {
    padding: 1.8rem;
    padding-top: 2.4rem;
  }
}
}

/* iPhone specific fixes */
@supports (-webkit-touch-callout: none) {
  .location-image-wrapper {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  .location-image-container {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-border-radius: 50%;
    border-radius: 50%;
  }
  
  .location-image {
    -webkit-appearance: none !important;
    object-fit: cover !important;
  }
  
  @media (max-width: 768px) {
    .location-image-wrapper {
      width: 160px !important;
      height: 160px !important;
    }
    
    .location-image-container {
      width: 160px !important;
      height: 160px !important;
    }
  }
  
  @media (max-width: 480px) {
    .location-image-wrapper {
      width: 140px !important;
      height: 140px !important;
    }
    
    .location-image-container {
      width: 140px !important;
      height: 140px !important;
    }
  }
}
  
  .ai-assistant {
    bottom: 16px;
    right: 16px;
  }
  
  .ai-toggle {
    width: 56px;
    height: 56px;
  }
  
  .ai-panel {
    bottom: 72px;
    width: calc(100vw - 32px);
    max-width: 320px;
    right: -8px;
  }
  
  .ai-messages {
    height: 240px;
  }
  
  .service-block {
    padding: 1.5rem;
  }
  
  .approach-card, .value-item {
    padding: 1.5rem;
  }
}
