/* Header/nav/footer ported from the House Doctor landing page
   (server3/static/index.html + index.css) so the blog matches it visually.
   Colors are scoped under .site-chrome (not :root) so they never collide
   with the blog's own design tokens defined in blog.css. */

.site-chrome {
  --red: #c41300;
  --red-lt: #fa7465;
  --red-dk: #970f00;
  --gold: #C9A96E;
  --white: #FFFFFF;
  --gray-100: #EEF0F4;
  --gray-300: #C4C9D4;
  --gray-500: #8892A2;
  --gray-700: #4A5568;
  --gray-900: #2D3748;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Arial, Helvetica, sans-serif;
}

.site-chrome .container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-chrome .hidden { display: none !important; }

/* ---------- navbar ---------- */

.navbar.site-chrome {
  /* Source uses position:fixed (it floats over a full-height hero on the
     landing page). The blog has no such hero on every page, so this uses
     sticky instead — same look, but never covers page content. */
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo,
.logo:hover {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-svg { width: 30px; height: 30px; margin-right: 8px; fill: #C41300; }
.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: normal;
  color: #222;
  text-decoration: none;

}
.logo-text span { color: var(--red); font-family: inherit; }

.login_img { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover { color: var(--red); text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__lang { display: flex; background: rgba(255, 255, 255, 0.08); border-radius: 6px; overflow: hidden; }
.nav__lang-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  letter-spacing: 0.04em;
}
.nav__lang-btn.active { background: var(--red-dk); color: var(--white); border-radius: 4px; }
/* The switcher renders as <a> on blog pages (real per-language URLs), so
   opt out of the global link underline and keep the button box shape. */
a.nav__lang-btn { display: inline-block; text-decoration: none; }
a.nav__lang-btn:hover { text-decoration: none; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: #222; transition: 0.3s; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    transition: max-height 0.4s ease;
  }
  .nav-links li { border-top: 1px solid rgba(196, 19, 0, 0.25); }
  .nav-links a { display: block; padding: 18px 24px; }
  .nav-links.active { max-height: 400px; }
}

/* ---------- footer ---------- */

.footer.site-chrome { background: var(--gray-900); padding: 64px 0 32px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.footer__logo-text { font-family: Georgia, serif; font-size: 22px; color: var(--white); margin-bottom: 12px; }
.footer__desc { font-size: 13px; color: rgba(255, 255, 255, 0.4); line-height: 1.7; margin-bottom: 20px; }
.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 10px; }
/* Cities render as <span> until their landing pages exist, so they are styled
   alongside <a> to keep every footer column visually identical. */
.footer__links a,
.footer__links span { font-size: 13px; color: rgba(255, 255, 255, 0.55); transition: color var(--transition); text-decoration: none; }
.footer__links a:hover { color: var(--red-lt); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 24px 0;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: rgba(255, 255, 255, 0.3); text-decoration: none; }
.footer__legal a:hover { color: var(--gold); }
.footer__email { color: var(--red-lt); font-size: 12px; font-weight: 600; text-decoration: none; }
.footer__social { display: flex; gap: 14px; margin-top: 4px; }
.footer__social-link { color: rgba(255, 255, 255, 0.55); display: inline-flex; transition: color var(--transition); }
.footer__social-link:hover { color: var(--red-lt); }

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
