/* ── STEMIFY HEADER & FOOTER — PUBLIC STYLES ───────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* ─── SHARED ──────────────────────────────────────────────── */
.shf-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.shf-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.shf-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}
.shf-logo__text {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}

/* ─── HEADER ──────────────────────────────────────────────── */
.shf-header {
  width: 100%;
  height: var(--shf-header-h, 70px);
  background: var(--shf-header-bg);
  border-bottom: 1px solid var(--shf-header-border);
  z-index: 9999;
  transition: box-shadow .3s ease, background .3s ease;
}
.shf-header.shf-sticky {
  position: sticky;
  top: 0;
}
.shf-header.shf-scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.shf-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ─── DESKTOP NAV ─────────────────────────────────────────── */
.shf-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.shf-nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shf-nav__link {
  display: block;
  padding: 6px 13px;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--shf-link, #e2e8f0);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
  white-space: nowrap;
}
.shf-nav__link:hover {
  color: var(--shf-link-hover, #38bdf8);
  background: rgba(56,189,248,.08);
}

/* ─── HEADER ACTIONS ──────────────────────────────────────── */
.shf-header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.shf-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--shf-link, #e2e8f0);
  text-decoration: none;
  transition: color .2s;
  white-space: nowrap;
}
.shf-phone-link:hover { color: var(--shf-link-hover, #38bdf8); }

.shf-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 3px 14px rgba(56,189,248,.28);
  white-space: nowrap;
}
.shf-cta-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56,189,248,.4);
  color: #fff !important;
}
.shf-cta-btn--full {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: .9rem;
  margin-top: .5rem;
}

/* ─── BURGER ──────────────────────────────────────────────── */
.shf-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 7px;
  transition: background .2s;
}
.shf-burger:hover { background: rgba(255,255,255,.07); }
.shf-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--shf-link, #e2e8f0);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s, width .2s;
}
/* Burger → X animation */
.shf-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.shf-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.shf-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── OVERLAY ─────────────────────────────────────────────── */
.shf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0, var(--shf-overlay-op, .6));
  z-index: 10000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.shf-overlay.visible {
  display: block;
}
.shf-overlay.open {
  opacity: 1;
}

/* ─── MOBILE MENU — FULL SCREEN ───────────────────────────── */
.shf-mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--shf-mobile-bg, #060c1a);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Subtle texture */
  background-image:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(56,189,248,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99,102,241,.06) 0%, transparent 60%);
}
.shf-mobile-menu.open {
  transform: translateX(0);
}

.shf-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.shf-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  cursor: pointer;
  color: var(--shf-mobile-text, #e2e8f0);
  transition: background .2s, transform .2s;
}
.shf-close:hover {
  background: rgba(56,189,248,.14);
  transform: rotate(90deg);
}

/* Nav items */
.shf-mobile-menu__nav {
  flex: 1;
  padding: 14px 0;
}
.shf-mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shf-mobile-menu__nav li {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .3s ease, transform .3s ease;
  transition-delay: calc(var(--i, 0) * 0.045s);
}
.shf-mobile-menu.open .shf-mobile-menu__nav li {
  opacity: 1;
  transform: translateX(0);
}

.shf-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  color: var(--shf-mobile-text, #e2e8f0);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s, background .2s, padding-left .2s;
}
.shf-mobile-nav__link:hover {
  color: #38bdf8;
  background: rgba(56,189,248,.06);
  padding-left: 32px;
}
.shf-mobile-nav__link svg {
  opacity: .45;
  flex-shrink: 0;
}

/* Footer area inside mobile menu */
.shf-mobile-menu__footer {
  padding: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.shf-mobile-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  margin-bottom: .5rem;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.shf-footer {
  background: var(--shf-footer-bg, #040810);
  border-top: 1px solid var(--shf-footer-border);
  color: var(--shf-footer-text);
  font-size: .84rem;
  line-height: 1.65;
}

.shf-footer__inner {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.shf-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Brand column */
.shf-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.shf-footer__tagline {
  font-size: .83rem;
  color: var(--shf-footer-text);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}
.shf-footer__contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.shf-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  color: var(--shf-footer-text);
  text-decoration: none;
  line-height: 1.5;
}
.shf-footer__contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .65; }
.shf-footer__contact-item:hover { color: var(--shf-footer-link); }
a.shf-footer__contact-item { color: var(--shf-footer-link); }

/* Social */
.shf-footer__social {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.shf-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: var(--shf-footer-text);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.shf-social-btn:hover {
  background: rgba(56,189,248,.14);
  border-color: rgba(56,189,248,.3);
  color: #38bdf8;
  transform: translateY(-2px);
}

.shf-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 7px;
  font-size: .78rem;
  color: var(--shf-footer-link);
  text-decoration: none;
  transition: background .2s;
  align-self: flex-start;
}
.shf-map-btn:hover { background: rgba(56,189,248,.16); }

/* Link columns */
.shf-footer__col { }
.shf-footer__col-heading {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}
.shf-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.shf-footer__col-link {
  font-size: .81rem;
  color: var(--shf-footer-text);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}
.shf-footer__col-link:hover {
  color: var(--shf-footer-link);
  padding-left: 4px;
}

/* Bottom bar */
.shf-footer__bottom {
  border-top: 1px solid var(--shf-footer-border);
  padding: 1rem 0;
}
.shf-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.shf-footer__copy {
  font-size: .75rem;
  color: var(--shf-footer-text);
  margin: 0;
  opacity: .7;
}
.shf-footer__bottom-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shf-footer__bottom-links a {
  font-size: .75rem;
  color: var(--shf-footer-text);
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s, color .2s;
}
.shf-footer__bottom-links a:hover { opacity: 1; color: var(--shf-footer-link); }

/* ─── MOBILE RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .shf-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .shf-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .shf-header { height: var(--shf-header-hm, 58px); }
  .shf-header .shf-logo img { max-height: 40px; }

  /* Hide desktop nav, show burger */
  .shf-nav { display: none; }
  .shf-phone-link { display: none; }
  .shf-burger { display: flex; }

  .shf-header__inner { gap: 1rem; }
}

@media (max-width: 600px) {
  .shf-footer__top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .shf-footer__brand { grid-column: auto; }
  .shf-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  /* On very small, show phone in header but compact */
  .shf-cta-btn { padding: 7px 14px; font-size: .78rem; }
}
