/*
Theme Name: Phelix Multispeciality Hospital
Theme URI: https://phelixhospital.com
Author: Phelix Multispeciality Hospital
Author URI: https://phelixhospital.com
Description: Custom production theme for Phelix Multispeciality Hospital, Ludhiana. Built for the "Advanced Healthcare, Close to Home." brand — hero booking flow, doctor directory, services, testimonials, gallery, FAQ and a smart appointment system.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: phelix
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Design tokens
   Extracted from the client's live reference site so the rebuild matches
   exactly: navy #0B2545 header/dark sections, darker footer #081B34,
   teal #139A8C primary action color, slate-50 alternating sections.
   Red is a NEW accent added per brief for emergency-only elements — the
   reference site has none, so it is scoped tightly to avoid diluting trust.
   ========================================================================== */
:root {
  /* Brand */
  --color-navy: #0B2545;
  --color-navy-dark: #081B34;
  --color-navy-soft: #12305c;
  --color-teal: #139A8C;
  --color-teal-dark: #0e7a6f;
  --color-teal-light: #e6f5f3;
  --color-red: #DC2626;
  --color-red-dark: #B91C1C;

  /* Neutrals */
  --color-white: #ffffff;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-400: #94A3B8;
  --color-slate-500: #64748B;
  --color-slate-600: #475569;
  --color-slate-700: #334155;

  /* Text */
  --text-heading: var(--color-navy);
  --text-body: var(--color-slate-600);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);

  /* Typography */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.25rem, 4.5vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.2vw + 1rem, 2.25rem);
  --fs-h3: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Spacing / layout */
  --container-max: 1200px;
  --space-section: clamp(4rem, 6vw, 7rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.12);
  --shadow-lift: 0 24px 48px rgba(11, 37, 69, 0.16);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 560ms;

  /* Header */
  --header-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  text-align: inherit;
}
input, select, textarea { font: inherit; }
svg { display: block; }

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-slate-50); }
.section--navy { background: var(--color-navy); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: 0.75rem;
}
.section--navy .eyebrow { color: #7fd9cd; }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p { margin-top: 0.85rem; font-size: 1.0625rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* Plain WYSIWYG page content (e.g. Privacy Policy, Terms) — the global
   reset above strips list/heading spacing for the design-system components,
   so restore normal prose rhythm scoped to this wrapper only. */
.page-content h2 { color: var(--color-navy); font-size: 1.4rem; margin-top: 2.25rem; margin-bottom: 0.85rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1.1rem; }
.page-content ul, .page-content ol { list-style: disc; margin: 0 0 1.1rem; padding-left: 1.4rem; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--color-teal-dark); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-teal-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-outline-navy { background: transparent; color: var(--color-navy); border-color: var(--color-slate-200); }
.btn-outline-navy:hover { border-color: var(--color-teal); color: var(--color-teal-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
}
.badge-emergency {
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.35);
}
.badge-emergency .badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.6);
  animation: badgePulse 2.2s var(--ease-standard) infinite;
}
.badge-emergency--light { background: rgba(220,38,38,0.08); color: var(--color-red-dark); border-color: rgba(220,38,38,0.25); }

@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-emergency .badge-dot { animation: none; }
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--color-navy); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }
