/* =========================================================
   DESIGN TOKENS  (extracted from dentisttemplate.webflow.io)
   ========================================================= */
:root {
  --primary:       #5d4fff;
  --primary-dark:  #4a3aff;
  --primary-light: #f2f1fe;   /* --secondary-1 */
  --neutral-800:   #181443;
  --neutral-700:   #1e1b42;
  --neutral-600:   #625d7e;
  --neutral-500:   #9693b8;
  --neutral-400:   #d9d8e5;
  --neutral-300:   #efeef6;
  --neutral-200:   #faf9fc;
  --neutral-100:   #ffffff;
  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --shadow:        0 8px 32px rgba(8,15,52,.10);
  --shadow-hover:  0 16px 40px rgba(8,15,52,.15);
  --transition:    .35s cubic-bezier(.22,.68,0,1.2);
}

/* =========================================================  BASE  */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  line-height: 1.667em;
  color: var(--neutral-600);
  background: var(--neutral-100);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--neutral-800);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}
h1 { font-size: clamp(40px, 5vw, 58px); letter-spacing: -.01em; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 22px; }
p  { margin: 0 0 16px; }
ul { list-style: none; margin: 0; padding: 0; }

.title { margin: 0 0 16px; }

.subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.subtitle.badge {
  background: #fff;
  border: 1px solid rgba(93,79,255,.15);
  border-radius: 50px;
  padding: 10px 20px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(24,20,67,.06);
  font-size: 16px;
  margin-bottom: 24px;
}

/* =========================================================  LAYOUT  */
.container-default {
  max-width: 1268px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* =========================================================  BUTTONS  */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-sm { padding: 14px 20px; font-size: 14px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(93,79,255,.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(93,79,255,.45);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--neutral-400);
  color: var(--neutral-700);
}
.btn-ghost:hover {
  border-color: var(--neutral-700);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(93,79,255,.18);
}
.btn-ghost-white {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(55,48,136,.5);
}

/* learn-more underline animation */
.learn-more-wrap {
  display: inline-flex;
  flex-direction: column;
  color: var(--primary);
  font-weight: 700;
  margin-top: 16px;
  font-size: 16px;
}
.learn-more-wrap .underline {
  height: 2px;
  background: var(--primary);
  width: 0;
  transition: width .3s ease;
}
a:hover .learn-more-wrap .underline,
.blog-card:hover .underline { width: 100%; }

/* =========================================================  HEADER / NAV  */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--neutral-300);
  transition: box-shadow .3s;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(24,20,67,.08);
}

/* 3-column grid: logo | (centered nav) | right buttons */
.header-wrapper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 80px;
  gap: 24px;
  position: relative; /* for hamburger absolute positioning */
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo { height: 56px; width: auto; display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.header.scrolled .brand-name { color: var(--navy); }
.brand-subtitle {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Center the nav inside its 1fr cell */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-700);
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Cart badge */
.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  line-height: 1;
  flex-shrink: 0;
}

/* Pages dropdown */
.dropdown-wrapper { position: relative; }
.dropdown-chevron {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform .25s;
}
.dropdown-wrapper.open .dropdown-chevron { transform: rotate(180deg); }

.mega-dropdown {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--neutral-300);
  box-shadow: 0 16px 40px rgba(24,20,67,.10);
  padding: 32px 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 99;
}
.dropdown-wrapper.open .mega-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-dropdown-inner {
  display: flex;
  gap: 48px;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}
.mega-col { flex: 1; }
.mega-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--neutral-500);
  margin-bottom: 12px;
}
.mega-link {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--neutral-700);
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.mega-link:hover, .mega-link.active { background: var(--primary-light); color: var(--primary); }
.mega-link.special { color: var(--primary); font-weight: 700; }

/* Header right buttons */
.header-phone {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-800);
  background: #fff;
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.header-phone:hover {
  border-color: var(--neutral-400);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.header-cta { padding: 12px 24px; font-size: 15px; }

/* Hamburger — hidden on desktop, absolute so it doesn't affect grid */
.hamburger {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-800);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switcher-desktop {
  padding-left: 8px;
  border-left: 1px solid var(--neutral-300);
  margin-right: 4px;
}
.lang-switcher-mobile {
  /* mobile-only, overridden below */
  display: none;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral-600);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
  white-space: nowrap;
  line-height: 1;
}
.lang-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(93,79,255,.18);
  transform: translateY(-1px);
}
.lang-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(93,79,255,.22);
}
.lang-flag { font-size: 17px; line-height: 1; }
.lang-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* =========================================================  RESPONSIVE NAV  */
@media (max-width: 900px) {
  /* Collapse to logo + hamburger */
  .header-wrapper { grid-template-columns: 1fr auto; }
  .header-right  { display: none; }
  .hamburger     { display: flex; position: static; transform: none; }

  /* Full-screen mobile menu */
  .nav-menu {
    display: none;
    position: fixed;
    inset: 80px 0 0 0;
    background: #fff;
    border-top: 1px solid var(--neutral-300);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 98;
    justify-content: flex-start;
  }
  .nav-menu.open { display: flex; }

  .header-navigation {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2px;
  }
  .nav-link { font-size: 16px; padding: 12px 14px; width: 100%; }

  /* Mega dropdown: inline on mobile */
  .mega-dropdown {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 4px;
    display: none;
  }
  .dropdown-wrapper.open .mega-dropdown { display: block; }
  .mega-dropdown-inner { flex-direction: column; gap: 16px; padding: 0; max-width: 100%; }

  /* Hide desktop lang switcher, show mobile one */
  .lang-switcher-desktop { display: none; }
  .lang-switcher-mobile {
    display: flex;
    border-top: 1px solid var(--neutral-300);
    margin-top: 8px;
    padding-top: 12px;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .lang-btn { padding: 8px 14px; font-size: 14px; }
}

/* =========================================================  HERO  */
.hero-section {
  padding-top: 180px;
  padding-bottom: 100px;
  background: #fff;
  position: relative;
  overflow: hidden;
  /* min-height ensures image has enough room */
  min-height: 680px;
}

/* Accent text colour (used in headline) */
.accent-text { color: var(--primary); }

/* Decorative shapes */
.hero-shape-left {
  position: absolute;
  left: 0; bottom: 0;
  height: 60%; opacity: .6; z-index: 0;
  pointer-events: none;
}
.hero-shape-right {
  position: absolute; right: 0; top: 0; height: 100%; z-index: 0;
  pointer-events: none;
}

/* Quarter-circle decoration at the image boundary.
   Full circle centre sits exactly at (50%, 0) of the hero.
   - overflow:hidden on .hero-section clips the top half
   - .hero-img-wrapper (z-index:1) covers the right half
   → only the bottom-left quadrant remains visible */
.hero-circle {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.75;
  /* Centre on the top edge, right at the image start */
  left: 50%;
  top: 0;
  transform: translate(-52%, -52%);
  z-index: 0;
  pointer-events: none;
}

/* Text content sits in the left ~half of the viewport */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 540px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-content h1 {
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: 1.1;
  color: var(--neutral-800);
  margin-bottom: 24px;
}

.hero-copy {
  font-size: 18px;
  color: var(--neutral-600);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Image: absolutely positioned, right half, goes to viewport edge */
.hero-img-wrapper {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  /* starts roughly at the midpoint of the container */
  left: 50%;
  background: var(--neutral-200);
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  overflow: hidden;
  z-index: 1;
}

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

/* =========================================================  ABOUT CLINIC (info cards)  */
.about-clinic-section {
  position: relative;
  z-index: 10;
  padding-top: 0;
  padding-bottom: 80px;
  /* Pull up so the card overlaps the hero bottom */
  margin-top: -60px;
}

@keyframes floatCard {
  0%   { transform: translateY(0);    box-shadow: 0 8px 48px rgba(24,20,67,.13); }
  50%  { transform: translateY(-10px); box-shadow: 0 20px 56px rgba(24,20,67,.18); }
  100% { transform: translateY(0);    box-shadow: 0 8px 48px rgba(24,20,67,.13); }
}

.about-clinic-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(24,20,67,.13);
  display: flex;
  align-items: stretch;
  animation: floatCard 4s ease-in-out infinite;
}

.clinic-card-block {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 36px;
}

.clinic-card-divider {
  width: 1px;
  background: var(--neutral-300);
  flex-shrink: 0;
  margin: 24px 0;
}

.clinic-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.clinic-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-800);
  margin: 0 0 12px;
}

.clinic-card-body { flex: 1; }

.clinic-contact-link {
  display: block;
  font-size: 14px;
  color: var(--neutral-600);
  margin-bottom: 4px;
  line-height: 1.5;
}

.clinic-book-link {
  display: inline-flex;
  flex-direction: column;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
}
.clinic-book-link::after {
  content: '';
  height: 2px;
  background: var(--primary);
  width: 0;
  transition: width .3s;
}
.clinic-book-link:hover::after { width: 100%; }

.clinic-hours-line {
  font-size: 14px;
  color: var(--neutral-600);
  margin: 0 0 4px;
  line-height: 1.5;
}
.clinic-accent {
  color: var(--primary);
  font-weight: 600;
}

.clinic-service-item {
  font-size: 14px;
  color: var(--neutral-600);
  margin: 0 0 4px;
  line-height: 1.5;
}

/* =========================================================  SERVICES  */
.services-section { background: #fff; }

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-header-split h2 {
  max-width: 600px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.15;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

/* ---- SLIDER ---- */
.slider-outer {
  position: relative;
  /* Extra lateral padding makes room for the arrow buttons
     without relying on negative margins (which cause hscroll) */
  padding: 0 64px;
}

.slider {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 24px;
  transition: transform .5s cubic-bezier(.22,.68,0,1.2);
  will-change: transform;
}

/* ---- SERVICE CARD — pixel-matched to dentisttemplate.webflow.io ---- */
.service-card {
  background: #fff;
  border-radius: 32px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 calc(33.333% - 16px);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--neutral-600);
  border: 1px solid var(--neutral-300);
  box-shadow: 0 2px 8px #5d4fff08, 0 1px 13px #0f0c3105;
  transition: box-shadow .35s, transform .35s, border-color .35s;
}
.service-card:hover {
  border-color: var(--primary);
  transform: translate(0, -8px);
  box-shadow: 0 10px 15px #5d4fff08, 0 10px 13px #0f0c3105;
}

/* Icon image panel — SVGs are 389×240 and include their own lavender bg;
   render at full card width, preserving the natural 389:240 aspect ratio */
.service-icon-wrap {
  width: 100%;
  overflow: hidden;
  /* fallback bg in case SVG is slow to load */
  background-color: var(--primary-light);
  display: block;
}
.service-icon-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text content — matches original slider-card-service-content (padding: 32px 32px 45px) */
.service-card .service-title {
  padding: 32px 32px 0;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-800);
  line-height: 1.3;
}
.service-card > p {
  padding: 0 32px;
  font-size: 16px;
  color: var(--neutral-600);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
  /* Limit to 3 lines so cards stay compact like the original */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card .learn-more-wrap {
  padding: 0 32px 45px;
  margin: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
  overflow: hidden;            /* enables slide-in underline */
}
/* Underline slides in from left (matching Webflow IX2 behavior) */
.service-card .learn-more-wrap .underline {
  background-color: var(--primary);
  width: 100%;
  height: 2px;
  margin-top: 4px;
  transform: translateX(-100%);
  transition: transform .35s ease;
}
.service-card:hover .learn-more-wrap .underline {
  transform: translateX(0);
}

/* Arrows sit OUTSIDE the overflow:hidden .slider, inside .slider-outer */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--neutral-400);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  z-index: 5;
}
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(93,79,255,.3);
}
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--neutral-400);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* =========================================================  ABOUT  */
.about-section { background: var(--neutral-200); }

.about-shape-1 {
  position: absolute; right: 0; top: 40px;
  height: 70%; opacity: .5; pointer-events: none;
}
.about-shape-2 {
  position: absolute; left: 0; bottom: 0;
  height: 50%; opacity: .4; pointer-events: none;
}

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

.doctor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  margin-top: 24px;
}
.doctor-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.doctor-name { font-size: 18px; margin-bottom: 4px; }
.doctor-role { color: var(--neutral-500); font-size: 14px; margin: 0; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.about-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-img-2 { margin-top: 40px; }

/* =========================================================  TESTIMONIALS  */
.testimonials-section { background: #fff; }

.testimonials-slider .slider-track { align-items: stretch; }

.testimonial-slide { flex: 0 0 calc(50% - 12px); }

.testimonial-inner {
  display: flex;
  gap: 24px;
  background: var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  align-items: flex-start;
  transition: box-shadow .3s;
}
.testimonial-inner:hover { box-shadow: var(--shadow-hover); }

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-name { margin-bottom: 8px; font-size: 18px; }

/* =========================================================  CTA  */
.cta-section {
  background: var(--primary-light);
  padding: 80px 0;
}
.cta-shape-1 {
  position: absolute;
  right: 0; bottom: 0;
  height: 100%;
  pointer-events: none;
  opacity: .5;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-content h2 { margin-bottom: 8px; }

.cta-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  max-height: 460px;
}

/* =========================================================  BLOG  */
.blog-section { background: var(--neutral-200); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.blog-img-wrap { overflow: hidden; height: 220px; }
.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.blog-card:hover .blog-img { transform: scale(1.06); }

.blog-card-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 4px;
  margin-bottom: 12px;
}
.blog-post-title { font-size: 20px; margin-bottom: 12px; }
.blog-excerpt { color: var(--neutral-600); font-size: 15px; flex: 1; }
.blog-date { font-size: 13px; color: var(--neutral-500); margin-top: 8px; margin-bottom: 0; }

/* =========================================================  CONTACT  */
.contact-section { background: #fff; }

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--neutral-600);
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
  transition: color .2s;
}
.contact-item:hover { color: var(--primary); }
.contact-icon-img { width: 22px; height: 22px; display: inline; }

/* Form */
.contact-form-wrap {
  background: var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-700);
  margin-top: 12px;
}
.form-input {
  border: 1.5px solid var(--neutral-400);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--neutral-700);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--neutral-500); }
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,79,255,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 16px; align-self: flex-start; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  margin-top: 12px;
}
.form-msg.success { background: #dcfce7; color: #166534; }
.form-msg.error   { background: #fee2e2; color: #991b1b; }

/* =========================================================  FOOTER  */
.footer {
  background: var(--neutral-800);
  color: var(--neutral-500);
}

.footer-wrapper {
  padding-top: 80px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.footer-nl-title { color: #fff; font-size: 28px; }
.newsletter-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}
.newsletter-input {
  background: var(--neutral-700);
  border-color: var(--neutral-700);
  color: #fff;
  padding-right: 140px;
}
.newsletter-input::placeholder { color: var(--neutral-500); }
.newsletter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,79,255,.25);
}
.newsletter-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 20px;
  font-size: 14px;
}

.footer-nav-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-nav-title { color: #fff; font-size: 20px; margin-bottom: 20px; }

.footer-nav-cols { display: flex; gap: 40px; }
.footer-nav-links li { margin-bottom: 8px; }

.footer-nav-link {
  color: var(--neutral-500);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.footer-nav-link:hover, .footer-nav-link.active { color: #fff; }
.footer-nav-link.contact-link { display: flex; align-items: center; gap: 10px; }

.footer-contact-icon { width: 18px; height: 18px; display: inline; opacity: .7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 44px; width: auto; }
.footer-copy { font-size: 14px; color: var(--neutral-500); margin: 0; }
.footer-copy a { color: var(--neutral-400); }
.footer-copy a:hover { color: #fff; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* =========================================================  SCROLL ANIMATIONS  */
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-in.delay-100 { transition-delay: .1s; }
.animate-in.delay-200 { transition-delay: .2s; }
.animate-in.delay-300 { transition-delay: .3s; }

/* Hero elements are above the fold — make them visible immediately */
.hero-section .animate-in {
  opacity: 0;
  animation: fadeUp .8s ease forwards;
}
.hero-section .animate-in.delay-200 { animation-delay: .2s; }

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

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================  RESPONSIVE  */
@media (max-width: 1024px) {
  .slider-btn.prev { left: 0; }
  .slider-btn.next { right: 0; }
  .service-card { flex-basis: calc(50% - 12px); }
  .testimonial-slide { flex-basis: 100%; }
}

@media (max-width: 1100px) {
  /* slider: 2 visible cards at a time on tablet */
  .service-card { flex: 0 0 calc(50% - 12px); }
  .testimonial-slide { flex-basis: 100%; }
  /* hero: image shifts to inline flow on tablet */
  .hero-section { min-height: 0; padding-bottom: 360px; }
  .hero-img-wrapper { left: 0; top: auto; height: 320px; border-radius: 0; }
  .about-clinic-section { margin-top: 0; }
  .about-clinic-card { flex-direction: column; }
  .clinic-card-divider { width: auto; height: 1px; margin: 0 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .cta-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-wrapper { grid-template-columns: 1fr; }
  .footer-nav-wrapper { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}


@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .hero-section { padding-top: 120px; }
  .section-header-split { flex-direction: column; align-items: flex-start; }
  .service-card { flex: 0 0 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-nav-wrapper { grid-template-columns: 1fr; }
  .footer-nav-cols { flex-direction: column; gap: 0; }
  .hero-section { padding-top: 120px; padding-bottom: 300px; }
  .hero-img-wrapper { height: 260px; }
  .clinic-card-block { padding: 24px 20px; }
  .about-clinic-section { padding-bottom: 48px; }
  .about-images { grid-template-columns: 1fr; }
  .about-img-2 { margin-top: 0; }
  .testimonial-slide { flex: 0 0 100%; }
  .testimonial-inner { flex-direction: column; }
  /* On small screens, reduce slider outer padding */
  .slider-outer { padding: 0 44px; }
  .slider-btn { width: 40px; height: 40px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-clinic-card { animation: none; }
}

/* =================================================================
   ABOUT PAGE  — specific sections
   ================================================================= */

/* ── About Hero ──────────────────────────────────────────────────── */
.about-hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}
.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  /* Initial zoom state for load animation */
  transform: scale(1.15);
  transition: transform 2s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform;
}
.about-hero-section.hero-loaded .about-hero-bg {
  transform: scale(1);
}
/* ... rest ... */
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24,20,67,.82) 0%, rgba(24,20,67,.3) 55%, transparent 100%);
  z-index: 1;
}
.about-hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
  color: #fff;
  max-width: 720px;
}
.about-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 20px;
}
.about-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.15;
}
.about-hero-copy {
  font-size: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.72;
  margin-bottom: 40px;
}
.about-hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.5);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.25); }
}

/* ── Our Story Section ───────────────────────────────────────────── */
.story-section { background: #fff; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}
.story-content { position: relative; z-index: 1; }
.story-body {
  color: var(--neutral-600);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.story-shape-1 {
  position: absolute; bottom: -60px; left: -60px;
  width: 260px; opacity: .35; pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.story-shape-2 {
  position: absolute; top: -60px; right: -60px;
  width: 260px; opacity: .35; pointer-events: none;
  animation: float 7s ease-in-out infinite reverse;
}
.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.story-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}
.story-img:hover { transform: translateY(-5px); }
.story-img-2 { margin-top: 48px; }

/* ── Values Section ──────────────────────────────────────────────── */
.values-section { background: var(--neutral-200); }

.values-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.values-shape-1 {
  position: absolute; top: -80px; right: -80px;
  height: 260px; opacity: .3; pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.values-shape-2 {
  position: absolute; bottom: -80px; left: -80px;
  height: 260px; opacity: .3; pointer-events: none;
  animation: float 9s ease-in-out infinite reverse;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  border: 1px solid var(--neutral-300);
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.value-icon-wrap {
  width: 68px;
  height: 68px;
  background: var(--primary-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-icon { width: 38px; height: 38px; }
.value-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 10px;
}
.value-body {
  font-size: 15px;
  color: var(--neutral-600);
  line-height: 1.65;
  margin: 0;
}

/* ── About CTA Banner ────────────────────────────────────────────── */
.about-cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.about-cta-shape {
  position: absolute;
  opacity: .12;
  pointer-events: none;
}
.about-cta-shape-1 { right: -80px; top: -80px; height: 300px; }
.about-cta-shape-2 { left: -80px; bottom: -80px; height: 250px; }
.about-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 0;
}
.about-cta-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  max-width: 580px;
  line-height: 1.3;
  margin: 0;
}
.about-cta-btns {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ── Team Section ────────────────────────────────────────────────── */
.team-section { background: #fff; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--neutral-300);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.team-card:hover .team-photo {
  transform: scale(1.05);
}
.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.team-info { padding: 20px 22px 24px; }
.team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.team-actions { display: flex; gap: 10px; }
.team-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.team-action-btn:hover { background: var(--primary); }
.team-action-btn:hover img { filter: brightness(0) invert(1); }
.team-action-icon { width: 16px; height: 16px; }

/* ── About-page responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-hero-section { min-height: 70vh; }
  .about-hero-h1      { font-size: 2rem; }
  .story-grid         { grid-template-columns: 1fr; gap: 40px; }
  .story-images       { max-width: 480px; margin: 0 auto; }
  .story-img-2        { margin-top: 40px; }
  .about-cta-inner    { flex-direction: column; text-align: center; }
  .about-cta-btns     { justify-content: center; }
}
@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: 1fr; }
  .story-images { grid-template-columns: 1fr; }
  .story-img-2  { margin-top: 16px; }
}
