/* ============================================================
   MyoMesh — Shared Site Chrome (header + nav + footer)
   SINGLE SOURCE OF TRUTH. Sourced verbatim from myomesh-home.
   Load this LAST in <head> (after any page <style>) so it wins.
   Self-contained: brand colours hardcoded, no dependency on
   per-page :root variables.
   ============================================================ */

/* ── Header / nav ── */
header { padding: 20px 40px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #1E3A34 0%, #3D8B7A 50%, #FF6B4A 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
header::before { content: ''; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,0.06); pointer-events: none; }
header::after { content: ''; position: absolute; right: -40px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,107,74,0.12); pointer-events: none; }
.logo svg { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px;
  background: transparent !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: rgba(255,255,255,1); }
.nav-login { padding: 8px 20px !important; border: 1.5px solid rgba(255,255,255,0.35) !important; border-radius: 50px !important; color: rgba(255,255,255,0.9) !important; font-weight: 500 !important; transition: all 0.2s !important; }
.nav-login:hover { border-color: rgba(255,255,255,0.7) !important; color: white !important; }
.nav-cta { padding: 10px 24px !important; background: #FF6B4A !important; color: white !important; border-radius: 50px !important; font-weight: 600 !important; transition: all 0.25s !important; box-shadow: 0 2px 12px rgba(255,107,74,0.25); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,74,0.35) !important; }
.nav-cta-group { display: none; }
@media (min-width: 768px) { .nav-cta-group { display: flex; align-items: center; gap: 1rem; } }

/* ── Mobile hamburger menu ── */
.mob-ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.mob-ham span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(30,58,52,0.97); z-index: 9999; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mob-overlay.open { display: flex; }
.mob-overlay a { font-size: 20px; font-weight: 500; color: rgba(255,255,255,0.85); text-decoration: none; padding: 4px 0; }
.mob-overlay a:hover { color: white; }
.mob-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: white; font-size: 32px; cursor: pointer; line-height: 1; }
.mob-overlay .nav-cta { background: #FF6B4A !important; padding: 14px 36px !important; border-radius: 50px !important; color: white !important; font-weight: 600 !important; margin-top: 8px; }
@media (max-width: 768px) { .mob-ham { display: flex; } .nav-links { display: none; } header { padding: 16px 20px; } }

/* ── Footer ── */
footer { background: #1E3A34; padding: 40px 40px 32px; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo svg { height: 34px; width: auto; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.55); }

/* ── Footer newsletter ── */
.footer-nl{padding-bottom:32px;margin-bottom:32px;border-bottom:1px solid rgba(255,255,255,.1);}
.footer-nl-row{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap;}
.footer-nl-text h3{color:#fff;font-size:18px;font-weight:600;margin:0 0 8px;}
.footer-nl-text p{color:rgba(255,255,255,.6);font-size:14px;line-height:1.5;margin:0;max-width:380px;}
.footer-nl-form{display:flex;gap:10px;flex-shrink:0;}
.footer-nl-form input[type=email]{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:12px 16px;color:#fff;font-size:14px;width:240px;font-family:inherit;}
.footer-nl-form input[type=email]::placeholder{color:rgba(255,255,255,.4);}
.footer-nl-form input[type=email]:focus{outline:none;border-color:#FF6B4A;background:rgba(255,255,255,.09);}
.footer-nl-form button{background:#FF6B4A;color:#fff;border:none;border-radius:10px;padding:12px 24px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .15s ease;}
.footer-nl-form button:hover{background:#FF8F75;}
.footer-nl-form button:disabled{opacity:.6;cursor:default;}
.footer-nl-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;}
.footer-nl-msg{font-size:13px;line-height:1.5;margin:12px 0 0;min-height:18px;}
.footer-nl-msg.ok{color:#9FD8C8;}
.footer-nl-msg.err{color:#FF8F75;}
/* newsletter present => footer-top loses its own divider (matches home) */
.footer-nl ~ .footer-top, .footer-inner .footer-nl + .footer-top { border-bottom:none!important; padding-bottom:0!important; margin-bottom:28px!important; }

@media (max-width: 768px) {
  footer { padding: 32px 20px; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-nl-row{flex-direction:column;align-items:stretch;gap:18px;}
  .footer-nl-form{width:100%;}
}
