/* Custom Stylesheet for Apac Medical Center */

/* -------------------------------------------------------------
   1. Brand Design System & CSS Variables
------------------------------------------------------------- */
:root {
  /* Logo Colors */
  --primary: hsl(202, 70%, 52%); /* Brand Light Blue */
  --primary-hover: hsl(202, 75%, 44%);
  --primary-light: hsl(202, 70%, 94%);

  --secondary: hsl(5, 78%, 52%); /* Brand Medical Red */
  --secondary-hover: hsl(5, 82%, 44%);
  --secondary-light: hsl(5, 78%, 94%);

  /* Theme Dependent Defaults (Light Mode) */
  --bg-main: hsl(210, 25%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-header: rgba(255, 255, 255, 0.82);
  --bg-footer: hsl(220, 35%, 10%);
  --text-main: hsl(220, 25%, 18%);
  --text-heading: hsl(220, 35%, 12%);
  --text-muted: hsl(220, 10%, 45%);
  --text-light: hsl(0, 0%, 100%);
  --border-color: hsl(210, 15%, 90%);
  --input-bg: hsl(0, 0%, 100%);

  /* Shadow tokens */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 12px 16px -8px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px rgba(79, 163, 227, 0.25);

  /* Border Radius tokens */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transition tokens */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-headings: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

/* Dark Mode Variables Override */
body[data-theme="dark"] {
  --bg-main: hsl(220, 35%, 12%);
  --bg-card: hsl(220, 30%, 16%);
  --bg-header: rgba(21, 30, 41, 0.82);
  --text-main: hsl(210, 15%, 85%);
  --text-heading: hsl(0, 0%, 100%);
  --text-muted: hsl(210, 10%, 65%);
  --border-color: hsl(220, 25%, 22%);
  --input-bg: hsl(220, 25%, 18%);
  --primary-light: hsl(202, 50%, 18%);
  --secondary-light: hsl(5, 50%, 18%);

  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg:
    0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 12px 16px -8px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(79, 163, 227, 0.1);
}

/* -------------------------------------------------------------
   2. Reset & Global Styles
------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  transition: color var(--transition-base);
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------
   3. Common Layout & Components (Buttons, Badges)
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-base);
  font-size: 0.95rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(79, 163, 227, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 163, 227, 0.45);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(219, 58, 42, 0.35);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(219, 58, 42, 0.45);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--text-light);
  color: var(--text-light);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--text-heading);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Header CTA specific button settings */
.btn-header-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Base Headings Setup */
.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-subtitle.light {
  color: var(--primary-light);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-title.light {
  color: var(--text-light);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 48px;
}

.section-desc.light {
  color: rgba(255, 255, 255, 0.8);
}

.section-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

/* -------------------------------------------------------------
   4. Header & Navigation (Sticky glassmorphism)
------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    padding var(--transition-base);
  padding: 20px 0;
}

.main-header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

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

.logo-title {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-heading);
}

.logo-title.light {
  color: var(--text-light);
}

.logo-subtitle {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
}

.logo-subtitle.light {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-base);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.theme-toggle:hover {
  background-color: var(--border-color);
  transform: rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* -------------------------------------------------------------
   5. Hero Section (Slider overlay & Wave mask)
------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-slider .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 650px;
  color: var(--text-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(79, 163, 227, 0.2);
  border: 1px solid rgba(79, 163, 227, 0.4);
  color: var(--primary-light);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -1px;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.slider-dots {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 3;
  display: flex;
  gap: 12px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-base);
}

.slider-dots .dot.active {
  background-color: var(--primary);
  transform: scale(1.3);
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 4;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.hero-wave .shape-fill {
  fill: var(--bg-main);
  transition: fill var(--transition-base);
}

/* -------------------------------------------------------------
   6. Stats Counter Section (Floating design)
------------------------------------------------------------- */
.stats-section {
  padding: 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

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

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition-base);
}

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

.stat-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-wrapper.blue {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-icon-wrapper.red {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.stat-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-heading);
}

.stat-plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-left: 2px;
}

.stat-card:nth-child(even) .stat-plus {
  color: var(--secondary);
}

.stat-label {
  width: 100%;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -------------------------------------------------------------
   7. Services Grid Section (Visual cards)
------------------------------------------------------------- */
.services-section {
  padding: 100px 0;
}

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

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-img {
  transform: scale(1.1);
}

.service-icon {
  position: absolute;
  bottom: -24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(79, 163, 227, 0.3);
  transition: var(--transition-base);
}

.service-card:nth-child(even) .service-icon {
  background-color: var(--secondary);
  box-shadow: 0 4px 10px rgba(219, 58, 42, 0.3);
}

.service-card:hover .service-icon {
  transform: translateY(-5px);
}

.service-body {
  padding: 32px 24px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.service-card:nth-child(even) .service-link {
  color: var(--secondary);
}

.service-link:hover {
  gap: 12px;
}

/* -------------------------------------------------------------
   8. Surgical Section (Accordion and dark mode showcase)
------------------------------------------------------------- */
.surgery-section {
  padding: 100px 0;
  background-color: var(--bg-footer); /* Modern Dark Showcase */
  position: relative;
}

.surgery-showcase-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.surgery-accordion {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0;
  display: flex;
  align-items: center;
  text-align: left;
  color: var(--text-light);
  cursor: pointer;
}

.acc-num {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  width: 40px;
  transition: var(--transition-base);
}

.accordion-item:nth-child(even) .acc-num {
  color: var(--secondary);
}

.acc-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.25rem;
  flex-grow: 1;
  transition: var(--transition-base);
}

.acc-icon {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  transition: transform var(--transition-base);
}

.accordion-item.active .acc-icon {
  transform: rotate(180deg);
}

.accordion-item.active .acc-title {
  color: var(--primary-light);
}

.accordion-item:nth-child(even).active .acc-title {
  color: var(--secondary-light);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease-out;
}

.accordion-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 40px;
  padding-top: 4px;
  padding-bottom: 8px;
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.surgery-visual-wrapper {
  position: relative;
}

.surgery-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.surgery-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.surgery-experience-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 5;
}

body[data-theme="dark"] .surgery-experience-badge {
  background-color: var(--bg-card);
}

.badge-num {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-heading);
  line-height: 1;
}

.badge-lbl {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* -------------------------------------------------------------
   9. Director Section (Executive layout)
------------------------------------------------------------- */
.director-section {
  padding: 100px 0;
}

.director-card-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.director-profile-image {
  background: linear-gradient(
    135deg,
    var(--bg-footer) 0%,
    hsl(220, 35%, 15%) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.director-profile-image::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-color: rgba(79, 163, 227, 0.05);
  top: -50px;
  left: -50px;
}

.director-avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary-light);
  margin-bottom: 24px;
  z-index: 2;
  box-shadow: 0 0 20px rgba(79, 163, 227, 0.3);
}

.director-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 24px;
  z-index: 2;
  box-shadow: 0 0 20px rgba(79, 163, 227, 0.3);
  transition: var(--transition-base);
}

.director-img:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
  box-shadow: 0 0 25px rgba(219, 58, 42, 0.4);
}

.director-avatar-info {
  text-align: center;
  z-index: 2;
}

.director-avatar-info h3 {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.director-avatar-info p {
  color: var(--primary);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.director-info-content {
  padding: 64px 48px;
}

.director-badge {
  display: inline-block;
  background-color: var(--secondary-light);
  color: var(--secondary);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.director-name {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.director-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.director-bio {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.director-academic-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.academic-badge {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.academic-badge:nth-child(even) .badge-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.badge-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.director-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credential-tag {
  background-color: var(--border-color);
  color: var(--text-main);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------
   10. Booking & Contact Form (Secure layout)
------------------------------------------------------------- */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

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

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-item:nth-child(even) .icon-circle {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.detail-texts h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.detail-texts p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-form-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

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

.form-header-wrapper h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.form-header-wrapper p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-heading);
}

.required {
  color: var(--secondary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-base);
}

.input-wrapper select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.text-area-wrapper {
  align-items: flex-start;
}

.text-area-wrapper .input-icon {
  top: 16px;
}

.text-area-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

/* Input Focus states */
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
  color: var(--primary);
}

/* Spinner Loader for button */
.spinner-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-light);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------------------
   11. Footer Section (Aesthetic, links, icons)
------------------------------------------------------------- */
.main-footer {
  background-color: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-pitch {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.footer-links-column h3 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-links a i {
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-contacts li i {
  margin-top: 4px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-contacts li small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--text-light);
}

/* -------------------------------------------------------------
   12. Toast & Custom Alerts (Micro-animations)
------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 450px;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transition: var(--transition-base);
}

.toast.success {
  border-left-color: #2ecc71;
}

.toast.error {
  border-left-color: var(--secondary);
}

.toast-icon {
  font-size: 1.25rem;
}

.toast.success .toast-icon {
  color: #2ecc71;
}

.toast.error .toast-icon {
  color: var(--secondary);
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 2px;
}

.toast-close:hover {
  color: var(--text-heading);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%) translateY(0);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* -------------------------------------------------------------
   13. Intersection Observer Animation Hooks
------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-reveal="fade-up"] {
  transform: translateY(40px);
}

[data-reveal="fade-left"] {
  transform: translateX(40px);
}

[data-reveal="fade-right"] {
  transform: translateX(-40px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay helpers */
[data-delay="100"] {
  transition-delay: 0.1s;
}
[data-delay="200"] {
  transition-delay: 0.2s;
}
[data-delay="300"] {
  transition-delay: 0.3s;
}
[data-delay="400"] {
  transition-delay: 0.4s;
}

/* -------------------------------------------------------------
   14. Responsive Media Queries
------------------------------------------------------------- */
@media (max-width: 1024px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .surgery-showcase-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .surgery-main-img {
    height: 380px;
  }
  .director-card-wrapper {
    grid-template-columns: 1fr;
  }
  .director-profile-image {
    padding: 40px;
  }
  .director-info-content {
    padding: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 16px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    z-index: 1050;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    padding: 40px;
  }

  .nav-menu.open {
    right: 0;
  }

  /* Hamburger animation states */
  .hamburger.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .hamburger.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  .btn-header-cta {
    display: none; /* Hide top CTA in mobile header to save space */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .slider-dots {
    right: 50%;
    transform: translateX(50%);
    bottom: 32px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-row .form-group {
    margin-bottom: 20px;
  }

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

  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 16px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .contact-form-panel {
    padding: 24px 16px;
  }
  .director-avatar-placeholder {
    width: 140px;
    height: 140px;
    font-size: 3.8rem;
  }
}
