/* ============================================================
   TOPEGENE LONGEVITY — Premium Acupuncture Clinic Stylesheet
   ============================================================
   Design System:  Warm / Premium / Professional
   Palette:        Orange → Purple accent on warm beige canvas
   Fonts:          Playfair Display (headings) + Poppins (body)
   ============================================================ */

/* ——— Google Fonts ——— */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ==========================================================
   1.  DESIGN TOKENS  (CSS Custom Properties)
   ========================================================== */
:root {
  /* — Soothing Jade & Matte Gold Palette — */
  --primary-color:    #1b4d3e; /* Forest Jade Green - Soothing, high-contrast, premium */
  --dark-orange:      #0d3126; /* Deep Dark Green - For hover states & dark accents */
  --secondary-color:  #c5a059; /* Matte Gold / Bronze - Calm, prestigious, needle-inspired */
  --light-purple:     #dfcca6; /* Soft Champagne Gold */
  --dark-purple:      #8a6d3b; /* Deep Bronze */
  --gold-accent:      #d4af37; /* Radiant Gold - Highlight accent */
  --text-dark:        #1e2925; /* Forest Charcoal - Ultra high-contrast dark green slate */
  --text-light:       #50625c; /* Muted Green Slate - Excellent contrast gray-green */
  --text-white:       #ffffff;
  --bg-light:         #f4f6f4; /* Light Sage/Sand - Extremely soothing warm canvas */
  --bg-white:         #ffffff;

  /* — Shadows — */
  --shadow-sm:  0 2px 8px rgba(27, 77, 62, 0.04);
  --shadow-md:  0 4px 20px rgba(27, 77, 62, 0.08);
  --shadow-lg:  0 12px 40px rgba(27, 77, 62, 0.12);

  /* — Border radii — */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  24px;

  /* — Transitions — */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.4s ease;
}

/* ==========================================================
   2.  GLOBAL RESET & BASE STYLES
   ========================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: 3.4rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: #34495e; /* Highly readable dark slate/charcoal gray for high contrast */
  font-weight: 400;
}

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

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

ul, ol { list-style: none; }

/* ==========================================================
   3.  UTILITY / CONTAINER
   ========================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* — Section shared padding — */
section {
  padding: 100px 0;
  position: relative;
}

/* — Section dividers — */
/* Removed decorative dividers to match reference site */

/* — Section title block — */
.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 12px;
  position: relative;
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: #4a5568; /* Highly readable slate gray for subtitle contrast */
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ==========================================================
   4.  BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.3px;
  text-transform: none;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-orange));
  color: var(--text-white);
  box-shadow: 0 4px 16px rgba(27, 77, 62, 0.2);
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--dark-orange), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(27, 77, 62, 0.3);
}

.secondary-btn {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.secondary-btn:hover {
  background: var(--text-white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.text-btn {
  background: none;
  color: var(--primary-color);
  padding: 8px 0;
  border: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.text-btn::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.text-btn:hover::after {
  width: 100%;
}

.text-btn:hover {
  color: var(--dark-orange);
}

/* ==========================================================
   5.  FADE-IN ANIMATION UTILITY
   ========================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================
   6.  TOP NAVIGATION BAR  (.top-nav)
   ========================================================== */
.top-nav {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-orange));
  color: var(--text-white);
  padding: 8px 0;
  font-size: 0.82rem;
  position: relative;
  z-index: 1001;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav-left,
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav a {
  color: var(--text-white);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.top-nav a:hover {
  opacity: 1;
}

.top-nav i {
  margin-right: 6px;
}

.top-nav a.top-nav-book,
.top-nav .book-now-btn {
  background: var(--text-white);
  color: var(--primary-color);
  padding: 5px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  margin-left: auto; /* Ensures it pushes to the right side when other items are hidden on mobile */
  display: inline-block;
  opacity: 1;
}

.top-nav a.top-nav-book:hover,
.top-nav .book-now-btn:hover {
  background: var(--gold-accent);
  color: var(--text-white);
  transform: scale(1.04);
  opacity: 1;
}

/* ==========================================================
   7.  HEADER (Sticky Nav)
   ========================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* — Logo — */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
}

.logo a:hover {
  transform: scale(1.02);
}

.logo img {
  height: 52px;
  width: auto;
  transition: height var(--transition-fast);
}

.logo h1 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
  line-height: 1.25;
  padding-bottom: 4px; /* Fix WebKit gradient text clipping on descenders like g and y */
}

.logo p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 0;
}

.logo span,
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* — Desktop nav links — */
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px; /* Soothing breathing room */
}

.nav-links a {
  font-size: 1.16rem; /* Enlarge menu links as requested! */
  font-weight: 600; /* Crisp premium weight */
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--gold-accent));
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-orange));
  color: var(--text-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(27, 77, 62, 0.2);
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
  transform: translateY(-2px);
}

/* — Scrolled header state — */
header.scrolled {
  box-shadow: var(--shadow-md);
}

header.scrolled .container {
  padding-top: 6px;
  padding-bottom: 6px;
}

header.scrolled .logo img {
  height: 40px;
}

/* — Mobile hamburger — */
.mobile-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.mobile-menu span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  margin: 5px 0;
  transition: all var(--transition-fast);
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* — Mobile nav links (icon grid) — */
.mobile-nav-links {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 1005;
  padding: 80px 24px 40px;
  overflow-y: auto;
}

.mobile-nav-links.active {
  display: flex;
}

.mobile-nav-links a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: color var(--transition-fast);
}

.mobile-nav-links a:hover {
  color: var(--primary-color);
}

.mobile-nav-links .nav-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-orange));
  color: var(--text-white);
  border-radius: var(--radius-sm);
  padding: 14px 40px;
  border: none;
}

/* Mobile icon grid style */
.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 360px;
  margin-top: 20px;
}

.mobile-nav-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: none;
  font-size: 0.82rem;
}

.mobile-nav-grid a i {
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* ==========================================================
   8.  HERO SECTION
   ========================================================== */
.hero {
  position: relative;
  min-height: 520px; /* Highly comfortable, compact height instead of full-screen */
  height: 65vh;      /* Beautiful height ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 80px 0; /* Adjusted padding for better spacing */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content h2 {
  font-size: 3.2rem;
  color: var(--text-white);
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-accent);
  margin-bottom: 16px;
  font-style: italic;
}



.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
  margin: 0 auto; /* Centered perfectly inside the container! */
}

.hero-content h1 {
  font-size: 3.6rem;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-content h1 span {
  color: var(--gold-accent);
}

.hero-content .hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-accent);
  margin-bottom: 12px;
  font-style: italic;
  letter-spacing: 0.5px;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-buttons .primary-btn {
  padding: 16px 36px;
  font-size: 1rem;
}

.cta-buttons .secondary-btn {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Floating particles decoration */
@keyframes float-particle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50%      { transform: translateY(-30px) rotate(180deg); opacity: 0.8; }
}

/* ==========================================================
   9.  ABOUT SECTION
   ========================================================== */
.about {
  background: var(--bg-white);
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Image is shrunk by 20% (to 40% width) for better balance */
  gap: 60px;
  align-items: stretch; /* Stretch image and text to match height! */
}

.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.about-text h2 span {
  color: var(--primary-color);
}

.about-text .about-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--primary-color);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text .btn {
  margin-top: 12px;
}

.about-image {
  position: relative;
  height: 100%;
  display: flex;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop and fill space beautifully! */
}

/* Decorative accent corner */
.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--primary-color);
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0.3;
}

/* ==========================================================
   10.  SERVICES SECTION
   ========================================================== */
.services {
  background: var(--bg-light);
  padding: 100px 0;
}

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

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--gold-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service icon */
.service-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 77, 62, 0.1), rgba(197, 160, 89, 0.1));
  font-size: 1.8rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 0.92rem;
  color: #4a5568; /* Highly readable contrast color */
  line-height: 1.7;
}

/* ==========================================================
   11.  AI TECHNOLOGY SECTION
   ========================================================== */
.ai-technology {
  background: var(--bg-white);
  padding: 100px 0;
  position: relative;
}

.ai-technology .section-title {
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

.ai-technology .section-subtitle {
  color: #4a5568; /* Highly readable contrast color */
  position: relative;
  z-index: 2;
}

.ai-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.ai-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch; /* Cards stretch to equal height! */
}

.ai-item.reverse .ai-item-image {
  order: 2;
}

.ai-item-image {
  position: relative;
  background: var(--bg-light); /* Matches text card background */
  border: 1px solid rgba(27, 77, 62, 0.06);
  border-radius: var(--radius-md);
  padding: 40px; /* Matches text card padding */
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centers image vertically */
  transition: all var(--transition-fast);
}

.ai-item-image:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.ai-item-image img {
  max-width: 250px; /* Soothing, highly-coordinated device size */
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.ai-item-image:hover img {
  transform: scale(1.04);
}

/* Clean text container */
.ai-item-text {
  background: var(--bg-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.ai-item-text:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.ai-item-text h3 {
  color: var(--text-dark);
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.ai-item-text h3 span {
  color: var(--primary-color);
}

.ai-item-text p {
  color: #34495e; /* Highly readable contrast color */
  font-size: 0.95rem;
  line-height: 1.8;
}

.ai-item-text .ai-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-item-text .ai-features li {
  color: var(--text-dark);
  font-size: 0.9rem;
  padding-left: 24px;
  position: relative;
}

.ai-item-text .ai-features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  font-size: 0.7rem;
}

/* ==========================================================
   12.  BENEFITS / HOLISTIC SECTION
   ========================================================== */
.benefits {
  background: var(--bg-light);
  padding: 100px 0;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: stretch; /* Stretch to align perfectly at the top and bottom with the text */
}

.benefits-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.benefits-text h2 span {
  color: var(--primary-color);
}

.benefits-text > p {
  margin-bottom: 28px;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.benefit-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.benefit-item i,
.benefit-item .benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--gold-accent));
  color: var(--text-white);
  font-size: 1rem;
}

.benefit-item h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.benefits-image {
  position: relative;
  height: 100%;
  width: 100%;
}

.benefits-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   13.  HERBAL MEDICINE SECTION
   ========================================================== */
.herbal-medicine {
  background: var(--bg-white);
  padding: 100px 0;
}

.herbal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch; /* Stretch image and text to match height! */
}

.herbal-image {
  height: 100%;
  display: flex;
}

.herbal-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop and fill space beautifully! */
}

.herbal-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.herbal-text h2 span {
  color: var(--primary-color);
}

.herbal-text > p {
  margin-bottom: 28px;
}

.herbal-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.herbal-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.herbal-benefit:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.herbal-benefit i,
.herbal-benefit .herbal-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 2px;
}

.herbal-benefit h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.herbal-benefit p {
  font-size: 0.82rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================
   14.  CONDITIONS TREATED
   ========================================================== */
.conditions {
  background: var(--bg-light);
  padding: 100px 0;
}

.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.condition-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-white);
  border: 1px solid rgba(27, 77, 62, 0.15);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  cursor: default;
}

.condition-item:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--gold-accent));
  color: var(--text-white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 77, 62, 0.15);
}

.condition-item i {
  font-size: 1rem;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.condition-item:hover i {
  color: var(--text-white);
}

/* ==========================================================
   15.  DOCTOR / TEAM SECTION
   ========================================================== */
.doctors {
  background: var(--bg-white);
  padding: 100px 0;
}

.doctors-grid {
  display: flex;
  justify-content: center;
}

.doctor-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.doctor-card h3 {
  font-size: 1.8rem;
  margin-bottom: 6px;
  margin-top: 24px;
}

.doctor-card .doctor-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.doctor-card .doctor-description {
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.credential-badge {
  display: inline-block;
  padding: 6px 16px;
  margin: 4px;
  background: linear-gradient(135deg, rgba(27, 77, 62, 0.08), rgba(197, 160, 89, 0.08));
  border: 1px solid rgba(27, 77, 62, 0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
}

.doctor-card .doctor-credentials {
  margin-bottom: 20px;
}

.doctor-image {
  position: relative;
}

.doctor-image img {
  width: 220px !important;
  height: 280px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 4px solid var(--bg-white);
  outline: 3px solid rgba(27, 77, 62, 0.15);
  margin: 0 auto;
  display: block;
}



.doctor-info h3 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.doctor-info .doctor-title {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.doctor-info p {
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.doctor-credentials {
  margin-top: 16px;
}

.doctor-credentials h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.doctor-credentials ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doctor-credentials li {
  font-size: 0.88rem;
  color: #34495e; /* Highly readable contrast color */
  padding-left: 20px;
  position: relative;
}

.doctor-credentials li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.doctor-info .text-btn {
  margin-top: 12px;
}

/* — Doctor Bio Modal — */
.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bio-modal.active {
  display: flex;
}

.bio-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bio-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.35s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.bio-modal-close:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.bio-modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.bio-modal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ==========================================================
   16.  FAQ SECTION  (Accordion)
   ========================================================== */
.faq {
  background: var(--bg-light);
  padding: 100px 0;
}

.faq-container,
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-question h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item.active {
  border-color: rgba(27, 77, 62, 0.2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.faq-item.active .faq-toggle {
  background: var(--primary-color);
  color: var(--text-white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.45s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
}

.faq-answer p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #34495e; /* Highly readable contrast color */
}

/* ==========================================================
   17.  CONTACT SECTION
   ========================================================== */
.contact {
  background: var(--bg-white);
  padding: 100px 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

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

.contact-card {
  background: var(--bg-light);
  border: 1px solid rgba(27, 77, 62, 0.06);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-card i {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 77, 62, 0.08), rgba(197, 160, 89, 0.08));
  color: var(--primary-color);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(27, 77, 62, 0.04);
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.contact-card p {
  font-size: 0.92rem;
  color: #34495e;
  line-height: 1.6;
  margin: 0;
}

.contact-card a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--gold-accent);
}

.contact-map-full {
  width: 100%;
  margin-top: 10px;
}

.contact-map-full iframe {
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Form validation feedback */
.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.form-success-message {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 500;
  font-size: 0.95rem;
  animation: slide-up 0.4s ease;
}

/* AI item badge & label */
.ai-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-accent);
  margin-bottom: 16px;
}

.ai-item-label {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(27, 77, 62, 0.06);
  border: 1px solid rgba(27, 77, 62, 0.12);
  margin-top: 24px;
  padding: 8px 20px;
  border-radius: 50px; /* Pill badge style */
  display: inline-block;
  box-shadow: 0 2px 8px rgba(27, 77, 62, 0.02);
  transition: all var(--transition-fast);
}

/* ==========================================================
   18.  FOOTER
   ========================================================== */
footer {
  background: #0a1c15; /* Premium deep dark forest green/jade matching theme */
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15); /* Subtly elegant gold dividing line */
}

.footer-column h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-column p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
  padding-left: 0;
}

.footer-column ul li a:hover {
  color: var(--secondary-color); /* Hover to matte gold for perfect visibility and contrast */
  padding-left: 4px;
}

.footer-column ul li i {
  color: var(--secondary-color); /* Accent gold for list icons */
  margin-right: 8px;
  font-size: 0.85rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 44px;
}

.footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--secondary-color); /* Hover to matte gold */
  color: var(--text-white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: var(--secondary-color); /* High contrast matte gold links */
}

.footer-bottom a:hover {
  color: var(--light-purple); /* Hover to warm champagne gold */
  text-decoration: underline;
}

/* ==========================================================
   19.  BACK TO TOP BUTTON
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-orange));
  color: var(--text-white);
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 77, 62, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(27, 77, 62, 0.3);
}

/* ==========================================================
   20.  SCROLLBAR
   ========================================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--dark-orange));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-orange);
}

/* ==========================================================
   21.  SELECTION HIGHLIGHT
   ========================================================== */
::selection {
  background: var(--primary-color);
  color: var(--text-white);
}

/* ==========================================================
   22.  KEYFRAME ANIMATIONS
   ========================================================== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 77, 62, 0.2); }
  50%      { box-shadow: 0 0 0 12px rgba(27, 77, 62, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ==========================================================
   23.  RESPONSIVE — TABLET  (≤ 992px)
   ========================================================== */
@media (max-width: 992px) {

  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }

  .container { padding: 0 20px; }

  section { padding: 80px 0; }

  /* — Top nav — */
  .top-nav-info { display: none; }

  /* — Header — */
  .nav-links { display: none; }
  .mobile-menu { display: block; }

  /* — Hero — */
  .hero { min-height: 480px; height: auto; }
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { font-size: 1rem; }

  /* — About — */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image { order: -1; height: auto; }
  .about-image img { height: 320px; object-fit: cover; }
  .about-image::before { display: none; }

  /* — Services — */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* — AI Technology — */
  .ai-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai-item.reverse .ai-item-image { order: 0; }

  /* — Benefits — */
  .benefits-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-image { order: -1; height: auto; position: relative; }
  .benefits-image img { position: relative; height: 320px; object-fit: cover; }

  /* — Herbal — */
  .herbal-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .herbal-image { order: -1; height: auto; }
  .herbal-image img { height: 320px; object-fit: cover; }

  /* — Doctor — */
  .doctor-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px;
  }

  .doctor-image { justify-self: center; }

  .doctor-credentials ul { align-items: center; }

  /* — Doctor — */
  .doctor-image img {
    width: 160px !important;
    height: 200px !important;
  }

  /* — Contact — */
  .contact-container {
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  /* — Footer — */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ==========================================================
   24.  RESPONSIVE — MOBILE  (≤ 768px)
   ========================================================== */
@media (max-width: 768px) {

  html { font-size: 15px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.25rem; }

  section { padding: 64px 0; }

  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 0.95rem; margin-bottom: 40px; }

  /* — Mobile Header Centering & Nav (Replicating madesenacupuncture.com) — */
  header {
    position: relative !important; /* Let header scroll away naturally instead of eating 30% viewport height */
    box-shadow: none !important;
  }

  .mobile-menu {
    display: none !important; /* Hide hamburger menu icon */
  }

  header .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    position: relative;
    transition: all 0.3s ease;
  }

  /* Compact header when scrolled */
  header.scrolled .container {
    padding: 10px 20px;
  }

  header.scrolled .logo h1 {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }

  header.scrolled .logo p {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  header.scrolled .mobile-nav-links {
    margin-top: 8px;
    padding-top: 8px;
    gap: 8px;
  }

  header.scrolled .mobile-nav-item {
    padding: 8px 12px;
    min-width: 65px;
  }

  header.scrolled .mobile-nav-item i {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  header.scrolled .mobile-nav-item span {
    font-size: 0.75rem;
  }

  .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
  }

  .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .logo img {
    height: 44px !important; /* Slightly more compact logo icon on mobile */
  }

  .logo h1 {
    font-size: 1.3rem !important; /* Highly balanced size */
    text-align: center;
    padding-bottom: 2px !important;
  }

  .logo p {
    font-size: 0.62rem !important; /* Prevent wrapping tagline */
    letter-spacing: 0.5px !important;
    text-align: center;
  }

  /* Mobile quick icon grid navigation */
  .mobile-nav-links {
    display: flex !important; /* Force display flex on mobile */
    flex-direction: row !important; /* Align horizontally in a single compact row instead of inheriting vertical column from desktop */
    justify-content: center;
    align-items: center;
    gap: 8px; /* Tighter gap to fit small screens */
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(27, 77, 62, 0.15);
    width: 100%;
    transition: all 0.3s ease;
    flex-wrap: nowrap; /* Prevent wrapping */

    /* Reset overlay properties from desktop */
    position: static;
    height: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    z-index: auto;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px; /* More compact padding to fit text */
    text-decoration: none;
    color: var(--text-dark);
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.06), rgba(197, 160, 89, 0.06));
    border-radius: 10px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 80px; /* Reduced to fit smaller widths */
    min-width: 60px; /* Reduced to fit smaller widths */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .mobile-nav-item:hover,
  .mobile-nav-item.active-mobile {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.12), rgba(197, 160, 89, 0.12));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-item i {
    font-size: 1rem; /* Slightly smaller icon size */
    color: var(--primary-color);
    margin-bottom: 3px;
    transition: all 0.3s ease;
  }

  .mobile-nav-item span {
    font-size: 0.72rem; /* Slightly smaller text size */
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
  }

  .nav-links {
    display: none !important; /* Hide desktop links on mobile */
  }

  /* — Top nav — */
  .top-nav { font-size: 0.78rem; padding: 6px 0; }

  /* — Hero — */
  .hero {
    min-height: 450px;
    height: auto;
    background-attachment: scroll;  /* disable parallax on mobile */
    padding: 60px 0;
  }

  .hero-content h1 { font-size: 2.2rem; }
  .hero-content .hero-subtitle { font-size: 1.05rem; }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-buttons .primary-btn,
  .cta-buttons .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  /* — Services — */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card { padding: 32px 24px; }

  /* — Herbal benefits — */
  .herbal-benefits {
    grid-template-columns: 1fr;
  }

  /* — Doctor — */
  .doctor-image img {
    width: 160px !important;
    height: 200px !important;
  }

  /* — FAQ — */
  .faq-question { padding: 16px 20px; font-size: 0.93rem; }
  .faq-item.active .faq-answer { padding: 0 20px 20px; }

  /* — Contact — */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* — Footer — */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }

  .footer-column ul { align-items: center; }

  /* — Back to top — */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  /* — Bio modal — */
  .bio-modal-content {
    padding: 32px 24px;
    max-height: 90vh;
  }
}

/* ==========================================================
   25.  RESPONSIVE — SMALL MOBILE  (≤ 480px)
   ========================================================== */
@media (max-width: 480px) {

  html { font-size: 14px; }

  .container { padding: 0 16px; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }

  .section-title { font-size: 1.7rem; }

  /* — Hero — */
  .hero { min-height: 400px; padding: 50px 0; }
  .hero-content h1 { font-size: 1.9rem; }
  .hero-content p { font-size: 0.92rem; }

  /* — About — */
  .about-text h2 { font-size: 1.7rem; }

  /* — Conditions — */
  .condition-item {
    padding: 10px 18px;
    font-size: 0.82rem;
  }

  /* — Doctor card — */
  .doctor-card { padding: 24px 20px; }
  .doctor-image img { width: 130px !important; height: 165px !important; }

  /* — Contact — */
  .contact-info h2 { font-size: 1.7rem; }

  /* — Top nav — */
  .top-nav .book-now-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
  }
}

/* ==========================================================
   26.  PRINT STYLES (basic)
   ========================================================== */
@media print {
  .top-nav,
  .back-to-top,
  .mobile-menu,
  .mobile-nav-links { display: none !important; }

  header { position: relative; box-shadow: none; }

  body { color: #000; background: #fff; }

  section { padding: 32px 0; page-break-inside: avoid; }

  a { color: #000; text-decoration: underline; }
}

/* ==========================================================
   26.5. BENEFITS GRID RESPONSIVENESS
   ========================================================== */
@media (max-width: 768px) {
  .benefits-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   27.  REDUCED MOTION PREFERENCE
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero { background-attachment: scroll; }
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
