:root {
  --medical-blue: #1e6fd9;
  --medical-blue-dark: #1557b0;
  --medical-green: #10b981;
  --medical-green-dark: #059669;
  --medical-light: #e8f4fd;
  --medical-muted: #64748b;
  --foreground: #0f172a;
  --background: #f8fafc;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body.shedyal-landing {
  margin: 0;
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.shedyal-landing a,
body.shedyal-landing button {
  touch-action: manipulation;
}

body.shedyal-landing h1,
body.shedyal-landing h2,
body.shedyal-landing h3,
body.shedyal-landing .section-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
#shedyal-site {
  overflow-x: hidden;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

#shedyal-site section[id]:not(#home) {
  scroll-margin-top: 9.5rem;
}

@media (min-width: 640px) {
  #shedyal-site section[id]:not(#home) {
    scroll-margin-top: 9.5rem;
  }
}

@media (min-width: 1024px) {
  #shedyal-site section[id]:not(#home) {
    scroll-margin-top: 11rem;
  }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }

.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}
@media (min-width: 640px) { .section-container { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding: 5rem 2rem; } }

body.shedyal-landing .section-title {
  display: block;
  font-size: 1.875rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 0.25rem !important;
  line-height: 1.2 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
@media (min-width: 640px) {
  body.shedyal-landing .section-title { font-size: 2.25rem !important; }
}
@media (min-width: 1024px) {
  body.shedyal-landing .section-title { font-size: 2.75rem !important; }
}
body.shedyal-landing .section-title::after {
  content: '' !important;
  display: block !important;
  width: 4rem;
  height: 0.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--medical-blue), var(--medical-green)) !important;
}
body.shedyal-landing .text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.section-subtitle {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--medical-muted);
  max-width: 42rem;
}
@media (min-width: 640px) {
  .section-subtitle { font-size: 1.125rem; }
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Buttons – high specificity so WordPress themes don't hide text */
body.shedyal-landing a.btn,
body.shedyal-landing button.btn,
#shedyal-site a.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  overflow: visible !important;
  min-height: 2.75rem;
  min-width: auto;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
@media (max-width: 639px) {
  body.shedyal-landing a.btn,
  body.shedyal-landing button.btn,
  #shedyal-site a.btn {
    white-space: normal;
    text-align: center;
  }
}
body.shedyal-landing a.btn .btn-text,
body.shedyal-landing button.btn .btn-text,
#shedyal-site a.btn .btn-text {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 0.875rem !important;
  line-height: 1.25 !important;
  color: inherit !important;
}
body.shedyal-landing a.btn .btn-icon,
#shedyal-site a.btn .btn-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
body.shedyal-landing a.btn-whatsapp,
#shedyal-site a.btn-whatsapp {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
}
body.shedyal-landing a.btn-whatsapp:hover,
#shedyal-site a.btn-whatsapp:hover {
  background: #20bd5a !important;
  border-color: #20bd5a !important;
  color: #ffffff !important;
}
body.shedyal-landing a.btn-primary,
body.shedyal-landing button.btn-primary {
  background: var(--medical-blue) !important;
  color: #ffffff !important;
  border: 2px solid var(--medical-blue) !important;
  box-shadow: 0 4px 6px rgba(0,0,0,.1);
}
body.shedyal-landing a.btn-primary:hover,
body.shedyal-landing button.btn-primary:hover {
  background: var(--medical-blue-dark) !important;
  color: #ffffff !important;
}
body.shedyal-landing a.btn-secondary,
body.shedyal-landing button.btn-secondary {
  background: var(--medical-green) !important;
  color: #ffffff !important;
  border: 2px solid var(--medical-green) !important;
}
body.shedyal-landing a.btn-secondary:hover,
body.shedyal-landing button.btn-secondary:hover {
  background: var(--medical-green-dark) !important;
  color: #ffffff !important;
}
body.shedyal-landing a.btn-outline,
body.shedyal-landing button.btn-outline {
  background: #ffffff !important;
  color: var(--medical-blue) !important;
  border: 2px solid var(--medical-blue) !important;
}
body.shedyal-landing a.btn-outline:hover,
body.shedyal-landing button.btn-outline:hover {
  background: var(--medical-light) !important;
  color: var(--medical-blue) !important;
}

.medical-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.medical-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Mobile header: logo + inline nav strip */
.header-mobile {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
}
@media (min-width: 1024px) {
  .header-mobile { display: none; }
}
.header-mobile-logo {
  display: flex;
  justify-content: center;
}
.header-mobile-logo .site-logo {
  height: 6.75rem;
  max-width: 100%;
}

.mobile-nav-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.125rem 0;
  margin-top: 0.25rem;
}
.mobile-nav-strip a {
  flex-shrink: 0;
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--medical-blue);
  border: 1px solid rgba(30, 111, 217, 0.3);
  border-radius: 9999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-nav-strip a:hover {
  background: var(--medical-light);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  min-height: 10.25rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .header-inner { display: flex; }
}
.header-inner > a:first-child {
  flex-shrink: 0;
}
.site-logo {
  height: 6.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: contrast(1.2) saturate(1.2) brightness(1.03);
}
@media (min-width: 1024px) {
  .site-logo { height: 10.25rem; max-width: 920px; }
}
.about-doctor-photo {
  width: 100%;
  max-width: 18rem;
  margin: 0 auto;
  border-radius: 1rem;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 4 / 5;
  display: block;
}

.main-nav { display: none; gap: 1.5rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}
.main-nav a:hover { color: var(--medical-blue); }

.header-ctas { display: none; gap: 0.5rem; }
@media (min-width: 1024px) { .header-ctas { display: flex; } }

/* Hero */
#home {
  padding-top: 9.5rem;
  background: linear-gradient(135deg, var(--medical-light), #fff, #ecfdf5);
  overflow: hidden;
}
@media (min-width: 640px) { #home { padding-top: 9.25rem; } }
@media (min-width: 1024px) { #home { padding-top: 10.25rem; } }
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) { .hero-grid { gap: 2.5rem; } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.hero-grid .emergency-highlight {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(to right, #fef2f2, #ecfdf5);
  border: 2px solid #fca5a5;
  transform-origin: left center;
  animation: emergencyPopOut 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@media (min-width: 640px) {
  .hero-grid .emergency-highlight { padding: 1rem 1.25rem; }
}
.hero-grid .emergency-highlight:hover {
  transform: scale(1.04);
}
.hero-grid .emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #b91c1c;
  animation: emergencyTextPulse 2.2s ease-in-out infinite;
}
@media (min-width: 640px) {
  .hero-grid .emergency-badge { font-size: 0.875rem; }
}
.hero-grid .emergency-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #047857;
  text-decoration: none;
  transition: color 0.2s;
}
.hero-grid .emergency-phone:hover {
  color: #065f46;
}
@media (min-width: 640px) {
  .hero-grid .emergency-phone { font-size: 1.25rem; }
}
@keyframes emergencyPopOut {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
    border-color: #fca5a5;
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.38);
    border-color: #f87171;
  }
}
@keyframes emergencyTextPulse {
  0%,
  100% {
    color: #b91c1c;
  }
  50% {
    color: #dc2626;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid .emergency-highlight,
  .hero-grid .emergency-badge {
    animation: none;
  }

  .hero-grid .emergency-highlight:hover {
    transform: none;
  }
}
.hero-grid h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  word-wrap: break-word;
}
@media (min-width: 640px) { .hero-grid h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero-grid h1 { font-size: 3.125rem; } }
.hero-sub { font-size: 1rem; color: var(--medical-muted); margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
.timing-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: #fff;
  border-radius: 9999px;
  font-size: 0.8125rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  border: 1px solid #f1f5f9;
}
@media (min-width: 640px) {
  .chip { padding: 0.5rem 1rem; font-size: 0.875rem; }
}
.hero-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.375rem;
  margin-top: 2rem;
}
.hero-ctas .btn {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 1.75rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.5625rem;
  justify-content: center;
  width: auto;
  gap: 0.25rem;
}
.hero-ctas .btn .btn-icon {
  width: 0.625rem;
  height: 0.625rem;
}
@media (min-width: 640px) {
  .hero-ctas {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero-ctas .btn {
    flex: none;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    width: auto;
  }
  .hero-ctas .btn .btn-icon {
    width: 1rem;
    height: 1rem;
  }
  .hero-ctas .hero-cta-label-book::after {
    content: ' Appointment';
  }
  .hero-ctas .hero-cta-label-whatsapp::after {
    content: ' Now';
  }
}
@media (max-width: 639px) {
  .hero-ctas .btn .btn-text,
  .hero-ctas .hero-cta-label {
    font-size: 0.5625rem !important;
    line-height: 1.2 !important;
  }
  .hero-ctas .hero-cta-label-book::after,
  .hero-ctas .hero-cta-label-whatsapp::after {
    content: none;
  }
}
.doctor-photo-wrap {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.doctor-photo-wrap img {
  border-radius: 1.5rem;
  border: 4px solid #fff;
  box-shadow: 0 25px 50px rgba(0,0,0,.15);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .grid-3 { gap: 1.5rem; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-4 {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--medical-blue), var(--medical-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.medical-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}
.medical-card p { margin: 0; font-size: 0.875rem; color: var(--medical-muted); }

/* About */
#about { background: #fff; }
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.check-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #334155;
}
.check-list li::before {
  content: '✓';
  color: var(--medical-green);
  font-weight: 700;
}

/* Why choose */
.why-section {
  background: linear-gradient(135deg, var(--medical-blue), var(--medical-blue-dark));
  color: #fff;
}
.why-section .section-title { color: #fff; }
.why-section .section-title::after { background: rgba(255,255,255,.5); }
.why-section .section-subtitle { color: #dbeafe; }
.why-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 1rem;
  padding: 1.5rem;
}
.why-card.emergency {
  background: rgba(16,185,129,.2);
  border-color: rgba(110,231,183,.5);
}

/* Timings */
.timings-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .timings-grid { grid-template-columns: repeat(3, 1fr); } }
.timing-card.emergency-highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
  box-shadow: 0 0 0 2px #a7f3d0;
}
.cta-strip {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--medical-blue), var(--medical-green));
  color: #fff;
  text-align: center;
}
.cta-strip .btn-outline { border-color: #fff; color: #fff; }
.cta-strip .btn-white {
  background: #fff;
  color: var(--medical-green);
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
}

/* Emergency banner */
.emergency-banner {
  background: linear-gradient(to right, #dc2626, #ef4444, #059669);
  color: #fff;
  padding: 1.5rem 1rem;
}
.emergency-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .emergency-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.contact-panel {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}
@media (min-width: 640px) {
  .contact-panel { padding: 2rem; }
}
@media (min-width: 1024px) {
  .contact-panel { padding: 2.5rem; }
}
.contact-panel-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}
@media (min-width: 640px) {
  .contact-panel-title { font-size: 1.875rem; }
}
.contact-hospital-name {
  margin: 1rem 0 0;
  font-weight: 600;
  color: var(--medical-green);
}
.contact-address {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  color: #334155;
}
.contact-block {
  margin-top: 2rem;
}
.contact-block-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e293b;
  margin: 0;
}
.contact-detail-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #1e293b;
}
.contact-detail-list li + li { margin-top: 0.5rem; }
.contact-detail-link {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.contact-detail-link:hover { color: var(--medical-blue); }
.contact-emergency-call { margin: 0.5rem 0 0; font-size: 0.875rem; }

.social-follow-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d4d4d8;
  border-radius: 9999px;
  background: #fff;
  padding: 0.375rem 0.75rem;
  color: #1f2430;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.social-pill:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px) scale(1.03);
}

.social-brand-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.social-pill:hover .social-brand-icon {
  transform: scale(1.05);
}

.social-pill-label {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .social-pill-label { font-size: 1rem; }
}
.contact-form-intro {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #64748b;
}
.contact-field-required {
  color: #b91c1c;
  font-weight: 600;
}

.contact-field-optional {
  color: #64748b;
  font-weight: 500;
}

.contact-form {
  margin-top: 2rem;
}
.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #1e293b;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  background: #fff;
  color: #0f172a;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
@media (min-width: 640px) {
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.875rem;
  }
}
.contact-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
@media (min-width: 640px) {
  .contact-form-actions { flex-direction: row; flex-wrap: wrap; }
}
.btn-submit-message {
  display: inline-flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #064e3b;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-submit-message:hover { background: #022c22; }
.btn-whatsapp-pill {
  display: inline-flex;
  min-height: 2.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-whatsapp-pill:hover { background: #20bd5a; color: #fff; }
@media (min-width: 640px) {
  .btn-submit-message,
  .btn-whatsapp-pill { width: auto; }
}
.contact-form .btn { width: 100%; justify-content: center; }
@media (min-width: 640px) {
  .contact-form .btn { width: auto; }
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
}
.contact-actions .btn { width: 100%; justify-content: center; }
@media (min-width: 640px) {
  .contact-actions .btn { width: auto; }
}
.form-success {
  display: none;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #a7f3d0;
}
.form-success.is-visible { display: block; }

/* Video */
.video-wrap {
  border-radius: 1rem;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16/9;
}
.video-wrap video { width: 100%; height: 100%; object-fit: contain; }

/* Gallery */
.gallery-section {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-switcher {
  margin-top: 3rem;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-tab {
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: 9999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-tab.is-active {
  background: var(--medical-green);
  color: #ffffff;
  border-color: var(--medical-green);
}

.gallery-panel[hidden] {
  display: none !important;
}

.gallery-panel {
  margin-top: 2rem;
}

.gallery-images-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-image-thumb {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f1f5f9;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.gallery-image-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-image-thumb.has-custom-size img,
.gallery-image-thumb img.has-display-size {
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

.gallery-videos-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .gallery-videos-row {
    gap: 1rem;
  }
}

.gallery-video-thumb {
  margin: 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.gallery-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1rem;
}
.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.site-footer .footer-logo { filter: brightness(0) invert(1); height: 3.5rem; margin-bottom: 1rem; }
.footer-hospital-name {
  font-weight: 600;
  color: #fff;
  margin: 0.25rem 0;
}
.footer-copy {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  font-size: 0.875rem;
}

/* Floating WhatsApp & Call buttons */
.floating-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.floating-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-btn:hover {
  transform: scale(1.08);
  color: #fff;
}
.floating-btn .floating-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.floating-btn.call {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--medical-blue);
}
.floating-btn.whatsapp {
  width: 3.75rem;
  height: 3.75rem;
  background: #25d366;
  animation: whatsapp-pulse 2s ease-out infinite;
}
.floating-btn.whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}
.floating-whatsapp-label {
  display: none;
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (min-width: 768px) {
  .floating-btn.call { display: none; }
  .floating-btn.whatsapp {
    width: 4rem;
    height: 4rem;
  }
  .floating-btn.whatsapp .floating-icon {
    width: 2rem;
    height: 2rem;
  }
}
@media (max-width: 767px) {
  .floating-actions {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

.bg-slate { background: #f8fafc; }
.bg-white { background: #fff; }

.map-section .section-title {
  margin-bottom: 2.5rem;
}
.map-preview-link {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow 0.2s ease;
}
.map-preview-link:hover {
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22);
}
.map-preview-link iframe {
  display: block;
  width: 100%;
  height: min(360px, 56vw);
  min-height: 220px;
  border: 0;
  pointer-events: none;
}

@media (max-width: 639px) {
  .about-grid .medical-card { padding: 1rem; }
  .site-footer {
    padding: 1.75rem 1rem;
    font-size: 0.8125rem;
  }
  .site-footer h3 {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
  }
  .footer-grid { gap: 1.25rem; }
  .footer-copy {
    margin-top: 1.25rem;
    padding-top: 1rem;
    font-size: 0.75rem;
  }
  .site-footer a { word-break: break-word; }
  .contact-panel-title { font-size: 1.25rem; }
  .section-subtitle { font-size: 0.9375rem; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
  .gallery-images-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 100%;
  }
  #specializations .medical-card,
  #services .medical-card {
    padding: 0.625rem;
  }
  #specializations .medical-card .card-icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    border-radius: 0.5rem;
  }
  #specializations .medical-card h3,
  #services .medical-card h3 {
    font-size: 0.75rem;
    line-height: 1.25;
    margin-bottom: 0;
  }
  #specializations .medical-card p,
  #services .medical-card p {
    display: none;
  }
  #services .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  #services .medical-card .card-icon {
    width: 1.75rem;
    height: 1.75rem;
    margin-bottom: 0.375rem;
    font-size: 0.5rem;
  }
  .doctor-photo-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  .doctor-photo-wrap img {
    border-width: 3px;
    border-radius: 1rem;
  }
  #home .hero-grid,
  #home .hero-grid > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #home .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-ctas {
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
  }
  .floating-btn.call {
    width: 2.5rem;
    height: 2.5rem;
  }
  .floating-btn.whatsapp {
    width: 2.75rem;
    height: 2.75rem;
  }
  .floating-btn .floating-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}
