/* =========================================================
   DESIGN TOKENS — Hospital / clinic theme
   Navy + orange, clean clinical white cards, medical-cross motif.
   ========================================================= */
:root {
  --navy: #0A2540;
  --navy-deep: #071A2E;
  --orange: #FF7A00;
  --orange-dark: #E06900;
  --orange-tint: #FFE8D1;
  --teal: #0E8272;
  --teal-tint: #DCF3EF;
  --ink: #2D3748;
  --ink-soft: #64748B;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --line: #E2E8F0;
  --line-soft: #EDF2F7;
  --white: #FFFFFF;

  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 25px rgba(10,37,64,0.06);
  --shadow-pop: 0 18px 40px -14px rgba(10,37,64,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-seal { background: var(--orange); color: var(--white); box-shadow: 0 6px 16px -6px rgba(255,122,0,0.55); }
.btn-seal:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-block { width: 100%; justify-content: center; margin-bottom: 10px; }

/* =========================================================
   TOP STRIP + HEADER / NAV
   ========================================================= */
.top-strip { background: var(--navy); color: #C9D4E0; font-size: 12.5px; }
.top-strip-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; gap: 12px; flex-wrap: wrap; }
.top-strip a { color: var(--white); font-weight: 600; }
.top-strip i { margin-right: 4px; color: var(--orange); }
@media (max-width: 700px) { .top-strip-hours { display: none; } }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(10,37,64,0.04); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-seal {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}
.brand-logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.footer-logo { height: 44px; background: var(--white); padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--navy); }
.brand-sub { font-size: 11.5px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.main-nav a.active { color: var(--white); background: var(--orange); }

.call-btn { font-weight: 700; font-size: 13.5px; padding: 9px 16px; border: 1.5px solid var(--navy); border-radius: 999px; white-space: nowrap; color: var(--navy); }
.call-btn:hover { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--navy); }

@media (max-width: 880px) {
  .main-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 14px 4px 6px;
    margin-top: 6px;
    border-top: 1.5px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 15.5px; }
  .call-btn { display: none; }
  .nav-toggle { display: block; }
}

/* =========================================================
   FLASH MESSAGES
   ========================================================= */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; margin-bottom: 10px; border: 1.5px solid; }
.flash-success { background: var(--teal-tint); color: var(--teal); border-color: var(--teal); }
.flash-error { background: #FDECEC; color: #B42318; border-color: #F3A6A0; }

/* =========================================================
   HERO
   ========================================================= */
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 14px; }
.hero { padding: 64px 0 40px; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero-text h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; }
.hero-text h1 em { font-style: normal; color: var(--orange); }
.hero-lede { font-size: 17px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 26px; color: var(--orange-dark); }
.hero-stats span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }

/* Cross / seal signature element (fallback when no hero image set) */
.hero-stamp, .about-seal {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.stamp-ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px dashed var(--orange); animation: spin 40s linear infinite; }
.stamp-ring span { position: absolute; inset: 10px; border-radius: 50%; border: 1px solid var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp-center {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-pop);
}
.stamp-icon { font-size: 40px; color: var(--orange); }
.stamp-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-align: center; color: var(--navy); line-height: 1.3; }
.stamp-ring-lg { border-width: 3px; }
.stamp-center-lg { width: 210px; height: 210px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stamp { order: -1; width: 200px; height: 200px; }
  .stamp-center { width: 140px; height: 140px; }
  .hero-photo-wrap { order: -1; }
}

/* =========================================================
   HERO SLIDESHOW
   ========================================================= */
.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-pop);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px 12px;
  background: linear-gradient(0deg, rgba(10,37,64,0.75), rgba(10,37,64,0));
  color: var(--white); font-size: 13.5px; font-weight: 600;
}
.hero-slide-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.hero-slide-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.55); cursor: pointer; padding: 0;
}
.hero-slide-dots button.is-active { background: var(--orange); width: 20px; border-radius: 5px; }
@media (max-width: 880px) { .hero-slideshow { max-width: 320px; } }

/* =========================================================
   HOMEPAGE CONTENT BLOCKS (admin-added, between fixed sections)
   ========================================================= */
.home-block { padding: 50px 0; }
.home-block-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.home-block-inner.no-image { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; text-align: center; }
.home-block-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); object-fit: cover; aspect-ratio: 4/3; }
.home-block-text h2 { font-size: 24px; }
.home-block-text .body-text { white-space: pre-line; font-size: 15.5px; color: var(--ink); }
@media (max-width: 800px) { .home-block-inner { grid-template-columns: 1fr; } .home-block-image { order: -1; } }

/* =========================================================
   RICH CONTENT (Home Content Blocks + custom Pages — HTML allowed)
   ========================================================= */
.rich-content { font-size: 15.5px; color: var(--ink); line-height: 1.7; }
.rich-content p { margin: 0 0 1em; color: var(--ink); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { margin-top: 1em; }
.rich-content ul, .rich-content ol { margin: 0 0 1em; padding-left: 22px; color: var(--ink); }
.rich-content li { margin-bottom: 6px; }
.rich-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.rich-content a { color: var(--orange-dark); text-decoration: underline; }
.rich-content iframe { max-width: 100%; border: none; border-radius: var(--radius-sm); margin: 10px 0; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.rich-content table td, .rich-content table th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich-content blockquote { border-left: 3px solid var(--orange); padding-left: 14px; color: var(--ink-soft); margin: 0 0 1em; }

/* =========================================================
   UPLOADED IMAGES (hero banner, about photo, cards)
   ========================================================= */
.hero-photo-wrap { width: 100%; max-width: 420px; margin: 0 auto; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow-pop); display: block; }

.about-photo-wrap { width: 100%; max-width: 320px; margin: 0 auto; }
.about-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--white); box-shadow: var(--shadow-pop); display: block; }

.card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 4px; display: block; background: var(--bg-alt); }

.detail-banner-image { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); display: block; margin: 24px 0 0; border: 1px solid var(--line); }
@media (max-width: 700px) { .detail-banner-image { aspect-ratio: 16 / 10; } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-lede { font-size: 16px; }
.page-hero { padding: 52px 0 30px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); }

/* =========================================================
   CARD GRID (services / doctors)
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.info-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, border-color .15s ease;
}
.info-tile:hover { transform: translateY(-4px); border-color: var(--orange); }
.info-tile::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .15s ease;
}
.info-tile:hover::before { transform: scaleX(1); }
.tile-icon { font-size: 30px; }
.tile-icon.big { font-size: 52px; }
.tile-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 4px; color: var(--navy); }
.tile-desc { font-size: 13.5px; color: var(--ink-soft); flex-grow: 1; }
.tile-cta { font-size: 13px; font-weight: 700; color: var(--orange-dark); margin-top: 6px; }

/* Doctor card specific */
.doctor-photo-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 4px; background: var(--bg-alt); }
.doctor-photo-placeholder { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); margin-bottom: 4px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 42px; }
.tile-role { font-size: 12.5px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .03em; }
.tile-qual { font-size: 12.5px; color: var(--ink-soft); margin-top: -4px; }

/* =========================================================
   HOW IT WORKS / WHY US
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section { background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2, .cta-inner p { color: var(--white); }
.cta-inner p { color: #C9D4E0; margin: 0; }
@media (max-width: 700px) { .cta-inner { flex-direction: column; text-align: center; } }

/* =========================================================
   SEARCH
   ========================================================= */
.search-form { display: flex; gap: 10px; max-width: 480px; margin-top: 22px; }
.search-form input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-family: var(--font-body); font-size: 14.5px; background: var(--white); }
.search-form input:focus { border-color: var(--orange); outline: none; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }

/* =========================================================
   DETAIL PAGES (service / doctor)
   ========================================================= */
.back-link { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }
.back-link:hover { color: var(--orange-dark); }
.detail-hero-top { display: flex; gap: 20px; align-items: flex-start; }
.meta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.meta-chip { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.meta-chip span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.meta-chip strong { font-size: 14px; color: var(--navy); }

.detail-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: flex-start; }
.detail-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-card); }
.detail-card h2 { font-size: 20px; }
.detail-card .body-text { font-size: 15px; color: var(--ink); white-space: pre-line; }

.doctor-photo-lg { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow-pop); }
.doctor-photo-lg-placeholder { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 72px; box-shadow: var(--shadow-pop); }

.side-card { background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.side-card h3 { font-size: 17px; }
.side-card p { font-size: 13.5px; }
.side-note { font-size: 12.5px; background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 6px; color: var(--ink-soft); border: 1px dashed var(--line); }
.side-note strong { color: var(--navy); }

@media (max-width: 880px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .detail-hero-top { flex-direction: column; }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 26px; }
.about-tagline { color: var(--orange-dark); font-weight: 600; font-size: 15px; }
.about-stats { display: flex; gap: 32px; margin: 22px 0; flex-wrap: wrap; }
.about-stats strong { font-family: var(--font-display); font-size: 24px; color: var(--orange-dark); display: block; }
.about-stats span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; }
@media (max-width: 880px) { .about-wrap { grid-template-columns: 1fr; } .about-seal { order: -1; width: 220px; height: 220px; margin-bottom: 10px;} }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.why-icon { font-size: 32px; display: block; margin-bottom: 10px; color: var(--orange); }
.why-card h3 { font-size: 16px; }
.why-card p { font-size: 13.5px; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: flex-start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; align-items: flex-start; }
.info-icon { font-size: 20px; color: var(--orange); width: 24px; text-align: center; }
.info-card h4 { font-size: 14px; margin-bottom: 3px; }
.info-card p { font-size: 13.5px; margin: 0; }
.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-card); }
.contact-form-card h3 { font-size: 19px; }
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; } }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--orange); outline: none; background: var(--white); }

/* =========================================================
   CUSTOM PAGE (admin > Pages)
   ========================================================= */
.page-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-card); max-width: 820px; margin: 0 auto; }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,0.6);
}
.whatsapp-float:hover { transform: scale(1.06); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: #C9D4E0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 48px 24px 30px; }
.footer-seal { margin-bottom: 12px; }
.footer-office { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 17px; margin: 0 0 6px; }
.footer-tagline { font-size: 13px; color: #9AA8BD; margin: 0; }
.footer-col h4 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: #C9D4E0; margin-bottom: 9px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-top: 1px solid #1B3350; font-size: 12.5px; color: #8493A8; }
.admin-link { color: #8493A8; }
.admin-link:hover { color: var(--orange); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }
