/* ============================================================
   SECURE EXPRESS, SITE CHROME
   Header, mobile panel, footer, floating buttons.
   Rendered from template-parts/, not from the page builder, so
   the design cannot drift. Nav items come from WP menus.
   ============================================================ */

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

/* Logged-in users have the WordPress admin bar pinned to the top.
   Sit the fixed nav underneath it instead of behind it. */
.admin-bar .se-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .se-nav { top: 46px; } }
.admin-bar .se-mobile { top: 32px; }
@media (max-width: 782px) { .admin-bar .se-mobile { top: 46px; } }
.se-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 18px 0;
  transition: background .3s ease, backdrop-filter .3s ease,
    box-shadow .3s ease, padding .3s ease;
}
.se-nav.is-scrolled, .se-nav.is-solid {
  background: rgba(12, 12, 14, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
  padding: 11px 0;
}

.se-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.se-brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.se-brand__mark {
  height: var(--se-logo-h, 38px);
  width: auto;
  max-width: 240px;
  flex: none;
  object-fit: contain;
  display: block;
}
.se-brand--logo-only .se-brand__word { display: none; }
.se-brand__word {
  font-family: var(--se-font-display);
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 1.12rem;
  line-height: 1;
}
.se-brand__word span { color: var(--se-red); }

.se-nav__links { display: flex; align-items: center; gap: 2rem; }
.se-nav__links ul { display: flex; align-items: center; gap: 2rem; }
.se-nav__links a {
  color: rgba(255, 255, 255, .82);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
}
.se-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--se-red);
  transition: width .3s var(--se-ease);
}
.se-nav__links a:hover { color: #fff; }
.se-nav__links a:hover::after { width: 100%; }

.se-nav__cta { display: flex; align-items: center; gap: .85rem; margin-left: 1.4rem; }
.se-nav__cta .se-btn { padding: .64rem 1.3rem; font-size: .9rem; }
.se-nav__cta .se-btn svg, .se-mobile__cta .se-btn svg { width: 16px; height: 16px; }

.se-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 101;
}
.se-burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: .3s var(--se-ease);
  transform-origin: center;
}

/* Mobile panel */
.se-mobile {
  position: fixed;
  inset: 0;
  background: var(--se-ink);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  padding: 0 32px;
  transform: translateX(100%);
  transition: transform .45s var(--se-ease);
}
.se-mobile.is-open { transform: none; }
.se-mobile__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  cursor: pointer;
  z-index: 2;
}
.se-mobile__close:hover, .se-mobile__close:focus-visible { background: var(--se-red) !important; border-color: var(--se-red) !important; }
.se-mobile__close svg { width: 20px; height: 20px; }
.admin-bar .se-mobile__close { top: calc(18px + 32px); }
@media (max-width: 782px) { .admin-bar .se-mobile__close { top: calc(18px + 46px); } }
.se-mobile a:not(.se-btn) {
  color: #fff;
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: 1.7rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--se-char-line);
  display: block;
}
.se-mobile__cta {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.8rem;
}
.se-mobile__cta .se-btn { width: 100%; font-size: 1.04rem; padding: 1.05rem 1.4rem; }

body.se-menu-open { overflow: hidden; }
body.se-menu-open .se-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.se-menu-open .se-burger span:nth-child(2) { opacity: 0; }
body.se-menu-open .se-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.se-footer {
  background: var(--se-ink);
  color: #fff;
  padding: 70px 0 30px;
  border-top: 3px solid var(--se-red);
  font-family: var(--se-font-body);
  line-height: 1.6;
}
.se-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.se-footer__brand .se-brand { margin-bottom: 1rem; }
.se-footer__brand p {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  max-width: 32ch;
  margin-bottom: 1.2rem;
}

.se-footer__soc { display: flex; gap: .6rem; }
.se-footer__soc a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--se-char-2);
  display: grid;
  place-items: center;
  transition: .25s var(--se-ease);
}
.se-footer__soc a:hover { background: var(--se-red); transform: translateY(-2px); }
.se-footer__soc svg { width: 18px; height: 18px; }

.se-footer__col h4 {
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 1rem;
}
.se-footer__col ul { list-style: none; margin: 0; padding: 0; }
.se-footer__col a {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  padding: .32rem 0;
  transition: .2s;
}
.se-footer__col a:hover { color: var(--se-red); }

.se-footer__bottom {
  border-top: 1px solid var(--se-char-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}
.se-footer__bottom a { color: rgba(255, 255, 255, .6); }
.se-footer__bottom a:hover { color: var(--se-red); }
.se-footer__parent { display: inline-flex; align-items: center; gap: .5rem; }
.se-footer__parent strong { color: #fff; }

/* ------------------------------------------------------------
   FLOATS
   ------------------------------------------------------------ */
.se-totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--se-red-deep);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: .35s var(--se-ease);
  box-shadow: 0 12px 30px var(--se-red-glow);
  border: none;
  cursor: pointer;
}
.se-totop.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.se-totop:hover { background: var(--se-red); }
.se-totop svg { width: 20px; height: 20px; }

.se-wa {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25D366;
  color: #062;
  font-family: var(--se-font-body);
  font-weight: 700;
  padding: .7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  font-size: .88rem;
  text-decoration: none;
  transition: .25s var(--se-ease);
}
.se-wa:hover, .se-wa:focus-visible { transform: translateY(-2px); background: #128C4A; }
.se-wa svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .se-nav__links,
  .se-nav__cta .se-btn--ghost { display: none; }
  .se-burger { display: flex; }
  .se-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .se-footer__grid { grid-template-columns: 1fr 1fr; }
  .se-wa span { display: none; }
  .se-wa { padding: .8rem; border-radius: 50%; }
}

@media (max-width: 480px) {
  .se-brand__word { font-size: 1rem; }
  .se-nav__cta { margin-left: 0; gap: .6rem; }
  .se-nav__cta .se-btn { padding: .56rem 1rem; font-size: .84rem; }
  .se-mobile { padding: 0 26px; }
  .se-mobile a:not(.se-btn) { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .se-nav, .se-mobile, .se-totop, .se-wa { transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------
   BUTTON STATE LOCKDOWN (chrome)
   Hello's reset styles bare <button> on hover, focus and active
   with a pink fill and adds padding. Every button in the chrome
   sets all of its own states and has no padding, so the icon
   inside sits dead centre.
   ------------------------------------------------------------ */
.se-totop,
.se-totop:hover, .se-totop:focus, .se-totop:active, .se-totop:focus-visible {
  padding: 0 !important;
  margin: 0;
  line-height: 0;
  border: none !important;
  box-shadow: 0 12px 30px var(--se-red-glow) !important;
  color: #fff !important;
  background: var(--se-red-deep) !important;
}
.se-totop:hover, .se-totop:focus-visible { background: var(--se-red) !important; }
.se-totop:active { transform: translateY(1px) scale(.97); }
.se-totop svg { display: block; width: 20px; height: 20px; margin: 0; }
.se-totop:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }

.se-burger,
.se-burger:hover, .se-burger:focus, .se-burger:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  padding: 8px !important;
  line-height: 0;
}

.se-mobile__close,
.se-mobile__close:hover, .se-mobile__close:focus, .se-mobile__close:active {
  padding: 0 !important;
  line-height: 0;
  box-shadow: none !important;
}
.se-mobile__close svg { display: block; margin: 0; }

/* Menus render as lists; kill every marker and default list spacing. */
.se-nav__links ul, .se-nav__links li,
.se-footer__col ul, .se-footer__col li,
.se-mobile ul, .se-mobile li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.se-nav__links li::marker, .se-footer__col li::marker, .se-mobile li::marker { content: none; }
.se-nav__links li::before, .se-footer__col li::before, .se-mobile li::before { display: none !important; }

/* Buttons-only header: no links, no burger. Both buttons stay visible
   on every screen size and shrink on phones instead of hiding. */
.se-nav--buttons-only .se-nav__cta { margin-left: auto; }
@media (max-width: 980px) {
  .se-nav--buttons-only .se-nav__cta .se-btn--ghost { display: inline-flex; }
}
@media (max-width: 480px) {
  .se-nav--buttons-only .se-nav__cta { gap: .5rem; }
  .se-nav--buttons-only .se-nav__cta .se-btn { padding: .5rem .85rem; font-size: .8rem; }
  .se-nav--buttons-only .se-brand__mark { height: calc(var(--se-logo-h, 38px) * .8); }
}

/* Phones: the WordPress admin bar scrolls away below 600px, so the
   fixed header must sit at the very top, not 46px down. */
@media (max-width: 600px) {
  .admin-bar .se-nav,
  .admin-bar .se-mobile { top: 0; }
  .admin-bar .se-mobile__close { top: 18px; }
}

/* Phones: logo and both header buttons fit on one row, nothing cut off. */
@media (max-width: 480px) {
  .se-nav--buttons-only .se-nav__row { gap: .6rem; padding-left: 14px; padding-right: 14px; }
  .se-nav--buttons-only .se-brand { flex: 0 1 auto; min-width: 0; }
  .se-nav--buttons-only .se-brand__mark { height: calc(var(--se-logo-h, 38px) * .66); max-width: 30vw; }
  .se-nav--buttons-only .se-nav__cta { gap: .4rem; flex: none; }
  .se-nav--buttons-only .se-nav__cta .se-btn {
    padding: .5rem .7rem;
    font-size: .74rem;
    white-space: nowrap;
    letter-spacing: 0;
  }
}
@media (max-width: 360px) {
  .se-nav--buttons-only .se-nav__cta .se-btn { padding: .45rem .55rem; font-size: .68rem; }
  .se-nav--buttons-only .se-brand__mark { max-width: 24vw; }
}

/* Footer, tablet and phone: brand block on its own row, link columns
   in an even grid that can never push past the screen edge. */
@media (max-width: 980px) {
  .se-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
  .se-footer__brand { grid-column: 1 / -1; }
  .se-footer__brand p { max-width: 46ch; }
  .se-footer__col a { overflow-wrap: break-word; }
}
@media (max-width: 680px) {
  .se-footer { padding: 56px 0 96px; }
  .se-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; margin-bottom: 36px; }
  .se-footer__soc { flex-wrap: wrap; }
  .se-footer__col h4 { margin-bottom: .6rem; }
  .se-footer__col a { padding: .28rem 0; line-height: 1.4; }
  .se-footer__bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
