/* ============================================================
   DrOAK — Homepage Redesign ("Calm Medical-Luxury")
   Layered on top of style.css. Only linked from index.html.
   ============================================================ */

:root {
  /* Brand */
  --primary: #860DC0;
  --primary-light: #A846D6;
  --primary-dark: #5E0A88;
  --primary-soft: #F3E8FB;

  /* Warm accent */
  --accent: #E68FB0;
  --accent-soft: #FBEAF1;
  --accent-deep: #C25C84;

  /* Neutrals (warm) */
  --ink: #241B2E;
  --ink-soft: #5C5566;
  --paper: #FBF8FD;
  --paper-2: #F5EFFA;
  --line: rgba(94, 10, 136, 0.10);

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(36, 27, 46, 0.06);
  --shadow-md: 0 14px 40px rgba(94, 10, 136, 0.10);
  --shadow-lg: 0 30px 70px rgba(94, 10, 136, 0.16);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

/* ─── Base typography overrides ─── */
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.section-title, .hero h1, .welcome-grid h2, .cta-section h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

::selection { background: var(--accent-soft); color: var(--primary-dark); }

/* ─── Top bar ─── */
.top-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* ─── Header (glass + scroll state) ─── */
header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: none;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease), padding 0.3s var(--ease);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(94, 10, 136, 0.08);
  border-bottom-color: var(--line);
}

.logo span:first-child {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--primary-dark);
}

nav a { font-weight: 500; color: var(--ink); }
nav a::after { height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--paper);
  color: var(--ink);
  padding: 110px 0 120px;
  position: relative;
  overflow: clip;
  isolation: isolate;
}

/* layered mesh background */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px;
  top: -220px; right: -160px;
  background: radial-gradient(circle at 30% 30%, var(--primary-light), transparent 65%);
}
.hero::after {
  width: 520px; height: 520px;
  bottom: -220px; left: -140px;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 65%);
  opacity: 0.4;
}

/* soft floating orbs (decorative, animated) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(168,70,214,0.18), rgba(230,143,176,0.18));
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb.o1 { width: 120px; height: 120px; top: 18%; left: 6%; animation-delay: 0s; }
.hero-orb.o2 { width: 70px;  height: 70px;  top: 64%; left: 44%; animation-delay: -3s; }
.hero-orb.o3 { width: 90px;  height: 90px;  top: 12%; right: 38%; animation-delay: -7s; }

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-22px) translateX(12px); }
  66%      { transform: translateY(14px) translateX(-10px); }
}

.hero .container {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow i { color: var(--accent-deep); }

.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 500px;
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(134, 13, 192, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep));
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(134, 13, 192, 0.36);
}
.btn-outline {
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: var(--white);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-3px);
}
/* shimmer sweep */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn:hover::after { left: 140%; }

/* Hero visual */
.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  z-index: 0;
}

/* floating glass stat card on hero image */
.hero-float-card {
  position: absolute;
  bottom: 26px;
  left: -28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-float-card .fc-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  color: #fff; font-size: 18px;
}
.hero-float-card .fc-num { font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.1; }
.hero-float-card .fc-label { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  margin-top: -60px;
  position: relative;
  z-index: 3;
}
.stats-band .container {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, var(--accent-deep));
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stats-band .container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -20%, rgba(255,255,255,0.18), transparent 50%);
  pointer-events: none;
}
.stat-item { text-align: center; color: #fff; position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: -12px; top: 12%;
  height: 76%; width: 1px;
  background: rgba(255,255,255,0.18);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13.5px; opacity: 0.85; letter-spacing: 0.02em; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }

.eyebrow {
  display: block;
  text-align: center;
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  color: var(--ink);
}
.section-title .accent {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-style: italic;
}
.section-subtitle { color: var(--ink-soft); }

/* ─── Welcome ─── */
.welcome-grid { gap: 64px; }
.welcome-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.welcome-grid h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; color: var(--ink); }
.welcome-grid h2 .accent { color: var(--primary); font-style: italic; }
.welcome-grid p { color: var(--ink-soft); font-size: 17px; }
.welcome-media { position: relative; }
.welcome-media::after {
  content: '';
  position: absolute;
  inset: -16px -16px 18px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), var(--primary-soft));
  z-index: -1;
}

/* ============================================================
   APPROACH / WHY US
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-card .f-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 24px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(134, 13, 192, 0.25);
}
.feature-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: var(--ink); margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 15.5px; }

/* ============================================================
   SERVICES — bento grid
   ============================================================ */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
}
/* feature the first card (spans 2 cols + 2 rows) */
.services-grid .service-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(150deg, var(--primary-dark), var(--primary) 60%, var(--accent-deep));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.services-grid .service-card:first-child h3,
.services-grid .service-card:first-child p { color: #fff; }
.services-grid .service-card:first-child h3 { font-size: 26px; }
.services-grid .service-card:first-child p { opacity: 0.9; font-size: 16px; }
.services-grid .service-card:first-child .icon {
  background: rgba(255,255,255,0.16);
  width: 64px; height: 64px; font-size: 28px;
}
.services-grid .service-card:first-child .read-more { color: #fff; }

.service-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
/* make the whole card clickable via the "Learn More" link */
.service-card .read-more::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.service-card .icon {
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  border-radius: 14px;
}
.service-card h3 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); }
.service-card .read-more {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex; gap: 4px;
  transition: gap 0.3s var(--ease);
}
.service-card:hover .read-more { gap: 10px; }

/* ============================================================
   PHILOSOPHY pull-quote
   ============================================================ */
.philosophy {
  background:
    radial-gradient(circle at 10% 0%, var(--primary-soft), transparent 45%),
    radial-gradient(circle at 100% 100%, var(--accent-soft), transparent 45%),
    var(--paper);
  text-align: center;
}
.philosophy .container { max-width: 900px; }
.philosophy .quote-mark {
  font-family: var(--font-serif);
  font-size: 90px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 8px;
}
.philosophy blockquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 26px;
}
.philosophy .author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}
.philosophy .author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--white);
}
.philosophy .author small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--paper);
  padding: 40px 0 110px;
}
.cta-section .container {
  background: linear-gradient(125deg, var(--primary-dark), var(--primary) 55%, var(--accent-deep));
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-section .container::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
}
.cta-section h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; position: relative; }
.cta-section p { position: relative; }
.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-dark);
  position: relative;
}
.cta-section .btn-primary:hover { background: #fff; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero { padding: 80px 0 90px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { margin-top: 12px; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat-item:nth-child(3)::before { display: none; }
  .approach-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:first-child { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .stats-band .container { grid-template-columns: 1fr 1fr; padding: 28px 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:first-child { grid-column: auto; }
  .hero-float-card { left: 50%; transform: translateX(-50%); bottom: -22px; }
  .stat-item + .stat-item::before { display: none; }
}

/* ============================================================
   RTL
   ============================================================ */
[dir="rtl"] .hero .container { text-align: right; }
[dir="rtl"] .hero p { margin-right: 0; }
[dir="rtl"] .hero-float-card { left: auto; right: -28px; }
[dir="rtl"] .hero-image::before { inset: 18px 18px -18px -18px; }
[dir="rtl"] .welcome-media::after { inset: -16px 18px 18px -16px; }
[dir="rtl"] .stat-item + .stat-item::before { left: auto; right: -12px; }

@media (max-width: 600px) {
  [dir="rtl"] .hero-float-card { right: 50%; transform: translateX(50%); }
}

/* ============================================================
   INNER PAGES (doctor, contact, services)
   ============================================================ */
.page-hero {
  background: var(--paper);
  color: var(--ink);
  padding: 132px 0 74px;
  text-align: center;
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}
.page-hero::before {
  width: 460px; height: 460px;
  top: -200px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--primary-light), transparent 65%);
  opacity: 0.5;
}
.page-hero::after {
  width: 380px; height: 380px;
  bottom: -200px; left: -100px;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  opacity: 0.32;
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  animation: fadeUp 0.7s var(--ease) both;
}
.page-hero p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
  animation: fadeUp 0.7s var(--ease) 0.12s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Content pages */
.content-page { padding: 84px 0; background: var(--paper); }
.content-page .container { max-width: 880px; }
.content-page h2 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: 46px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  border-image: linear-gradient(var(--primary), var(--accent-deep)) 1;
}
.content-page h2:first-child { margin-top: 0; }
.content-page h3 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: 21px;
  font-weight: 600;
  margin: 30px 0 10px;
}
.content-page p { color: var(--ink-soft); font-size: 16.5px; }
.content-page ul li { color: var(--ink-soft); }
.content-page ul li::marker { color: var(--accent-deep); }
.content-image, .content-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Highlight boxes -> soft cards */
.content-page .highlight-box {
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.4));
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.content-page .highlight-box h4 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  font-size: 18px;
}
.content-page .highlight-box[style*="27ae60"] {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.10), rgba(255, 255, 255, 0.4));
}

/* Doctor profile */
.doctor-profile { gap: 56px; }
.doctor-profile img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.doctor-profile h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink);
  border: none;
  padding: 0;
}
.doctor-profile p { color: var(--ink-soft); }

/* Credentials as chips */
.credentials { display: grid; gap: 12px; margin-top: 28px; }
.credentials li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.credentials li:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.credentials li i {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

/* Contact */
.contact-grid { gap: 56px; }
#contactForm {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.contact-grid h2 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(168, 70, 214, 0.12);
  background: #fff;
}
.btn-submit {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep));
  box-shadow: 0 12px 30px rgba(134, 13, 192, 0.28);
}
.contact-info h3 {
  font-family: var(--font-serif);
  color: var(--primary-dark);
  display: flex; align-items: center; gap: 10px;
}
.contact-info h3 i {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
}
.map-container { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hours-table td { border-bottom-color: var(--line); color: var(--ink-soft); }
.closed { color: var(--accent-deep); font-weight: 600; }

/* RTL — inner pages */
[dir="rtl"] .content-page h2 {
  padding-left: 0; padding-right: 16px;
  border-left: none; border-right: 4px solid var(--primary);
  border-image: linear-gradient(var(--primary), var(--accent-deep)) 1;
}
[dir="rtl"] .content-page .highlight-box {
  border-left: 1px solid var(--line);
  border-right: 5px solid var(--primary);
}
[dir="rtl"] .credentials li:hover { transform: translateX(-6px); }

/* ============================================================
   MOTION LAYER
   ============================================================ */

/* Directional & scale reveal variants (share .visible trigger) */
.reveal-left  { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal-scale { transform: scale(0.92); opacity: 0; }
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible { transform: none; opacity: 1; }

/* Scroll progress bar (injected) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 1000;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-deep));
  box-shadow: 0 0 10px rgba(134, 13, 192, 0.5);
  transition: width 0.08s linear;
}

/* Animated gradient text */
.hero h1 .accent,
.section-title .accent,
.welcome-grid h2 .accent {
  background: linear-gradient(120deg, var(--primary), var(--accent-deep), var(--primary));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textSheen 6s ease-in-out infinite;
}
@keyframes textSheen {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Heartbeat pulse on hero eyebrow icon */
.hero-eyebrow i {
  display: inline-block;
  animation: heartbeat 2.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartbeat {
  0%, 28%, 70%, 100% { transform: scale(1); }
  14% { transform: scale(1.28); }
  42% { transform: scale(1.16); }
}

/* Service / feature icon bob on hover */
.service-card:hover .icon,
.feature-card:hover .f-icon {
  animation: iconBob 0.9s var(--ease) infinite alternate;
}
@keyframes iconBob {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-6px) rotate(3deg); }
}

/* Floating glow ring on featured service card */
.services-grid .service-card:first-child::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  animation: floatOrb 10s ease-in-out infinite;
  pointer-events: none;
}

/* Scroll-down cue */
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  z-index: 4;
  transition: opacity 0.4s var(--ease), border-color 0.3s var(--ease);
}
.scroll-cue:hover { border-color: var(--primary-light); }
.scroll-cue-dot {
  width: 5px; height: 8px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--accent-deep));
  animation: cueScroll 1.8s ease-in-out infinite;
}
@keyframes cueScroll {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}
.hero.scrolled-past .scroll-cue { opacity: 0; pointer-events: none; }

/* Back-to-top button (injected) */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-deep));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 999;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

[dir="rtl"] .back-to-top { right: auto; left: 26px; }

html { scroll-behavior: smooth; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-orb, .hero-float-card,
  .hero-eyebrow i,
  .scroll-cue-dot,
  .page-hero h1, .page-hero p,
  .hero h1 .accent, .section-title .accent, .welcome-grid h2 .accent,
  .services-grid .service-card:first-child::after { animation: none; }
  .service-card:hover .icon, .feature-card:hover .f-icon { animation: none; }
  .btn::after { display: none; }
  .scroll-progress { transition: none; }
}
