/* Reset & Base */
:root {
  /* Colors - Primary (Teal) */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;

  /* Colors - Stone/Neutral */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  /* Semantic Colors */
  --bg-body: var(--stone-50);
  --bg-card: #ffffff;
  --bg-alt: var(--stone-100);
  --text-main: var(--stone-800);
  --text-muted: var(--stone-600);
  --text-light: var(--stone-300);
  --border-color: var(--stone-200);
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-sans: 'Lato', sans-serif;
  --font-serif: 'Merriweather', serif;

  /* Spacing & Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --container-width: 1280px;
}

/* Dark Mode Variables */
.dark {
  --bg-body: var(--stone-900);
  --bg-card: var(--stone-800);
  --bg-alt: #23201e; /* stone-800 equivalent mostly */
  --text-main: var(--stone-50);
  --text-muted: var(--stone-300);
  --text-light: var(--stone-400);
  --border-color: var(--stone-700);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --primary-700: var(--primary-500); /* Lighter teal in dark mode */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.125rem;
}

.text-left { text-align: left; }
.text-white { color: #fff; }
.text-light { color: var(--primary-100); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-700);
  color: white;
  box-shadow: 0 4px 6px -1px var(--shadow-color);
}

.btn-primary:hover {
  background-color: var(--primary-800);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-100);
  color: var(--primary-700);
}

.dark .btn-outline {
  border-color: var(--stone-700);
  color: var(--primary-200);
  background-color: var(--stone-800);
}

.btn-outline:hover {
  background-color: var(--primary-50);
}
.dark .btn-outline:hover {
  background-color: var(--stone-700);
}

.btn-outline-secondary {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary-700);
}
.dark .btn-outline-secondary {
    color: var(--primary-200);
}
.btn-outline-secondary:hover {
  background-color: var(--primary-50);
}
.dark .btn-outline-secondary:hover {
    background-color: var(--stone-700);
}

.btn-white {
  background-color: white;
  color: var(--primary-800);
  font-size: 1.125rem;
  padding: 1rem 2rem;
}
.btn-white:hover {
  background-color: var(--stone-100);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 6px -1px var(--shadow-color);
}

.dark .navbar.scrolled {
  background-color: rgba(28, 25, 23, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-700);
}

.dark .logo { color: var(--primary-200); }

.logo-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

@media (max-width: 640px) { .logo-sub { display: none; } }

.desktop-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) { .desktop-menu { display: flex; } }

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--primary-700); }
.dark .nav-link:hover { color: var(--primary-200); }

/* Mobile Menu Controls */
.mobile-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) { .mobile-controls { display: none; } }

.theme-btn {
  background: none;
  padding: 0.5rem;
  border-radius: 999px;
  color: var(--text-muted);
}
.theme-btn:hover { background-color: var(--stone-100); }
.dark .theme-btn:hover { background-color: var(--stone-800); }

/* Theme Icons Toggle */
.dark .icon-moon { display: none; }
.icon-sun { display: none; }
.dark .icon-sun { display: block; }

.menu-btn {
    background: none;
    color: var(--text-muted);
}

/* Mobile Dropdown */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s;
  opacity: 0;
  background-color: var(--bg-card);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

.mobile-menu-content {
  display: flex;
  
  flex-direction: column;
  padding: 1rem;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.mobile-link {
  padding: 0.75rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 500;
}
.mobile-link:hover { color: var(--primary-700); }

.btn-mobile-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
}

.blob-1 {
  top: -5rem;
  right: -5rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--primary-100);
}
.dark .blob-1 { background-color: rgba(15, 118, 110, 0.2); }

.blob-2 {
  bottom: -5rem;
  left: -5rem;
  width: 20rem;
  height: 20rem;
  background-color: #fff7ed; /* Orange 50 */
}
.dark .blob-2 { background-color: var(--stone-800); }

.hero-container {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { 
  .hero-container { grid-template-columns: 1fr 1fr; }
}

.hero-text {
  text-align: center;
}
@media (min-width: 1024px) { .hero-text { text-align: left; } }

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-100);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.dark .badge {
  background-color: rgba(15, 118, 110, 0.3);
  color: var(--primary-100);
  border-color: var(--primary-800);
}

.hero-title {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .hero-title { font-size: 3.5rem; } }

.highlight {
  color: var(--primary-700);
}
.dark .highlight { color: var(--primary-500); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) { .hero-subtitle { margin-left: 0; } }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }

.hero-image-wrapper {
  position: relative;
  order: -1;
}
@media (min-width: 1024px) { .hero-image-wrapper { order: 2; } }

.hero-image-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px var(--shadow-color);
  max-width: 450px;
  margin: 0 auto;
  transform: rotate(2deg);
  transition: transform 0.5s;
}

.hero-image-container:hover { transform: rotate(0); }

.hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.hero-quote {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: white;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
}

.floating-badge {
  display: none;
  position: absolute;
  top: 2.5rem;
  right: -1rem;
  background-color: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px var(--shadow-color);
  animation: bounce-slow 3s infinite;
}
@media (min-width: 640px) { .floating-badge { display: flex; align-items: center; gap: 0.75rem; } }

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(-5%); }
  50% { transform: translateY(5%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* Sections General */
.section {
  padding: 5rem 0;
}

.bg-alt {
  background-color: var(--bg-alt);
}

/* About Section */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 1024px) { 
  .about-grid { flex-direction: row; align-items: flex-start; gap: 4rem; } 
}

.about-images {
  position: relative;
  width: 100%;
}
@media (min-width: 1024px) { .about-images { width: 50%; } }

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 16rem;
  object-fit: cover;
  box-shadow: 0 4px 6px -1px var(--shadow-color);
}
.img-1 { margin-top: 3rem; }

.about-quote-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 15px -3px var(--shadow-color);
  max-width: 320px;
  display: none;
}
@media (min-width: 768px) { .about-quote-card { display: block; } }

.about-quote-card p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary-700);
}
.dark .about-quote-card p { color: var(--primary-200); }

.about-content {
  width: 100%;
}
@media (min-width: 1024px) { .about-content { width: 50%; } }

.subtitle {
  font-size: 1.25rem;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.dark .subtitle { color: var(--primary-500); }

.text-block {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background-color: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 1px 2px 0 var(--shadow-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-value {
  color: var(--primary-500);
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

.value-card span {
  font-weight: 700;
  color: var(--text-main);
}

/* Services Section */
.features-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background-color: var(--stone-50);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: border-color 0.3s;
}
.dark .feature-card { background-color: var(--stone-800); }

.feature-card:hover { border-color: var(--primary-200); }
.dark .feature-card:hover { border-color: var(--primary-700); }

.icon-circle {
  width: 3rem;
  height: 3rem;
  background-color: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-700);
  transition: background-color 0.3s;
}
.feature-card:hover .icon-circle { background-color: var(--primary-50); }
.dark .feature-card:hover .icon-circle { background-color: rgba(15, 118, 110, 0.3); }

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.services-wrapper {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .services-wrapper { grid-template-columns: 1fr 1fr; } }

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px var(--shadow-color);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-0.25rem); }

.service-body {
  padding: 2rem;
  flex: 1;
}

.service-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary-100);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-700);
}
.dark .service-icon-box { background-color: rgba(15, 118, 110, 0.3); color: var(--primary-200); }

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--primary-500);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.service-footer {
  padding: 1.5rem;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-color);
}

/* Process Section */
.bg-primary {
  background-color: var(--primary-800);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  margin-bottom: 4rem;
}
@media (min-width: 768px) { 
  .process-grid { grid-template-columns: repeat(3, 1fr); } 
}

.connector-line {
  display: none;
  position: absolute;
  top: 3rem;
  left: 16%;
  right: 16%;
  height: 2px;
  background-color: var(--primary-600);
  z-index: 0;
}
@media (min-width: 768px) { .connector-line { display: block; } }

.process-step {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon {
  width: 6rem;
  height: 6rem;
  background-color: var(--primary-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--primary-600);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
  color: white;
}
.step-icon svg { width: 2.5rem; height: 2.5rem; }

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--primary-100);
  padding: 0 1rem;
}

.process-cta {
  text-align: center;
}

.security-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 var(--shadow-color);
  display: flex;
  flex-direction: column;
}

.quote-icon {
  color: var(--primary-200);
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
}
.dark .quote-icon { color: var(--primary-800); }

.testimonial-text {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-700);
}
.dark .avatar { background-color: var(--primary-900); color: var(--primary-200); }

.author-name {
  font-weight: 700;
  color: var(--text-main);
}

.author-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  gap: 4rem;
}
@media (min-width: 1024px) { .contact-wrapper { grid-template-columns: 1fr 1fr; } }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-50);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
}
.dark .contact-icon { background-color: var(--stone-800); color: var(--primary-200); }

.contact-item h3 {
  font-weight: 700;
  color: var(--text-main);
}
.contact-item p {
  color: var(--text-muted);
}

.contact-form-wrapper {
  background-color: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px -1px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--stone-300);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dark .form-group input, .dark .form-group select, .dark .form-group textarea {
  border-color: var(--stone-600);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}
.dark .form-group input:focus { box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2); }

.icon-sm { width: 1rem; height: 1rem; }

.success-message {
  text-align: center;
  padding: 3rem 0;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background-color: #dcfce7;
  border-radius: 50%;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}
.success-icon svg { width: 2rem; height: 2rem; }

/* Map Wrapper */
.map-wrapper {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.map-wrapper iframe {
  display: block;
}

/* Footer */
.footer {
  background-color: var(--stone-900);
  color: var(--stone-400);
  padding: 3rem 0;
  border-top: 1px solid var(--stone-800);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-brand h4 {
  color: var(--stone-100);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-social h5 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--stone-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-links a:hover {
  background-color: var(--primary-700);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--stone-800);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* Chatbot CSS */
.chatbot-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--primary-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
  transition: transform 0.3s, background-color 0.3s;
}

.chat-toggle-btn:hover {
  background-color: var(--primary-700);
  transform: translateY(-4px);
}

.chat-toggle-btn.active {
  background-color: var(--stone-600);
  transform: rotate(90deg);
}

.chat-window {
  margin-bottom: 1rem;
  width: 20rem;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px var(--shadow-color);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
}
@media (min-width: 640px) { .chat-window { width: 24rem; } }

.chat-window.hidden {
  display: none;
}

.chat-header {
  background-color: var(--primary-700);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bot-avatar {
  width: 2rem;
  height: 2rem;
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
}

.status {
  font-size: 0.75rem;
  color: var(--primary-100);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-close {
  background: none;
  color: rgba(255,255,255,0.8);
  padding: 0.25rem;
}
.chat-close:hover { color: white; }

.chat-messages {
  height: 20rem;
  overflow-y: auto;
  padding: 1rem;
  background-color: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Scrollbar styles for chat */
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 3px; }

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-area input {
  flex: 1;
  background-color: var(--bg-alt);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.send-icon {
  padding: 0.5rem;
  background-color: var(--stone-200);
  border-radius: 50%;
  color: var(--stone-400);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark .send-icon { background-color: var(--stone-700); }

/* Chat Bubbles */
.chat-bubble-row {
  display: flex;
  flex-direction: column;
}
.chat-bubble-row.user { align-items: flex-end; }
.chat-bubble-row.bot { align-items: flex-start; }

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.chat-bubble.user {
  background-color: var(--primary-600);
  color: white;
  border-top-right-radius: 0;
}

.chat-bubble.bot {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-top-left-radius: 0;
}

.chat-options {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-opt-btn {
  font-size: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--primary-200);
  color: var(--primary-700);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: all 0.2s;
}
.dark .chat-opt-btn {
  border-color: var(--stone-600);
  color: var(--primary-400);
  background-color: var(--stone-800);
}

.chat-opt-btn:hover {
  background-color: var(--primary-50);
}
.dark .chat-opt-btn:hover {
  background-color: var(--stone-700);
}

/* Animations */
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.message-enter { animation: slideInUp 0.3s ease-out forwards; }
.fade-in { animation: fadeIn 0.3s ease-in forwards; }

.typing-indicator {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  border-top-left-radius: 0;
  width: fit-content;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--stone-400);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}