/* 
   Bhisham Superspeciality Hospital CSS Stylesheet
   Theme: Legacy Cream, Deep Teal, and Coral Accent
   Established 1947
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Hind:wght@300;400;500;600;700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Color Scheme Lock */
  color-scheme: light;
  
  /* Brand Palette */
  --bg-cream: #F6EEE3;
  --color-teal: #12514E;
  --color-teal-light: #1b6d69;
  --color-teal-dark: #0a3331;
  --color-coral: #E1613C;
  --color-coral-dark: #c44c29;
  --color-mustard: #E7B34A;
  --color-white: #FFFFFF;
  --color-dark: #222222;
  --color-gray: #555555;
  --color-light-gray: #e6dfd5;
  
  /* Typography */
  --font-headings: 'Fraunces', Georgia, serif;
  --font-body: 'Hind', system-ui, -apple-system, sans-serif;
  --font-utility: 'Work Sans', system-ui, -apple-system, sans-serif;

  /* Layout Constants */
  --container-max: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 80px;
}

/* Hard light mode reset to prevent browser dark-mode auto-inversion */
html {
  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-cream);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0; /* Adjusted dynamically for mobile bottom bar */
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  position: relative;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-mustard);
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-gray);
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-coral);
}

/* Accessibility: Keyboard Focus States */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
textarea:focus-visible, 
select:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
}

/* Custom Containers */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.bg-teal-section {
  background-color: var(--color-teal);
  color: var(--bg-cream);
}
.bg-teal-section h2, 
.bg-teal-section h3, 
.bg-teal-section p {
  color: var(--bg-cream);
}
.bg-teal-section h2.section-title::after {
  background-color: var(--color-coral);
}

/* Visual Motif: Top Ribbon Header & Navbar */
.top-ribbon-header {
  background-color: var(--color-teal);
  border-bottom: 3px solid var(--color-mustard);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

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

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--bg-cream);
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-coral);
  transition: var(--transition-smooth);
}

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

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

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger svg {
  width: 30px;
  height: 30px;
  stroke: var(--bg-cream);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  background-color: #f1e7da;
  background-image: radial-gradient(var(--color-light-gray) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--color-teal);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-legacy-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-teal);
  color: var(--bg-cream);
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--color-mustard);
}

/* Image Assets / Custom Gradients */
.hero-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 81, 78, 0.15);
  border: 4px solid var(--color-white);
  aspect-ratio: 4/3;
  background-color: var(--color-teal);
}

.hero-placeholder-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--bg-cream);
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
}

.hero-placeholder-art svg {
  width: 64px;
  height: 64px;
  stroke: var(--color-mustard);
  margin-bottom: 1rem;
}

/* Buttons and CTAs */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-coral);
  color: var(--color-white); /* White text is large enough and bold for AA */
  box-shadow: 0 4px 15px rgba(225, 97, 60, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-coral-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 97, 60, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-teal);
  color: var(--bg-cream);
  transform: translateY(-2px);
}

/* Stats / Trust Banner */
.stats-band {
  background-color: var(--color-teal);
  border-top: 3px solid var(--color-mustard);
  border-bottom: 3px solid var(--color-mustard);
  padding: 2.5rem 0;
  color: var(--bg-cream);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-mustard);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bg-cream);
}

/* Grid Cards (Services & Doctors) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(18, 81, 78, 0.05);
  border: 1px solid var(--color-light-gray);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(18, 81, 78, 0.1);
  border-color: var(--color-mustard);
}

.card-header-art {
  height: 12px;
  background-color: var(--color-teal);
}

.card:nth-child(even) .card-header-art {
  background-color: var(--color-coral);
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  margin-bottom: 1.25rem;
  display: flex;
}

.card-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-teal);
  stroke-width: 1.5;
}

.card-body h3 {
  margin-bottom: 0.75rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}

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

/* Doctors Section Spec */
.doctor-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(18, 81, 78, 0.05);
  border: 1px solid var(--color-light-gray);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  transition: var(--transition-smooth);
}

.doctor-card:hover {
  box-shadow: 0 10px 30px rgba(18, 81, 78, 0.1);
  border-color: var(--color-teal);
}

.doctor-img-placeholder {
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--bg-cream);
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--color-light-gray);
}

.doctor-img-placeholder svg {
  width: 60px;
  height: 60px;
  stroke: var(--color-mustard);
  margin-bottom: 0.75rem;
}

.doctor-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-title-tag {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  background-color: var(--color-light-gray);
  color: var(--color-teal);
  padding: 0.25rem 0.6rem;
  align-self: flex-start;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.doctor-qualifications {
  font-family: var(--font-utility);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-coral);
  margin-bottom: 1rem;
}

.doctor-details-list {
  list-style: none;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.doctor-details-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.doctor-details-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-mustard);
  font-weight: bold;
}

/* Patient Info Banner Home Page */
.info-strip {
  background-color: var(--color-light-gray);
  padding: 2rem 0;
  border-top: 1px solid var(--color-teal-light);
  border-bottom: 1px solid var(--color-teal-light);
}

.info-strip-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.info-strip-text h3 {
  color: var(--color-teal);
}

/* Details and Summary / FAQs Accordion */
.accordion {
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.accordion-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: var(--color-teal);
}

.accordion-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-teal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  font-family: var(--font-utility);
  font-size: 1.5rem;
  color: var(--color-coral);
  transition: var(--transition-smooth);
}

.accordion-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.accordion-item[open] {
  border-color: var(--color-mustard);
}

.accordion-content {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--color-light-gray);
  background-color: #faf7f2;
}

.accordion-content p {
  padding-top: 1rem;
}

/* Form Styles */
.form-wrapper {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(18, 81, 78, 0.08);
  border: 1px solid var(--color-light-gray);
  max-width: 700px;
  margin: 0 auto;
}

.form-title-group {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--color-teal);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-light-gray);
  background-color: var(--bg-cream);
  border-radius: 6px;
  color: var(--color-dark);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-teal);
  background-color: var(--color-white);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-group input {
  margin-top: 0.3rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .btn {
  width: 100%;
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--color-gray);
  text-align: center;
  margin-top: 1.5rem;
}

/* Compliance Disclaimer Elements */
.compliance-disclaimer-box {
  background-color: #faf7f2;
  border-left: 4px solid var(--color-coral);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

.compliance-disclaimer-box p {
  margin-bottom: 0;
  color: var(--color-gray);
}

/* Health Library / Article Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background-color: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-light-gray);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.article-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(225, 97, 60, 0.05);
}

.article-category {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-coral);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.article-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Article Template specific elements */
.article-header {
  padding: 4rem 0;
  background-color: #faf7f2;
  border-bottom: 1px solid var(--color-light-gray);
}

.article-meta {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-coral);
  margin-bottom: 1rem;
}

.article-body {
  max-width: 800px;
  margin: 3rem auto;
  font-size: 1.15rem;
}

.article-body h2 {
  font-size: 1.85rem;
  margin: 2rem 0 1rem;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

.article-body ul, .article-body ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-gray);
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Timeline Layout for About Legacy */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background-color: var(--color-teal);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3.5rem;
}

.timeline-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-teal);
  color: var(--color-mustard);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.1rem;
  border: 4px solid var(--bg-cream);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.timeline-content {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-light-gray);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
}

/* Patient Info pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(18, 81, 78, 0.05);
}

.pricing-table th, 
.pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
}

.pricing-table th {
  background-color: var(--color-teal);
  color: var(--bg-cream);
  font-family: var(--font-utility);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.pricing-table tr {
  border-bottom: 1px solid var(--color-light-gray);
  transition: var(--transition-smooth);
}

.pricing-table tr:hover {
  background-color: #faf7f2;
}

.pricing-table td.price {
  font-family: var(--font-utility);
  font-weight: 700;
  color: var(--color-teal);
}

/* Testimonial Cards Layout */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.testimonial-consent-tag {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  color: var(--color-coral);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.testimonial-consent-tag svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Contact map & info styling */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info-list {
  list-style: none;
  margin: 2rem 0;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-list svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-coral);
  stroke-width: 2;
  flex-shrink: 0;
}

.contact-info-list h4 {
  font-family: var(--font-utility);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.contact-info-list p {
  font-size: 1rem;
  margin-bottom: 0;
}

.map-placeholder {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background-color: var(--color-light-gray);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.map-placeholder svg {
  width: 60px;
  height: 60px;
  stroke: var(--color-teal);
  margin-bottom: 1rem;
}

/* Visual Motif: Solid-teal bottom Footer ribbon */
.footer-ribbon {
  background-color: var(--color-teal);
  border-top: 3px solid var(--color-mustard);
  color: var(--bg-cream);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--color-mustard);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-col h3.legacy-title {
  color: var(--bg-cream);
  font-family: var(--font-headings);
  font-weight: 800;
}

.footer-col p {
  color: var(--bg-cream);
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--bg-cream);
  opacity: 0.85;
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-teal-light);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Scroll reveal class defaults */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Fixed Bottom Action Bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-teal);
  border-top: 3px solid var(--color-mustard);
  z-index: 999;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--bg-cream);
  font-family: var(--font-utility);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mobile-action-btn:first-child {
  border-right: 1px solid var(--color-teal-light);
}

.mobile-action-btn.whatsapp-btn {
  background-color: var(--color-coral);
  color: var(--color-white);
}

.mobile-action-btn:hover {
  opacity: 0.9;
}

.mobile-action-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Responsive Media Queries */

@media (max-width: 1024px) {
  .doctor-card {
    grid-template-columns: 1fr;
  }
  .doctor-img-placeholder {
    border-right: none;
    border-bottom: 1px solid var(--color-light-gray);
    padding: 3rem;
  }
}

@media (max-width: 860px) {
  /* Navigation mobile hamburger toggles */
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-teal);
    border-left: 3px solid var(--color-mustard);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 1.5rem;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Show fixed bottom actions on mobile viewports */
  .mobile-action-bar {
    display: grid;
  }
  
  body {
    padding-bottom: 60px; /* Padding to prevent footer overlap by bottom bar */
  }
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-badge {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    left: 0;
  }
  .timeline-item {
    padding-left: 55px;
  }
  .form-wrapper {
    padding: 1.5rem;
  }
}

/* User preference for reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
