/* DermaCare — Cosmetic Clinic (match reference design) */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --lavender: #e8e2f3;
  --lavender-deep: #ddd8f0;
  --lavender-band: #e4dff5;
  --lavender-hero: #f3efff;
  --lavender-hero-mid: #ebe4f9;
  --purple: #6a49a1;
  --purple-mid: #7d5eb8;
  --purple-dark: #553580;
  --purple-logo: #6a49a1;
  --purple-light: #f0ebfa;
  --purple-welcome: #9b8ab8;
  --heading: #1a1a2e;
  --heading-line2: #6a49a1;
  --white: #ffffff;
  --text: #3d3d3d;
  --text-muted: #666666;
  --nav-color: #5d3891;
  --border: #e8e6ef;
  --shadow: 0 12px 40px rgba(93, 56, 145, 0.12);
  --shadow-card: 0 8px 32px rgba(45, 45, 58, 0.08);
  --shadow-btn: 0 6px 20px rgba(93, 56, 145, 0.35);
  --radius: 16px;
  --radius-btn: 10px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', sans-serif;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand .logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand .brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--purple-logo);
  letter-spacing: -0.02em;
}

.brand .brand-sub {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  justify-self: center;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-color);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--purple-dark);
}

.nav-dropdown .chevron {
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.7;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-actions .btn-primary {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-btn);
}

.btn-primary .btn-icon {
  margin-right: 8px;
  font-size: 16px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93, 56, 145, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
  border-radius: var(--radius-btn);
}

.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
}

.btn-white:hover { background: var(--lavender); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ---- Page Hero (inner) ---- */
.page-banner {
  background: var(--lavender);
  padding: 56px 0 48px;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.page-banner p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
}

/* ---- Home Hero ---- */
.hero-home {
  position: relative;
  padding: 32px 0 0;
  background: linear-gradient(180deg, #faf8ff 0%, var(--lavender-hero) 35%, var(--lavender-hero-mid) 100%);
  overflow: visible;
  z-index: 3;
}

.hero-home .container,
.hero-home-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  grid-template-rows: minmax(400px, auto) auto;
  column-gap: 40px;
  row-gap: 0;
  align-items: stretch;
}

.hero-home-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 16px 0 12px;
}


.hero-welcome {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-welcome);
  margin-bottom: 20px;
}

.hero-home-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-home-text h1 .line1 {
  display: block;
  color: var(--heading);
}

.hero-home-text h1 .line2 {
  display: block;
  color: var(--heading-line2);
  margin-top: 4px;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  max-width: 280px;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(106, 73, 161, 0.25);
}

.hero-divider .lotus-mini {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #5c5c6a;
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.hero-home-actions .btn-primary {
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(106, 73, 161, 0.35);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--purple);
  border-bottom: 1px solid var(--purple-mid);
  padding-bottom: 3px;
  line-height: 1.4;
}

.hero-link:hover {
  color: var(--purple-dark);
  border-color: var(--purple-dark);
}

.hero-link .arrow {
  font-size: 15px;
  transition: transform var(--transition);
}

.hero-link:hover .arrow {
  transform: translateX(4px);
}

.hero-home-visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  background: transparent;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-visual-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* Hero features card — overlaps bottom like mockup */
.hero-features-card {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 10;
  margin: 0 0 -72px;
  transform: translateY(-20%);
  max-width: 100%;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(106, 73, 161, 0.08), 0 12px 40px rgba(0, 0, 0, 0.06);
  padding: 0;
  overflow: visible;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.hero-feature-item:last-child {
  border-right: none;
}

.hero-feature-item .f-icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.hero-feature-item h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 4px;
}

.hero-feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.hero-spacer {
  display: none;
}

/* First section below hero — sits under overlapping features card */
.section-after-hero {
  padding-top: 96px !important;
  position: relative;
  z-index: 1;
  background: var(--white);
  margin-top: 0;
}

/* Legacy features-bar (hidden if using hero card) */
.features-bar {
  display: none;
}

/* ---- Section common ---- */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.section-head p { font-size: 15px; }

.bg-lavender { background: var(--lavender); }

/* ---- Our Services (home) ---- */
.our-services-section {
  background: transparent;
}

.section-after-hero.our-services-section {
  background: var(--lavender);
}

.our-services-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.our-services-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 14px;
}

.our-services-lotus {
  width: 22px;
  height: 22px;
  margin: 0 auto 18px;
  display: block;
}

.our-services-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.2;
}

.our-services-head p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.our-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.services-name-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.services-name-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.services-name-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.services-name-item:nth-last-child(-n + 2) {
  border-bottom: none;
}

.services-name-item:hover {
  background: var(--lavender-hero);
}

.services-name-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--purple-light);
}

.services-name-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-name-item h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.4;
}

.service-showcase-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45, 45, 58, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(106, 73, 161, 0.14);
}

.service-showcase-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-showcase-img img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  background: var(--purple-light);
}

.service-showcase-card:hover .service-showcase-img img {
  transform: scale(1.04);
}

.service-showcase-icon {
  position: absolute;
  left: 18px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  background: #f3eefb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--purple);
  box-shadow: 0 4px 14px rgba(106, 73, 161, 0.12);
}

.service-showcase-icon svg {
  width: 24px;
  height: 24px;
}

.service-showcase-body {
  padding: 38px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-showcase-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 10px;
}

.service-showcase-body p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.service-showcase-body .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin-top: auto;
}

.service-showcase-body .learn-more .arrow {
  transition: transform var(--transition);
}

.service-showcase-body .learn-more:hover .arrow {
  transform: translateX(4px);
}

/* ---- Specialties grid ---- */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.specialty-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.specialty-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.specialty-card .s-icon {
  width: 64px;
  height: 64px;
  background: var(--purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.specialty-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.specialty-card p { font-size: 13px; }

/* ---- Filter tabs ---- */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-tabs button {
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-tabs button.active,
.filter-tabs button:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* ---- Service cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 14px;
  margin-bottom: 14px;
}

.learn-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
}

.learn-more:hover { text-decoration: underline; }

/* ---- About split ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-split h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}

.about-split .lead {
  margin-bottom: 28px;
  font-size: 15px;
}

.value-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text);
}

.value-list .v-icon {
  width: 28px;
  height: 28px;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.about-split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-split-image img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-doctor-image img {
  object-position: top center;
}

.doctor-profile-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 12px;
}

.doctor-credentials {
  font-size: 15px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 8px;
}

.doctor-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.doctor-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--lavender);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--heading);
}

.doctor-badge-verified {
  background: #eef9f0;
  color: #2d6a4f;
}

.doctor-rating-card {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.doctor-rating-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--purple);
  margin-bottom: 4px;
}

.doctor-rating-card span {
  font-size: 13px;
  color: var(--text-muted);
}

.doctors-grid.doctors-grid-single {
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}

.doctor-card-featured {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: stretch;
  text-align: left;
  width: 100%;
}

.doctor-card-featured .doctor-card-img {
  min-height: 100%;
}

.doctor-card-featured .doctor-card-img img {
  min-height: 420px;
  object-position: top center;
}

.doctor-card-featured .doctor-card-body {
  padding: 32px 36px;
  text-align: left;
}

.doctor-card-featured .doctor-profile-badges {
  justify-content: flex-start;
}

.doctor-card-featured .doctor-card-body h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.doctor-card-featured .doctor-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 16px 0 20px;
}

.doctor-card-featured .doctor-qual-list {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}

.doctor-card-featured .doctor-qual-list li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.doctor-card-featured .doctor-qual-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* ---- Stats band ---- */
.stats-band {
  background: var(--lavender-band);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ---- Doctors ---- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
}

.doctor-card:hover { box-shadow: var(--shadow); }

.doctor-card-img {
  height: 280px;
  background: var(--lavender);
  overflow: hidden;
}

.doctor-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-card-body { padding: 24px 20px; }

.doctor-card-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.doctor-card-body .spec {
  font-size: 13px;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 14px;
}

.doctor-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.doctor-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.doctor-social a:hover {
  background: var(--purple);
  color: var(--white);
}

.doctors-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--lavender);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 64px;
}

.doctors-cta h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text);
  margin-bottom: 12px;
}

.doctors-cta-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.doctors-cta-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
}

.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.cta-banner {
  background: transparent;
  padding: 64px 0;
  text-align: center;
  margin-top: 64px;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Blog ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.blog-featured {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.blog-featured-img {
  height: 320px;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-body { padding: 28px; }

.blog-tag {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 14px;
}

.blog-featured-body h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-list-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.blog-list-item:last-child { border-bottom: none; }

.blog-list-thumb {
  width: 100px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-item h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.blog-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.blog-card-sm {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.blog-card-sm .thumb { height: 160px; }
.blog-card-sm .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-sm .body { padding: 20px; }
.blog-card-sm h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  margin: 10px 0 8px;
}

.text-center { text-align: center; margin-top: 40px; }

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-block h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--text);
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-row .c-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-row h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.map-wrap {
  margin-top: 64px;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Appointment ---- */
.appointment-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  background: var(--lavender);
}

.appointment-hero h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--text);
  margin-bottom: 16px;
}

.appointment-hero img {
  border-radius: var(--radius);
  height: 360px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.booking-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 40px 64px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.booking-form-wrap .btn-primary {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 72px;
  text-align: center;
}

.trust-row .t-icon {
  width: 52px;
  height: 52px;
  background: var(--purple-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
}

.trust-row h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand span { color: var(--white); }

.footer-brand p {
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
}

.footer-social a:hover { background: var(--purple); }

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease, padding-left 0.25s var(--ease-out);
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Home extra sections */
.why-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.testimonial-card {
  background: var(--lavender);
  padding: 32px;
  border-radius: var(--radius);
  margin-top: 24px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--text);
}

.testimonial-card strong {
  font-size: 14px;
  color: var(--purple);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 58, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

/* ---- Animations & scroll reveal ---- */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 32px;
  --reveal-duration: 0.75s;
  --stagger-step: 0.08s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

html.js-ready .site-header {
  animation: headerDrop 0.55s var(--ease-out) both;
}

html.js-ready .hero-home-text {
  animation: fadeInUp 0.85s var(--ease-out) 0.1s both;
}

html.js-ready .hero-home-visual {
  animation: heroImageIn 1s var(--ease-out) 0.2s both;
}

html.js-ready .hero-features-card {
  animation: fadeIn 0.8s var(--ease-out) 0.35s both;
}

html.js-ready .page-banner {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
  transition-delay: calc(var(--reveal-i, 0) * var(--stagger-step));
}

.reveal-stagger.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  transition:
    box-shadow 0.35s var(--ease-out),
    background 0.35s ease;
}

.site-header.header-scrolled {
  box-shadow: 0 8px 32px rgba(93, 56, 145, 0.1);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}

.brand {
  transition: transform 0.35s var(--ease-out);
}

.brand:hover {
  transform: scale(1.02);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.btn {
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.service-card-img img,
.doctor-card-img img {
  transition: transform 0.45s var(--ease-out);
}

.service-card:hover .service-card-img img,
.doctor-card:hover .doctor-card-img img {
  transform: scale(1.06);
}

.doctor-card:hover {
  transform: translateY(-6px);
}

.specialty-card .s-icon {
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}

.specialty-card:hover .s-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--lavender-deep);
}

.blog-featured,
.blog-card-sm,
.blog-list-item {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.blog-featured:hover,
.blog-card-sm:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.blog-list-item:hover {
  transform: translateX(6px);
}

.blog-list-thumb img {
  transition: transform 0.4s var(--ease-out);
}

.blog-list-item:hover .blog-list-thumb img {
  transform: scale(1.05);
}

.gallery-item {
  transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 36px rgba(106, 73, 161, 0.2);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(106, 73, 161, 0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item {
  position: relative;
}

.gallery-item:hover::after {
  opacity: 1;
}

.testimonial-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cta-banner {
  transition: transform 0.4s var(--ease-out);
}

.cta-banner.is-visible:hover {
  transform: scale(1.005);
}

.contact-form-card,
.contact-block {
  transition: box-shadow 0.35s ease;
}

.contact-form-card:hover,
.contact-block:hover {
  box-shadow: var(--shadow-card);
}

.contact-social a,
.doctor-social a {
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s ease,
    color 0.3s ease;
}

.contact-social a:hover,
.doctor-social a:hover {
  transform: translateY(-3px) scale(1.08);
}

.hero-feature-item {
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.hero-feature-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-feature-item .f-icon-wrap {
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}

.hero-feature-item:hover .f-icon-wrap {
  transform: scale(1.1);
}

.service-showcase-icon {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.service-showcase-card:hover .service-showcase-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(106, 73, 161, 0.2);
}

.stat-item {
  transition: transform 0.35s var(--ease-out);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-item h3 {
  transition: color 0.3s ease;
}

.stat-item:hover h3 {
  color: var(--purple);
}

.filter-tabs button {
  transition:
    transform 0.25s var(--ease-out),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.filter-tabs button:hover,
.filter-tabs button.active {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 73, 161, 0.25);
}

.form-group input,
.form-group select,
.form-group textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(106, 73, 161, 0.12);
}

.map-wrap iframe {
  transition: box-shadow 0.4s ease;
}

.map-wrap:hover iframe {
  box-shadow: var(--shadow);
}

html.motion-reduced .reveal,
html.motion-reduced .reveal-stagger .reveal-item {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .site-header,
  html.js-ready .hero-home-text,
  html.js-ready .hero-home-visual,
  html.js-ready .hero-features-card,
  html.js-ready .page-banner,
  html.js-ready .hero-home-visual {
    animation: none;
  }

  .reveal,
  .reveal-stagger .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-home-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(304px, auto) auto;
  }

  .hero-home-text {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-home-visual {
    grid-column: 1;
    grid-row: 2;
    min-height: 304px;
  }

  .hero-features-card {
    grid-column: 1;
    grid-row: 3;
  }

  .about-split,
  .blog-layout,
  .contact-layout,
  .appointment-hero,
  .doctors-cta,
  .doctor-card-featured,
  .why-section { grid-template-columns: 1fr; }

  .doctors-grid.doctors-grid-single {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .specialties-grid,
  .our-services-grid { grid-template-columns: repeat(2, 1fr); }
  .doctors-grid:not(.doctors-grid-single),
  .blog-grid-4,
  .stats-grid,
  .hero-features-grid { grid-template-columns: repeat(2, 1fr); }

  .doctors-grid.doctors-grid-single {
    grid-template-columns: 1fr;
  }

  .hero-features-card {
    transform: translateY(-20%);
    margin-bottom: -56px;
  }

  .section-after-hero {
    padding-top: 88px !important;
  }
  .hero-feature-item:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .header-wrap {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    justify-self: stretch;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-actions .btn-primary { display: none; }

  .hero-home-text {
    padding-right: 0;
    text-align: center;
    max-width: 100%;
  }

  .hero-divider {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-home-actions {
    align-items: center;
    justify-content: center;
  }

  .hero-home-inner {
    grid-template-rows: auto minmax(272px, auto) auto;
  }

  .hero-home-visual {
    min-height: 272px;
    justify-content: center;
  }

  .hero-visual-photo {
    width: 100%;
    max-width: 360px;
    min-height: 256px;
    height: auto;
    max-height: none;
    object-position: center bottom;
  }

  .hero-features-card {
    transform: translateY(-20%);
    margin-bottom: -48px;
  }

  .section-after-hero {
    padding-top: 80px !important;
  }

  .hero-features-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-feature-item:last-child {
    border-bottom: none;
  }

  .services-grid,
  .services-name-grid {
    grid-template-columns: 1fr;
  }

  .services-name-item:nth-child(odd) {
    border-right: none;
  }

  .services-name-item:nth-last-child(-n + 1) {
    border-bottom: none;
  }

  .services-name-item:last-child {
    border-bottom: none;
  }

  .our-services-grid,
  .gallery-grid,
  .specialties-grid,
  .doctors-grid:not(.doctors-grid-single),
  .blog-grid-4 { grid-template-columns: 1fr; }

  .doctor-card-featured .doctor-card-img img {
    min-height: 320px;
  }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
