/* 
   HerniaCare Premium - Stylesheet
   Pure CSS3 - Modern Medical Theme
*/

/* --- Google Fonts & Icons --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --primary: #00A0B1;
  /* Primary Teal */
  --primary-color-rgb: 0, 160, 177;
  --primary-hover: #008D9C;
  --secondary: #00495A;
  /* Secondary Dark Teal */
  --secondary-hover: #003744;
  --footer-bg: #203C50;
  /* Grounding dark slate */

  --background: #FFFFFF;
  --background-alt: #F8FBFC;
  /* Soft blue-grey for sections */

  --surface: #FFFFFF;
  --surface-dim: #F3F3F4;
  --surface-card: #FFFFFF;

  --text-main: #1A1C1C;
  /* Deep grey for typography readability */
  --text-muted: #3D494B;
  /* Secondary grey */
  --border-color: #E2E2E2;
  /* Muted border outlines */
  --outline-variant: #BCC9CB;

  --error: #BA1A1A;
  /* Clinical Red */
  --error-bg: #FFDAD6;
  --success: #006874;
  /* Safe Clinical Green-Teal */
  --success-bg: #E0F2F4;

  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Manrope', sans-serif;

  /* Spacing (8px linear scale) */
  --space-xs: 4px;
  --space-sm: 12px;
  --space-base: 8px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --container-max: 1200px;

  /* Radii */
  --radius-sm: 4px;
  --radius-btn: 10px;
  /* Specific button radius from DESIGN.md */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0px 4px 20px rgba(0, 73, 90, 0.05);
  --shadow-md: 0px 12px 32px rgba(0, 73, 90, 0.08);
  --shadow-lg: 0px 16px 40px rgba(0, 73, 90, 0.12);

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
  /* Offset for sticky header */
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

/* --- Typographical System --- */
.text-headline-xl {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-headline-xl-mobile {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.text-headline-lg {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
}

.text-headline-md {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-body-md {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.text-label-md {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-caption {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.section-padding {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

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

/* Grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* --- Material Icons Config --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid transparent;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  opacity: 0.95;
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background-color: rgba(0, 73, 90, 0.05);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* --- Header & Navigation --- */
header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

header.sticky-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

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

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
}

nav.nav-desktop {
  display: none;
}

nav.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}

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

nav.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-sm);
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.menu-toggle,
.btn-calendar-mobile {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.btn-calendar-mobile {
  background-color: var(--success-bg);
  color: var(--primary);
  width: 40px;
  height: 40px;
}

.menu-toggle:hover,
.btn-calendar-mobile:hover {
  opacity: 0.9;
}

/* Mobile Menu Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  box-shadow: 0px 8px 20px rgba(0, 73, 90, 0.1);
  border-top: 1px solid var(--border-color);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 99;
}

.mobile-nav-drawer.open {
  max-height: 400px;
  opacity: 1;
}

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

.mobile-nav-container a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.mobile-nav-container .btn {
  margin-top: var(--space-sm);
}

/* --- Hero Section --- */
#hero-section {
  position: relative;
  background-image: linear-gradient(rgba(0, 73, 90, 0.85), rgba(0, 73, 90, 0.85)), url('assets/images/background_2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-top: 48px;
  padding-bottom: 48px;
}

#hero-section>.container {
  position: relative;
  z-index: 2;
}

.gradient-edge-bottom.color {
  display: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  background-color: var(--success-bg);
  color: var(--secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  gap: 6px;
}

#hero-section .badge-verified {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-verified .material-symbols-outlined {
  font-size: 16px;
  color: var(--primary);
}

#hero-section .badge-verified .material-symbols-outlined {
  color: #FFFFFF;
}

.hero-title {
  color: var(--secondary);
}

#hero-section .hero-title {
  color: #FFFFFF;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 500px;
}

#hero-section .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 16px;
  color: var(--text-muted);
}

#hero-section .hero-checklist li {
  color: rgba(255, 255, 255, 0.95);
}

.hero-checklist li .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
}

#hero-section .hero-checklist li .material-symbols-outlined {
  color: var(--primary);
}

/* --- Floating Consultation Form --- */
.form-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.form-title {
  color: var(--secondary);
  margin-bottom: var(--space-md);
  font-size: 24px;
  font-weight: 700;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  padding: 10px 14px;
  font-size: 15px;
  background-color: var(--background);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 160, 177, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A0ABAE;
}

/* Custom styling for date inputs to support placeholder text while keeping native indicator icon */
.form-group input[type="date"] {
  position: relative;
}

.form-group input[type="date"]::before {
  content: attr(placeholder);
  color: #A0ABAE;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-group input[type="date"]:focus::before,
.form-group input[type="date"]:valid::before {
  display: none;
}

.form-group input[type="date"]:invalid::-webkit-datetime-edit {
  color: transparent;
}

.form-group input[type="date"]:focus::-webkit-datetime-edit,
.form-group input[type="date"]:valid::-webkit-datetime-edit {
  color: inherit;
}

/* Error State */
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--error);
  background-color: rgba(186, 26, 26, 0.02);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(186, 26, 26, 0.1);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  display: none;
  margin-top: 2px;
}

.form-group.has-error .form-error {
  display: block;
}

/* Success Modal Overlay */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 73, 90, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background-color: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.success-overlay.show .success-card {
  transform: scale(1);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--success-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.success-icon .material-symbols-outlined {
  font-size: 36px;
}

.success-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.success-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --- Why Choose Us Section --- */
.why-choose-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.why-choose-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 250px;
}

.why-choose-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.why-choose-image-wrapper:hover .why-choose-image {
  transform: scale(1.03);
}

.why-choose-title {
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

.why-choose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-md);
}

.why-choose-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.why-choose-list li .material-symbols-outlined {
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}

.why-choose-list li .list-text {
  font-size: 16px;
  color: var(--text-main);
  font-weight: 500;
}

/* --- Treatments Section (Conditions) --- */
.section-title {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--secondary);
  margin-bottom: var(--space-lg);
}

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

.clinical-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: default;
}

.clinical-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--background-alt);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.clinical-card:hover .card-icon-wrapper {
  background-color: var(--success-bg);
  color: var(--primary);
}

.card-icon-wrapper .material-symbols-outlined {
  font-size: 32px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Process Section (Timeline) --- */
.timeline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: 12px;
}

/* Vertical line on mobile */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 29px;
  width: 2px;
  background-color: var(--outline-variant);
}

.timeline-step {
  display: flex;
  gap: var(--space-md);
  position: relative;
}

.timeline-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--success-bg);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-details {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 4px 0;
}

.timeline-details h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-details p {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.testimonial-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.stars {
  color: #FFB703;
  /* Gold color */
  display: flex;
  gap: 2px;
}

.stars .material-symbols-outlined {
  font-size: 20px;
}

.testimonial-text {
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--success-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-info h5 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.author-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- FAQ Section --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  transition: background-color var(--transition-fast);
}

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

.faq-icon {
  font-size: 24px;
  color: var(--primary);
  transition: transform var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  padding: 0 var(--space-md);
}

/* Open FAQ states */
.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Generous height limit for text transition */
  opacity: 1;
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  border-top: 1px solid rgba(0, 160, 177, 0.05);
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 12px;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}


/* --- Gastroenterology Services --- */
.gastro-services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.gastro-service-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.gastro-service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.gastro-service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--success-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.gastro-service-card:hover .gastro-service-icon {
  background-color: var(--primary);
  color: #FFFFFF;
}

.gastro-service-icon .material-symbols-outlined {
  font-size: 28px;
}

.gastro-service-text h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  text-align: left;
}

.gastro-service-text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
}

/* --- Procedures Section --- */
.procedures-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.procedure-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.procedure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.procedure-image-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

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

.procedure-info {
  padding: var(--space-md);
  text-align: left;
}

.procedure-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.procedure-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Footer --- */
footer.site-footer {
  background-color: var(--footer-bg);
  color: #B5EBFF;
  /* Secondary Fixed color */
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-grid>.footer-col:first-child {
  max-width: 480px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-desc-mobile {
  display: none;
}

.copyright {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 10px;
}

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

.footer-links-list a {
  font-size: 15px;
  opacity: 0.8;
}

.footer-links-list a:hover {
  color: #FFFFFF;
  opacity: 1;
  text-decoration: underline;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  opacity: 0.8;
}

.footer-contact-list li .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-contact-list a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  opacity: 0.8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.footer-hours-list li.highlight {
  color: #5FD7E8;
  /* Light primary cyan color for highlighted elements */
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md);
  font-size: 13px;
  opacity: 0.6;
}

/* --- Media Queries (Responsiveness) --- */

/* Breakpoint: <=576px (Mobile Phones) */
@media (max-width: 576px) {
  header.sticky-header {
    height: 70px;
  }

  body {
    padding-top: 70px;
  }

  .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo img {
    height: 32px;
  }

  header.sticky-header .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .lead-form {
    gap: 20px;
  }

  .form-row {
    gap: 20px;
  }

  .gastro-services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gastro-service-card {
    flex-direction: row;
    align-items: center;
    padding: 10px;
    gap: 10px;
  }

  .gastro-service-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }

  .gastro-service-icon .material-symbols-outlined {
    font-size: 20px;
  }

  .gastro-service-text h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  .gastro-service-text p {
    display: none;
  }

  .text-headline-xl {
    font-size: 30px;
    /* Prevent overflow of long words like Gastroenterology */
  }

  .text-headline-lg {
    font-size: 26px;
  }

  .footer-desc-desktop {
    display: none;
  }

  .footer-desc-mobile {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
  }

  footer.site-footer {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-grid {
    gap: 16px;
    margin-bottom: 20px;
  }

  .footer-col {
    gap: 12px;
  }
}

/* Breakpoint: >576px */
@media (min-width: 576px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Breakpoint: >768px */
@media (min-width: 768px) {

  /* Layout */
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  /* Keep image on left and text + stats stacked on right for desktop */
  #why-choose-us .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0 80px;
  }

  #why-choose-us .why-choose-image-wrapper {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    height: 440px;
    margin-top: 85px;
  }

  #why-choose-us .why-choose-content {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 24px;
  }

  #why-choose-us .stats-grid {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
  }

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

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

  .footer-grid {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

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

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

  .procedure-image-wrapper {
    height: 300px;
  }

  /* Timeline display change */
  .timeline-wrapper {
    padding-left: 20px;
  }

  .timeline-wrapper::before {
    left: 39px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
  }

  .why-choose-image-wrapper {
    height: 350px;
  }
}

/* Breakpoint: >992px */
@media (min-width: 992px) {

  /* Header */
  nav.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .menu-toggle {
    display: none;
  }

  .btn-calendar-mobile {
    display: none;
  }

  /* Grids & Cards */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  /* Why Choose split layout */
  .why-choose-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
    align-items: center;
  }

  .why-choose-image-wrapper {
    height: 400px;
  }

  /* Timeline change: Horizontal on Desktop */
  .timeline-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    padding-left: 0;
    margin-top: 40px;
  }

  .timeline-wrapper::before {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .timeline-details {
    padding: 0;
  }
}

/* Breakpoint: >1200px */
@media (min-width: 1200px) {
  .grid-2 {
    gap: 80px;
  }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background-color: #20BA5A;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* --- Mobile Bottom Action Bar (Fixed) & Floating Button Responsiveness --- */
.mobile-bottom-actions {
  display: none;
}

@media (max-width: 767px) {
  .whatsapp-float {
    display: none !important;
  }

  body {
    padding-bottom: 60px !important;
  }

  .mobile-bottom-actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border-color);
    z-index: 999;
  }

  .mobile-bottom-actions .action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }

  .mobile-bottom-actions .action-btn:active {
    background-color: var(--background-alt);
  }

  /* Vertical separators between action buttons */
  .mobile-bottom-actions .action-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
  }

  /* Premium Icon Colors matching brand guidelines */
  .mobile-bottom-actions .whatsapp-btn .action-icon {
    fill: #25D366;
  }

  .mobile-bottom-actions .call-btn .action-icon {
    color: var(--primary);
  }

  .mobile-bottom-actions .enquiry-btn .action-icon {
    color: var(--secondary);
  }

  .mobile-bottom-actions .action-icon {
    font-size: 20px;
    height: 20px;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-actions .svg-icon {
    width: 18px;
    height: 18px;
  }
}

/* --- Popular Searches Tags Section --- */
#popular-searches {
  border-top: 1px solid var(--border-color);
}

.tags-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.search-tag {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.search-tag:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

.search-tag:active {
  transform: translateY(0);
}

.tag-desktop {
  display: inline;
}

.tag-mobile {
  display: none;
}

/* Mobile responsive padding and alignment */
@media (max-width: 767px) {
  .tag-desktop {
    display: none;
  }

  .tag-mobile {
    display: inline;
  }

  .tags-container {
    gap: 6px;
  }

  .tags-row {
    gap: 4px;
    padding: 0 4px;
  }

  .search-tag {
    padding: 4px 8px;
    font-size: 10.5px;
  }

  .hide-mobile {
    display: none !important;
  }

  #hero-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #hero-section .grid-2 {
    gap: 16px;
  }

  #hero-section .hero-content {
    gap: 12px;
  }

  #hero-section .hero-checklist {
    gap: 8px;
  }
}

/* Reorder Why Choose Us section on mobile to show text above image, and stats below image */
@media (max-width: 767px) {
  #why-choose-us .grid-2 {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #why-choose-us .why-choose-content {
    order: 1;
  }

  #why-choose-us .why-choose-image-wrapper {
    order: 2;
    height: 200px;
  }

  #why-choose-us .stats-grid {
    order: 3;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 0;
    width: 100%;
  }

  #why-choose-us .stat-card {
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
  }

  #why-choose-us .stat-number {
    font-size: 22px;
  }

  #why-choose-us .stat-label {
    font-size: 9px;
    margin-top: 4px;
    line-height: 1.2;
  }

}

/* --- Thank You Page Styles --- */
.thankyou-section {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px - 70px); /* Adjust for header and footer */
  background: radial-gradient(circle at 50% 50%, rgba(0, 160, 177, 0.04) 0%, rgba(248, 251, 252, 0.02) 100%);
}

.thankyou-card {
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.thankyou-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.thankyou-success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--success-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary);
  animation: pulse-primary 2s infinite;
}

.thankyou-success-icon .material-symbols-outlined {
  font-size: 44px;
}

@keyframes pulse-primary {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 160, 177, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 160, 177, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 160, 177, 0);
  }
}

.thankyou-card h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.thankyou-subtitle {
  font-size: 18px;
  color: var(--primary-hover);
  font-weight: 600;
  margin-bottom: 24px;
}

.thankyou-details {
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: inline-block;
}

.thankyou-details p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--text-main);
}

.thankyou-details strong {
  color: var(--secondary);
}

.thankyou-message {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.thankyou-actions .btn {
  min-width: 180px;
}

@media (max-width: 576px) {
  .thankyou-section {
    padding: 48px 0;
  }
  .thankyou-card {
    padding: 32px 20px;
  }
  .thankyou-card h1 {
    font-size: 26px;
  }
  .thankyou-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .thankyou-actions .btn {
    width: 100%;
  }
}