/* Mediroza Hospital - main stylesheet */

:root {
  --blue: #1668a8;
  --blue-dark: #0e4d7d;
  --blue-light: #e8f2fa;
  --teal: #2a9d8f;
  --ink: #2b3440;
  --grey: #667385;
  --line: #dce5ee;
  --bg: #ffffff;
}

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

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar {
  background: var(--blue-dark);
  color: #cfe3f4;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: #cfe3f4; }

header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 38px; height: 38px; }
.brand .name { font-size: 22px; font-weight: 700; color: var(--blue-dark); letter-spacing: .2px; }
.brand .name span { color: var(--teal); }

nav.main a {
  color: var(--ink);
  font-weight: 500;
  margin-left: 26px;
  font-size: 15px;
}
nav.main a:hover { color: var(--blue); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--blue); color: var(--blue); }
.btn.ghost:hover { background: var(--blue-light); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 74px 0;
}
.hero h1 { font-size: 40px; line-height: 1.2; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 19px; max-width: 620px; color: #dceaf6; margin-bottom: 28px; }
.hero .btn.ghost { border-color: #fff; color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
.section { padding: 62px 0; }
.section.alt { background: var(--blue-light); }
.section h2 { font-size: 30px; color: var(--blue-dark); margin-bottom: 10px; }
.section .lead { color: var(--grey); max-width: 640px; margin-bottom: 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}
.card .ic {
  width: 46px; height: 46px; border-radius: 9px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--blue); }
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--grey); font-size: 15px; }

/* Doctors */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.doc {
  display: flex; gap: 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 22px;
}
.doc .avatar {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; flex-shrink: 0;
}
.doc h3 { font-size: 18px; margin-bottom: 2px; }
.doc .spec { color: var(--teal); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.doc .meta { font-size: 14px; color: var(--grey); }
.doc .meta a { color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-row { display: flex; gap: 14px; margin-bottom: 20px; }
.info-row .ic { color: var(--blue); flex-shrink: 0; }
.info-row h4 { font-size: 15px; margin-bottom: 2px; }
.info-row p { color: var(--grey); font-size: 15px; }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; font-size: 15px;
}

/* Page header */
.page-head {
  background: var(--blue-light);
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { color: var(--blue-dark); font-size: 32px; }
.page-head .crumb { color: var(--grey); font-size: 14px; margin-top: 6px; }

/* Login box */
.login-wrap { min-height: 72vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--blue-light); }
.login-box {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 36px; width: 100%; max-width: 380px;
  box-shadow: 0 8px 30px rgba(14,77,125,.08);
}
.login-box .brand { justify-content: center; margin-bottom: 22px; }
.login-box h2 { text-align: center; font-size: 20px; margin-bottom: 4px; color: var(--blue-dark); }
.login-box .sub { text-align: center; color: var(--grey); font-size: 14px; margin-bottom: 24px; }
.login-box .btn { width: 100%; text-align: center; margin-top: 6px; }
.msg { font-size: 14px; padding: 10px 12px; border-radius: 6px; margin-top: 14px; display: none; }
.msg.err { background: #fdecec; color: #b23434; display: block; }

/* Footer */
footer.site {
  background: var(--ink); color: #b9c4d1;
  padding: 48px 0 24px;
  font-size: 14px;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer.site a { color: #b9c4d1; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 8px; }
footer.site .brand .name { color: #fff; font-size: 19px; }
footer.site .brand .name span { color: var(--teal); }
footer.site .bottom {
  border-top: 1px solid #3a4553; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  color: #8b97a6; font-size: 13px;
}

@media (max-width: 820px) {
  .grid, .docs, .contact-grid, footer.site .cols { grid-template-columns: 1fr; }
  nav.main { display: none; }
  .hero h1 { font-size: 30px; }
}
