/* ==========================================================================
   Apexis Dental Studio — Version 3 Stylesheet
   Crafted with:
   - Anthropic Frontend-Design Skill (Intentionality, High Contrast, Precision)
   - Impeccable Craft Framework (Craft Floor, Rhythmic Grid, Micro-Interactions)
   - Architectural Medical Studio Direction (Full-Width Luminous Hero & 4-Card Dock)
   ========================================================================== */

:root {
  /* Brand Color Hierarchy */
  --color-brand-navy: #0B1528;
  --color-brand-slate: #1E293B;
  --color-brand-cyan: #00A8CC;
  --color-brand-cyan-hover: #0093B3;
  --color-brand-cyan-light: #E0F7FA;
  --color-brand-ocean: #008CA5;
  --color-brand-marine: #006F88;
  --color-brand-midnight: #0A4A5C;

  /* Neutrals & Surfaces */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-bg-subtle: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(11, 21, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 21, 40, 0.08), 0 2px 4px -2px rgba(11, 21, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 21, 40, 0.08), 0 4px 6px -4px rgba(11, 21, 40, 0.04);
  --shadow-dock: 0 20px 25px -5px rgba(11, 21, 40, 0.12), 0 8px 10px -6px rgba(11, 21, 40, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1400px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-brand-cyan);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Clear ownership and fictional-demo context without interrupting the design. */
.demo-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  background: #eaf8fb;
  color: #17394b;
  border-bottom: 1px solid rgba(0, 168, 204, 0.22);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.demo-notice p {
  margin: 0;
}

.demo-notice a {
  color: #007d99;
  font-weight: 700;
  white-space: nowrap;
}

.demo-notice a:hover,
.demo-notice a:focus-visible {
  color: #005f75;
  text-decoration: underline;
}

.demo-form-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--color-brand-cyan);
  background: #effafd;
  color: #385568;
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .demo-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.55rem 1rem;
  }
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-utility-bar {
  background-color: var(--color-brand-navy);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.utility-badge {
  background-color: var(--color-brand-cyan);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.utility-hours, .utility-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.utility-emergency {
  color: #fff;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.utility-emergency:hover {
  color: var(--color-brand-cyan);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.25rem;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand:hover .brand-logo-img {
  transform: scale(1.02);
}

.footer-logo-img {
  height: 36px;
  max-width: 210px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand-slate);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand-cyan);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-brand-cyan);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-brand-navy);
}
.nav-phone-link:hover {
  color: var(--color-brand-cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-brand-navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   GLASSY BUTTON SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(180deg, #02B8DE 0%, #009DC2 52%, #008AA4 100%);
  color: #FFFFFF;
  padding: 0.72rem 1.65rem;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 1px 0 rgba(0, 35, 55, 0.22),
    0 8px 20px -3px rgba(0, 168, 204, 0.42),
    0 2px 6px 0 rgba(0, 168, 204, 0.22);
  text-shadow: 0 1px 2px rgba(0, 30, 50, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #0AC6EC 0%, #02A8CF 52%, #0095B2 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 1px 0 rgba(0, 35, 55, 0.18),
    0 12px 28px -3px rgba(0, 168, 204, 0.55),
    0 4px 10px 0 rgba(0, 168, 204, 0.32);
}

.btn-primary:active {
  transform: translateY(0.5px);
  box-shadow: 
    inset 0 2px 4px 0 rgba(0, 35, 55, 0.35),
    0 4px 10px -2px rgba(0, 168, 204, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-brand-navy);
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 0.72rem 1.65rem;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px -3px rgba(11, 21, 40, 0.08),
    0 2px 5px 0 rgba(11, 21, 40, 0.04);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand-cyan);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1.5px 1.5px 0 #FFFFFF,
    0 10px 24px -3px rgba(0, 168, 204, 0.22),
    0 3px 8px 0 rgba(11, 21, 40, 0.06);
}

.btn-outline:active {
  transform: translateY(0.5px);
  box-shadow: 
    inset 0 1.5px 2px 0 rgba(11, 21, 40, 0.12),
    0 3px 8px -2px rgba(11, 21, 40, 0.08);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: 
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px -3px rgba(0, 0, 0, 0.25);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.6),
    0 10px 22px -3px rgba(0, 0, 0, 0.35);
}

.btn-hero {
  padding: 0.92rem 2.05rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.45rem 1.05rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   FULL-WIDTH LUMINOUS HERO SECTION
   ========================================================================== */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #F8FAFC;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  padding: 5rem 0 4.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 20px 40px -10px rgba(11, 21, 40, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.60);
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 168, 204, 0.08);
  border: 1px solid rgba(0, 168, 204, 0.2);
  color: var(--color-brand-marine);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-brand-cyan);
  border-radius: 50%;
}

.hero-eyebrow {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hero-heading {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-brand-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-accent {
  color: var(--color-brand-cyan);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.trust-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-slate);
}

.trust-marker svg {
  stroke: var(--color-brand-cyan);
}

/* ==========================================================================
   THE 4-CARD HERO ACTION DOCK (Faithful to TPG Medical Reference)
   ========================================================================== */
.action-dock-section {
  position: relative;
  margin-top: -2.5rem;
  z-index: 10;
  padding-bottom: 3.5rem;
}

.action-dock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow-dock);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dock-card {
  padding: 2.25rem 1.75rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.dock-card:hover {
  transform: translateY(-4px);
}

.dock-cyan {
  background-color: var(--color-brand-cyan);
}
.dock-ocean {
  background-color: var(--color-brand-ocean);
}
.dock-marine {
  background-color: var(--color-brand-marine);
}
.dock-midnight {
  background-color: var(--color-brand-midnight);
}

.dock-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.dock-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.dock-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.35rem;
}
.schedule-row:last-child {
  border-bottom: none;
}
.schedule-time {
  font-weight: 600;
}

.dock-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.dock-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dock-link:hover {
  color: #E0F7FA;
}

.dock-phone {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.dock-phone:hover {
  text-decoration: underline;
}

/* ==========================================================================
   SECTION HEADERS & SHARED STYLES
   ========================================================================== */
.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--color-brand-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-brand-cyan);
  margin: 1.25rem auto 0 auto;
  border-radius: 2px;
}

/* ==========================================================================
   CLINICAL PHILOSOPHY / CARE ABOUT YOU SECTION
   ========================================================================== */
.philosophy-section {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.image-card-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.philosophy-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.image-card-frame:hover .philosophy-img {
  transform: scale(1.02);
}

.media-floating-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: rgba(11, 21, 40, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}

.badge-icon {
  font-size: 1.25rem;
  color: #FFB800;
}

.badge-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
}
.badge-text span {
  display: block;
  font-size: 0.75rem;
  color: #94A3B8;
}

.sub-heading {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-brand-navy);
  margin-bottom: 1rem;
}

.body-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-brand-cyan-light);
  color: var(--color-brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-copy h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  margin-bottom: 0.25rem;
}

.pillar-copy p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.philosophy-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BEFORE & AFTER SMILE TRANSFORMATION SLIDER
   ========================================================================== */
.results-section {
  padding: 5rem 0;
  background-color: var(--color-bg-white);
}

.slider-showcase-container {
  max-width: 860px;
  margin: 0 auto;
}

.slider-comparison-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
  user-select: none;
  border: 1px solid var(--color-border);
}
.slider-comparison-box:focus-visible {
  outline: 3px solid var(--color-brand-cyan);
  outline-offset: 4px;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  will-change: width;
}

.slider-pill-badge {
  position: absolute;
  top: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.badge-before {
  right: 1.25rem;
  background-color: rgba(11, 21, 40, 0.75);
  color: #fff;
}

.badge-after {
  left: 1.25rem;
  background-color: rgba(0, 168, 204, 0.9);
  color: #fff;
}

.slider-handle-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background-color: #fff;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background-color: #fff;
  color: var(--color-brand-navy);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  gap: 2px;
}

.case-meta-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-navy);
  margin-top: 0.25rem;
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-section {
  padding: 5.5rem 0;
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
}

/* 21st.dev BENTO GRID SHOWCASE (3 Columns x 3 Rows) */
.bento-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 230px 230px 230px;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2.5rem;
}

.bento-card {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  border: 1px solid rgba(11, 21, 40, 0.08);
  box-shadow: 0 10px 25px -5px rgba(11, 21, 40, 0.04);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -6px rgba(0, 168, 204, 0.14);
  border-color: rgba(0, 168, 204, 0.35);
}

/* Slots positioning matching 21st.dev layout */
.bento-slot-1 {
  grid-column: 1;
  grid-row: 1;
  justify-content: space-between;
}

.bento-slot-2 {
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 0;
}

.bento-slot-3 {
  grid-column: 3;
  grid-row: 1;
  justify-content: center;
}

.bento-slot-4 {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
}

.bento-slot-5 {
  grid-column: 3;
  grid-row: 2 / span 2;
  background: linear-gradient(155deg, rgba(0, 168, 204, 0.08) 0%, rgba(11, 21, 40, 0.04) 100%);
  border: 1px solid rgba(0, 168, 204, 0.22);
  justify-content: space-between;
}

.bento-slot-6 {
  grid-column: 1;
  grid-row: 3;
  justify-content: space-between;
}

/* Card internals */
.bento-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.bento-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.bento-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bento-integrations-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.bento-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(0, 168, 204, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.bento-icon-pill:hover {
  transform: scale(1.08);
  background-color: rgba(0, 168, 204, 0.16);
}

/* Slot 2 & Slot 4 image cards */
.bento-image-card {
  position: relative;
}

.bento-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bento-floating-pill {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(11, 21, 40, 0.1);
}

.bento-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 21, 40, 0.88) 0%, rgba(11, 21, 40, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #fff;
}

.bento-overlay-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.bento-overlay-desc {
  font-size: 0.875rem;
  color: #E2E8F0;
  line-height: 1.45;
}

.bento-overlay-quote {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Slot 3: Tags stack */
.bento-tags-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.84375rem;
  font-weight: 600;
  transition: transform var(--transition-fast);
}

.bento-tag:hover {
  transform: translateX(4px);
}

.tag-cyan {
  background-color: rgba(0, 168, 204, 0.08);
  border: 1px solid rgba(0, 168, 204, 0.25);
  color: var(--color-brand-marine);
}

.tag-navy {
  background-color: var(--color-brand-navy);
  color: #FFFFFF;
}

.tag-plus {
  font-weight: 700;
  margin-left: 0.5rem;
}

/* Slot 5: Big Stat */
.bento-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  background-color: rgba(0, 168, 204, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-stat-number {
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--color-brand-navy);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.bento-stat-desc {
  font-size: 0.9375rem;
  color: var(--color-brand-slate);
  line-height: 1.5;
  font-weight: 500;
}

/* Slot 6: Avatar Constellation */
.bento-avatar-constellation {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 110px;
  height: 70px;
}

.constellation-avatar {
  position: absolute;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 21, 40, 0.15);
  object-fit: cover;
}

.avatar-1 {
  width: 46px;
  height: 46px;
  top: 0;
  right: 28px;
}

.avatar-2 {
  width: 42px;
  height: 42px;
  bottom: 0;
  right: 0;
}

/* Responsive */
@media (max-width: 1023px) {
  .bento-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-slot-1, .bento-slot-2, .bento-slot-3, .bento-slot-4, .bento-slot-5, .bento-slot-6 {
    grid-column: auto;
    grid-row: auto;
  }
  .bento-slot-2 {
    grid-column: 1 / -1;
    min-height: 420px;
  }
  .bento-slot-5 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .bento-showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-slot-2 {
    min-height: 360px;
  }
}

/* ==========================================================================
   INTERACTIVE CONSULTATION BOOKING SECTION
   ========================================================================== */
.booking-section {
  padding: 5rem 0;
  background-color: var(--color-bg-white);
}

.booking-card-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dock);
  border: 1px solid var(--color-border);
}

.booking-info-col {
  background-color: var(--color-brand-navy);
  color: #fff;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.text-white {
  color: rgba(255, 255, 255, 0.8) !important;
}

.booking-heading {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.booking-sub {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
}

.booking-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #E2E8F0;
}
.contact-item svg {
  stroke: var(--color-brand-cyan);
  flex-shrink: 0;
}

.booking-form-col {
  background-color: #fff;
  padding: 3.5rem 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-slate);
}

.required {
  color: #E11D48;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--color-text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.2);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #E11D48;
  background-color: #FFF1F2;
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #E11D48;
  font-weight: 500;
}
.error-msg.visible {
  display: block;
}

.btn-submit {
  width: auto;
  min-width: 250px;
  padding: 0.85rem 1.85rem;
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  align-self: flex-start;
}

.form-success-banner {
  display: none;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-brand-cyan-light);
  border: 1px solid var(--color-brand-cyan);
  color: var(--color-brand-midnight);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}
.form-success-banner.visible {
  display: flex;
}
.form-success-banner strong {
  display: block;
  font-size: 0.9375rem;
}
.form-success-banner p {
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   PATIENT STORIES & TESTIMONIALS (21st.dev MULTI-COLUMN MARQUEE)
   ========================================================================== */
.testimonials-section {
  padding: 6rem 0 5.5rem 0;
  background-color: #F8FAFC;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.testimonials-marquee-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  max-height: 680px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.testimonials-column {
  flex: 1;
  max-width: 380px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

.testimonials-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  will-change: transform;
}

.track-col-1 {
  animation: marqueeVertical 22s linear infinite;
}

.track-col-2 {
  animation: marqueeVertical 28s linear infinite;
}

.track-col-3 {
  animation: marqueeVertical 25s linear infinite;
}

.testimonials-marquee-wrap:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes marqueeVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.testimonial-card {
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(11, 21, 40, 0.08);
  box-shadow: 0 10px 25px -5px rgba(11, 21, 40, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px -5px rgba(0, 168, 204, 0.14);
  border-color: rgba(0, 168, 204, 0.35);
}

.testimonial-stars {
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  color: #F59E0B;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-brand-navy);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 168, 204, 0.3);
  flex-shrink: 0;
}

.testimonial-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  border: 2px solid rgba(0, 168, 204, 0.3);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 21, 40, 0.08);
  letter-spacing: 0.05em;
}

.badge-cyan { background: linear-gradient(135deg, #00A8CC 0%, #007799 100%); }
.badge-navy { background: linear-gradient(135deg, #0B1528 0%, #1E293B 100%); }
.badge-teal { background: linear-gradient(135deg, #0284C7 0%, #0F766E 100%); }
.badge-slate { background: linear-gradient(135deg, #334155 0%, #1E293B 100%); }
.badge-sky { background: linear-gradient(135deg, #0284C7 0%, #00A8CC 100%); }
.badge-marine { background: linear-gradient(135deg, #0369A1 0%, #0B1528 100%); }
.badge-cobalt { background: linear-gradient(135deg, #1D4ED8 0%, #1E3A8A 100%); }
.badge-emerald { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.badge-indigo { background: linear-gradient(135deg, #4338CA 0%, #312E81 100%); }

.verified-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-brand-navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.testimonial-procedure {
  font-size: 0.8125rem;
  color: var(--color-brand-cyan);
  font-weight: 600;
  margin-top: 0.2rem;
}

@media (max-width: 1023px) {
  .testimonials-column.col-3 {
    display: none;
  }
}

@media (max-width: 767px) {
  .testimonials-column.col-2 {
    display: none;
  }
  .testimonials-column {
    max-width: 100%;
  }
}

/* ==========================================================================
   ARCHITECTURAL FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-brand-navy);
  color: #fff;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  margin-bottom: 1rem;
}

.text-cyan {
  color: var(--color-brand-cyan) !important;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-license {
  font-size: 0.75rem;
  color: #64748B;
  display: block;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #fff;
  letter-spacing: 0.02em;
}

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

.footer-links a {
  color: #CBD5E1;
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: var(--color-brand-cyan);
}

.footer-info-text {
  font-size: 0.875rem;
  color: #CBD5E1;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.emergency-footer-box {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 168, 204, 0.15);
  border: 1px solid rgba(0, 168, 204, 0.3);
}
.emergency-footer-box span {
  display: block;
  font-size: 0.75rem;
  color: #E0F7FA;
}
.emergency-footer-box strong {
  display: block;
  font-size: 1.125rem;
  color: #fff;
}

.footer-btn {
  margin-top: 0.75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a:hover {
  color: #CBD5E1;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-fullwidth {
    background-image: url('images/hero-dental-cinematic.png');
    background-position: center;
  }

  .action-dock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-img {
    height: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-card-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .top-utility-bar {
    display: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-fullwidth {
    padding: 3rem 0;
    min-height: auto;
    background-image: url('images/hero-dental-cinematic.png');
    background-position: center;
  }

  .action-dock-section {
    margin-top: 0;
    padding-top: 2rem;
  }

  .action-dock-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .case-meta-dock {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SCROLL REVEAL / FADE-IN ANIMATIONS
   ========================================================================== */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-in-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   AI CHATBOT WIDGET (APEXIS AI CONCIERGE)
   ========================================================================== */
.chatbot-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: inherit;
}

.chatbot-launcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0B1528 0%, #00A8CC 140%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 168, 204, 0.35);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(11, 21, 40, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 168, 204, 0.35);
}

.launcher-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-cyan);
}

.launcher-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Chatbot Window */
.chatbot-window {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background-color: #FFFFFF;
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px -10px rgba(11, 21, 40, 0.25), 0 0 0 1px rgba(11, 21, 40, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
  background-color: var(--color-brand-navy);
  color: #FFFFFF;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-cyan);
  object-fit: cover;
}

.chatbot-header-info h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.chatbot-close-btn:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Messages Body */
.chatbot-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background-color: #F8FAFC;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: chatMsgFade 0.25s ease-out forwards;
}

@keyframes chatMsgFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.message-bubble {
  padding: 0.85rem 1.05rem;
  border-radius: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.chat-message.bot .message-bubble {
  background-color: #FFFFFF;
  color: var(--color-brand-navy);
  border: 1px solid rgba(11, 21, 40, 0.08);
  border-top-left-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(11, 21, 40, 0.03);
}

.chat-message.user .message-bubble {
  background: linear-gradient(135deg, #00A8CC 0%, #0088A8 100%);
  color: #FFFFFF;
  border-top-right-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 168, 204, 0.25);
}

.message-time {
  font-size: 0.6875rem;
  color: #94A3B8;
  margin-top: 0.25rem;
}

.chat-message.bot .message-time { margin-left: 0.25rem; }
.chat-message.user .message-time { align-self: flex-end; margin-right: 0.25rem; }

/* Quick Action Chips */
.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 168, 204, 0.32);
  color: var(--color-brand-navy);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 168, 204, 0.1);
}

.chip-btn:hover {
  background: var(--color-brand-cyan-light);
  border-color: var(--color-brand-cyan);
  color: var(--color-brand-marine);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 1.5px #FFFFFF, 0 4px 12px rgba(0, 168, 204, 0.25);
}

/* Typing indicator */
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #94A3B8;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* Chat Input Bar */
.chatbot-input-bar {
  padding: 0.85rem 1rem;
  background-color: #FFFFFF;
  border-top: 1px solid rgba(11, 21, 40, 0.08);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chatbot-input {
  flex: 1;
  border: 1px solid rgba(11, 21, 40, 0.12);
  border-radius: var(--radius-full);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  outline: none;
  background-color: #F8FAFC;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.chatbot-input:focus {
  border-color: var(--color-brand-cyan);
  background-color: #FFFFFF;
}

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand-cyan);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.chatbot-send-btn:hover {
  background-color: var(--color-brand-cyan-hover);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .chatbot-launcher span {
    display: none;
  }
  .chatbot-launcher {
    padding: 0.85rem;
  }
}
