/* Kitengela East Community Hospital - Clean, modern, accessible styles */
:root{
  --brand:rgba(247, 14, 177, 0.938);
  --brand-2:#390ed6;
  --accent:#440ddb;
  --text:hwb(240 95% 4% / 0.993);
  --muted:hsl(60, 12%, 97%);
  --bg:#380ef1;
  --bg-soft:hsl(300, 20%, 96%);
  --card:#fd30e2;
  --radius:18px;
  --shadow: 0 10px 25px rgba(43, 6, 110, 0.07);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background:var(--bg-soft);
  line-height:1.6;
}

/* Top utility bar */
.topbar{
  background:var(--brand);
  color:#ffffff;
  font-size:.9rem;
}
.topbar .container{
  max-width:1200px;
  margin:0 auto;
  padding:.5rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.topbar a{color:white; text-decoration:none}
.topbar .quick-links{
  display:flex; gap:1rem; flex-wrap:wrap;
}
/* General resets */
/* Make the header smaller and neater */
/* General resets & container */
.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top-bar {
  background-color: #f5f5f5; /* light neutral */
  color: #333;
  font-size: 14px;
  padding: 5px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #333;
  margin-left: 15px;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Main header */
.main-header {
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

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

/* Brand styling */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 80px;
  height: auto;
  margin-right: 15px;
}

.title-tag {
  display: flex;
  flex-direction: column;
}

.title .line1 {
  font-size: 24px;
  font-weight: bold;
  color: #004aad;
}

.title .line2 {
  font-size: 20px;
  color: #007bff;
  margin-top: -2px; /* slight overlap or tighter spacing */
}

.tagline {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

/* Navigation */
.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: #007bff;
}

/* CTA button */
.cta {
  background-color: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  margin-left: 20px;
  white-space: nowrap;
}

.cta:hover {
  background-color: #0056b3;
}

/* Mobile responsiveness */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-menu {
    width: 100%;
    order: 3;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    display: none; /* hidden until toggle */
  }

  .nav-menu ul.show {
    display: flex;
  }

  .cta {
    order: 2;
    margin-top: 10px;
  }

  .nav-toggle {
    display: block;
    order: 1;
  }
}




/* ==== TOP BAR ==== */
.top-bar {
  background-color: #004aad; /* Deep hospital blue */
  color: white;
  font-size: 14px;
  padding: 6px 0;
}

.top-bar a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* ==== HEADER MAIN AREA ==== */
.main-header {
  background-color: #eaf3ff; /* very light blue background */
  padding: 12px 0;
  border-bottom: 3px solid #004aad;
}

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

/* ==== LOGO & TEXT ==== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand .logo {
  width: 75px;
  height: auto;
}

.title-tag {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Make both lines the same blue */
.title .line1,
.title .line2 {
  font-size: 22px;
  font-weight: 700;
  color: #004aad; /* unified hospital blue */
  text-transform: uppercase;
}

.tagline {
  font-size: 13px;
  color: #555;
  margin-top: 3px;
}

/* ==== NAVIGATION ==== */
.nav-menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #004aad;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: #007bff;
}

/* ==== BOOK APPOINTMENT BUTTON ==== */
.nav-menu ul li .btn.pill {
  background-color: #004aad;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.nav-menu ul li .btn.pill:hover {
  background-color: #003380;
}
.title-tag {
  text-align: center; /* centers all text under logo */
  margin-top: 5px;
}

.title {
  line-height: 1.1;
  font-weight: 700;
  text-align: center; /* ensures hospital stays centered */
}

.title .line1 {
  display: block;
  font-size: 22px;
  color: #004aad; /* hospital blue */
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title .line2 {
  display: block;
  font-size: 24px;
  color: #004aad; /* same blue */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

.tagline {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  text-align: center;
  font-style: italic;
}















.nav-menu ul li a {
  white-space: nowrap; /* Keeps text on one line */
}
.nav-menu ul {
  display: flex;
  flex-wrap: nowrap; /* Prevents wrapping to a new line */
  gap: 20px; /* Adjust space between menu items */
}

.nav-menu ul li {
  list-style: none;
}




/* Cards & sections */
.section{ padding: 56px 1rem; }
.container{ max-width:1200px; margin:0 auto; }
.grid{ display:grid; gap:1rem; grid-template-columns: repeat(12, 1fr); }
.card{
  background:var(--card); border-radius: var(--radius); padding:1rem; box-shadow: var(--shadow);
}
.shadow-soft{ box-shadow:var(--shadow); }
.rounded-2xl{ border-radius: var(--radius); }

/* Services grid */
.cards-3{ display:grid; gap:1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){
  .cards-3{ grid-template-columns: 1fr; }
}
.card h3{ margin-top:.2rem }
.card p{ color:var(--muted) }
.icon{
  width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--bg-soft); font-weight:800;
}

/* Stats */
.stats{
  margin-top:1rem; display:grid; gap:1rem; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px){ .stats{ grid-template-columns: repeat(2, 1fr); } }
.stat{ background:rgba(39, 8, 218, 0.15); border-radius:18px; padding:1rem; text-align:center}
.stat b{ font-size:1.6rem; display:block }
.stat span{ font-size:.9rem; opacity:.9 }

/* Feature list */
.features{ display:grid; gap:1rem; grid-template-columns: repeat(3,1fr) }
@media (max-width:900px){ .features{ grid-template-columns: 1fr } }
.feature{ display:flex; gap:.9rem; align-items:flex-start; }
.feature .icon{ background:#ecfeff }

/* Footer */
footer{
  background:var(--text); color:rgb(253, 253, 253); margin-top: 40px;
  border-top-left-radius: 48px; border-top-right-radius: 48px;
}
footer .container{ padding: 48px 1rem }
.footer-grid{ display:grid; gap:1rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width:900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
footer a{ color:rgb(248, 248, 248); text-decoration:none }
.footer-bottom{
  border-top:1px solid rgb(252, 250, 251); margin-top:24px; padding-top:16px;
  display:flex; gap:1rem; align-items:center; justify-content:space-between; flex-wrap:wrap;
}
footer {
  background: #372b92;   /* Or use rgb/hex, e.g. rgb(0, 0, 255) or #0000ff */
  color: rgb(247, 242, 246);
  margin-top: 40px;
  border-top-left-radius: 48px; 
  border-top-right-radius: 48px;
}













/* Tables */
.table{
  width:100%; border-collapse: collapse; background:rgb(65, 62, 236); border-radius:18px; overflow:hidden; box-shadow:var(--shadow);
}
.table th, .table td{ padding:.9rem 1rem; border-bottom:1px solid hwb(0 9% 91%); text-align:left; }
.table th{ background:#f006a2; font-size:.9rem; text-transform:uppercase; letter-spacing:.4px; }

/* Forms */
.form{
  display:grid; gap:.8rem;
}
input, textarea, select{
  width:100%; padding:.9rem; border:1px solid #e5e7eb; border-radius:12px; font:inherit; background:white;
}
label{ font-weight:700; font-size:.95rem }
button{ font:inherit }
button.btn{ cursor:pointer }

/* Badges/Pills */
.pill{ display:inline-block; padding:.3rem .7rem; border-radius:999px; background:#ecfeff; color:#0c4a4a; font-weight:700; font-size:.8rem}

/* Utility */
.center{ text-align:center }
.muted{ color:var(--muted) }
.mt-2{ margin-top:.5rem } .mt-3{ margin-top:.75rem } .mt-4{ margin-top:1rem } .mt-6{ margin-top:1.5rem } .mt-8{ margin-top:2rem }

body { font-family: Arial, sans-serif; margin:0; color:#333; }
.header { background:#f8f8f8; padding:12px 0; }
.header-flex { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.header .brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:#2e8b57; font-weight:bold; }
.header nav ul { list-style:none; display:flex; gap:1rem; margin:0; padding:0; }
.header nav a { text-decoration:none; color:#333; padding:6px 10px; }
.header nav a.active { color:#2e8b57; font-weight:600; }
.section { padding:40px 0; }
h1,h2,h3 { color:#000; }
.muted { color:#555; }
.cards-2 { display:grid; gap:1rem; margin-top:1rem; }
@media(min-width:768px){ .cards-2 { grid-template-columns:repeat(2,1fr); } }
.card { background:#fff; padding:16px; border-radius:10px; box-shadow:0 4px 15px rgba(0,0,0,.08); }
.card img { width:100%; border-radius:10px; margin-bottom:12px; }
.card h3 { margin:6px 0; }
.read-more { background:#2e8b57; color:#fff; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; }
footer { background:#2e8b57; color:#fff; text-align:center; padding:16px; margin-top:40px; }
dialog { border:none; border-radius:12px; padding:20px; }
dialog::backdrop { background:rgba(0,0,0,.5); }






h1, h2, h3, h4, h5, h6 {
  color: #0044cc; /* your hospital's blue */
}









