/* =========================================
   CLINICA SONRISAS SANAS - styles.css
   Neomorphism Design System - Blue Theme
   ========================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --primary: #1a6fb5;
  --primary-dark: #0d5a9e;
  --primary-light: #e8f4fd;
  --accent: #00b4d8;
  --accent-light: #e0f7fc;
  --bg: #f0f4f8;
  --surface: #e8edf2;
  --text: #1a2332;
  --text-muted: #5a6a7e;
  --shadow-light: #ffffff;
  --shadow-dark: #c8d0da;
  --neu-raised: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  --neu-raised-lg: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
  --neu-pressed: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  --neu-pressed-sm: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Albert Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Neomorphism Utilities ---- */
.neu-card {
  background: var(--bg);
  box-shadow: var(--neu-raised);
  transition: box-shadow var(--transition);
}

.neu-card-sm {
  background: var(--bg);
  box-shadow: 3px 3px 7px var(--shadow-dark), -3px -3px 7px var(--shadow-light);
}

.neu-btn {
  background: var(--bg);
  box-shadow: var(--neu-raised);
  transition: box-shadow var(--transition), transform var(--transition);
}

.neu-btn:hover {
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.neu-btn:active {
  box-shadow: var(--neu-pressed);
  transform: scale(0.98);
}

/* ---- Typography ---- */
.font-display {
  font-family: 'Gloock', serif;
}

em {
  font-style: italic;
  color: var(--primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 10px rgba(26, 111, 181, 0.35), -2px -2px 6px rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.btn-primary:hover {
  box-shadow: 6px 6px 14px rgba(26, 111, 181, 0.45), -3px -3px 8px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 2px 2px 6px rgba(26, 111, 181, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  color: var(--primary);
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid rgba(26, 111, 181, 0.2);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--neu-raised);
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  transform: translateY(-2px);
}

.btn-secondary:active {
  box-shadow: var(--neu-pressed);
  transform: translateY(0);
}

/* ---- Section Badge ---- */
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  box-shadow: var(--neu-pressed-sm);
}

/* ---- Header ---- */
#header {
  background: rgba(240, 244, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  border-bottom-color: var(--surface);
  box-shadow: 0 4px 24px rgba(26, 111, 181, 0.08);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Hero ---- */
.hero-mesh-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(26, 111, 181, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 180, 216, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(26, 111, 181, 0.08) 0%, transparent 70%),
    var(--bg);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(26, 111, 181, 0.15) 0%, transparent 70%);
  animation: orbFloat1 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, transparent 70%);
  animation: orbFloat2 10s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(26, 111, 181, 0.08) 0%, transparent 70%);
  animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.08); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-20px, 10px); }
  66% { transform: translate(15px, -15px); }
}

/* Hero floating cards */
.hero-float-card {
  animation-fill-mode: both;
}

.card-1 {
  top: 10%;
  left: 0;
  animation: floatCard1 6s ease-in-out infinite;
}

.card-2 {
  top: 0;
  right: 5%;
  animation: floatCard2 7s ease-in-out infinite 0.5s;
}

.card-3 {
  bottom: 5%;
  left: 5%;
  animation: floatCard1 8s ease-in-out infinite 1s;
}

.card-4 {
  bottom: 15%;
  right: 0;
  animation: floatCard2 6.5s ease-in-out infinite 0.8s;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

/* Icon bubble */
.icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--neu-pressed-sm);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-dot {
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(6px); }
}

/* ---- Services ---- */
.service-card {
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-pressed-sm);
}

.service-img-preview {
  box-shadow: var(--neu-pressed-sm);
}

/* ---- About section ---- */

/* ---- Testimonials ---- */
.testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Gloock', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.12;
  position: absolute;
  top: 12px;
  left: 20px;
}

.testimonial-card:hover {
  box-shadow: var(--neu-raised-lg);
  transform: translateY(-3px);
}

.avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 3px 3px 8px rgba(26, 111, 181, 0.3);
}

.avatar-initials.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 3px 3px 8px rgba(0, 180, 216, 0.3);
}

/* ---- Gallery ---- */
.gallery-item {
  display: block;
  cursor: pointer;
  border: none;
  text-align: left;
  padding: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--neu-raised-lg);
  transform: translateY(-4px);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 111, 181, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.hidden {
  display: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-family: 'Albert Sans', sans-serif;
}

/* ---- CTA Section ---- */
.cta-card {
  background: var(--bg);
}

.cta-bg-pattern {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(26, 111, 181, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 30%, rgba(0, 180, 216, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ---- Contact Form ---- */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: 'Albert Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  box-shadow: var(--neu-pressed-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: var(--neu-pressed-sm), 0 0 0 3px rgba(26, 111, 181, 0.12);
}

.form-input:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235a6a7e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 40px;
}

/* ---- Contact Icons ---- */
.contact-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-pressed-sm);
  flex-shrink: 0;
}

/* ---- Footer ---- */
.footer-section {
  background: var(--surface);
  border-top: 1px solid var(--shadow-dark);
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-raised);
  transition: all var(--transition);
  text-decoration: none;
}

.social-btn:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

/* ---- Reveal Animations ---- */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ---- AI Chat Widget ---- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-tooltip {
  position: relative;
  background: var(--bg);
  box-shadow: var(--neu-raised);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  animation: tooltipPulse 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.chat-tooltip-arrow {
  position: absolute;
  bottom: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  box-shadow: 3px 3px 6px var(--shadow-dark);
  transform: rotate(45deg);
  clip-path: polygon(0% 50%, 50% 100%, 100% 50%, 50% 0%);
}

@keyframes tooltipPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.chat-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(26, 111, 181, 0.4),
    0 0 0 0 rgba(26, 111, 181, 0.4);
  transition: all var(--transition);
  animation: chatPulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  position: relative;
}

.chat-toggle-btn.chat-open {
  animation: none;
  box-shadow: 0 8px 24px rgba(26, 111, 181, 0.5);
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(26, 111, 181, 0.5);
}

.chat-toggle-btn:active {
  transform: scale(0.95);
}

@keyframes chatPulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(26, 111, 181, 0.4),
      0 0 0 0 rgba(26, 111, 181, 0.4);
  }
  50% {
    box-shadow:
      0 8px 24px rgba(26, 111, 181, 0.4),
      0 0 0 16px rgba(26, 111, 181, 0);
  }
}

/* Chat Panel */
.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--bg);
  border-radius: 20px;
  box-shadow: var(--neu-raised-lg), 0 20px 60px rgba(26, 111, 181, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: chatSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-panel.hidden {
  display: none;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-panel-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-messages {
  flex: 1;
  height: 300px;
  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: var(--shadow-dark);
  border-radius: 2px;
}

/* Message bubbles */
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: slideUp 0.25s ease;
}

.chat-msg.assistant {
  background: var(--surface);
  box-shadow: 2px 2px 6px var(--shadow-dark), -2px -2px 6px var(--shadow-light);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 3px 3px 10px rgba(26, 111, 181, 0.3);
}

.chat-typing {
  align-self: flex-start;
  background: var(--surface);
  box-shadow: 2px 2px 6px var(--shadow-dark), -2px -2px 6px var(--shadow-light);
  padding: 12px 16px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: typingDot 1.2s ease-in-out infinite;
  display: block;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat input */
.chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid var(--surface);
  background: var(--bg);
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  border-radius: 50px;
  padding: 4px 4px 4px 16px;
  box-shadow: var(--neu-pressed-sm);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Albert Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.chat-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 2px 2px 8px rgba(26, 111, 181, 0.35);
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 3px 3px 12px rgba(26, 111, 181, 0.45);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-cards-container {
    display: none;
  }

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

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 16px;
    right: 16px;
  }
}

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-float-card,
  .orb-1,
  .orb-2,
  .orb-3 {
    animation: none !important;
  }

  .chat-toggle-btn {
    animation: none !important;
  }
}

/* ---- Utility ---- */
.container {
  max-width: 1200px;
}
