/* ============================================
   VAIDANT DENTAL CARE — Design System & Styles
   ============================================ */

/* ----- CSS Custom Properties ----- */
:root {
  --color-primary: #7CB342;
  --color-primary-dark: #558B2F;
  --color-primary-darker: #33691E;
  --color-primary-light: #AED581;
  --color-primary-lightest: #F1F8E9;
  --color-accent: #E8A0BF;
  --color-accent-dark: #D4749B;
  --color-accent-light: #F5D5E5;
  --color-accent-lightest: #FDF0F5;
  --color-text: #1A1A2E;
  --color-text-secondary: #4A4A68;
  --color-text-light: #6E6E8A;
  --color-bg: #FAFBF9;
  --color-bg-alt: #F4F7F0;
  --color-white: #FFFFFF;
  --color-border: #E2E8D8;
  --color-dark: #16213E;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --section-padding: clamp(60px, 8vw, 120px);
  --container-width: 1200px;
  --container-padding: clamp(16px, 4vw, 32px);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

/* ----- Typography ----- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  max-width: 65ch;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--section-padding) 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================ NAVIGATION ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.navbar.scrolled {
  padding: 8px 0;
}

/* Dynamic Adaptive Navbar Themes */
.navbar.nav-theme-dark {
  background: rgba(27, 67, 50, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar.nav-theme-dark .navbar-logo-text,
.navbar.nav-theme-dark .nav-links a {
  color: #FFFFFF !important;
}

.navbar.nav-theme-dark .navbar-logo-text span {
  color: #AED581 !important;
}

.navbar.nav-theme-dark .nav-links a:hover,
.navbar.nav-theme-dark .nav-links a.active {
  color: #AED581 !important;
}

.navbar.nav-theme-dark .nav-links a::after {
  background: #AED581 !important;
}

.navbar.nav-theme-dark .mobile-toggle span {
  background: #FFFFFF !important;
}

.navbar.nav-theme-light {
  background: rgba(244, 247, 240, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar.nav-theme-light .navbar-logo-text,
.navbar.nav-theme-light .nav-links a {
  color: #1A1A2E !important;
}

.navbar.nav-theme-light .navbar-logo-text span {
  color: #558B2F !important;
}

.navbar.nav-theme-light .nav-links a:hover,
.navbar.nav-theme-light .nav-links a.active {
  color: #558B2F !important;
}

.navbar.nav-theme-light .nav-links a::after {
  background: #558B2F !important;
}

.navbar.nav-theme-light .mobile-toggle span {
  background: #1A1A2E !important;
}

/* ===== SECTION ALTERNATING THEMES ===== */
.theme-dark-green {
  background: #1b4332 !important;
  color: rgba(255, 255, 255, 0.9);
}

.theme-dark-green h2,
.theme-dark-green h3,
.theme-dark-green h4 {
  color: #FFFFFF !important;
}

.theme-dark-green p,
.theme-dark-green .section-description {
  color: rgba(255, 255, 255, 0.85) !important;
}

.theme-dark-green .section-label {
  color: #AED581 !important;
}

.theme-dark-green .section-label::before {
  background: #AED581 !important;
}

.theme-dark-green .doctor-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.theme-dark-green .doctor-info p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.theme-dark-green .why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.theme-dark-green .why-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.theme-dark-green .why-card-icon {
  background: rgba(255, 255, 255, 0.15);
}

.theme-dark-green .why-card-icon svg {
  stroke: #AED581;
}

.theme-dark-green .why-card:hover .why-card-icon {
  background: #7CB342;
}

.theme-dark-green .why-card:hover .why-card-icon svg {
  stroke: #FFFFFF;
}

.theme-dark-green .hours-card,
.theme-dark-green .map-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}

.theme-dark-green .hours-table tr {
  border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

.theme-dark-green .hours-table td {
  color: rgba(255, 255, 255, 0.9) !important;
}

.theme-dark-green .hours-table td:first-child {
  color: #FFFFFF !important;
}

.theme-dark-green .hours-table tr.closed td {
  color: #E8A0BF !important;
}

.theme-dark-green .map-card-info .address {
  color: rgba(255, 255, 255, 0.9) !important;
}

.theme-dark-green .map-card-info .address svg {
  stroke: #AED581 !important;
}

.theme-dark-green .directions-link {
  color: #AED581 !important;
}

.theme-light-green {
  background: #F4F7F0 !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1001;
}

.navbar-logo img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

.navbar-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
}

.navbar-logo-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
}

.nav-cta::after {
  display: none !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================ HERO ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background: #F4F7F0;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 15px;
  height: 15px;
  fill: var(--color-primary);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 179, 66, 0.2);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
}

.hero-trust-item strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.hero-trust-item span {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  opacity: 0;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
}

.hero-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: -16px;
  left: -24px;
  background: var(--color-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.hero-floating-card .card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-lightest);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-card .card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}

.hero-floating-card .card-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
}

.hero-floating-card .card-text span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

/* ============================================ ABOUT ============================================ */
.about {
  background: var(--color-white);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content p {
  margin-bottom: 20px;
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--color-primary-lightest);
  border-radius: var(--radius-md);
  margin-top: 32px;
  border: 1px solid var(--color-border);
}

.doctor-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info h3 {
  margin-bottom: 2px;
  font-size: 1.2rem;
}

.doctor-info p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================ SERVICES ============================================ */
.services {
  background: var(--color-bg-alt);
}

.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header p {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
  border-color: var(--color-primary-light);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-base);
}

.service-card:hover .service-icon svg {
  stroke: var(--color-white);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ============================================ WHY CHOOSE US ============================================ */
.why-us {
  background: var(--color-white);
}

.why-us-header {
  text-align: center;
  margin-bottom: 56px;
}

.why-us-header p {
  margin: 0 auto;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.why-card:hover {
  background: var(--color-primary-lightest);
}

.why-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary-lightest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.why-card:hover .why-card-icon {
  background: var(--color-primary);
  transform: scale(1.1);
}

.why-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition-base);
}

.why-card:hover .why-card-icon svg {
  stroke: var(--color-white);
}

.why-card h3 {
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.92rem;
  margin: 0 auto;
}

/* ============================================ HOURS & LOCATION ============================================ */
.hours-location {
  background: var(--color-white);
}

.hours-location-header {
  text-align: center;
  margin-bottom: 56px;
}

.hours-location-header p {
  margin: 0 auto;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hours-card {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hours-card h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hours-card h3 svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 12px 0;
  font-size: 0.92rem;
}

.hours-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-secondary);
}

.hours-table tr.closed td {
  color: var(--color-accent-dark);
}

.hours-table tr.closed td:last-child {
  font-weight: 600;
  color: var(--color-accent-dark);
}

.map-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-card iframe {
  width: 100%;
  height: 280px;
  border: none;
}

.map-card-info {
  padding: 24px;
}

.map-card-info .address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.map-card-info .address svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.map-card-info .directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
}

.map-card-info .directions-link:hover {
  color: var(--color-primary);
}

.map-card-info .directions-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ============================================ CLINIC FACILITIES GALLERY CAROUSEL ============================================ */
.gallery {
  background: var(--color-bg-alt);
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header p {
  margin: 0 auto;
}

/* ============================================ 3D COVERFLOW CYCLIC CAROUSEL ============================================ */
.gallery-carousel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0 30px;
}

.carousel-3d {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
}

.carousel-3d-card {
  position: absolute;
  width: 60%;
  max-width: 560px;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.35, 1),
              opacity 0.55s cubic-bezier(0.25, 1, 0.35, 1),
              filter 0.55s cubic-bezier(0.25, 1, 0.35, 1),
              box-shadow 0.55s cubic-bezier(0.25, 1, 0.35, 1);
  border: 4px solid var(--color-white);
  background: #111;
  user-select: none;
  will-change: transform, opacity, filter;
}

.carousel-3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Position Classes */
.carousel-3d-card.pos-center {
  z-index: 10;
  transform: translateX(0) scale(1.05);
  opacity: 1;
  filter: blur(0px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.carousel-3d-card.pos-left {
  z-index: 5;
  transform: translateX(-48%) scale(0.82);
  opacity: 0.6;
  filter: blur(4px);
  cursor: pointer;
}

.carousel-3d-card.pos-left:hover {
  opacity: 0.85;
  filter: blur(2px);
}

.carousel-3d-card.pos-right {
  z-index: 5;
  transform: translateX(48%) scale(0.82);
  opacity: 0.6;
  filter: blur(4px);
  cursor: pointer;
}

.carousel-3d-card.pos-right:hover {
  opacity: 0.85;
  filter: blur(2px);
}

.carousel-3d-card.pos-hidden-left {
  z-index: 1;
  transform: translateX(-95%) scale(0.65);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.carousel-3d-card.pos-hidden-right {
  z-index: 1;
  transform: translateX(95%) scale(0.65);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

/* Overlay for Center Active Card */
.carousel-3d-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
  color: #fff;
  z-index: 12;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.carousel-3d-card:not(.pos-center) .carousel-3d-overlay {
  opacity: 0;
}

.carousel-3d-caption {
  display: none;
}

.carousel-3d-counter {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Nav Arrow Buttons */
.carousel-3d-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-white);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-3d-nav:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.12);
}

.carousel-3d-nav.prev {
  left: -10px;
}

.carousel-3d-nav.next {
  right: -10px;
}

.carousel-3d-nav svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 992px) {
  .carousel-3d-stage {
    height: 400px;
  }

  .carousel-3d-card {
    width: 68%;
    height: 350px;
  }

  .carousel-3d-card.pos-left {
    transform: translateX(-40%) scale(0.82);
  }

  .carousel-3d-card.pos-right {
    transform: translateX(40%) scale(0.82);
  }

  .carousel-3d-nav.prev {
    left: 0px;
  }

  .carousel-3d-nav.next {
    right: 0px;
  }
}

@media (max-width: 600px) {
  .carousel-3d-stage {
    height: 320px;
  }

  .carousel-3d-card {
    width: 78%;
    height: 280px;
  }

  .carousel-3d-card.pos-left {
    transform: translateX(-32%) scale(0.8);
    opacity: 0.45;
  }

  .carousel-3d-card.pos-right {
    transform: translateX(32%) scale(0.8);
    opacity: 0.45;
  }

  .carousel-3d-caption {
    font-size: 0.92rem;
  }

  .carousel-3d-nav {
    width: 42px;
    height: 42px;
  }

  .carousel-3d-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .carousel-stage {
    aspect-ratio: 4 / 3;
  }

  .carousel-caption {
    font-size: 0.95rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-thumb {
    flex: 0 0 76px;
    height: 56px;
  }
}

@media(max-width:1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:480px) {
  .gallery-grid {
    grid-template-columns: 1fr
  }
}



/* ----- Contact CTA Section ----- */
.contact-cta {
  padding: var(--section-padding) 0;
  text-align: center;
  width: 100%;
  margin: 0;
  border-radius: 0;
}

.contact-cta.theme-light-green {
  background: #F4F7F0 !important;
  color: var(--color-text) !important;
}

.contact-cta.theme-light-green h2 {
  color: #1A1A2E !important;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-cta.theme-light-green p {
  color: #4A4A68 !important;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}


.contact-info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #4A4A68;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary-dark);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-info-item a {
  color: #1A1A2E;
  font-weight: 600;
}

.contact-info-item a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ============================================ FOOTER ============================================ */
.footer {
  background: #1b4332 !important;
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.footer-logo-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: #AED581;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: #AED581;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item a:hover {
  color: #AED581;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
  color: #AED581;
}

/* ============================================ SCROLL REVEAL ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.revealed>*:nth-child(1) {
  transition-delay: 0.05s
}

.reveal-stagger.revealed>*:nth-child(2) {
  transition-delay: 0.1s
}

.reveal-stagger.revealed>*:nth-child(3) {
  transition-delay: 0.15s
}

.reveal-stagger.revealed>*:nth-child(4) {
  transition-delay: 0.2s
}

.reveal-stagger.revealed>*:nth-child(5) {
  transition-delay: 0.25s
}

.reveal-stagger.revealed>*:nth-child(6) {
  transition-delay: 0.3s
}

.reveal-stagger.revealed>*:nth-child(7) {
  transition-delay: 0.35s
}

.reveal-stagger.revealed>*:nth-child(8) {
  transition-delay: 0.4s
}

.reveal-stagger.revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================ RESPONSIVE ============================================ */
@media(max-width:1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto
  }

  .hero-subtitle {
    margin: 0 auto 36px
  }

  .hero-actions {
    justify-content: center
  }

  .hero-trust {
    justify-content: center
  }

  .hero-visual {
    display: none
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 40px
  }

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

  .footer-brand {
    grid-column: 1/-1
  }
}

@media(max-width:768px) {
  .navbar {
    padding: 6px 0 !important;
  }

  .navbar-logo {
    gap: 10px !important;
  }

  .navbar-logo img {
    width: 42px !important;
    height: 42px !important;
  }

  .navbar-logo-text {
    font-size: 1.05rem !important;
  }

  .navbar-logo-text span {
    font-size: 0.62rem !important;
    letter-spacing: 0.12em !important;
  }

  .hero {
    padding-top: 76px !important;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base), background-color 0.4s ease
  }

  /* Drawer mirrors navbar theme */
  .navbar.nav-theme-light .nav-links {
    background: #F4F7F0;
  }

  .navbar.nav-theme-dark .nav-links {
    background: #1b4332;
  }

  /* Fallback when no theme class set yet */
  .navbar:not(.nav-theme-dark):not(.nav-theme-light) .nav-links {
    background: #F4F7F0;
  }

  .nav-links.open {
    right: 0
  }

  .nav-links a {
    font-size: 1.1rem
  }

  /* Drawer link colors per theme */
  .navbar.nav-theme-dark .nav-links a {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .navbar.nav-theme-dark .nav-links a:hover,
  .navbar.nav-theme-dark .nav-links a.active {
    color: #AED581 !important;
  }

  .navbar.nav-theme-light .nav-links a {
    color: var(--color-text) !important;
  }

  .navbar.nav-theme-light .nav-links a:hover,
  .navbar.nav-theme-light .nav-links a.active {
    color: var(--color-primary-dark) !important;
  }

  .mobile-toggle {
    display: flex
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999
  }

  .mobile-overlay.active {
    opacity: 1;
    visibility: visible
  }

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

  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .hours-grid {
    grid-template-columns: 1fr
  }

  .hero-trust {
    flex-direction: column;
    gap: 16px;
    align-items: center
  }

  .contact-info-row {
    flex-direction: column;
    align-items: center;
    gap: 16px
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center
  }
}

@media(max-width:480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .hero-actions .btn {
    justify-content: center
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px
  }

  .contact-actions .btn {
    justify-content: center
  }
}