/* ── SHARED SITE COMPONENTS ───────────────────────────────────────── */

/* CSS VARIABLES (shared across all pages) */
:root {
  --dark:      #121417;
  --darker:    #0a0d11;
  --slate:     #21262D;
  --border:    rgba(255,255,255,0.08);
  --bone:      #E6EDF3;
  --muted:     #7a8390;
  --amber:     #FFB000;
  --blue:      #3C96D3;
  --white:     #ffffff;
  --dark-text: #1a1c1f;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

/* NAV */
.hp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 53px; background: rgba(10,13,17,0.97); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--blue);
}
.hp-nav-inner {
  max-width: 1850px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 6rem);
}
.hp-nav-logo { display: flex; align-items: center; gap: clamp(5px, 0.65vw, 11px); }
.hp-nav-logo .logo-icon  { height: clamp(28px, 3vw, 46px); width: auto; }
.hp-nav-logo .logo-words { height: clamp(28px, 3vw, 46px); width: auto; opacity: 0.9; }
.hp-nav-links { display: flex; list-style: none; gap: clamp(0.85rem, 2.8vw, 3.5rem); padding-right: 0; }
.hp-nav-links a {
  font-size: clamp(0.71rem, calc(0.58rem + 0.19vw), 0.82rem); font-weight: 500; color: var(--bone);
  opacity: 0.75; transition: opacity 0.2s; letter-spacing: 0.02em;
  white-space: nowrap;
}
.hp-nav-links a:hover, .hp-nav-links a.active { opacity: 1; }
.hp-nav-links a.active { border-bottom: 2px solid var(--amber); padding-bottom: 2px; }

/* NAV RIGHT — groups nav links + search bar, pushed to the right of the logo */
.hp-nav-right {
  display: flex; align-items: center; gap: clamp(0.85rem, 2.8vw, 3.5rem);
}

/* NAV SEARCH */
.hp-nav-search {
  display: flex; align-items: center;
  position: relative; height: 32px;
}
.hp-nav-search input[type="search"] {
  width: clamp(90px, 7.5vw, 144px); height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 4px 0 0 4px;
  color: var(--bone);
  font-size: 0.8rem;
  padding: 0 0.65rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  /* Remove browser default search-cancel button */
  -webkit-appearance: none; appearance: none;
}
.hp-nav-search input[type="search"]::-webkit-search-cancel-button,
.hp-nav-search input[type="search"]::-webkit-search-decoration { display: none; }
.hp-nav-search input[type="search"]::placeholder { color: rgba(230,237,243,0.38); }
.hp-nav-search input[type="search"]:focus {
  border-color: var(--blue);
  background: rgba(60,150,211,0.07);
}
.hp-nav-search button {
  height: 32px; width: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: none;
  border-radius: 0 4px 4px 0;
  color: rgba(230,237,243,0.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.hp-nav-search button:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.hp-nav-search:focus-within button { border-color: var(--blue); }
.hp-nav-search.on-search-page input[type="search"] { border-color: var(--amber); }
.hp-nav-search.on-search-page button { border-color: var(--amber); }

/* FOOTER */
.hp-footer {
  background: #080b0f; border-top: 1px solid var(--border); padding: 3.5rem 0 2rem;
  overflow-x: hidden; line-height: 1.6;
}
.hp-footer-inner { max-width: 1850px; margin: 0 auto; padding: 0 6rem; }
.hp-footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  align-items: start;
}
.hp-footer-brand { display: flex; align-items: center; gap: 1.5rem; }
.hp-footer-brand .fwings { height: 105px; width: auto; flex-shrink: 0; display: block; }
.hp-footer-brand-text { text-align: center; }
.hp-footer-brand-text h3 { font-family: magistral, 'Josefin Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--bone); margin-bottom: 0.05rem; }
.hp-footer-brand-text .f-sub { font-size: 0.78rem; color: var(--amber); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.1rem; }
.hp-footer-brand-text p { font-family: Inter, 'Josefin Sans', sans-serif; font-size: 0.8rem; color: #555d6a; line-height: 1.65; }
.hp-footer-col { text-align: center; }
.hp-footer-col h4 {
  font-family: Inter, 'Josefin Sans', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.hp-footer-col ul { list-style: none; }
.hp-footer-col ul li { margin-bottom: 0.15rem; }
.hp-footer-col ul li a { font-size: 0.75rem; color: var(--blue); transition: color 0.2s; }
.hp-footer-col ul li a:hover { color: var(--bone); }
.hp-footer-bottom {
  position: relative; padding-top: 1.5rem; text-align: center;
}
.hp-footer-bottom::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; border-top: 1px solid var(--border);
}
.hp-footer-bottom p { font-size: 0.75rem; color: #3a4050; }

/* Nav Cart Badge */

.nav-cart-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--bone);
  opacity: 0.75;
  transition: opacity 0.2s;
  font-size: 1.1rem;
  padding: 0 0.25rem;
  line-height: 1;
}
.nav-cart-link:hover { opacity: 1; }

.nav-cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--amber);
  color: var(--dark-text);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}
.nav-cart-badge[data-count="0"],
.nav-cart-badge:empty { display: none; }