/* ==========================================================================
   Shared teal chrome — header, brand, nav, footer and the colour tokens.

   Loaded by every page that includes ``partials/teal_header.html`` and
   ``partials/teal_footer.html`` (homepage, doctor profile, …). The class
   ``theme-nh`` on <body> activates it; page-specific stylesheets build on
   the same custom properties.
   ========================================================================== */

.theme-nh {
  --nh-teal: #12688f;
  --nh-teal-dark: #0d5673;
  --nh-footer: #0d5a78;
  --nh-sky: #e9f3f9;
  --nh-ink: #363636;
  --nh-ink-soft: #5b6570;
  --nh-ink-faint: #9aa5ad;
  --nh-blue: #006cb3;
  --nh-blue-deep: #004d6c;
  --nh-line: #e6ecf0;
  --nh-star: #f9cd43;
  --nh-radius: 6px;

  background: #fff;
  color: var(--nh-ink);
}

.theme-nh .nh-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ------------------------------------------------------------------ header */
.nh-header {
  background: var(--nh-teal);
  color: #fff;
}
.nh-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 60px;
}
.nh-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nh-brand:hover { color: #fff; }
.nh-brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
}
.nh-brand__text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.nh-nav {
  display: flex;
  gap: 0.15rem;
  margin-inline-start: 0.75rem;
}
.nh-nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--nh-radius);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  transition: background 0.15s, color 0.15s;
}
.nh-nav a:hover,
.nh-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.nh-header__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nh-header__actions form { margin: 0; }
.nh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--nh-radius);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.nh-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
/* Registration is the primary call to action, so it reads as a filled pill
   instead of a second identical outline next to "ورود". */
.nh-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.5rem;
  border: 1px solid #fff;
  border-radius: var(--nh-radius);
  background: #fff;
  color: var(--nh-teal-dark);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nh-btn-solid:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--nh-teal-dark);
}

/* ------------------------------------------------------------------ footer */
.nh-footer {
  background: var(--nh-footer);
  padding: 1.6rem 0 1.4rem;
  color: #fff;
}
.nh-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 2rem;
  align-items: start;
}
.nh-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.nh-footer__links a {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
}
.nh-footer__links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.nh-footer__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.nh-footer__brand small {
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}
.nh-footer__legal {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .nh-nav { display: none; }
}
@media (max-width: 720px) {
  .nh-footer__links { grid-template-columns: 1fr; gap: 0.5rem; }
}
