/* God's Healing Titilayomi Medical Hospital: shared stylesheet.
   Mobile-first, system fonts only, no framework. */

:root {
  --brand-crimson: #A6192E;
  --brand-crimson-dark: #7C1322;
  --brand-orange: #F47B20;
  --brand-orange-light: #FBB040;
  --ink: #1F2933;
  --paper: #FFFFFF;
  --muted: #F7F4F2;
  --line: #E7E0DC;

  /* Editorial "unconfirmed" flag. Deliberately not a brand color,
     so it can never be mistaken for real content or decoration. */
  --todo-bg: #FFF6E0;
  --todo-border: #B4780A;
  --todo-text: #6B4400;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content-width: 640px;
  --radius: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  background: var(--paper);
  flex: 1 0 auto;
}

.site-footer {
  flex: none;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--brand-crimson);
}

h1 { font-size: 2.1rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 0.9rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--brand-crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover, a:focus {
  text-decoration-thickness: 3px;
}

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

ul { padding-left: 1.25rem; }

/* Keeps anchor-linked sections clear of the sticky header */
[id] {
  scroll-margin-top: 88px;
}

/* Services page: jump nav + card list */

.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  max-width: var(--content-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.service-jump a {
  flex: none;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--brand-crimson);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand-crimson);
  white-space: nowrap;
}

.service-jump a:hover,
.service-jump a:focus-visible {
  background: var(--brand-crimson);
  color: #FFFFFF;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(31, 41, 51, 0.06);
}

.service-photo {
  display: block;
  width: 100%;
  aspect-ratio: 32 / 9;
  object-fit: cover;
  object-position: center;
}

.service-icon-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(166, 25, 46, 0.09), rgba(244, 123, 32, 0.12));
  padding: 1.5rem 1.4rem;
}

.service-icon-badge {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--paper);
  border: 2px solid var(--brand-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(166, 25, 46, 0.18);
}

.service-icon-badge svg {
  width: 32px;
  height: 32px;
  color: var(--brand-crimson);
}

.service-icon-panel h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--brand-crimson);
}

.service-card-body {
  padding: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.service-card-body p:last-child { margin-bottom: 0; }

.service-card-body .todo-flag {
  margin-top: 0.75rem;
}

.test-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 1rem;
}

.test-list li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 600;
}

.test-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  transform: rotate(8deg);
}

@media (min-width: 480px) {
  .test-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-crimson);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* Focus visibility */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-crimson);
  outline-offset: 2px;
}

/* Layout container */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  background: var(--paper);
  border-top: 4px solid var(--brand-orange);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(31, 41, 51, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.logo-icon {
  flex: none;
  width: 38px;
  height: 38px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-line1 {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-crimson);
  letter-spacing: 0.02em;
}

.logo-line2 {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.site-nav {
  margin-top: 0.85rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-crimson);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-crimson);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Call / WhatsApp buttons (used once real numbers exist) */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--brand-crimson);
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-call {
  background: var(--brand-crimson);
  color: var(--paper);
}

.btn-call:hover { background: var(--brand-crimson-dark); }

.btn-whatsapp,
.btn-outline {
  background: var(--paper);
  color: var(--brand-crimson);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--muted);
}

/* Unconfirmed-content flags.
   .todo-chip: compact, for header/footer.
   .todo-flag: prominent block, for in-page content. */

.todo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--todo-bg);
  border: 1.5px dashed var(--todo-border);
  color: var(--todo-text);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.todo-chip svg { width: 13px; height: 13px; flex: none; }

.todo-flag {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--todo-bg);
  border: 2px dashed var(--todo-border);
  color: var(--todo-text);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin: 0 0 0.75rem;
}

.todo-flag:last-child { margin-bottom: 0; }

.todo-flag svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.15rem;
}

.todo-flag-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.todo-flag-text {
  font-weight: 600;
  line-height: 1.4;
}

/* Hero */

/* Hero background photo: images/hero.jpg (resized to 800px wide, ~37KB).
   Sourced from a maternal/child health image set, not a photo of this
   specific hospital or its own staff, swap for an on-site photo when one
   exists. Crimson gradient sits on top so body text stays readable
   regardless of what the photo looks like. */
.hero {
  position: relative;
  background-color: var(--brand-crimson-dark);
  background-image:
    linear-gradient(135deg, rgba(124, 19, 34, 0.88), rgba(166, 25, 46, 0.8)),
    url("images/hero.jpg");
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 4px solid var(--brand-orange);
  padding: 2.75rem 0 2.5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.hero h1 {
  color: #FFFFFF;
}

.hero .tagline {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hero-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-contact-actions .btn {
  justify-content: center;
}

.hero-contact address {
  font-style: normal;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.hero-contact address svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--brand-crimson);
}

/* Decorative square motif. Orange, purely decorative */

.motif-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0;
  padding: 1.5rem 0;
}

.motif-square {
  width: 12px;
  height: 12px;
  background: var(--brand-orange);
  display: inline-block;
  transform: rotate(8deg);
}

.motif-square:nth-child(2) {
  background: var(--brand-orange-light);
  transform: rotate(-6deg);
}

.motif-square:nth-child(3) {
  background: var(--brand-crimson);
  transform: rotate(10deg);
}

/* About page: text/photo rows, quick facts, department list */

.about-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(31, 41, 51, 0.12);
}

.fact-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.fact-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 4px rgba(31, 41, 51, 0.04);
}

.fact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--brand-crimson);
  margin-bottom: 0.25rem;
}

.fact-value {
  font-weight: 700;
  font-size: 1.05rem;
}

@media (min-width: 640px) {
  .about-row {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .about-row > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .about-row.reverse {
    flex-direction: row-reverse;
  }

  .fact-strip {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .fact-item {
    max-width: 320px;
  }
}

.addr {
  font-style: normal;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.addr svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--brand-crimson);
}

/* Page banner: compact crimson header used on interior pages (Services,
   About, Contact) so the phone/WhatsApp status stays visible without
   scrolling on every page, matching the homepage hero's contact card. */

.page-banner {
  position: relative;
  background-color: var(--brand-crimson-dark);
  background-image:
    linear-gradient(135deg, rgba(124, 19, 34, 0.9), rgba(166, 25, 46, 0.84)),
    url("images/hero.jpg");
  background-size: cover, cover;
  background-position: center, center 25%;
  background-repeat: no-repeat, no-repeat;
  color: #FFFFFF;
  border-bottom: 4px solid var(--brand-orange);
  padding: 1.75rem 0 1.5rem;
}

.page-banner h1 {
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.page-banner .lede {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  max-width: 46ch;
}

.page-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.page-banner-actions .btn-call {
  background: #FFFFFF;
  color: var(--brand-crimson);
  border-color: #FFFFFF;
}

.page-banner-actions .btn-call:hover,
.page-banner-actions .btn-call:focus-visible {
  background: var(--muted);
}

.page-banner-actions .btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-banner-actions .btn-outline:hover,
.page-banner-actions .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

/* Sections */

.section {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.section-muted {
  background: var(--muted);
}

.section > h2:first-child,
.section-muted > .container > h2:first-child {
  margin-top: 0;
}

/* Services strip / grid */

.services-grid {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.services-grid a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-crimson);
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(31, 41, 51, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.services-grid a svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--brand-crimson);
}

.services-grid a:hover,
.services-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 41, 51, 0.1);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  margin-top: 2rem;
  border-top: 4px solid var(--brand-orange);
  padding: 2.25rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer a {
  color: var(--brand-orange-light);
}

.site-footer address {
  font-style: normal;
  margin: 0;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #C9D1D9;
  margin: 0 0 0.6rem;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.site-footer .addr svg {
  color: var(--brand-orange-light);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--brand-orange-light);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact-link svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.footer-meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #C9D1D9;
}

/* Wider screens */

@media (min-width: 640px) {
  :root {
    --content-width: 760px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.6rem; }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .site-nav {
    margin-top: 0;
  }

  .site-nav ul {
    gap: 1.75rem;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
  }

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

  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 900px) {
  :root {
    --content-width: 940px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
