/* ============================================
   Shree Om Hospital — Design System
   Based on hospital_website_design.json
   ============================================ */

:root {
  --primary: #028090;
  --primary-dark: #016673;
  --primary-darker: #015964;
  --primary-light: #4da6b1;
  --primary-lighter: #99ccd2;
  --primary-pale: #e5f2f3;
  --accent: #f4a732;
  --accent-hover: #d98e1a;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --text-on-primary: #ffffff;
  --bg: #ffffff;
  --bg-secondary: #f0f9fa;
  --border: #cce5e8;
  --success: #28a745;
  --error: #dc3545;
  --shadow-sm: 0 2px 8px rgba(2, 128, 144, 0.08);
  --shadow-md: 0 8px 24px rgba(2, 128, 144, 0.12);
  --shadow-lg: 0 16px 48px rgba(2, 128, 144, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.25s ease;
  --navbar-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 40px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-on-primary);
}

.btn--secondary {
  background: var(--text-on-primary);
  color: var(--primary);
  border-color: var(--text-on-primary);
}

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

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

.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text);
}

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

.btn--outline:hover {
  background: var(--primary-pale);
}

.btn--outline-light {
  background: transparent;
  color: var(--text-on-primary);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-on-primary);
  border-color: var(--text-on-primary);
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--primary-darker);
  color: var(--text-on-primary);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-on-primary);
  font-weight: 500;
}

.top-bar__phone:hover {
  color: var(--accent);
}

.top-bar__hours {
  opacity: 0.85;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-primary);
  flex-shrink: 0;
}

.navbar__logo:hover {
  color: var(--text-on-primary);
}

.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--text-on-primary);
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  border-radius: 10px;
  line-height: 1;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__logo-text strong {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.navbar__logo-text small {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__links a {
  color: var(--text-on-primary);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar__links a:hover {
  color: var(--accent);
}

.navbar__links a:hover::after {
  width: 100%;
}

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

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(2, 128, 144, 0.88) 0%, rgba(1, 89, 100, 0.92) 100%),
    url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1600&q=80') center/cover no-repeat;
  color: var(--text-on-primary);
  padding: 80px 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(1, 89, 100, 0.7) 40%, transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- Stats ---- */
.stats {
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 40px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats__value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stats__label {
  display: block;
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

/* ---- Sections ---- */
.section {
  padding: 80px 0;
}

.section__header {
  margin-bottom: 48px;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.section__subtitle {
  font-size: 17px;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 560px;
}

/* ---- About ---- */
.about {
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about__content p strong {
  color: var(--text);
}

.about__features {
  margin: 24px 0 32px;
}

.about__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
}

.about__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.about__card {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about__card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 10px;
}

.about__card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
}

.about__card--primary {
  background: var(--primary-pale);
  border-color: var(--primary-lighter);
}

.about__card--primary h3 {
  color: var(--primary);
}

.about__card--accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f5c06a 100%);
  border-color: transparent;
  margin-left: 32px;
}

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

/* ---- Doctors ---- */
.doctors {
  background: var(--bg-secondary);
}

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.doctor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.doctor-card__photo {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-card__photo--alt {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-lighter) 100%);
}

.doctor-card__initials {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.doctor-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doctor-card__badge {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}

.doctor-card__name {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 6px;
}

.doctor-card__qual {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.doctor-card__spec {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.doctor-card__exp {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.doctor-card__bio {
  font-size: 14px;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 20px;
}

.doctor-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

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

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--primary-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Why Choose Us ---- */
.why {
  background: var(--bg-secondary);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why__item {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.why__item:hover {
  box-shadow: var(--shadow-md);
}

.why__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.why__item h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 10px;
}

.why__item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ---- Location ---- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.location__detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.location__detail-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location__detail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.location__detail h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.location__detail p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

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

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

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-height: 400px;
  height: 100%;
}

.location__map iframe {
  width: 100%;
  min-height: 400px;
}

/* ---- Footer ---- */
.footer {
  background: var(--primary-darker);
  color: var(--text-on-primary);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-primary);
  margin-bottom: 16px;
}

.footer__logo:hover {
  color: var(--text-on-primary);
}

.footer__tagline {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-on-primary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}

.footer__social-link:hover {
  background: var(--accent);
  color: var(--text);
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent);
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__contact-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__cta {
  margin-top: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  font-size: 13px;
  opacity: 0.7;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal.active .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--primary-pale);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal__close:hover {
  background: var(--primary-lighter);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 6px;
  padding-right: 36px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.modal__panel--call {
  max-width: 400px;
  text-align: center;
}

.call-modal__number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 12px;
  letter-spacing: 0.02em;
}

.call-modal__hint {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
}

.form-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  min-height: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  color: white;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .navbar__nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .navbar__actions {
    flex-direction: column;
    width: 100%;
  }

  .navbar__actions .btn {
    width: 100%;
  }

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

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__card--accent {
    margin-left: 0;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    min-height: 460px;
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

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

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

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