/* ==========================================================================
   VISHNU INTEGRATED SURGICAL CLINIC — DESIGN SYSTEM & STYLESHEET
   Dr. (Lt. Col.) Sunil V Revankar (Retd.) | Belagavi
   Crafted with high-end medical refinement, restrained Apple-style elegance,
   fluid typography, balanced whitespace, and purposeful micro-motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette — Dignified, Clinical, Authoritative */
  --navy-deep: #091a38;
  --navy: #0e244d;
  --navy-mid: #16366f;
  --blue-primary: #19448a;
  --blue-subtle: #2358ad;
  --teal-accent: #1e7078;
  --teal-light: #2b828a;
  --teal-surface: #edf5f6;
  --gold-accent: #b08d4b;
  --gold-light: #c4a162;

  /* Backward Compatibility Aliases for Shared Pages (e.g. faq.html) */
  --premium-navy: var(--navy);
  --premium-ink: var(--ink-primary);
  --premium-teal: var(--teal-accent);
  --premium-gold: var(--gold-accent);
  --premium-warm: var(--bg-page);
  --premium-line: var(--border-subtle);
  --blue: var(--blue-primary);

  /* Neutrals & Surfaces */
  --ink-primary: #0f1f38;
  --ink-secondary: #3c4b64;
  --ink-muted: #5e6e88;
  --ink-faint: #8493ab;
  --bg-page: #faf9f6;
  --bg-surface: #ffffff;
  --bg-subtle: #f2f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --border-hairline: rgba(14, 36, 77, 0.08);
  --border-subtle: rgba(14, 36, 77, 0.12);
  --border-strong: rgba(14, 36, 77, 0.20);
  --border-dark-mode: rgba(255, 255, 255, 0.14);

  /* Typography Scale */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --container-max: 1180px;
  --section-padding-y: clamp(75px, 8.5vw, 115px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Apple-Grade Restrained Shadows */
  --shadow-ambient: 0 2px 8px rgba(9, 26, 56, 0.03), 0 1px 2px rgba(9, 26, 56, 0.02);
  --shadow-card: 0 4px 16px rgba(9, 26, 56, 0.04), 0 16px 40px rgba(9, 26, 56, 0.04);
  --shadow-hover: 0 8px 26px rgba(9, 26, 56, 0.07), 0 24px 60px rgba(9, 26, 56, 0.09);
  --shadow-elevated: 0 12px 32px rgba(9, 26, 56, 0.08), 0 30px 80px rgba(9, 26, 56, 0.12);
  --shadow-dark-card: 0 20px 60px rgba(0, 0, 0, 0.26);

  /* Fluid Motion Timing */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fluid: 700ms;
  --duration-hover: 280ms;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE FOUNDATIONS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-secondary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

/* Consistent Max-Width Container */
.container {
  width: min(var(--container-max), 90%);
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 600;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

p:last-child {
  margin-bottom: 0;
}

/* Eyebrows / Kickers — Intentional, Understated, Medical Precision */
.eyebrow,
.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 14px;
}

/* Section Heading Grouping */
.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.section-heading.compact-heading {
  margin-bottom: 30px;
}

/* Section Base Spacing */
.section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION & HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 4px 20px rgba(9, 26, 56, 0.03);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-wrap {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: scale(1.02);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
}

.nav a {
  display: inline-block;
  position: relative;
  color: var(--ink-secondary);
  padding: 8px 2px;
  transition: color 0.25s ease, transform 0.25s var(--ease-apple);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--teal-accent);
  border-radius: var(--radius-pill);
  transition: right 0.28s var(--ease-apple);
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
}

.nav a:hover {
  transform: translateY(-2px);
}

.nav a:hover::after,
.nav a.active::after {
  right: 0;
}

.nav-cta {
  background: var(--navy);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(14, 36, 77, 0.16);
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple), background 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 36, 77, 0.24);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(14, 36, 77, 0.16);
}

.btn-primary:hover {
  background: var(--navy-mid);
  box-shadow: 0 12px 28px rgba(14, 36, 77, 0.24);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-ambient);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--navy-mid);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(14, 36, 77, 0.08);
}

.btn-light {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  margin-top: 14px;
}

.text-link span {
  display: inline-block;
  transition: transform 0.25s var(--ease-apple);
}

.text-link:hover {
  color: var(--teal-accent);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(75px, 8.5vw, 110px) 0 clamp(65px, 7vw, 95px);
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(30, 112, 120, 0.07), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 85%, rgba(176, 141, 75, 0.05), transparent 70%),
    linear-gradient(180deg, #faf9f6 0%, #f3f6fa 60%, #faf9f6 100%);
}

.hero-glow {
  display: none; /* Removed harsh blurry blob in favor of refined ambient gradients */
}

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

.hero-copy {
  max-width: 680px;
}

.hero h1 span {
  color: var(--teal-accent);
  display: inline;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.68;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.hero-consultation {
  display: inline-block;
  background: rgba(30, 112, 120, 0.08);
  border: 1px solid rgba(30, 112, 120, 0.18);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-hairline);
  width: fit-content;
}

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

.hero-trust strong {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.1;
  color: var(--navy);
  font-weight: 600;
}

.hero-trust span {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* Hero Side Feature Cards */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 410px;
  justify-self: end;
}

.hero-feature-card {
  padding: 34px 32px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple), border-color var(--duration-hover) ease;
}

.hero-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 112, 120, 0.25);
}

.feature-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: var(--teal-accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-title {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 8px;
}

.hero-feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Secondary dark accent hero card */
.hero-feature-card.secondary {
  background: linear-gradient(145deg, #091a38 0%, #112852 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark-card);
  color: #ffffff;
}

.hero-feature-card.secondary:hover {
  border-color: rgba(196, 161, 98, 0.4);
  box-shadow: 0 25px 65px rgba(9, 26, 56, 0.35);
}

.hero-feature-card.secondary .feature-number {
  color: var(--gold-light);
}

.hero-feature-card.secondary .feature-title {
  color: #ffffff;
}

.hero-feature-card.secondary p {
  color: #cdd8eb;
}

/* --------------------------------------------------------------------------
   7. STATS STRIP
   -------------------------------------------------------------------------- */
.stats-strip {
  background: linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 60%, #164057 100%);
  color: #ffffff;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stats-grid div {
  padding: 6px 16px;
  text-align: center;
  position: relative;
}

.stats-grid div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.stats-grid p {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: #e4ecf9;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   8. ABOUT THE CLINIC
   -------------------------------------------------------------------------- */
.about {
  background: var(--bg-page);
}

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 84px;
  align-items: start;
}

.about p {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   9. AREAS OF EXPERTISE
   -------------------------------------------------------------------------- */
.expertise {
  background: linear-gradient(180deg, #f1f5fa 0%, #faf9f6 100%);
}

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

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple), border-color var(--duration-hover) ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 112, 120, 0.25);
}

.service-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.68;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. DOCTOR SECTION & CREDENTIALS
   -------------------------------------------------------------------------- */
.doctor-section {
  background: var(--bg-page);
}

.doctor-profile {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
  align-items: center;
}

.profile-image {
  background: #edf3f8;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.profile-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.profile-title {
  color: var(--teal-accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.profile-copy > p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.74;
  margin-bottom: 16px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}

.credentials div {
  padding: 14px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple);
}

.credentials div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.credentials strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 4px;
}

.credentials span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   11. EDUCATION & CPD
   -------------------------------------------------------------------------- */
.surgeon-education {
  margin-top: 96px;
}

.education-table-wrap {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.education-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.education-table th {
  background: linear-gradient(135deg, var(--navy) 0%, #153c6e 100%);
  color: #ffffff;
  text-align: left;
  padding: 16px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.education-table td {
  padding: 16px 22px;
  border-top: 1px solid var(--border-hairline);
  vertical-align: middle;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.education-table th:nth-child(1),
.education-table td:nth-child(1) {
  width: 32%;
  font-weight: 600;
  color: var(--navy);
}

.education-table th:nth-child(2),
.education-table td:nth-child(2) {
  width: 54%;
}

.education-table th:nth-child(3),
.education-table td:nth-child(3) {
  width: 14%;
  text-align: center;
  font-weight: 700;
  color: var(--teal-accent);
}

.education-table tbody tr:nth-child(even) {
  background: rgba(243, 246, 250, 0.5);
}

.education-table tbody tr:hover {
  background: rgba(237, 245, 246, 0.4);
}

/* CPD Panel */
.cpd-panel {
  margin-top: 36px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fb 100%);
  box-shadow: var(--shadow-card);
}

.cpd-heading h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--navy);
}

.cpd-list {
  margin: 0;
  padding-left: 22px;
  color: var(--ink-secondary);
}

.cpd-list li {
  margin-bottom: 12px;
  line-height: 1.62;
  font-size: 14px;
}

.cpd-list li:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. WHY CHOOSE DR. REVANKAR
   -------------------------------------------------------------------------- */
.why-choose {
  background: linear-gradient(180deg, #faf9f6 0%, #f0f4f8 100%);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
}

.why-card {
  padding: 32px 30px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple), border-color var(--duration-hover) ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 112, 120, 0.22);
}

.why-card h3 {
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 12px;
}

.why-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.why-card em {
  color: var(--navy);
  font-style: normal;
  font-weight: 600;
}

/* Approach Panel — Editorial, Dignified, Authoritative */
.approach-panel {
  margin-top: 56px;
  padding: 48px 52px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #154256 100%);
  color: #ffffff;
  box-shadow: var(--shadow-elevated);
}

.approach-panel .section-kicker {
  color: #b7e4e6;
  margin-bottom: 24px;
}

.approach-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
}

.approach-item {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.approach-item:first-child {
  border-left: 0;
}

.approach-item strong {
  display: block;
  max-width: 240px;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   13. PROFESSIONAL MEMBERSHIPS
   -------------------------------------------------------------------------- */
.memberships {
  background: var(--bg-surface);
}

.membership-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.membership-group {
  padding: 36px 32px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: var(--shadow-card);
}

.membership-group-heading {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-hairline);
}

.membership-label {
  color: var(--teal-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.membership-group-heading h3 {
  margin: 6px 0 0;
  font-size: 26px;
  color: var(--navy);
}

.membership-list {
  display: grid;
  gap: 12px;
}

.membership-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple);
}

.membership-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-ambient);
}

.membership-card strong {
  color: var(--ink-primary);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.membership-card span {
  flex: 0 0 auto;
  color: var(--teal-accent);
  font-size: 12px;
  font-weight: 700;
  background: var(--teal-surface);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.membership-note {
  margin-top: 28px;
  color: var(--ink-faint);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* --------------------------------------------------------------------------
   14. TRAINING & EXPERIENCE / JOURNEY
   -------------------------------------------------------------------------- */
.journey {
  background: linear-gradient(180deg, #f0f4f8 0%, #faf9f6 100%);
}

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

.timeline-item {
  display: block;
  min-height: 230px;
  padding: 32px 28px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-hover) var(--ease-apple), box-shadow var(--duration-hover) var(--ease-apple), border-color var(--duration-hover) ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 112, 120, 0.22);
}

.timeline-item h3 {
  font-size: 20px;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   15. APPOINTMENTS SECTION
   -------------------------------------------------------------------------- */
.appointment {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #0d2654 60%, #134657 100%);
  color: #ffffff;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.appointment .section-kicker {
  color: #b7e4e6;
}

.appointment h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.appointment-intro > p {
  color: #cdd9ec;
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.hours {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 36px;
  padding-top: 28px;
}

.hours h3 {
  color: #ffffff;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hours p {
  color: #cdd9ec;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.hours p strong {
  color: #ffffff;
}

/* Appointment Form Card */
.appointment-form {
  background: #ffffff;
  color: var(--ink-primary);
  padding: 40px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.appointment-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: grid;
  gap: 8px;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  outline: none;
  background: #ffffff;
  color: var(--ink-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(25, 68, 138, 0.12);
}

.full {
  width: 100%;
  margin-top: 6px;
  padding: 14px 24px;
  font-size: 15px;
}

.form-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  text-align: center;
}

/* Focus Highlight Animation for Direct Nav Jump */
@keyframes appointmentFocusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 112, 120, 0); }
  25%  { box-shadow: 0 0 0 10px rgba(34, 112, 120, 0.22); }
  60%  { box-shadow: 0 0 0 18px rgba(34, 112, 120, 0.08); }
  100% { box-shadow: 0 0 0 0 rgba(34, 112, 120, 0); }
}

.appointment.appointment-focus {
  animation: appointmentFocusPulse 1.6s ease-out;
}

/* --------------------------------------------------------------------------
   16. CONTACT & CLINIC LOCATION
   -------------------------------------------------------------------------- */
.contact-band {
  background: linear-gradient(135deg, #0d2654 0%, var(--navy-mid) 55%, #1d5f66 100%);
  color: #ffffff;
  padding: clamp(75px, 8vw, 105px) 0;
}

.contact-band .section-kicker {
  color: #b7e4e6;
}

.contact-band h2 {
  color: #ffffff !important;
  font-size: clamp(30px, 3.8vw, 42px);
  margin-bottom: 14px;
}

.contact-band p {
  color: #d1dced !important;
  font-size: 16px;
  line-height: 1.68;
}

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

.contact-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.map-card {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 310px;
  border: 0;
  border-radius: var(--radius-lg);
}

.map-link {
  display: block;
  color: var(--blue-primary);
  font-weight: 700;
  padding: 14px 10px 6px;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.map-link:hover {
  color: var(--teal-accent);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  color: #a4b4cc;
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.footer-logo {
  width: 145px;
  height: auto;
  object-fit: contain;
  object-position: left;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer p strong {
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 6px;
}

.footer a {
  color: #d1dced;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7d8da6;
}

/* --------------------------------------------------------------------------
   18. FLOATING QUICK ACTIONS & BACK TO TOP
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.floating-actions a {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(9, 26, 56, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--duration-hover) var(--ease-apple), background 0.2s ease, box-shadow var(--duration-hover) var(--ease-apple);
}

.floating-actions a:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--navy-mid);
  box-shadow: 0 12px 30px rgba(9, 26, 56, 0.32);
}

.back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(9, 26, 56, 0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease-apple), transform 0.3s var(--ease-apple), visibility 0.3s var(--ease-apple), background 0.2s ease;
  cursor: pointer;
}

.back-to-top:hover {
  background: var(--navy-mid);
  transform: translateY(0) scale(1.04);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(183, 228, 230, 0.8);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   19. APPLE-STYLE RESTRAINED MOTION ENGINE
   -------------------------------------------------------------------------- */
/* Base: all elements are 100% visible by default on all devices (no-JS / reduced-motion safe) */
.reveal,
.reveal-stagger > * {
  opacity: 1;
  transform: none;
}

/* Progressive enhancement: when JS motion engine is active, set initial state and continuous transition */
html.js-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-ready .reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-ready .reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 0.44s; }
.reveal-stagger.is-revealed > *:nth-child(7) { transition-delay: 0.52s; }
.reveal-stagger.is-revealed > *:nth-child(8) { transition-delay: 0.60s; }
.reveal-stagger.is-revealed > *:nth-child(9) { transition-delay: 0.68s; }

/* Hero Sequential Page Load Entrance */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-animate-1 { animation: heroFadeUp 0.85s var(--ease-apple) 0.05s both; }
.hero-animate-2 { animation: heroFadeUp 0.85s var(--ease-apple) 0.15s both; }
.hero-animate-3 { animation: heroFadeUp 0.85s var(--ease-apple) 0.25s both; }
.hero-animate-4 { animation: heroFadeUp 0.85s var(--ease-apple) 0.35s both; }
.hero-animate-5 { animation: heroFadeUp 0.85s var(--ease-apple) 0.45s both; }
.hero-animate-6 { animation: heroFadeUp 0.85s var(--ease-apple) 0.55s both; }

/* --------------------------------------------------------------------------
   20. RESPONSIVE REFINEMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 48px;
  }
  .two-col,
  .doctor-profile,
  .appointment-grid,
  .contact-grid {
    gap: 52px;
  }
  .credentials {
    grid-template-columns: repeat(3, 1fr);
  }
  .credentials div:nth-child(4),
  .credentials div:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .nav {
    gap: 18px;
  }
  .nav-cta {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-side {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .two-col,
  .doctor-profile,
  .appointment-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .membership-groups {
    grid-template-columns: 1fr;
  }
  .approach-lines {
    grid-template-columns: repeat(2, 1fr);
  }
  .approach-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .approach-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .education-table-wrap {
    overflow-x: auto;
  }
  .education-table {
    min-width: 680px;
  }
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(250, 249, 246, 0.96);
  }
  .nav-wrap {
    height: 76px;
  }
  .brand img {
    height: 48px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #faf9f6;
    padding: 24px 6%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 36px rgba(9, 26, 56, 0.08);
  }
  .nav.open {
    display: flex;
    animation: heroFadeUp 0.35s var(--ease-apple) both;
  }
  .nav a {
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
  .hero-trust {
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stats-grid div {
    padding: 8px;
  }
  .stats-grid div::after {
    display: none !important;
  }
  .service-grid,
  .why-choose-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
  .credentials {
    grid-template-columns: repeat(2, 1fr);
  }
  .credentials div:last-child {
    grid-column: span 2;
  }
  .approach-panel {
    padding: 36px 24px;
  }
  .approach-lines {
    grid-template-columns: 1fr;
  }
  .approach-item,
  .approach-item:nth-child(3),
  .approach-item:nth-child(4) {
    min-height: 80px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .approach-item:first-child {
    border-top: 0;
  }
  .approach-item strong {
    font-size: 20px;
  }
  .membership-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .appointment-form {
    padding: 26px 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .floating-actions {
    right: 16px;
    bottom: 16px;
  }
  .back-to-top {
    left: 16px;
    bottom: 16px;
  }
}

/* --------------------------------------------------------------------------
   21. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-animate-1,
  .hero-animate-2,
  .hero-animate-3,
  .hero-animate-4,
  .hero-animate-5,
  .hero-animate-6 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .appointment.appointment-focus {
    animation: none !important;
  }
}
