/* Design System Variables - Based on Tailwind config and index.css */
:root {
  /* Colors - HSL format */
  --background: 0 0% 100%;
  --foreground: 215 25% 27%;

  --card: 0 0% 100%;
  --card-foreground: 215 25% 27%;

  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 27%;

  --primary: 207 35% 48%;
  --primary-foreground: 0 0% 100%;

  --secondary: 210 40% 96.1%;
  --secondary-foreground: 207 35% 48%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215 16% 47%;

  --accent: 207 50% 94%;
  --accent-foreground: 207 35% 48%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 207 35% 48%;

  --radius: 0.75rem;

  /* Spacing - Tailwind defaults */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;

  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Container */
  --container-padding: 2rem;
  --container-max-width: 1400px;
}

/* Base Styles */
* {
  border-color: hsl(var(--border));
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

@media (min-width: 640px) {
  .container {
    padding-left: var(--spacing-6);
    padding-right: var(--spacing-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--spacing-8);
    padding-right: var(--spacing-8);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-6xl); }
}

/* Utility Classes */
.min-h-screen {
  min-height: 100vh;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

.text-3xl {
  font-size: var(--font-size-3xl);
}

.text-4xl {
  font-size: var(--font-size-4xl);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mb-12 { margin-bottom: var(--spacing-12); }

.mt-6 { margin-top: var(--spacing-6); }
.mt-8 { margin-top: var(--spacing-8); }
.mt-12 { margin-top: var(--spacing-12); }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* Colors */
.bg-background { background-color: hsl(var(--background)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }

.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }

.border-border { border-color: hsl(var(--border)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-default:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-sm {
  height: 2.25rem;
  padding: 0 var(--spacing-3);
  border-radius: calc(var(--radius) - 2px);
}

.btn-default-size {
  height: 2.5rem;
  padding: 0 var(--spacing-4);
}

.btn-lg {
  height: 2.75rem;
  padding: 0 var(--spacing-8);
  border-radius: calc(var(--radius) - 2px);
}

.btn-rounded-full {
  border-radius: 9999px;
}

.btn-full {
  width: 100%;
}

.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

.rounded-full { border-radius: 9999px; }

.flex-shrink-0 { flex-shrink: 0; }


/* Cards */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: var(--spacing-6) var(--spacing-6) 0;
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0;
}

.card-content {
  padding: var(--spacing-6);
}

.card-content.pt-6 {
  padding-top: var(--spacing-6);
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gap-2 { gap: var(--spacing-2); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }

/* Flex */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.space-x-2 > * + * { margin-left: var(--spacing-2); }
.space-x-3 > * + * { margin-left: var(--spacing-3); }
.space-x-8 > * + * { margin-left: var(--spacing-8); }

.space-y-2 > * + * { margin-top: var(--spacing-2); }
.space-y-3 > * + * { margin-top: var(--spacing-3); }
.space-y-4 > * + * { margin-top: var(--spacing-4); }
.space-y-6 > * + * { margin-top: var(--spacing-6); }

/* Spacing */
.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }

.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }
.px-8 { padding-left: var(--spacing-8); padding-right: var(--spacing-8); }

.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }
.py-12 { padding-top: var(--spacing-12); padding-bottom: var(--spacing-12); }
.py-20 { padding-top: var(--spacing-20); padding-bottom: var(--spacing-20); }

.pt-2 { padding-top: var(--spacing-2); }
.pt-6 { padding-top: var(--spacing-6); }
.pt-8 { padding-top: var(--spacing-8); }

.pb-4 { padding-bottom: var(--spacing-4); }

/* Sections */
.section {
  padding: var(--spacing-20) 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-8);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.mobile-menu-btn {
  display: block;
  padding: var(--spacing-2);
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: hsl(var(--accent));
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: var(--spacing-4) 0;
  gap: var(--spacing-2);
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  display: block;
  padding: var(--spacing-2) var(--spacing-4);
  border-radius: calc(var(--radius) - 2px);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  color: hsl(var(--foreground));
}

.mobile-menu-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.mobile-menu-link.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(var(--background) / 0.95), hsl(var(--background) / 0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Accordion */
.accordion {
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-4) 0;
  font-weight: 500;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.accordion-trigger:hover {
  text-decoration: underline;
}

.accordion-trigger svg {
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.accordion-content[aria-hidden="true"] {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.accordion-content[aria-hidden="false"] {
  max-height: 1000px;
  padding-bottom: var(--spacing-4);
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-item {
  min-width: 0;
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 100%;
  padding-left: var(--spacing-4);
}

@media (min-width: 768px) {
  .carousel-item {
    flex-basis: 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex-basis: 33.333333%;
  }
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.carousel-nav:hover {
  background-color: hsl(var(--accent));
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .carousel-nav {
    display: flex;
  }
}

.carousel-prev {
  left: -3rem;
}

.carousel-next {
  right: -3rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2);
  margin-top: var(--spacing-6);
}

.carousel-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--muted-foreground) / 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.carousel-dot.active {
  width: 2rem;
  background-color: hsl(var(--primary));
}

/* Modal/Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--spacing-4);
}

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

.modal-content {
  background-color: hsl(var(--background));
  border-radius: var(--radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--spacing-4);
  right: var(--spacing-4);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
  z-index: 10;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-6);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: var(--spacing-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Aspect Ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.object-cover {
  object-fit: cover;
}

/* Hover Effects */
.hover-shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover-lift:hover {
  transform: translateY(-0.25rem);
  transition: transform 0.2s;
}

.transition-all {
  transition: all 0.2s;
}

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

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

@keyframes accordionDown {
  from {
    height: 0;
  }
  to {
    height: var(--accordion-height);
  }
}

@keyframes accordionUp {
  from {
    height: var(--accordion-height);
  }
  to {
    height: 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Utilities */
.opacity-90 {
  opacity: 0.9;
}

.leading-relaxed {
  line-height: 1.625;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Background gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, hsl(var(--primary) / 0.1), hsl(var(--accent) / 0.3));
}

.bg-accent-30 {
  background-color: hsl(var(--accent) / 0.3);
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Icon sizes */
.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Responsive text */
@media (min-width: 768px) {
  .md\:text-5xl {
    font-size: var(--font-size-5xl);
  }
}

@media (min-width: 1024px) {
  .lg\:text-6xl {
    font-size: var(--font-size-6xl);
  }
}

/* Hidden/Visible utilities */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
  .md\:hidden {
    display: none;
  }
}

/* Flex utilities for responsive */
@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  background-color: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: var(--spacing-12) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: var(--spacing-4);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--spacing-2);
}

.footer-section a {
  font-size: var(--font-size-sm);
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  margin-top: var(--spacing-12);
  padding-top: var(--spacing-8);
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  font-size: var(--font-size-sm);
  color: hsl(var(--muted-foreground));
}

.services-section .carousel-item {
  display: flex;
}

.services-section .carousel-item .p-1 {
  display: flex;
  width: 100%;
}

.services-section .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Control image area only in Services */
.services-section .card > div:first-child {
  height: 12rem;
  flex-shrink: 0;
}

.services-section .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Consistent spacing between title and text */
.services-section .card-header {
  padding: 1.25rem 1.25rem 0.5rem;
}

.services-section .card-content {
  padding: 0.75rem 1.25rem 1.25rem;
  flex-grow: 1;
}

/* Optional: keeps text heights consistent */
.services-section .card-content p {
  line-height: 1.5;
  min-height: 3.5em;
}

/* Base size (mobile) */
.responsive-logo {
  height: 4rem;   /* 64px */
  width: auto;
  max-width: 250px; /* prevents the logo from being too large */
}

/* Tablets */
@media (min-width: 640px) {
  .responsive-logo {
    height: 5rem;  /* 80px */
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .responsive-logo {
    height: 6rem;  /* 96px */
  }
}

@media (max-width: 767px) {
  .hero-btn-mobile {
    width: auto !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* Mobile call button improvements */
.mobile-call-btn {
  height: 3rem; /* thicker */
  padding: 0 1rem; /* reduce side spacing */
  width: auto; /* prevent full-width stretch */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* tighter gap between icon and text */
}

.hero-bg {
  background-image: url('hero-dental.webp');
}

.hero-bg {
  background-image: url('hero-dental.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Before & After slider styles ===== */
.ba-card { background: #fff; border-radius: 12px; padding: 0.75rem; box-shadow: 0 6px 18px rgba(2,6,23,0.06); }
  .ba-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 160px;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
  }

  /* images are direct elements in your markup */
  .ba-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; user-select:none; -webkit-user-drag:none; }
  .ba-before { z-index: 1; }
  .ba-after  { z-index: 2; /* initial center clip */ clip-path: inset(0 0 0 50%); -webkit-clip-path: inset(0 0 0 50%); transition: clip-path 0.06s linear; }

  /* Track & handle */
  .ba-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.9rem;
    height: 28px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index: 30;
    pointer-events: auto; /* clickable */
  }
  .ba-line {
    position:absolute; left: 1rem; right: 1rem; height:2px; background: hsl(var(--primary) / 0.95); border-radius:9999px; pointer-events:none;
  }
  .ba-handle {
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width:36px; height:36px;
    border-radius:9999px;
    background:white;
    border:3px solid hsl(var(--primary));
    box-shadow: 0 8px 20px rgba(16,24,40,0.08);
    display:flex; align-items:center; justify-content:center;
    cursor: grab;
    pointer-events: auto; /* must be interactive */
    touch-action: pan-x;
    z-index: 40;
  }
  .ba-handle:active { cursor:grabbing; }



