/* ============================================
   HANDCARE MEDICAL DIAGNOSTICS
   Premium Health Screening Catalog
   Clean Scientific White-Glow Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --hc-teal: #0d9488;      /* Primary Teal */
  --hc-teal-light: #2cb5a1;/* Accent Mint */
  --hc-green: #10b981;     /* Emerald green */
  --hc-dark: #0f172a;      /* Dark Slate for text */
  --hc-gray-light: #f8fafc; /* Page background color */
  --hc-white: #FFFFFF;

  /* Glow Effects */
  --glow-teal: 0 0 20px rgba(13, 148, 136, 0.15), 0 0 40px rgba(13, 148, 136, 0.1);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.15);
  
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Dimensions for A4 Brochure aspect ratio */
  --a4-width: 820px;
  --a4-height: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: #f1f5f9;
  color: var(--hc-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Catalog Container ---------- */
.catalog-container {
  max-width: var(--a4-width);
  margin: 0 auto 100px;
  padding-top: 20px;
}

/* ---------- Page Section (Fixed A4 Ratio on Screen) ---------- */
.page-section {
  width: var(--a4-width);
  height: var(--a4-height);
  background: var(--hc-white);
  margin-bottom: 30px;
  padding: 60px 50px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(13, 148, 136, 0.06);
}

/* Soft glowing mesh background overlay for every page */
.page-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 10%, rgba(44, 181, 161, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(13, 148, 136, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.02) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* Dot Grid Pattern */
.page-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
}

.page-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------- Headers & Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--hc-dark);
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, var(--hc-teal), var(--hc-teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header {
  text-align: center;
  margin-bottom: 24px;
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-top: 8px;
}

.page-header .page-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 8px;
}

.page-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hc-teal);
  background: rgba(13, 148, 136, 0.06);
  padding: 4px 12px;
  border-radius: 12px;
}

/* ---------- Cover Page Specifics (Ultramodern Redesign) ---------- */
.cover-page {
  position: relative;
  /* Slightly off-white high-end medical base color to prevent a plain paper look */
  background: radial-gradient(circle at 0% 0%, #f4fbf9 0%, #ffffff 70%, #f0fdfa 100%);
  padding: 50px 60px;
  overflow: hidden;
}

/* Sophisticated curved modern accent overlay blocks */
.cover-accent-bg {
  position: absolute;
  top: -20%;
  right: -25%;
  width: 90%;
  height: 95%;
  background: linear-gradient(135deg, rgba(44, 181, 161, 0.08) 0%, rgba(13, 148, 136, 0.03) 100%);
  transform: skewX(-20deg);
  border-radius: 60px;
  z-index: 1;
  pointer-events: none;
  border-left: 2px solid rgba(44, 181, 161, 0.1);
}

/* Left-hand medical curved structural line for printed cover spine aesthetic */
.cover-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--hc-teal), var(--hc-teal-light), var(--hc-green));
  z-index: 5;
  pointer-events: none;
}

/* Additional tech-circles for medical theme visual details */
.cover-page::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.cover-grid-overlay {
  position: absolute;
  inset: 0;
  /* Detailed blueprint/lab data grid lines + dot intersection nodes */
  background-image: 
    linear-gradient(rgba(13, 148, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
  pointer-events: none;
}

.cover-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* Header Brand styles */
.cover-header-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(13, 148, 136, 0.1);
  padding-bottom: 16px;
}

.brand-logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.brand-logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(44, 181, 161, 0.25) 0%, transparent 70%);
  z-index: -1;
  filter: blur(5px);
}

.cover-logo-main {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--hc-dark) 30%, var(--hc-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-logo-sub {
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--hc-dark);
  opacity: 0.6;
  font-weight: 800;
  margin-top: -2px;
}

.brand-tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hc-teal);
}

/* Middle Hero section styling */
.cover-middle-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin: 30px 0;
  gap: 30px;
}

.cover-graphic-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 10px;
}

.hero-image-frame {
  width: 100%;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

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

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.4) 100%);
}

.geometric-shape {
  position: absolute;
  border-radius: 16px;
  z-index: 1;
}

.shape-1 {
  bottom: -15px;
  right: -15px;
  width: 120px;
  height: 120px;
  border: 4px solid rgba(44, 181, 161, 0.25);
  transform: rotate(15deg);
}

.shape-2 {
  top: -15px;
  left: -15px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 148, 136, 0.05) 100%);
  transform: rotate(-10deg);
}

/* Title Area styling */
.cover-title-area {
  text-align: center;
}

.cover-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hc-teal);
  background: rgba(13, 148, 136, 0.06);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.cover-title-main {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--hc-dark);
}

.highlight-text {
  background: linear-gradient(135deg, var(--hc-teal), var(--hc-teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.cover-motto {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--hc-green);
  font-weight: 800;
  margin-top: 8px;
}

/* Footer Section */
.cover-footer-modern {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cover-features-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.feature-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-tag i {
  color: var(--hc-green);
  font-size: 1rem;
}

.cover-socials-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.03);
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(13, 148, 136, 0.08);
  width: fit-content;
  margin: 0 auto;
}

.social-prefix {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.social-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  color: var(--hc-teal);
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.social-handle-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hc-dark);
  letter-spacing: 0.5px;
}

.cover-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.division-info {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.cover-pagination-spot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-dot {
  width: 8px;
  height: 8px;
  background: var(--hc-teal);
  border-radius: 50%;
}

.inactive-line {
  width: 24px;
  height: 4px;
  background: rgba(13, 148, 136, 0.2);
  border-radius: 2px;
}

/* ---------- Grid Layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.grid-2-1 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

/* ---------- Scientific Glowing Cards ---------- */
.scientific-card {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.02);
  transition: all 0.3s ease;
  position: relative;
}

.scientific-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--hc-teal), var(--hc-teal-light));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* ---------- Test Lists ---------- */
.test-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.test-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(13, 148, 136, 0.02);
  border: 1px solid rgba(13, 148, 136, 0.04);
  border-radius: 8px;
}

.test-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hc-dark);
}

.test-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hc-teal);
}

/* ---------- Packages Styles ---------- */
.package-card {
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card.featured {
  border: 2px solid var(--hc-teal-light);
  background: rgba(44, 181, 161, 0.02);
}

.package-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hc-dark);
}

.package-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--hc-teal);
  margin: 6px 0;
}

.package-includes {
  list-style: none;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 12px;
}

.package-includes li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.package-includes li::before {
  content: '✓';
  color: var(--hc-green);
  font-weight: bold;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.badge-popular { background: rgba(16, 185, 129, 0.1); color: var(--hc-green); }
.badge-recommended { background: rgba(13, 148, 136, 0.1); color: var(--hc-teal); }
.badge-value { background: #fef3c7; color: #d97706; }
.badge-family { background: #fce7f3; color: #db2777; }
.badge-comprehensive { background: #e0e7ff; color: #4f46e5; }

/* ---------- Benefits / Warning Signs ---------- */
.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.benefit-icon {
  color: var(--hc-green);
  font-weight: bold;
}

/* ---------- Page Footer Callout ---------- */
.page-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: 0.78rem;
  color: #64748b;
  font-style: italic;
}

.footer-qr-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-qr-box {
  width: 44px;
  height: 44px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px;
}

.footer-qr-box canvas, .footer-qr-box img {
  width: 100%;
  height: 100%;
}

/* ---------- Contact Cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.contact-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: var(--hc-gray-light);
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--hc-teal);
  margin-bottom: 6px;
  display: block;
}

.contact-card h4 {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hc-dark);
}

/* ---------- Navigation Menu ---------- */
.catalog-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--hc-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.nav-indicator {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  min-width: 60px;
  text-align: center;
}

.nav-pdf {
  background: var(--hc-teal);
  color: white;
  border: none;
}

.nav-pdf:hover {
  background: #0f766e;
}

/* ---------- Print & PDF Styling Override ---------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  body {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .catalog-container {
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: none !important;
    width: auto !important;
  }
  .page-section {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 20mm 15mm !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .catalog-nav {
    display: none !important;
  }
  #page-1.page-section {
    padding: 15mm 15mm !important;
  }
  #page-1 .cover-middle-hero {
    margin: 15px 0 !important;
    gap: 15px !important;
  }
  #page-1 .hero-image-frame {
    height: 300px !important;
    border-radius: 16px !important;
  }
  #page-1 .cover-title-main {
    font-size: 2.4rem !important;
  }
  #page-1 .cover-footer-modern {
    padding-top: 10px !important;
    gap: 10px !important;
  }
  #page-5.page-section {
    padding: 10mm 15mm !important;
  }
  #page-5 .page-header {
    margin-bottom: 8px !important;
  }
  #page-5 .page-header h2 {
    font-size: 1.5rem !important;
    margin-top: 4px !important;
  }
  #page-5 .page-subtitle {
    font-size: 0.8rem !important;
    margin-top: 4px !important;
  }
  #page-5 .grid-3 {
    gap: 12px !important;
    margin-bottom: 8px !important;
  }
  #page-5 .grid-2 {
    gap: 12px !important;
  }
  #page-5 .package-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  #page-5 .package-name {
    font-size: 0.82rem !important;
  }
  #page-5 .package-price {
    font-size: 1.15rem !important;
    margin: 2px 0 !important;
  }
  #page-5 .package-includes {
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
  }
  #page-5 .package-includes li {
    margin-bottom: 1px !important;
    gap: 4px !important;
  }
  #page-5 .page-footer {
    padding-top: 8px !important;
  }
  #page-5 .footer-text {
    font-size: 0.68rem !important;
  }
}

/* ---------- CTA Modal ---------- */
.cta-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.25s ease;
}

.cta-modal-content {
  background: #ffffff;
  border-radius: 24px;
  width: 90%;
  max-width: 380px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15), 0 0 30px rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.15);
  text-align: center;
  position: relative;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.cta-modal-close:hover {
  background: #f1f5f9;
  color: var(--hc-dark);
}

.cta-modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--hc-dark);
}

.cta-modal-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.4;
}

.cta-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.cta-option.wa {
  background: #25d366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.cta-option.wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.cta-option.call {
  background: var(--hc-teal);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}

.cta-option.call:hover {
  background: #0f766e;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Footer CTA Button ---------- */
.footer-cta-btn {
  background: var(--hc-teal);
  color: white;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-cta-btn:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.2);
}

@media print {
  .footer-cta-btn {
    display: none !important;
  }
}

/* Page 5 Height/Spacing Adjustments (Wellness Packages — formerly page 3) */
#page-5 {
  padding-top: 35px;
  padding-bottom: 35px;
}

#page-5 .page-header {
  margin-bottom: 12px;
}

#page-5 .grid-3 {
  margin-bottom: 12px !important;
}

#page-5 .package-card {
  padding: 12px 14px;
}

#page-5 .package-includes {
  margin-bottom: 4px;
  font-size: 0.76rem;
}

#page-5 .package-price {
  font-size: 1.35rem;
  margin: 4px 0;
}

#page-5 .package-name {
  font-size: 0.95rem;
}

/* ========== PAGE 2: BROCHURE ABOUT US ========== */
.brochure-page {
  padding: 40px 50px 30px !important;
}

.brochure-header {
  text-align: center;
  margin-bottom: 12px;
}

.brochure-logo {
  margin-bottom: 6px;
}

.brochure-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.brochure-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--hc-teal), var(--hc-green));
  margin: 0 auto;
  border-radius: 2px;
}

.brochure-section {
  margin-bottom: 14px;
}

.brochure-section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hc-dark);
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.brochure-section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--hc-teal);
  margin: 6px auto 0;
  border-radius: 2px;
}

/* About Us grid */
.brochure-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}

.brochure-about-text p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 8px;
  text-align: left;
}

.brochure-about-text p:last-child {
  margin-bottom: 0;
}

.brochure-about-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.1);
  max-height: 180px;
}

.brochure-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mission & Vision 2-column cards */
.brochure-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.brochure-mv-card {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.04);
  position: relative;
  overflow: hidden;
}

.brochure-mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hc-teal), var(--hc-green));
}

.brochure-mv-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hc-teal);
  margin-bottom: 8px;
}

.brochure-mv-label i {
  font-size: 1rem;
}

.brochure-mv-card p {
  font-size: 0.74rem;
  line-height: 1.5;
  color: #475569;
}

/* Core Values (ICE) 3-column cards */
.brochure-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brochure-value-card {
  background: #ffffff;
  border: 1px solid rgba(13, 148, 136, 0.06);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brochure-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.08);
}

.brochure-value-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 1.25rem;
}

.brochure-value-card h4 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hc-dark);
  margin-bottom: 6px;
}

.brochure-value-card p {
  font-size: 0.7rem;
  line-height: 1.45;
  color: #64748b;
}

/* ========== PAGE 3: TABLE OF CONTENTS ========== */
.toc-page {
  padding: 40px 50px 30px !important;
}

.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  flex: 1;
}

.toc-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-group-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hc-teal);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 4px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.1);
  margin-bottom: 4px;
}

.toc-group-title i {
  font-size: 0.9rem;
}

.toc-entry {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.toc-entry:hover {
  background: rgba(13, 148, 136, 0.04);
}

.toc-entry.active {
  background: rgba(13, 148, 136, 0.06);
}

.toc-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hc-dark);
  white-space: nowrap;
}

.toc-dots {
  flex: 1;
  border-bottom: 1px dotted #cbd5e1;
  min-width: 20px;
  margin: 0 4px;
  position: relative;
  top: -3px;
}

.toc-page-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hc-teal);
  min-width: 20px;
  text-align: right;
}

/* ========== PRINT OVERRIDES FOR NEW PAGES ========== */
@media print {
  .brochure-page {
    padding: 12mm 15mm !important;
  }
  .toc-page {
    padding: 12mm 15mm !important;
  }
  .toc-entry {
    padding: 4px 6px !important;
  }
  .brochure-about-image {
    max-height: 160px !important;
  }
  #page-5.page-section {
    padding: 10mm 15mm !important;
  }
  #page-5 .page-header {
    margin-bottom: 8px !important;
  }
  #page-5 .page-header h2 {
    font-size: 1.5rem !important;
    margin-top: 4px !important;
  }
  #page-5 .page-subtitle {
    font-size: 0.8rem !important;
    margin-top: 4px !important;
  }
  #page-5 .grid-3 {
    gap: 12px !important;
    margin-bottom: 8px !important;
  }
  #page-5 .grid-2 {
    gap: 12px !important;
  }
  #page-5 .package-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  #page-5 .package-name {
    font-size: 0.82rem !important;
  }
  #page-5 .package-price {
    font-size: 1.15rem !important;
    margin: 2px 0 !important;
  }
  #page-5 .package-includes {
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
  }
  #page-5 .package-includes li {
    margin-bottom: 1px !important;
    gap: 4px !important;
  }
  #page-5 .page-footer {
    padding-top: 8px !important;
  }
  #page-5 .footer-text {
    font-size: 0.68rem !important;
  }
}

/* ---------- Mobile Responsive Scaling ---------- */
.page-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

@media (max-width: 820px) {
  .catalog-container {
    padding: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  @media (min-width: 480px) {
    .catalog-container {
      padding: 12px !important;
    }
  }
  
  .page-wrapper {
    width: 100% !important;
    height: calc(1160px * var(--scale-factor, 1)) !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 15px !important;
  }
  
  .page-section {
    width: 820px !important;
    height: 1160px !important;
    transform: scale(var(--scale-factor, 1)) !important;
    transform-origin: top left !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
  }
}

