/* Biowu Hospital Limited — basic standard site styles */

:root {
  --navy: #2f4d85;
  --navy-dark: #1c2f52;
  --red: #d93830;
  --light-bg: #f4f8f9;
  --border: #e0e6e8;
  --text: #2b2f33;
  --text-light: #5a6268;
  --white: #ffffff;
}

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

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 6px;
}

.topbar a { color: var(--white); }
.topbar span { margin-right: 18px; }

/* Header / Nav */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}

.logo img {
  height: 52px;
  width: auto;
}

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

.logo strong {
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.logo small {
  color: var(--text-light);
  font-size: 0.75rem;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--navy);
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(28,47,82,0.90) 0%, rgba(47,77,133,0.85) 100%),
    url('images/exterior.jpg') center 30% / cover no-repeat;
  color: var(--white);
  padding: 90px 0;
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 14px;
  max-width: 700px;
}

.hero p {
  max-width: 600px;
  margin-bottom: 26px;
  color: #eaf3f4;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  border: 2px solid var(--white);
}

.btn:hover { background: transparent; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  margin-left: 12px;
}

.btn-outline:hover { background: var(--white); color: var(--navy); }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0;
}

.page-hero h1 { font-size: 1.9rem; margin-bottom: 8px; }
.page-hero p { color: #dcebee; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--light-bg); }

h2.section-title {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 32px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  overflow: hidden;
}

.card h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card ul {
  margin-left: 18px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.card ul li { margin-bottom: 4px; }

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.photo-grid figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.photo-grid figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}

.photo-row figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.photo-row figcaption {
  padding: 10px 4px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-img {
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(47, 77, 133, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 30px;
  height: 30px;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Info list (about page facts, contact details) */
.fact-list { list-style: none; }
.fact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.fact-list li span:first-child { color: var(--text-light); }
.fact-list li span:last-child { font-weight: 600; text-align: right; }

/* FAQ accordion */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 34px 16px 0;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  padding: 0 34px 18px 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Emergency strip */
.emergency-strip {
  background: #d93830;
  color: var(--white);
  text-align: center;
  padding: 12px 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.emergency-strip a { text-decoration: underline; }

/* Contact form */
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 6px;
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #cfe2e8;
  padding: 46px 0 20px;
  font-size: 0.92rem;
}

footer.site-footer h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1rem;
}

footer.site-footer .grid {
  grid-template-columns: 2fr 1fr 1.4fr;
  margin-bottom: 30px;
}

footer.site-footer a:hover { text-decoration: underline; }

footer.site-footer ul { list-style: none; }
footer.site-footer ul li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.8rem;
  color: #9fb7bf;
  text-align: center;
}

/* Responsive */
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  footer.site-footer .grid { grid-template-columns: 1fr; gap: 30px; }

  /* Show the appointment form before the address/map on Contact */
  .contact-layout .contact-form-col { order: 1; }
  .contact-layout .contact-info { order: 2; margin-top: 40px; }
}

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

  .nav-wrap { flex-wrap: wrap; row-gap: 12px; }
  .logo img { height: 40px; }
  .logo strong { font-size: 1.05rem; }
  .logo small { font-size: 0.68rem; }

  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: block;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--border);
    padding-top: 4px;
  }
  nav.main-nav.open ul { flex-direction: column; gap: 0; }
  nav.main-nav.open a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }

  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero .btn,
  .hero .btn-outline {
    display: block;
    width: 100%;
    margin: 0 0 12px 0;
    text-align: center;
    box-sizing: border-box;
  }

  .page-hero { padding: 34px 0; }
  .page-hero h1 { font-size: 1.5rem; }

  section { padding: 40px 0; }
  h2.section-title { font-size: 1.35rem; }

  .topbar .container { flex-direction: column; align-items: flex-start; }
  .emergency-strip { font-size: 0.85rem; padding: 10px 16px; }

  footer.site-footer .grid { grid-template-columns: 1fr; }

  .thankyou-actions { display: flex; flex-direction: column; gap: 12px; }
  .thankyou-actions .btn,
  .thankyou-actions .btn-outline {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
}
