/* ═══════════════════════════════════════════════
   LUMINATE DENTAL CO. — LANDING PAGE STYLES
   Design: Editorial Boutique
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Italiana&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:    #F8F6F2;
  --slate:    #1C2B3A;
  --ivory:    #EDE8DF;
  --sage:     #A8BBA8;
  --blush:    #D4A5A0;
  --green:    #C9E4CA;
  --sage-dk:  #7A9A7A;
  --blush-dk: #B07E79;
  --text:     rgba(28,43,58,0.78);
  --text-lt:  rgba(28,43,58,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--slate);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── GRAIN TEXTURE ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(28,43,58,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-arc {
  width: 32px;
  height: 16px;
  border: 1.5px solid var(--sage);
  border-bottom: none;
  border-radius: 32px 32px 0 0;
}

.nav-logo-text { display: flex; flex-direction: column; gap: 0; }

.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 1px;
  line-height: 1;
}

.nav-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 200ms;
}

.nav-links a:hover { opacity: 1; }

.nav-book {
  background: var(--slate);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 9px 22px;
  border-radius: 100px;
  transition: transform 200ms, box-shadow 200ms !important;
}

.nav-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(28,43,58,0.2) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--slate);
  transition: all 300ms;
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--slate);
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms, transform 300ms;
}

.nav-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.open a:nth-child(1) { transition-delay: 60ms; }
.nav-overlay.open a:nth-child(2) { transition-delay: 120ms; }
.nav-overlay.open a:nth-child(3) { transition-delay: 180ms; }
.nav-overlay.open a:nth-child(4) { transition-delay: 240ms; }
.nav-overlay.open a:nth-child(5) { transition-delay: 300ms; }

.nav-overlay-close {
  position: absolute;
  top: 28px; right: 48px;
  font-size: 28px;
  cursor: pointer;
  color: var(--slate);
  opacity: 0.5;
  background: none;
  border: none;
  line-height: 1;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 2fr 3fr;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 48px 80px 0;
  position: relative;
}

.hero-arc {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 140px;
  height: 70px;
  border: 1.5px solid var(--sage);
  border-bottom: none;
  border-radius: 140px 140px 0 0;
  opacity: 0.5;
}

.hero-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 600;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 600ms 100ms ease forwards;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--slate);
  letter-spacing: -0.5px;
}

.hero-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 700ms ease forwards;
}

.hero-headline .line:nth-child(1) { animation-delay: 200ms; }
.hero-headline .line:nth-child(2) { animation-delay: 320ms; }

.hero-tagline {
  font-family: 'Italiana', serif;
  font-size: 22px;
  color: var(--sage-dk);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 600ms 480ms ease forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 600ms 600ms ease forwards;
}

.btn-primary {
  background: var(--slate);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,43,58,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--sage);
  cursor: pointer;
  transition: border-color 200ms, color 200ms;
}

.btn-ghost:hover {
  border-color: var(--slate);
  color: var(--slate);
}

.hero-image {
  background: var(--ivory);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-in 900ms 400ms ease forwards;
}

.hero-image-placeholder {
  text-align: center;
  padding: 40px;
}

.hero-image-arc {
  width: 80px;
  height: 40px;
  border: 2px solid var(--sage);
  border-bottom: none;
  border-radius: 80px 80px 0 0;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.hero-image-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-lt);
}

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
.services {
  padding: 120px 48px;
  position: relative;
}

.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  color: var(--slate);
  line-height: 1.1;
  margin-bottom: 64px;
  max-width: 480px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2px;
  position: relative;
  border-top: 1px solid rgba(28,43,58,0.1);
  transition: background 200ms;
  cursor: default;
}

.service-row:last-child { border-bottom: 1px solid rgba(28,43,58,0.1); }

.service-row:hover { background: var(--ivory); }

.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--sage);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.service-row:hover::before { transform: scaleY(1); }

.service-row.reversed { direction: rtl; }
.service-row.reversed > * { direction: ltr; }

.service-image {
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-image-inner {
  text-align: center;
}

.service-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
}

.service-num-bg {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 160px;
  font-weight: 300;
  color: var(--slate);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  bottom: -20px;
  right: -10px;
}

.service-info {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 600;
  margin-bottom: 10px;
}

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--slate);
  line-height: 1.1;
  margin-bottom: 16px;
}

.service-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-lt);
}

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
.about {
  background: var(--slate);
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,187,168,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 28px;
}

.about-quote {
  font-family: 'Italiana', serif;
  font-size: 28px;
  color: var(--sage);
  line-height: 1.4;
  margin-bottom: 32px;
}

.about-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(248,246,242,0.65);
  line-height: 1.8;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.about-photo {
  background: rgba(248,246,242,0.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.about-photo.large {
  grid-row: span 2;
  min-height: 288px;
}

.about-photo-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(248,246,242,0.2);
}

/* ══════════════════════════════════
   TESTIMONIALS
══════════════════════════════════ */
.testimonials {
  background: var(--ivory);
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.testimonials-arc {
  position: absolute;
  top: 40px;
  right: 60px;
  width: 200px;
  height: 100px;
  border: 2px solid var(--sage);
  border-bottom: none;
  border-radius: 200px 200px 0 0;
  opacity: 0.12;
  pointer-events: none;
}

.testimonials-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 28px;
}

.testimonial-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage-dk);
  font-weight: 600;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.3;
  cursor: pointer;
  border: none;
  transition: opacity 200ms;
}

.dot.active { opacity: 1; }

/* ══════════════════════════════════
   FAQ
══════════════════════════════════ */
.faq {
  padding: 120px 48px;
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-header { margin-bottom: 56px; }

.accordion-item {
  border-bottom: 1px solid rgba(28,43,58,0.1);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 20px;
}

.accordion-question {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.4;
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(28,43,58,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--sage-dk);
  transition: transform 200ms, background 200ms;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}

.accordion-answer {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  padding-bottom: 24px;
}

/* ══════════════════════════════════
   BOOKING CTA
══════════════════════════════════ */
.booking-cta {
  background: var(--slate);
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.booking-cta::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,187,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.booking-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.booking-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(248,246,242,0.55);
  margin-bottom: 40px;
}

.btn-sage {
  background: var(--sage);
  color: var(--slate);
  padding: 16px 36px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 200ms, box-shadow 200ms;
}

.btn-sage:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(168,187,168,0.3);
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: var(--slate);
  border-top: 1px solid rgba(168,187,168,0.15);
  padding: 56px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.footer-tagline {
  font-family: 'Italiana', serif;
  font-size: 13px;
  color: var(--sage);
}

.footer-col-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(248,246,242,0.5);
  text-decoration: none;
  transition: color 200ms;
}

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

.footer-contact p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(248,246,242,0.5);
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(168,187,168,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,246,242,0.4);
  text-decoration: none;
  font-size: 11px;
  transition: border-color 200ms, color 200ms;
}

.social-icon:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.footer-bottom {
  border-top: 1px solid rgba(168,187,168,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(248,246,242,0.25);
}

/* ══════════════════════════════════
   CHATBOT WIDGET
══════════════════════════════════ */
.chat-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--slate);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(28,43,58,0.25);
  transition: transform 200ms, box-shadow 200ms;
  z-index: 200;
}

.chat-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(28,43,58,0.3);
}

.chat-trigger svg { pointer-events: none; }

.chat-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: var(--slate);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}

.chat-trigger:hover .chat-tooltip { opacity: 1; }

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  height: 520px;
  background: var(--white);
  border: 1px solid rgba(28,43,58,0.1);
  border-radius: 14px;
  box-shadow: 0 24px 72px rgba(28,43,58,0.18);
  display: flex;
  flex-direction: column;
  z-index: 199;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.chat-header {
  background: var(--slate);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-header-info { display: flex; flex-direction: column; gap: 2px; }

.chat-header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

.chat-header-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(248,246,242,0.5);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  transition: color 200ms;
}

.chat-close:hover { color: var(--white); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(28,43,58,0.12); border-radius: 4px; }

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
}

.msg.ai {
  background: var(--ivory);
  color: var(--slate);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

/* Markdown rendering inside AI messages */
.msg.ai p { margin: 0 0 8px 0; }
.msg.ai p:last-child { margin-bottom: 0; }
.msg.ai ul, .msg.ai ol { margin: 6px 0; padding-left: 18px; }
.msg.ai li { margin-bottom: 4px; }
.msg.ai strong { font-weight: 600; }
.msg.ai em { font-style: italic; }

.msg.user {
  background: var(--slate);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.msg.error {
  background: rgba(212,165,160,0.18);
  color: var(--blush-dk);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  background: var(--ivory);
  border-radius: 12px 12px 12px 3px;
  align-self: flex-start;
  width: fit-content;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Suggestion chips */
.chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.suggestion-chip {
  background: none;
  border: 1px solid var(--sage);
  border-radius: 100px;
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--sage-dk);
  cursor: pointer;
  text-align: left;
  transition: background 200ms, color 200ms;
}

.suggestion-chip:hover {
  background: var(--sage);
  color: var(--white);
}

.chat-input-area {
  border-top: 1px solid var(--ivory);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  background: var(--white);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: var(--slate);
  resize: none;
  line-height: 1.4;
}

.chat-input::placeholder { color: rgba(28,43,58,0.35); }

.chat-send {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dk);
  border-radius: 50%;
  transition: background 200ms, color 200ms, transform 300ms;
}

.chat-send:hover { background: var(--ivory); }
.chat-send.sending { transform: rotate(360deg); transition: transform 300ms ease; }

/* ══════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   ANIMATIONS
══════════════════════════════════ */
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 100px 24px 60px; }
  .hero-image { min-height: 280px; }

  .services { padding: 80px 24px; }
  .service-row { grid-template-columns: 1fr; }
  .service-row.reversed { direction: ltr; }
  .service-image { min-height: 180px; }
  .service-info { padding: 32px 24px; }

  .about { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }

  .testimonials { padding: 80px 24px; }
  .faq { padding: 80px 24px; }
  .booking-cta { padding: 80px 24px; }

  .footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .chat-panel { width: calc(100vw - 48px); right: 24px; }
}
