/* ==========================================================================
   Taimur Shoaib - Cosmetic & Reconstructive Surgery
   Professional Design System
   ========================================================================== */

/* Fonts */
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-v12-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-v12-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('../fonts/barlow-v12-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/barlow-condensed-v12-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  /* Colors - Professional medical palette */
  --color-primary: #1a3a5c;
  --color-primary-light: #2a5a8c;
  --color-primary-dark: #0f2440;
  --color-accent: #c9a962;
  --color-accent-light: #e0c988;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #888888;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #f0f2f5;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-error: #ef4444;

  /* Typography */
  --font-primary: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-condensed: 'Barlow Condensed', var(--font-primary);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.25rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

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

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn-accent:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: white;
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
}

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

@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }
}

/* Top bar */
.top-bar {
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm) 0;
  font-size: 0.875rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.top-bar a {
  color: white;
  opacity: 0.9;
}

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

.top-bar-contact {
  display: flex;
  gap: var(--space-lg);
}

.top-bar-contact span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-list {
  display: flex;
  gap: var(--space-lg);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.nav-link .icon-chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: var(--space-sm) 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-item:hover .icon-chevron {
  transform: rotate(180deg);
}

.dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
}

/* Header CTA */
.header-cta {
  display: flex;
  gap: var(--space-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  background: white;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero .lead {
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.hero-image {
  position: absolute;
  right: 0;
  top: var(--header-height);
  bottom: 0;
  width: 50%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-image::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 150px;
  background: linear-gradient(to right, var(--color-bg-alt), transparent);
  z-index: 1;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-primary);
  color: white;
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

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

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Related Articles Section (Surgery Pages)
   ========================================================================== */
.related-articles-section {
  background: var(--color-bg-alt);
}

.related-articles-section .section-intro {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.related-article-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.related-article-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.related-article-card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.related-article-card .read-more {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-image-badge {
  position: absolute;
  bottom: var(--space-xl);
  right: calc(var(--space-xl) * -1);
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-image-badge .value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.about-image-badge .label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.about-content h2 {
  margin-bottom: var(--space-lg);
}

.about-content .lead {
  margin-bottom: var(--space-xl);
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.credential {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

.credential svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* ==========================================================================
   Services / Procedures
   ========================================================================== */
.procedures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.procedure-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

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

.procedure-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.procedure-card:hover .procedure-card-image img {
  transform: scale(1.05);
}

.procedure-card-content {
  padding: var(--space-lg);
}

.procedure-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.procedure-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.procedure-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
}

.procedure-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.procedure-card:hover .procedure-card-link svg {
  transform: translateX(4px);
}

/* Category tabs */
.procedure-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.procedure-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.procedure-tab:hover {
  color: var(--color-primary);
}

.procedure-tab.active {
  background: var(--color-primary);
  color: white;
}

/* ==========================================================================
   Journey / Steps
   ========================================================================== */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.journey-step {
  text-align: center;
  position: relative;
}

.journey-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: calc(-50% - var(--space-md));
  width: calc(100% - 80px);
  height: 2px;
  background: var(--color-border);
}

.journey-step:last-child::after {
  display: none;
}

.journey-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

.journey-step h4 {
  margin-bottom: var(--space-sm);
}

.journey-step p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: var(--space-xl);
  transition: transform var(--transition-slow);
}

.testimonial-card {
  flex: 0 0 calc(33.333% - var(--space-lg));
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  fill: var(--color-accent);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-author-info {
  font-size: 0.9375rem;
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-author-procedure {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-label {
  color: white;
  font-weight: 600;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-method {
  display: flex;
  gap: var(--space-md);
}

.contact-method-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.contact-method-text h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-method-text a {
  color: var(--color-text-light);
}

.contact-method-text a:hover {
  color: var(--color-primary);
}

/* Locations */
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.location {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.location h4 {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.location address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  font-family: var(--font-condensed);
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-block;
}

.footer-logo:hover {
  color: var(--color-accent);
}

.footer-brand p {
  margin-top: var(--space-md);
  opacity: 0.7;
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer h5 {
  color: white;
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  opacity: 0.7;
  font-size: 0.9375rem;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a:hover {
  opacity: 1;
}

/* ==========================================================================
   Page Header (for internal pages)
   ========================================================================== */
.page-header {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header .lead {
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  color: var(--color-text-muted);
}

/* ==========================================================================
   Procedure Detail Page
   ========================================================================== */
.procedure-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.procedure-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.procedure-info-item {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.procedure-info-item h4 {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 400;
}

.procedure-info-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

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

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--color-text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-image {
    width: 45%;
  }

  .procedures-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .journey-step::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .top-bar {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: var(--space-xl);
  }

  .about-grid,
  .contact-grid,
  .procedure-hero {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-image-badge {
    right: var(--space-lg);
    bottom: calc(var(--space-lg) * -1);
  }

  .procedures-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .procedure-tabs {
    flex-wrap: wrap;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .journey-steps {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    margin-bottom: var(--space-lg);
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .procedure-info-grid {
    grid-template-columns: 1fr;
    margin: var(--space-lg) 0;
  }

  /* Reduce vertical spacing on surgery pages */
  .page-header {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .procedure-info-item {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .hero-stat {
    text-align: center;
  }
}

/* ==========================================================================
   Mobile Navigation Overlay
   ========================================================================== */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: var(--space-xl);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link .icon-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.mobile-nav-link.active .icon-chevron {
  transform: rotate(180deg);
}

.mobile-dropdown {
  padding-left: var(--space-lg);
  display: none;
  list-style: none;
  margin: 0;
}

.mobile-dropdown.active {
  display: block;
}

.mobile-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  color: var(--color-text-light);
}

.mobile-dropdown li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-dropdown li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Chatbot Widget Styles
   ========================================================================== */
.chat-widget {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 1000;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.chat-bubble:hover {
  transform: scale(1.1);
  background: var(--color-primary-light);
}

.chat-bubble svg {
  width: 28px;
  height: 28px;
  color: white;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
