/* medicRENT 2026 brand – header & footer
   Palette taken from medicrent_logo_full_new_2026.svg, font: M PLUS 1
   Font is preloaded in HTML files to prevent FOUT */


:root {
  --mr-deep:   #173D3D;  /* logo gradient start, dot of the "i" */
  --mr-ink:    #1D4F4F;  /* "medic" wordmark */
  --mr-mid:    #266C6C;  /* gradient midpoint */
  --mr-accent: #49998C;  /* "RENT" wordmark */
  --mr-light:  #4A9B8E;  /* gradient end */
  --mr-tint:   #7CC2B4;  /* accent for use on dark backgrounds */
  --mr-mist:   #F2F8F7;  /* very light background */
  --mr-gradient: linear-gradient(90deg, #173D3D 0%, #266C6C 50%, #4A9B8E 100%);
  --mr-font: 'M PLUS 1', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.header, .footer, body { font-family: var(--mr-font); }

/* ---------- Logo wordmark (shared) ---------- */
.logo a, .footer-brand h3 { display: inline-flex; align-items: center; text-decoration: none; }
.logo-favicon { height: 36px; width: auto; display: block; margin-right: .5rem; }
.logo-medic, .logo-rent { font-family: var(--mr-font); font-weight: 600; font-size: 1.6rem; line-height: 1; }
.logo-medic { color: var(--mr-ink); }
.logo-rent  { color: var(--mr-accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(23,61,61,.08);
}
.header::after { content: ""; display: block; height: 3px; background: var(--mr-gradient); }
.navbar { max-width: 1200px; margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--mr-ink); font-weight: 500; font-size: 1rem; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--mr-mid); border-bottom-color: var(--mr-light); }
.nav-links a.cta-button {
  background: var(--mr-gradient); color: #fff; font-weight: 600;
  padding: .6rem 1.3rem; border-radius: 999px; border-bottom: 0;
  box-shadow: 0 3px 10px rgba(38,108,108,.3); transition: transform .15s, box-shadow .2s;
}
.nav-links a.cta-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(38,108,108,.38); }

.mobile-menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--mr-ink); border-radius: 2px; }

@media (max-width: 860px) {
  .mobile-menu-btn { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
               background: #fff; padding: .5rem 1.25rem 1.25rem; box-shadow: 0 10px 20px rgba(23,61,61,.12); }
  .nav-links.active, .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--mr-mist); }
  .nav-links a.cta-button { text-align: center; margin-top: .75rem; }
}

/* ---------- Footer ---------- */
.footer { background: var(--mr-deep); color: #D5E6E3; position: relative; margin-top: 3rem; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--mr-gradient); }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem 2rem; display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 2.5rem; }
.footer h3 { color: #fff; font-weight: 600; font-size: 1.1rem; margin: 0 0 1rem; }
.footer-brand h3 { margin-bottom: .75rem; }
.footer .logo-medic { color: #fff; }
.footer .logo-rent  { color: var(--mr-tint); }
.footer p { line-height: 1.6; margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #D5E6E3; text-decoration: none; transition: color .2s; }
.footer a:hover, .footer a:focus-visible { color: var(--mr-tint); }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.footer-socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%;
                    background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .15s; }
.footer-socials a:hover { background: var(--mr-light); color: #fff; transform: translateY(-2px); }

.footer-contact-list li { display: flex; align-items: center; gap: .75rem; }
.contact-icon { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center;
                border-radius: 50%; background: rgba(124,194,180,.15); color: var(--mr-tint); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); max-width: 1200px; margin: 0 auto; padding: 1.1rem 1.25rem;
                 display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: #9FC3BD; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #9FC3BD; }

@media (max-width: 860px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}
