:root {
  --primary-color: #000000;
  --terra-cotta: #B96D52;
  --mustard: #BE923D;
  --sage-green: #8BA694;
  --header-tan: #EBE2CD;
  --bg-light-beige: #F5F1E6;
  --card-beige: #E5DAC3;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-muted: #333333;
  /* Compatibility aliases */
  --primary-dark: #000000;
  --secondary-color: #B96D52;
  --secondary-dark: #A67E33;
  --bg-tan: #EBE2CD;
  --bg-light: #F5F1E6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

/* Utilities */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: var(--mustard);
  color: var(--text-light);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  min-height: 44px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover, .btn:focus-visible {
  background-color: #A67E33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 146, 61, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
  line-height: 1.25;
}

/* Header */
header {
  background-color: transparent;
  color: white;
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

header.scrolled,
header.solid-header {
  background-color: var(--header-tan);
  color: var(--text-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: white;
  transition: color 0.3s ease;
  z-index: 1002;
}

header.scrolled .logo,
header.solid-header .logo {
  color: var(--primary-dark);
}

.logo i {
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--terra-cotta);
}

.logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo span .subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terra-cotta);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  align-items: center;
}

.nav-links a {
  color: white;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding: 6px 0;
}

header.scrolled .nav-links a,
header.solid-header .nav-links a {
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--mustard) !important;
}

.active-link {
  color: var(--mustard) !important;
  border-bottom: 2px solid var(--mustard);
}

/* Mobile Menu Backdrop & Drawer Helpers */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-close-btn:hover {
  background-color: var(--header-tan);
  color: var(--terra-cotta);
}

.mobile-menu-cta {
  display: none;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

/* Menu Toggle Button */
.menu-btn {
  display: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 1001;
}

header.scrolled .menu-btn,
header.solid-header .menu-btn {
  color: var(--text-dark);
}

.menu-btn:hover {
  color: var(--mustard);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: url('assets/doctor.webp') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(20, 26, 24, 0.85) 0%, rgba(30, 40, 36, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 850px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 650px;
}

/* Meet Doctor Section */
.meet-doctor {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--bg-light-beige);
}

.doctor-container {
  display: flex;
  align-items: center;
  gap: clamp(30px, 5vw, 60px);
}

.doctor-image {
  flex: 0.8;
  width: 100%;
}

.doctor-image img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  border: 4px solid white;
}

.doctor-details {
  flex: 1.2;
}

.doctor-details p {
  color: var(--text-muted);
}

/* Programs / Dual Section */
.bottom-info {
  display: flex;
  background-color: var(--bg-tan);
  align-items: stretch;
}

.bottom-info > div {
  flex: 1;
}

.bottom-info-img {
  background: url('assets/Arvindkumar.webp') no-repeat center center / cover;
  min-height: 400px;
}

.bottom-info-text {
  padding: clamp(40px, 6vw, 70px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.programs-diagram-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(30px, 5vw, 60px);
}

.cycle-diagram-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.cycle-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cycle-svg use {
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cycle-svg use:hover {
  opacity: 0.9;
}

.cycle-text {
  position: absolute;
  width: 36%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: white;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}

.cycle-text i {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  opacity: 0.95;
}

.cycle-text span {
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.cycle-text.tl { top: 18%; left: 14%; }
.cycle-text.tr { top: 18%; right: 14%; }
.cycle-text.bl { bottom: 18%; left: 14%; color: var(--text-dark); }
.cycle-text.br { bottom: 18%; right: 14%; }

/* Specialties */
.specialties {
  padding: clamp(50px, 8vw, 80px) 0;
  background: var(--header-tan);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.specialty-card {
  background: white;
  padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
  border-radius: 20px;
  text-align: left;
  border-top: 4px solid var(--mustard);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.specialty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

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

.specialty-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* Why Choose */
.why-choose {
  padding: clamp(50px, 8vw, 80px) 0;
  background-color: var(--bg-light-beige);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(25px, 4vw, 40px);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  object-fit: contain;
  margin-top: 2px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.why-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.brain-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
}

/* Patient Services Timeline */
.patient-services {
  padding: clamp(50px, 7vw, 80px) 0;
  background-color: var(--sage-green);
  color: var(--text-dark);
}

.patient-services .section-title {
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
}

.services-diagram {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
}

.service-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chevron {
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  clip-path: polygon(0 0, 95% 0, 100% 50%, 95% 100%, 0 100%, 5% 50%);
  padding: 0 5%;
  margin-bottom: 18px;
  text-align: center;
}

.chevron.diag {
  background: linear-gradient(to right, #95A89E, #7B8F84);
}

.chevron.outp {
  background: linear-gradient(to right, #B8B594, #9A9775);
}

.chevron.emerg {
  background: linear-gradient(to right, #CFAB64, #B08C45);
}

.service-desc {
  text-align: center;
  padding: 0 15px;
  font-size: 0.95rem;
  color: var(--primary-dark);
  line-height: 1.6;
}

/* Page Header */
.page-header {
  padding: clamp(100px, 14vw, 130px) 20px clamp(30px, 5vw, 50px);
  background-color: var(--bg-light-beige);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--primary-dark);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.15;
}

.page-header p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Interactive Treatments (Treatments Page) */
.interactive-treatments {
  display: flex;
  background-color: var(--bg-tan);
  color: var(--text-dark);
  align-items: stretch;
}

.treatment-visual {
  flex: 1;
  background: url('assets/brain_3d.webp') no-repeat center center / contain;
  min-height: 520px;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.treatment-visual-spine {
  flex: 1;
  background: url('assets/spine_3d.webp') no-repeat center center / contain;
  min-height: 520px;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.treatment-visual-nerves {
  flex: 1;
  background: url('assets/nerves_3d.webp') no-repeat center center / contain;
  min-height: 520px;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.treatment-visual-specialized {
  flex: 1;
  background: url('assets/pediatric_neurosurgery.webp') no-repeat center center / cover;
  min-height: 520px;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.interactive-treatments.reverse {
  flex-direction: row-reverse;
  background-color: white;
}

.treatment-accordion-container {
  flex: 1;
  padding: clamp(35px, 6vw, 70px) clamp(20px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.treatment-accordion-container h1 {
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  margin-bottom: 25px;
  font-weight: 700;
}

.accordion-item {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 18px;
  padding-bottom: 12px;
  transition: border-color 0.3s ease;
}

.accordion-header {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 6px 0;
  user-select: none;
  transition: color 0.3s ease;
}

.accordion-header i {
  font-size: 0.9rem;
  color: var(--mustard);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-header,
.accordion-item:hover .accordion-header {
  color: var(--terra-cotta);
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
  color: var(--terra-cotta);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.35s ease, margin 0.3s ease;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Hover on desktop, active on touch / click */
.accordion-item.active .accordion-content,
.accordion-item:hover .accordion-content {
  max-height: 800px;
  opacity: 1;
  margin-top: 12px;
  padding-bottom: 6px;
  transition: max-height 0.6s ease-in-out, opacity 0.4s ease;
}

/* About Page (Bento, Testimonials, Team) */
.about-hero-section {
  padding: clamp(100px, 12vw, 130px) 0 60px;
  background: linear-gradient(to bottom, var(--bg-light-beige), white);
}

.about-profile-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(30px, 5vw, 60px);
}

.about-profile-img {
  flex: 0.9;
  min-width: 280px;
  text-align: center;
  position: sticky;
  top: 110px;
}

.about-profile-img img {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
  border: 4px solid white;
}

.about-profile-text {
  flex: 1.1;
  min-width: 290px;
}

.about-profile-text h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-profile-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.bento-item {
  background-color: white;
  border-radius: 20px;
  padding: clamp(25px, 4vw, 35px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.bento-item.accent-mustard { background-color: var(--mustard); color: white; }
.bento-item.accent-mustard h3, .bento-item.accent-mustard p { color: white; }
.bento-item.accent-sage { background-color: var(--sage-green); color: white; }
.bento-item.accent-sage h3, .bento-item.accent-sage p { color: white; }

.bento-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.testimonial-card {
  background: white;
  padding: clamp(30px, 4vw, 40px) clamp(20px, 3vw, 30px);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 1.8rem;
  color: var(--header-tan);
  opacity: 0.6;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  margin-top: 20px;
  line-height: 1.65;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.team-card {
  background: transparent;
  text-align: center;
}

.team-img-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  background-color: var(--card-beige);
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-img-wrapper i {
  font-size: 3.5rem;
  color: white;
}

.team-card h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card p {
  color: var(--mustard);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Page Styles */
.contact-section-wrapper {
  padding: clamp(100px, 12vw, 120px) 0 clamp(40px, 6vw, 60px);
  background-color: var(--bg-light-beige);
}

.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 50px);
  align-items: flex-start;
}

.contact-details-col {
  flex: 1;
  min-width: 290px;
}

.contact-form-wrapper {
  flex: 1.1;
  min-width: 290px;
  background: white;
  padding: clamp(24px, 5vw, 50px);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.05);
}

.contact-form-input {
  width: 100%;
  padding: 14px 18px;
  background-color: #F8F9FA;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-input:focus {
  outline: none;
  border-color: var(--mustard);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(190, 146, 61, 0.15);
}

.contact-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-form-row > * {
  flex: 1 1 calc(50% - 8px);
  min-width: 220px;
}

.contact-info-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: white;
  padding: clamp(18px, 3vw, 24px);
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 18px;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-icon-wrapper {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background-color: var(--header-tan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mustard);
  font-size: 1.35rem;
}

/* Floating Contact Icons */
@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0px); }
}

.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  animation: floatAnim 3s ease-in-out infinite;
}

.floating-contact a:nth-child(1) { animation-delay: 0s; }
.floating-contact a:nth-child(2) { animation-delay: 1.5s; }

.floating-contact a:hover {
  animation-play-state: paused;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

.float-whatsapp { background-color: #25D366; }
.float-phone { background-color: #0088cc; }

/* Footer */
footer {
  background: linear-gradient(rgba(15, 15, 15, 0.82), rgba(10, 10, 10, 0.96)), url('assets/footer_bg.webp') no-repeat center center / cover, #0a0a0a;
  color: white;
  padding: clamp(50px, 8vw, 70px) 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3.5vw, 35px);
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: var(--mustard);
  font-weight: 700;
}

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

.footer-col a {
  opacity: 0.85;
  font-size: 0.92rem;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--mustard);
}

.footer-col li {
  font-size: 0.92rem;
  opacity: 0.9;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  opacity: 0.75;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile UX Optimization)
   ========================================================================== */

/* Large Tablets & Small Laptops (< 992px) */
@media (max-width: 992px) {
  .doctor-container {
    flex-direction: column;
    text-align: center;
  }
  
  .doctor-details h2 {
    text-align: center !important;
  }
  
  .bottom-info {
    flex-direction: column;
  }
  
  .bottom-info-text {
    text-align: center;
    padding: 50px 25px 20px;
  }
  
  .bottom-info-text > div {
    margin: 0 auto !important;
  }

  .programs-diagram-wrapper {
    padding: 30px 20px 50px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .why-item {
    text-align: left;
  }

  .brain-img {
    margin: 10px auto;
    display: block;
    max-width: 260px;
  }

  .services-diagram {
    flex-direction: column;
    gap: 30px;
    max-width: 480px;
  }

  .chevron {
    clip-path: none;
    border-radius: 12px;
    height: 54px;
    margin-bottom: 12px;
  }

  /* Treatments Stacking */
  .interactive-treatments,
  .interactive-treatments.reverse {
    flex-direction: column !important;
    padding: 30px 0 40px;
  }

  .treatment-visual,
  .treatment-visual-spine,
  .treatment-visual-nerves,
  .treatment-visual-specialized {
    min-height: 280px;
    max-height: 320px;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    width: 100%;
  }

  .treatment-accordion-container {
    padding: 35px 20px 10px;
  }

  /* About Page Profile Sticky Reset */
  .about-profile-img {
    position: static !important;
    margin-bottom: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

/* Tablets & Mobile Devices (< 768px) */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 25px 25px 40px;
    box-shadow: -8px 0 28px rgba(0,0,0,0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-drawer-header {
    display: flex;
  }

  .nav-links a {
    color: var(--text-dark) !important;
    font-size: 1.15rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: block;
  }

  .active-link {
    color: var(--terra-cotta) !important;
    border-bottom: 2px solid var(--terra-cotta);
    font-weight: 700;
  }

  .mobile-menu-cta {
    display: block;
  }

  .mobile-menu-cta .btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
  }

  .hero {
    padding: 110px 0 50px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form-row > * {
    flex: 1 1 100%;
  }

  .contact-form-wrapper {
    padding: 25px 20px;
  }
}

/* Small Mobile Screens (< 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .floating-contact {
    bottom: 18px;
    right: 18px;
    gap: 10px;
  }

  .floating-contact a {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .cycle-diagram-container {
    max-width: 320px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 16px;
    gap: 14px;
  }

  .contact-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.15rem;
  }
}
