/* ============================================================
   Yahya Dental Clinics — Main Stylesheet
   Design replicated from horizondent.com
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Brand Colors */
  --color-primary:       #004D7C;   /* dark navy */
  --color-primary-dark:  #24427d;   /* deep navy */
  --color-accent:        #43b5af;   /* teal/cyan */
  --color-accent-hover:  #35938e;
  --color-pink:          #f00069;   /* accent magenta */
  --color-white:         #ffffff;
  --color-bg-light:      #f2f9ff;   /* very light blue */
  --color-bg-gray:       #f2f5f7;
  --color-text:          #303030;
  --color-text-light:    #6b7280;
  --color-text-muted:    #9ca3af;
  --color-border:        #e5e7eb;

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

  /* Spacing */
  --spacing-xs:   0.25rem;
  --spacing-sm:   0.5rem;
  --spacing-md:   1rem;
  --spacing-lg:   1.5rem;
  --spacing-xl:   2rem;
  --spacing-2xl:  3rem;
  --spacing-3xl:  4rem;
  --spacing-4xl:  5rem;
  --spacing-5xl:  6rem;

  /* Borders & Shadows */
  --radius-sm:    0.375rem;
  --radius-md:    0.75rem;
  --radius-lg:    1rem;
  --radius-xl:    1.5rem;
  --radius-full:  9999px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 40px rgba(0,0,0,.12);
  --shadow-card:  0 2px 20px rgba(0,77,124,.08);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --max-width:     1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--spacing-xl);
}
@media (max-width: 768px) {
  .container { padding-inline: var(--spacing-md); }
}

/* ── Typography Helpers ── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(67, 181, 175, 0.10);
  border: 1px solid rgba(67, 181, 175, 0.20);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  margin-bottom: var(--spacing-sm);
}
.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin-bottom: var(--spacing-md);
}
.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 56ch;
  line-height: 1.7;
}
.section-header { margin-bottom: var(--spacing-3xl); }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

@media (max-width: 768px) {
  .section-title  { font-size: var(--font-size-2xl); }
  .section-subtitle { font-size: var(--font-size-base); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(67,181,175,.35);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67,181,175,.45);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--color-white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: var(--font-size-lg);
}
/* BEM variant: outlined on light background */
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
/* BEM variant: white button for dark backgrounds */
.btn--white {
  background: #fff;
  color: var(--color-primary-dark);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn--white:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn svg, .btn .icon {
  width: 18px; height: 18px; flex-shrink: 0;
}

/* ── Main Navigation ── */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Nav logo */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}
.nav-link.nav-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

/* ── Language Toggle Button ── */

.nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
  flex-shrink: 0;
}

.nav-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.nav-lang-toggle svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Mobile version */
.nav-lang-toggle-mobile {
  width: 100%;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.nav-lang-toggle-mobile:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hide on mobile — shown only in mobile menu */
@media (max-width: 768px) {
  .nav-right .nav-lang-toggle:not(.nav-lang-toggle-mobile) {
    display: none;
  }
}

/* Right side wrapper */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Book button — desktop */
.nav-book-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-book-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.nav-hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 24px;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.nav-mobile-menu.is-open {
  max-height: 500px;
  padding: 16px 24px 24px;
}
.nav-mobile-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-link {
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-mobile-link:hover,
.nav-mobile-link.nav-active {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}
.nav-mobile-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.nav-mobile-book-btn:hover {
  opacity: 0.88;
}

/* ── Logo (shared with footer) ── */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}
.logo-img-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
}
.logo-placeholder {
  width: 48px; height: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.logo-placeholder svg { color: white; }
.logo-text { line-height: 1.2; }
.logo-text-main {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-white);
}
.logo-text-sub {
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  font-weight: 500;
}

/* ── Nav responsive ── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-book-btn { display: none; }
  .nav-mobile-menu { display: flex; }
  .nav-container { height: 64px; }
}

/* ── Hero Section ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background-color: var(--color-primary-dark);
  background-image:
    linear-gradient(
      to bottom,
      rgba(67, 181, 175, 0.38) 0%,
      rgba(67, 181, 175, 0.18) 50%,
      rgba(67, 181, 175, 0.00) 100%
    ),
    linear-gradient(
      105deg,
      transparent 55%,
      rgba(67, 181, 175, 0.28) 75%,
      rgba(67, 181, 175, 0.38) 100%
    ),
    radial-gradient(
      ellipse 60% 80% at 100% 50%,
      rgba(67, 181, 175, 0.35) 0%,
      rgba(67, 181, 175, 0.15) 40%,
      transparent 70%
    );
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* IMAGE: Hero background – bright, modern dental clinic interior, smiling patient */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36,66,125,.78) 0%, rgba(0,77,124,.62) 60%, rgba(67,181,175,.18) 100%);
}
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .15;
}
.hero-shape-1 {
  width: 600px; height: 600px;
  background: var(--color-accent);
  right: -150px; top: -100px;
}
.hero-shape-2 {
  width: 400px; height: 400px;
  background: var(--color-pink);
  left: -100px; bottom: -50px;
  opacity: .08;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  padding-block: var(--spacing-5xl) var(--spacing-3xl);
  width: 100%;
}
.hero-text {}

.hero-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--spacing-lg);
}
.hero-heading em {
  font-style: normal;
  color: var(--color-accent);
}
.hero-subheading {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: var(--spacing-xl);
}
.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-2xl);
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
/* IMAGE: Hero visual right panel – before/after dental results or clinic showcase */
.hero-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(67,181,175,.2) 0%, rgba(36,66,125,.4) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: var(--font-size-sm);
  font-weight: 500;
}
/* ── Hero Stat Cards (single horizontal row — 4 equal columns) ── */
.hero-stats-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
  width: 100%;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease,
              border-color 0.3s ease;
  opacity: 0;
  transform: translateY(14px);
  animation: statCardIn 0.5s ease forwards;
}

.hero-stat-card:nth-child(1) { animation-delay: 0.10s; }
.hero-stat-card:nth-child(2) { animation-delay: 0.20s; }
.hero-stat-card:nth-child(3) { animation-delay: 0.30s; }
.hero-stat-card:nth-child(4) { animation-delay: 0.40s; }

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

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}

.hero-stat-number {
  font-size: 38px;
  font-weight: 800;
  color: #43b5af;
  line-height: 1;
  display: block;
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  margin-top: 6px;
  line-height: 1.3;
  display: block;
}

.stat-prefix,
.stat-suffix {
  font-size: 30px;
  font-weight: 800;
  color: inherit;
  letter-spacing: 0em;
}

/* ── Hero Shimmer ── */
#hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.025) 50%,
    transparent 80%
  );
  animation: heroShimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroShimmer {
  0%   { left: -75%; }
  50%  { left: 125%; }
  100% { left: 125%; }
}

#hero > * { position: relative; z-index: 1; }
#hero > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
}

/* ── Hero Responsive ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  #hero {
    min-height: auto;
    padding-bottom: 3.5rem;
    align-items: flex-start;
  }

  .hero-visual { display: none; }

  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding-block: 2.5rem 1.5rem;
  }

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

  .hero-bg-img {
    opacity: .60;
    object-position: center top;
  }

  .hero-overlay {
    background: linear-gradient(135deg, rgba(36,66,125,.85) 0%, rgba(0,77,124,.72) 60%, rgba(67,181,175,.18) 100%);
  }
}

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

/* Stat cards responsive */
@media (max-width: 1023px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero-stat-card {
    padding: 20px 12px;
  }
  .hero-stat-number {
    font-size: 26px;
  }
  .stat-prefix,
  .stat-suffix {
    font-size: 20px;
  }
  .hero-stat-label {
    font-size: 14px;
  }
}

/* ── About Page Stats Section ── */

.about-stats-section {
  background: var(--color-primary-dark); /* #24427d — same as navbar */
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative glow — top right */
.about-stats-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  top: -150px;
  right: -100px;
  pointer-events: none;
}

/* 4-column grid */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Item base */
.about-stat-item {
  text-align: center;
  padding: 20px 24px;
  position: relative;

  /* Entrance animation — starts hidden */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.about-stat-item.stat-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s; /* reset after entrance so interactions are instant */
}

/* Staggered entrance delays */
.about-stat-item:nth-child(1) { transition-delay: 0.00s; }
.about-stat-item:nth-child(2) { transition-delay: 0.12s; }
.about-stat-item:nth-child(3) { transition-delay: 0.24s; }
.about-stat-item:nth-child(4) { transition-delay: 0.36s; }

/* Vertical divider between items */
.about-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* Number row */
.about-stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
  line-height: 1;
}

/* The "+" prefix */
.about-stat-prefix {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent); /* #43b5af — teal */
  line-height: 1;
}
.about-stat-suffix {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.blog-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-title-link:hover {
  color: var(--color-accent);
}

/* The animated number */
.about-stat-val {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Label */
.about-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Tablet: 2×2 grid */
@media (max-width: 1023px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
  }
  .about-stat-item {
    background: var(--color-primary-dark);
  }
  .about-stat-item::after {
    display: none;
  }
}

/* Mobile: smaller numbers */
@media (max-width: 639px) {
  .about-stats-section {
    padding: 48px 0;
  }
  .about-stat-val {
    font-size: 38px;
  }
  .about-stat-prefix {
    font-size: 22px;
  }
  .about-stat-label {
    font-size: 12px;
  }
}

/* ── Section Padding ── */
.section { padding-block: var(--spacing-5xl); }
.section-alt { background: var(--color-bg-light); }
.section-dark { background: var(--color-primary-dark); }

/* ── Services Section (redesigned) ── */
.services-section {
  background: var(--color-white);
  padding: 100px 0;
}

/* Section tag pill */
.section-tag {
  display: inline-block;
  background: rgba(67, 181, 175, 0.10);
  border: 1px solid rgba(67, 181, 175, 0.20);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
}

/* Scoped subtitle override (longer text, centred) */
.services-section .section-subtitle {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 16px;
  color: var(--color-text-light);
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card base ── */
/* C1: center-aligned, C2: taller proportions */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 44px 32px 36px;      /* C2: more vertical padding */
  min-height: 320px;             /* C2: enforce tall card */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* C2 */
  align-items: center;           /* C1 */
  text-align: center;            /* C1 */
  gap: 20px;                     /* C2: slightly larger gap */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              border 0.3s ease, background 0.3s ease;
  /* scroll-animation initial state */
  opacity: 0;
  transform: translateY(24px);
}
.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
}

/* Card hover — C4: strong black shadow + solid full-colour border */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);  /* C4: black shadow */
  border: 1.5px solid var(--color-accent);        /* C4: solid visible border */
  background: #ffffff;                            /* C4: keep white */
}
/* Keep elevated when both visible and hovered */
.service-card.is-visible:hover {
  transform: translateY(-6px);
}

/* ── Icon blob ── */
/* C1: centred wrapper; C3: larger blob */
.card-icon-wrapper {
  flex-shrink: 0;
  display: flex;                 /* C1 */
  justify-content: center;       /* C1 */
}
.icon-blob {
  width: 88px;                   /* C3: was 68px */
  height: 88px;                  /* C3: was 68px */
  border-radius: 24px;           /* C3: was 20px */
  background: rgba(67, 181, 175, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  /* SVG stroke colour driven via currentColor */
  color: rgba(67, 181, 175, 0.6);
}
.icon-blob svg {
  width: 48px;                   /* C3: was 36px in HTML attr — CSS wins */
  height: 48px;                  /* C3: was 36px */
  stroke-width: 2;               /* C3: was 1.5 — bolder stroke */
  transition: color 0.3s ease;
}
.service-card:hover .icon-blob {
  background: rgba(67, 181, 175, 0.15);
  transform: scale(1.08);
}
.service-card:hover .icon-blob svg {
  color: var(--color-accent);    /* C4: full accent colour on hover */
}

/* ── Card body ── */
/* C1: centre-align children */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;           /* C1 */
  gap: 8px;
}
.card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
  margin: 0;
}
.card-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* ── Card footer / CTA ── */
/* C1: centre the button */
.card-footer {
  display: flex;                 /* C1 */
  justify-content: center;       /* C1 */
  margin-top: auto;
  padding-top: 4px;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid rgba(67, 181, 175, 0.30);
  color: var(--color-accent);
  background: transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  align-self: center;            /* C1: was flex-start */
}
.cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.service-card:hover .card-cta {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}
.service-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* ── "All Services" button ── */
.services-cta {
  text-align: center;
  margin-top: 52px;
}
.btn-all-services {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--color-accent);
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-all-services:hover {
  background: transparent;
  color: var(--color-accent);
}

/* ── Breakpoints ── */
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .services-section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── About Section ── */
#about { background: var(--color-bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
}
/* IMAGE: About section image – dental specialist consulting patient, professional environment */
.about-image-wrap {
  position: relative;
}
.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, rgba(67,181,175,.15) 100%);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  gap: var(--spacing-sm);
}
.about-image-placeholder svg { width:48px; height:48px; opacity:.4; }
.about-badge {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.about-badge-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-badge-icon svg { width:24px; height:24px; color:white; }
.about-badge-text .num { font-size: var(--font-size-xl); font-weight: 700; color: var(--color-primary-dark); }
.about-badge-text .label { font-size: var(--font-size-xs); color: var(--color-text-light); }
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-block: var(--spacing-xl);
}
.about-feature {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}
.about-feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(67,181,175,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-feature-icon svg { width:20px; height:20px; color: var(--color-accent); }
.about-feature-text h4 { font-size: var(--font-size-base); font-weight: 600; color: var(--color-primary-dark); margin-bottom: 4px; }
.about-feature-text p  { font-size: var(--font-size-sm); color: var(--color-text-light); line-height: 1.6; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--spacing-2xl); }
  .about-image-wrap {
    display: block;
    width: 100%;
    overflow: hidden;
  }
  .about-badge {
    left: 12px;
    bottom: 12px;
  }
}

@media (max-width: 767px) {
  /* Dissolve .about-text so its children join .about-grid's flex flow */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-text { display: contents; }

  /* Ordering: intro (1) → image (2) → features + btn (3) */
  .about-intro        { order: 1; }
  .about-image-wrap   { order: 2; height: 260px; }
  .about-features     { order: 3; margin-block: 0; }
  .about-text .btn    { order: 4; align-self: flex-start; }

  /* Image fills the fixed-height container */
  .about-image-wrap .about-preview-img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-xl);
  }
}

/* ── Why Choose Us Section ── */
#why-us {}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}
.why-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #1F437C;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  border-radius: inherit;
}
.why-card:hover::before { transform: scaleY(1); }
.why-card:hover { box-shadow: 0 24px 52px rgba(0,0,0,0.20); }
.why-card > * { position: relative; z-index: 1; }
.why-card-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--spacing-md);
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color     0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover .why-card-icon {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
}
.why-card-icon svg {
  width: 32px; height: 32px;
  color: var(--color-accent);
  transition: stroke 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color  0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover .why-card-icon svg { color: #ffffff; stroke: #ffffff; }
.why-card h3 {
  font-size: var(--font-size-base); font-weight: 700;
  color: var(--color-primary-dark); margin-bottom: var(--spacing-sm);
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover h3 { color: #ffffff; }
.why-card p {
  font-size: var(--font-size-sm); color: var(--color-text-light); line-height: 1.6;
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover p { color: rgba(255,255,255,0.88); }
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .why-grid { grid-template-columns: 1fr; } }

/* ── Team Section ── */
#team { background: var(--color-bg-light); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}
.team-card {
  border-radius: 18px;
  overflow: hidden;                        /* clips zoom and overlay to rounded corners */
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s ease;
  cursor: pointer;
}
.team-card:hover { box-shadow: var(--shadow-md); }
/* IMAGE: Team member photo – professional doctor headshot, white coat */
.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--color-bg-light) 0%, rgba(67,181,175,.15) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
}
.team-card-img svg { width:48px; height:48px; opacity:.35; }
/* When a real <img class="team-photo"> is added, it fills the wrapper */
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.team-card:hover .team-photo { transform: scale(1.04); }
/* Overlay: name + role sits at the bottom of the photo */
.team-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 14px 16px 16px;
  text-align: center;
  border-radius: 0 0 18px 18px;
  transition: padding 0.4s ease, background 0.4s ease;
}
.team-card:hover .team-card-overlay {
  padding: 18px 16px 20px;
  background: rgba(255, 255, 255, 1);
}
.team-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #1F437C;
  margin: 0 0 4px;
  line-height: 1.3;
}
.team-card-role {
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
  display: block;
  margin: 0;
}

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

/* ── Reviews Section (animated scrolling columns) ── */
.reviews-section {
  padding: 100px 0;
  background: var(--color-white);
  overflow: hidden;
}
.reviews-header {
  text-align: center;
  margin-bottom: 60px;
}
.reviews-tag {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(67, 181, 175, 0.10);
  color: var(--color-accent);
  border: 1px solid rgba(67, 181, 175, 0.20);
  margin-bottom: 16px;
}
.reviews-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 16px;
  line-height: 1.2;
}
.reviews-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}
.reviews-columns-wrapper {
  max-height: 700px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}
.reviews-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.reviews-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: reviewsScrollUp linear infinite;
  will-change: transform;
}
#col-1 { animation-duration: 28s; }
#col-2 { animation-duration: 34s; }
#col-3 { animation-duration: 30s; }
@keyframes reviewsScrollUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.review-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  user-select: none;
}
.review-card:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
}
.review-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 0 20px;
}
.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(36, 66, 125, 0.10);
  color: var(--color-primary-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(36, 66, 125, 0.22);
}
.review-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.review-role {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
@media (max-width: 1023px) {
  .reviews-columns { grid-template-columns: repeat(2, 1fr); }
  #col-3 { display: none; }
}
@media (max-width: 767px) {
  .reviews-columns { grid-template-columns: 1fr; }
  #col-2, #col-3 { display: none; }
  .reviews-section { padding: 60px 0; }
}

/* ── About Page CTA Section ── */

.about-cta-section {
  padding: 60px 0;
  background: transparent;
}

/* Card with rounded corners and dark blue background */
.about-cta-card {
  width: calc(100% - 160px); /* 80px margin each side */
  margin: 0 auto;
  background: var(--color-primary-dark); /* #24427d — same as navbar */
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative glow — top right */
.about-cta-card::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 70%
  );
  top: -120px;
  right: -80px;
  pointer-events: none;
}

/* Subtle glow — bottom left */
.about-cta-card::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -60px;
  pointer-events: none;
}

/* Illustration layer — sits at z-index 0, clipped by card border-radius */
.cta-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.cta-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-cta-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.about-cta-subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.70);
  max-width: 520px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.about-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Outlined button — white border, transparent bg */
.about-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.60);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  font-family: inherit;
}
.about-cta-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Filled button — teal accent */
.about-cta-btn-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--color-accent); /* #43b5af — same as site buttons */
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: inherit;
}
.about-cta-btn-filled:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .about-cta-card {
    width: calc(100% - 40px); /* 20px margin each side on mobile */
    padding: 48px 24px;
    border-radius: 18px;
  }
  .about-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .about-cta-btn-outline,
  .about-cta-btn-filled {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ── Gallery Preview Section ── */
#gallery-preview {}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: var(--spacing-md);
}
/* IMAGE: Gallery photos – clinic interior, treatment rooms, equipment */
.gallery-item {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  border: 1px dashed var(--color-border);
  transition: all var(--transition-base);
  flex-direction: column;
  gap: var(--spacing-sm);
}
.gallery-item svg { width:32px; height:32px; opacity:.35; }
.gallery-item:hover { border-color: var(--color-accent); }
.gallery-item.span2 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span2 { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
}

/* ── Appointment Section ── */
.appt-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-primary);
}

.appt-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 720px;
  position: relative;
  align-items: stretch;
}

/* Left image panel */
.appt-image-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.appt-image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c8dde8 0%, #a8c4d4 40%, #8bafc2 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.appt-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.appt-image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.appt-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.10) 60%,
    transparent 100%
  );
  z-index: 1;
}

.appt-img-placeholder-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.45;
  color: #ffffff;
}

.appt-img-placeholder-content svg {
  width: 64px;
  height: 64px;
  stroke: #ffffff;
}

.appt-img-placeholder-content span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Right form panel */
.appt-form-panel {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 60px 0;
  margin-left: -40px;
}

.appt-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.10),
    0 50px 100px rgba(0, 0, 0, 0.06);
  padding: 44px 40px;
  width: 100%;
  max-width: 560px;
}

/* Card header */
.appt-card-header { margin-bottom: 32px; }

.appt-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin: 0 0 12px;
}

.appt-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-light);
  margin: 0;
}

/* Form layout */
.appt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.appt-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.appt-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Input luxury style */
.appt-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-primary-dark);
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.appt-input::placeholder {
  color: rgba(0, 0, 0, 0.42);
  font-size: 14px;
}

/* Floating image info overlay */
.appt-image-info {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.appt-image-info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.appt-image-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.appt-image-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.appt-image-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.appt-image-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1;
}

.appt-image-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
  display: block;
}

.appt-image-info-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  align-self: stretch;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .appt-image-info {
    flex-direction: column;
    bottom: 20px;
    left: 16px;
    right: 16px;
    gap: 16px;
  }

  .appt-image-info-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
}

.appt-input:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.appt-input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 77, 124, 0.10);
}

.appt-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

/* Select dropdown */
.appt-select-wrap { position: relative; }

.appt-select {
  cursor: pointer;
  padding-right: 40px;
}

.appt-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-muted);
}

.appt-select-arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Date input */
input[type="date"].appt-input::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

/* Submit button */
.appt-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 28px;
  background: #1F437C;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 4px;
}

.appt-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.appt-submit:hover {
  background: #163260;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(31, 67, 124, 0.30);
}

.appt-submit:hover svg { transform: translateX(4px); }

.appt-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Microcopy */
.appt-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

.appt-microcopy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--color-text-muted);
}

/* Appointment — Responsive */
@media (max-width: 1023px) {
  .appt-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .appt-image-panel {
    height: 320px;
    position: relative;
  }

  .appt-image-placeholder {
    position: absolute;
    inset: 0;
  }

  .appt-form-panel {
    margin-left: 0;
    padding: 48px 24px;
  }

  .appt-card { max-width: 100%; }
}

@media (max-width: 639px) {
  .appt-image-panel { height: 240px; }

  .appt-card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .appt-row-2 { grid-template-columns: 1fr; }

  .appt-input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .appt-submit {
    padding: 16px;
    font-size: 16px;
  }
}

/* ── Map Section ── */
.map-section {
  width: 100%;
  overflow: hidden;
}

.map-embed-wrap {
  width: 100%;
  height: 460px;
  display: block;
  line-height: 0;
}

.map-embed {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: saturate(0.85) contrast(1.02);
}

/* Map — Responsive */
@media (max-width: 767px) {
  .map-embed-wrap { height: 340px; }
}

/* Spin animation for appointment form loading state */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Inner Page Hero ── */
/*
 * Overlay opacity guide (adjust the rgba alpha on the gradient layers):
 *   Readable but image visible : rgba(10, 25, 60, 0.65)
 *   Balanced (default)         : rgba(10, 25, 60, 0.72)
 *   Strong overlay, dark       : rgba(10, 25, 60, 0.82)
 * Image file: assets/images/inner-hero-bg.jpg
 */
.inner-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);

  /* Fallback colour shown while image loads or if it fails */
  background-color: #0d1f4e;

  /* First layer = dark overlay for readability; second layer = photo */
  /* Replace inner-hero-bg.jpg with a real photo when available      */
  background-image:
    linear-gradient(
      rgba(10, 25, 60, 0.72) 0%,
      rgba(10, 25, 60, 0.65) 100%
    ),
    url('../images/inner-hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.inner-hero::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 70%
  );
  top: -160px;
  right: -120px;
  pointer-events: none;
  z-index: 0;
}

.inner-hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -80px;
  pointer-events: none;
  z-index: 0;
}

.inner-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  padding: 60px 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: innerHeroIn 0.7s ease forwards 0.1s;
}

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

.inner-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.inner-hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 560px;
}

.inner-hero-divider {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-accent);
  margin: 18px auto;
}

.inner-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 13px 30px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.inner-hero-cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* blog-post.html meta row inside inner hero */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  align-items: center;
  justify-content: center;
}
.post-meta span { display: flex; align-items: center; gap: .3rem; }

@media (max-width: 767px) {
  .inner-hero {
    min-height: 38vh;
    background-image:
      linear-gradient(rgba(10, 25, 60, 0.80) 0%, rgba(10, 25, 60, 0.75) 100%),
      url('../images/inner-hero-bg.jpg');
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
  .inner-hero-content { padding: 48px 20px; }
}


/* ── About Page ── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}
.mission-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-accent);

  /* Centering */
  text-align: center;
  align-items: center;

  /* Entrance animation — initial hidden state */
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Visible state — added by IntersectionObserver */
.mission-card.mvv-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s; /* Reset stagger delay after entrance completes */
}

/* Staggered entrance delays */
.mission-card:nth-child(1) { transition-delay: 0.00s; }
.mission-card:nth-child(2) { transition-delay: 0.15s; }
.mission-card:nth-child(3) { transition-delay: 0.30s; }

/* Hover lift */
.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Icon above title: make h3 a flex column */
.mission-card h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-md);
}
/* SVG has inline margin-right — reset it since icon now stacks above text */
.mission-card h3 svg { margin-right: 0 !important; }

.mission-card p  { font-size: var(--font-size-sm); color: var(--color-text-light); line-height: 1.75; }
@media (max-width: 768px) { .mission-grid { grid-template-columns: 1fr; } }

/* ── Services Page ── */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}
.service-detail-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}
.service-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(67, 181, 175, 0.06);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.service-detail-card:hover::before { opacity: 1; }
.service-detail-card > * { position: relative; z-index: 2; }
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.service-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.service-card-title-link:hover { color: var(--color-accent); }
/* IMAGE: Service illustration – specific dental treatment being performed or result */
.service-detail-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, rgba(67,181,175,.2) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: var(--spacing-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  overflow: hidden;
}
.service-detail-img svg { width:40px; height:40px; opacity:.4; }
.service-detail-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.svc-overview-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
}
.bp-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card-image:hover .blog-card-img { transform: scale(1.04); }
.service-detail-body { padding: var(--spacing-xl); flex: 1; }
.service-detail-body h3 { font-size: var(--font-size-xl); font-weight: 700; color: var(--color-primary-dark); margin-bottom: var(--spacing-sm); }
.service-detail-body p  { font-size: var(--font-size-sm); color: var(--color-text-light); line-height: 1.75; }
@media (max-width: 768px) { .services-list { grid-template-columns: 1fr; } }

/* ── Contact Page — Main Section ── */
.contact-main-section {
  padding: 80px 0 100px;
  background: #f8fafb;
}

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

/* Left column */
.contact-map-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-map-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.contact-map-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.2;
}

.contact-map-wrap {
  width: 100%;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Right column */
.contact-form-col {
  position: sticky;
  top: 100px;
}

.contact-form-card {
  background: #ffffff;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.08);
}

.contact-form-header {
  margin-bottom: 28px;
}

.contact-form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
  line-height: 1.2;
}

.contact-form-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

.contact-appt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-field {
  display: flex;
  flex-direction: column;
}

.contact-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-primary-dark);
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.contact-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.contact-input:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.contact-input:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 77, 124, 0.10);
}

.contact-select-wrap {
  position: relative;
}

.contact-select {
  cursor: pointer;
  padding-right: 38px;
}

.contact-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-light);
}

.contact-select-arrow svg {
  width: 15px;
  height: 15px;
  display: block;
}

.contact-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.6;
}

input[type="date"].contact-input::-webkit-calendar-picker-indicator {
  opacity: 0.45;
  cursor: pointer;
}

.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  background: var(--color-primary-dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-submit-btn:hover {
  background: #1d3568;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contact-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.contact-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-light);
  margin: 0;
  text-align: center;
}

@media (max-width: 1023px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form-col {
    position: static;
  }
  .contact-map-wrap {
    height: 360px;
  }
}

@media (max-width: 639px) {
  .contact-main-section {
    padding: 60px 0 80px;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
  .contact-input {
    font-size: 16px;
    padding: 14px 16px;
  }
  .contact-map-wrap {
    height: 280px;
  }
}

/* ── Contact Page — Unified Background ── */
.contact-page {
  background: #f8fafb;
}

.contact-page .contact-main-section {
  background: transparent;
}

.contact-page .section-alt {
  background: transparent;
}

/* ── Footer ── */
#site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.8);
  padding-top: var(--spacing-5xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-block: var(--spacing-md);
  max-width: 36ch;
}
.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width:18px; height:18px; color: rgba(255,255,255,.8); }
.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
}
.footer-links { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}
.footer-links a::before {
  content: '›';
  color: var(--color-accent);
  font-size: 1.1em;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-contact-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}
.footer-contact-item svg { width:18px; height:18px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: var(--font-size-sm); color: rgba(255,255,255,.6); line-height: 1.6; }
.footer-contact-item a { font-size: var(--font-size-sm); color: rgba(255,255,255,.6); }
.footer-contact-item a:hover { color: var(--color-accent); }
.footer-bottom {
  padding-block: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}
.footer-copyright {
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,.4);
}
.footer-legal {
  display: flex;
  gap: var(--spacing-lg);
}
.footer-legal a { font-size: var(--font-size-xs); color: rgba(255,255,255,.4); transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--color-accent); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Back to Top Button ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
#back-to-top svg { width:20px; height:20px; }


/* ── Animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.2); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Utility ── */
.text-center  { text-align: center; }
.text-accent  { color: var(--color-accent); }
.font-bold    { font-weight: 700; }
.mt-sm  { margin-top: var(--spacing-sm); }
.mt-md  { margin-top: var(--spacing-md); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mt-xl  { margin-top: var(--spacing-xl); }
.mb-xl  { margin-bottom: var(--spacing-xl); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ================================================================
   BLOG — Homepage preview + blog.html listing + blog-post.html
   ================================================================ */

/* ── Blog Section (Homepage) ── */
.blog-section {
  background: var(--color-bg-light);
}

.blog-grid {
  display: grid;
  gap: 1.75rem;
}

.blog-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.blog-cta-row {
  text-align: center;
  margin-top: 2.5rem;
}

/* ── Blog Card ── */
.blog-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,77,124,.07);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,77,124,.13);
}

.blog-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card:hover .blog-card__thumb img {
  transform: scale(1.06);
}

.blog-card__cat {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--color-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
}

.blog-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  color: var(--color-text-muted);
  margin-bottom: .65rem;
}

.blog-card__meta span { display: flex; align-items: center; gap: .25rem; }

.blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.4;
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: .84rem;
  color: var(--color-text-light);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap .2s;
}

.blog-card__link:hover { gap: .6rem; }

/* ── Blog Listing Page (blog.html) ── */
/* Filter bar */
.blog-filter-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: .85rem 0;
}

.blog-filter-inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: .4rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-family);
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Blog grid listing page */
.blog-listing-section {
  padding: 3.5rem 0 5rem;
  background: var(--color-bg-light);
}

.blog-grid--listing {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Blog Post Page (blog-post.html) ── */
/* Article body */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0 5rem;
}

.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 2rem 0 .75rem;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.5rem 0 .5rem;
}

.post-body p { margin-bottom: 1.1rem; }

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}

.post-body li { margin-bottom: .45rem; }

.post-body blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: rgba(67,181,175,.07);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,77,124,.07);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-related-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

.sidebar-related-item:last-child { border-bottom: none; }
.sidebar-related-item:hover .sidebar-related-title { color: var(--color-accent); }

.sidebar-related-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-related-title {
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}

.sidebar-related-date {
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-top: .2rem;
}

/* Post CTA */
.post-cta-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.post-cta-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.post-cta-card p {
  font-size: .85rem;
  opacity: .8;
  margin-bottom: 1.25rem;
}

/* ── Blog Responsive ── */
@media (max-width: 1024px) {
  .blog-grid--home,
  .blog-grid--listing {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-grid--home,
  .blog-grid--listing {
    grid-template-columns: 1fr;
  }

  .blog-filter-inner {
    gap: .35rem;
  }
}


/* ═══════════════════════════════════════════════════
   ── Service Cards — Learn More Link ──
   ═══════════════════════════════════════════════════ */
.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 12px;
  position: relative;
  transition: gap 0.3s ease, color 0.3s ease;
}

.service-learn-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.service-learn-more:hover::after {
  width: 100%;
}

.service-learn-more:hover {
  gap: 10px;
}

/* ═══════════════════════════════════════════════════
   ── Service Detail Pages ──
   ═══════════════════════════════════════════════════ */

/* ── Overview ── */
.svc-overview {
  padding: 90px 0;
  background: #ffffff;
}

.svc-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.svc-overview-image {
  border-radius: 20px;
  overflow: hidden;
}

.svc-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(0,77,124,0.06), rgba(0,77,124,0.14));
  border-radius: 20px;
  border: 1px solid rgba(0,77,124,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.svc-img-placeholder svg {
  width: 52px;
  height: 52px;
  stroke: rgba(0,77,124,0.35);
}

.svc-img-placeholder span {
  font-size: 12px;
  color: rgba(0,77,124,0.50);
  line-height: 1.6;
  font-family: monospace;
}

.svc-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(0,77,124,0.08);
  border: 1px solid rgba(0,77,124,0.20);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.svc-overview-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0 0 20px;
  line-height: 1.2;
}

.svc-overview-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0 0 14px;
}

.svc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.svc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(0,77,124,0.06);
  border: 1px solid rgba(0,77,124,0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.svc-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

.svc-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.svc-book-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.svc-book-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.svc-book-btn:hover svg {
  transform: translateX(4px);
}

/* ── Steps ── */
.svc-steps {
  padding: 90px 0;
  background: #f8fafb;
}

.svc-steps-header {
  text-align: center;
  margin-bottom: 60px;
}

.svc-steps-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}

.svc-steps-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  margin: 0;
}

.svc-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.svc-steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  width: 75%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0,77,124,0.20),
    rgba(0,77,124,0.40),
    rgba(0,77,124,0.20)
  );
  z-index: 0;
}

.svc-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.svc-step-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  opacity: 0.7;
}

.svc-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(0,77,124,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.svc-step:hover .svc-step-icon {
  background: rgba(0,77,124,0.08);
  border-color: rgba(0,77,124,0.40);
}

.svc-step-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

.svc-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.svc-step-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

/* ── Benefits ── */
.svc-benefits {
  padding: 90px 0;
  background: #ffffff;
}

.svc-benefits-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin: 0 0 52px;
}

.svc-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.svc-benefit-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.svc-benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.09);
  border-color: rgba(0,77,124,0.25);
}

.svc-benefit-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(0,77,124,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.svc-benefit-card:hover .svc-benefit-icon {
  background: rgba(0,77,124,0.14);
  transform: scale(1.08);
}

.svc-benefit-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

.svc-benefit-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}

.svc-benefit-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

/* ── Before & After ── */
.svc-beforeafter {
  padding: 90px 0;
  background: #f8fafb;
}

.svc-beforeafter-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin: 0 0 12px;
}

.svc-beforeafter-subtitle {
  font-size: 15px;
  color: var(--color-text-light);
  text-align: center;
  margin: 0 0 48px;
}

.svc-ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.svc-ba-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0.08));
  border: 2px dashed rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  position: relative;
}

.svc-ba-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
}

.svc-ba-after {
  background: linear-gradient(135deg, rgba(0,77,124,0.04), rgba(0,77,124,0.10));
  border-color: rgba(0,77,124,0.20);
}

.svc-ba-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 6px;
}

.svc-ba-hint {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  font-family: monospace;
}

/* ── FAQ ── */
.svc-faq {
  padding: 90px 0;
  background: #ffffff;
}

.svc-faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.svc-faq-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #43b5af;
  background: rgba(67, 181, 175, 0.10);
  border: 1px solid rgba(67, 181, 175, 0.25);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.svc-faq-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin: 0;
}

.svc-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.svc-faq-list .faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: background 0.25s ease;
}

.faq-item:hover {
  background: rgba(0, 0, 0, 0.015);
}

.faq-item.is-open {
  background: rgba(0, 0, 0, 0.015);
  border-left: 3px solid #43b5af;
  padding-left: 16px;
  margin-left: -3px;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #24427d;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #43b5af;
}

.faq-item.is-open .faq-question {
  color: #43b5af;
}

.faq-question > span:first-child {
  flex: 1;
  line-height: 1.5;
}

.faq-question:focus-visible {
  outline: 2px solid #43b5af;
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(67, 181, 175, 0.08);
  border: 1px solid rgba(67, 181, 175, 0.20);
  color: #43b5af;
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.35s ease, background 0.3s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(67, 181, 175, 0.15);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 8px 22px;
}

.faq-answer-inner p {
  font-size: 15px;
  line-height: 1.85;
  color: #303030;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .svc-overview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .svc-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-steps-grid::before {
    display: none;
  }
  .svc-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .svc-overview,
  .svc-steps,
  .svc-benefits,
  .svc-beforeafter,
  .svc-faq {
    padding: 60px 0;
  }
  .svc-steps-grid {
    grid-template-columns: 1fr;
  }
  .svc-benefits-grid {
    grid-template-columns: 1fr;
  }
  .svc-ba-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Homepage FAQ Section ── */

.hfaq-section {
  padding: 100px 0;
  background: #ffffff;
}

.hfaq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* ── LEFT COLUMN ── */
.hfaq-left {
  position: relative;
  min-height: 320px;
}

.hfaq-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #43b5af;
  background: rgba(67, 181, 175, 0.10);
  border: 1px solid rgba(67, 181, 175, 0.25);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hfaq-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: #24427d;
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hfaq-divider {
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #43b5af;
  margin-bottom: 20px;
}

.hfaq-subtitle {
  font-size: 14.5px;
  line-height: 1.75;
  color: #6b7280;
  margin: 0 0 40px;
  max-width: 100%;
}

.hfaq-illustration {
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 85%;
  max-width: 280px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hfaq-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.hfaq-left-content {
  position: relative;
  z-index: 1;
}

/* ── RIGHT COLUMN ── */
.hfaq-right {
  padding-top: 4px;
}

.hfaq-accordion {
  display: flex;
  flex-direction: column;
}

.hfaq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease,
              transform 0.5s ease,
              background 0.25s ease;
}

.hfaq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hfaq-item.hfaq-visible {
  opacity: 1;
  transform: translateY(0);
}

.hfaq-item:nth-child(1) { transition-delay: 0.00s; }
.hfaq-item:nth-child(2) { transition-delay: 0.08s; }
.hfaq-item:nth-child(3) { transition-delay: 0.16s; }
.hfaq-item:nth-child(4) { transition-delay: 0.24s; }
.hfaq-item:nth-child(5) { transition-delay: 0.32s; }

.hfaq-item:hover {
  background: rgba(0, 0, 0, 0.015);
}

.hfaq-item.hfaq-open {
  background: rgba(0, 0, 0, 0.015);
  border-left: 3px solid #43b5af;
  padding-left: 16px;
  margin-left: -3px;
}

.hfaq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #24427d;
  transition: color 0.3s ease;
}

.hfaq-question:hover {
  color: #43b5af;
}

.hfaq-item.hfaq-open .hfaq-question {
  color: #43b5af;
}

.hfaq-question > span:first-child {
  flex: 1;
  line-height: 1.5;
}

.hfaq-question:focus-visible {
  outline: 2px solid #43b5af;
  outline-offset: 2px;
  border-radius: 4px;
}

.hfaq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(67, 181, 175, 0.08);
  border: 1px solid rgba(67, 181, 175, 0.20);
  color: #43b5af;
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.35s ease,
              background 0.3s ease;
}

.hfaq-item.hfaq-open .hfaq-icon {
  transform: rotate(45deg);
  background: rgba(67, 181, 175, 0.15);
}

.hfaq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-in-out,
              opacity 0.35s ease;
}

.hfaq-item.hfaq-open .hfaq-answer {
  max-height: 200px;
  opacity: 1;
}

.hfaq-answer-inner {
  padding: 0 8px 22px;
}

.hfaq-answer-inner p {
  font-size: 15px;
  line-height: 1.85;
  color: #303030;
  margin: 0;
}

@media (max-width: 1023px) {
  .hfaq-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hfaq-left {
    position: relative;
    min-height: 240px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hfaq-left-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hfaq-subtitle {
    max-width: 480px;
  }
  .hfaq-illustration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    max-width: 200px;
    opacity: 0.15;
    margin: 0;
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 767px) {
  .hfaq-section {
    padding: 64px 0;
  }
  .hfaq-left {
    min-height: 200px;
  }
  .hfaq-question {
    padding: 18px 8px;
    font-size: 15px;
    min-height: 56px;
  }
  .hfaq-illustration {
    width: 170px;
    max-width: 170px;
    opacity: 0.13;
    bottom: -10px;
  }
}

/* ══════════════════════════════════════════════════════════════
   ── Blog Post Page (blog-post-*.html)
══════════════════════════════════════════════════════════════ */

/* ── HERO ── */
.bp-hero.inner-hero {
  text-align: center;
}

.bp-hero-content.inner-hero-content {
  max-width: 820px;
}

.bp-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.bp-title.inner-hero-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 20px;
}

.bp-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.bp-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
}

.bp-meta-item svg {
  opacity: 0.7;
}

.bp-meta-dot {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

/* ── LAYOUT ── */
.bp-layout {
  padding: 72px 0 100px;
  background: #ffffff;
}

.bp-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

/* ── MAIN ARTICLE ── */
.bp-featured-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16 / 9;
}

.bp-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 77, 124, 0.06), rgba(0, 77, 124, 0.14));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  min-height: 360px;
}

.bp-img-placeholder svg {
  width: 52px;
  height: 52px;
  stroke: rgba(0, 77, 124, 0.35);
}

.bp-img-placeholder span {
  font-size: 12px;
  color: rgba(0, 77, 124, 0.50);
  font-family: monospace;
  line-height: 1.6;
}

/* Article typography */
.bp-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--color-text);
  font-weight: 400;
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.bp-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-text-light);
}

.bp-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.4em 0 0.8em;
  line-height: 1.25;
}

.bp-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 2em 0 0.6em;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
}

.bp-body p {
  margin: 0 0 1.5em;
}

/* Pull quote */
.bp-pullquote {
  border-left: 4px solid var(--color-accent);
  background: rgba(67, 181, 175, 0.05);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 2em 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
}

/* Inline CTA */
.bp-inline-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(67, 181, 175, 0.06);
  border: 1px solid rgba(67, 181, 175, 0.20);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 2.5em 0;
  flex-wrap: wrap;
}

.bp-inline-cta-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(67, 181, 175, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-inline-cta-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
}

.bp-inline-cta-text {
  flex: 1;
  min-width: 180px;
}

.bp-inline-cta-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.bp-inline-cta-text p {
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

.bp-inline-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.bp-inline-cta-btn:hover {
  opacity: 0.88;
}

/* ── SIDEBAR ── */
.bp-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bp-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.bp-sidebar-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Book card */
.bp-book-card {
  background: var(--color-primary-dark);
  border-color: transparent;
}

.bp-book-card .bp-sidebar-card-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.bp-book-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bp-book-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.bp-sidebar-card-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.70);
  margin: 0 0 18px;
}

.bp-sidebar-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.bp-sidebar-book-btn:hover {
  opacity: 0.88;
}

/* Share buttons */
.bp-share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.bp-share-btn:hover {
  opacity: 0.85;
}

.bp-share-facebook { background: #1877f2; color: #ffffff; }
.bp-share-twitter  { background: #1da1f2; color: #ffffff; }
.bp-share-whatsapp { background: #25d366; color: #ffffff; }

/* Most read */
.bp-most-read {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bp-most-read-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.bp-most-read-item:hover {
  opacity: 0.75;
}

.bp-most-read-num {
  font-size: 22px;
  font-weight: 800;
  color: rgba(67, 181, 175, 0.30);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}

.bp-most-read-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-most-read-meta {
  font-size: 11px;
  color: var(--color-text-light);
}

/* Categories */
.bp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bp-category-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: all 0.25s ease;
}

.bp-category-pill:hover {
  background: rgba(67, 181, 175, 0.08);
  border-color: rgba(67, 181, 175, 0.25);
  color: var(--color-accent);
}

.bp-category-pill.bp-category-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

/* ── RELATED ARTICLES ── */
.bp-related-section {
  padding: 80px 0;
  background: #f8fafb;
}

.bp-related-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 40px;
}

.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Related article cards */
.blog-card-rc {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card-rc:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.blog-card-image-link {
  display: block;
  text-decoration: none;
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(0, 77, 124, 0.06), rgba(67, 181, 175, 0.10));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.blog-card-img-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: rgba(0, 77, 124, 0.30);
}

.blog-card-img-placeholder span {
  font-size: 11px;
  color: rgba(0, 77, 124, 0.45);
  font-family: monospace;
}

.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.blog-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.blog-card-dot {
  color: var(--color-text-muted);
  font-size: 12px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--color-text-light);
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.blog-card-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-card-title a:hover {
  color: var(--color-accent);
}

.blog-card-excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0 0 16px;
  flex: 1;
}

.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap 0.25s ease;
  margin-top: auto;
}

.blog-card-readmore:hover {
  gap: 10px;
}

.readmore-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.blog-card-readmore:hover .readmore-arrow {
  transform: translateX(3px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
  .bp-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bp-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .bp-book-card {
    grid-column: 1 / -1;
  }

  .bp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bp-layout {
    padding: 48px 0 72px;
  }

  .bp-sidebar {
    grid-template-columns: 1fr;
  }

  .bp-body {
    font-size: 16px;
  }

  .bp-lead {
    font-size: 16px;
  }

  .bp-related-grid {
    grid-template-columns: 1fr;
  }

  .bp-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .bp-pullquote {
    font-size: 16px;
  }
}

/* ── Floating WhatsApp Button — Redesigned ── */

.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  padding: 13px 22px 13px 16px;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;

  /* Entrance animation */
  animation: wpSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1)
             forwards 1s;
  opacity: 0;
  transform: translateY(20px);
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(37, 211, 102, 0.50),
    0 4px 12px rgba(0, 0, 0, 0.16);
  max-width: none;
  padding: 13px 22px 13px 16px;
}

.floating-whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  padding: 4px;
}

.floating-whatsapp-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
  display: block;
}

/* Label — always visible on desktop */
.floating-whatsapp-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  opacity: 1;
  max-width: none;
  margin-left: 0;
  white-space: nowrap;
  transition: none;
}

/* Pulse ring */
.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.35);
  animation: wpPulse 2.8s ease-out infinite 2s;
  pointer-events: none;
  z-index: -1;
}

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

@keyframes wpPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.35); opacity: 0;    }
  100% { transform: scale(1.35); opacity: 0;    }
}

/* Mobile — slightly smaller */
@media (max-width: 767px) {
  .floating-whatsapp {
    bottom: 20px;
    left: 16px;
    padding: 11px 18px 11px 13px;
    gap: 8px;
  }
  .floating-whatsapp-icon {
    width: 28px;
    height: 28px;
  }
  .floating-whatsapp-icon svg {
    width: 18px;
    height: 18px;
  }
  .floating-whatsapp-label {
    font-size: 13px;
  }
  .floating-whatsapp::before {
    display: none;
  }
}
