/* ============================================================
   SITE CHROME — header actions, logo, skip link, footer
   Markup: _Layout, Components/HeaderActions, Components/SiteFooter · JS: js/site-chrome.js
   Loaded last; prefixes: hc- (header), sf- (site footer).
   ============================================================ */

:root {
  --hc-green-900: #0f5c28;
  --hc-green-700: #1d8a43;
  --hc-green-100: #e9f7ee;
  --hc-green-50: #f5fcf7;
  --hc-ink: #13241b;
  --hc-muted: #5f6d66;
  --hc-border: #e3ebe6;
  --hc-focus: 0 0 0 3px rgba(29, 138, 67, 0.35);

  --sf-bg: #0f2419;
  --sf-bg-2: #0b1c13;
  --sf-text: #c9d6ce;
  --sf-muted: #8fa398;
  --sf-heading: #ffffff;
  --sf-accent: #7fe0a1;
}

/* ---------- Skip link ---------- */

.hc-skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--hc-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.hc-skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--hc-focus);
}

#main-content:focus {
  outline: none;
}

/* ---------- Header bar ---------- */

.top-header {
  transition: box-shadow 0.2s ease;
}

.top-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(16, 40, 24, 0.08);
}

.hc-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
}

.hc-logo img {
  display: block;
  width: auto;
  height: 52px;
}

.hc-logo:focus-visible {
  outline: none;
  box-shadow: var(--hc-focus);
}

/* ---------- Header actions ---------- */

.hc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.hc-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 48px;
  padding: 0 0.75rem 0 0.4rem;
  border: 1px solid var(--hc-border);
  border-radius: 12px;
  background: #fff;
  color: var(--hc-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hc-account-btn:hover,
.hc-account-btn[aria-expanded="true"] {
  border-color: #bcdcc7;
  background: var(--hc-green-50);
  color: var(--hc-ink);
}

.hc-account-btn:focus-visible,
.hc-cart-btn:focus-visible {
  outline: none;
  box-shadow: var(--hc-focus);
}

.hc-login {
  padding: 0 0.9rem;
}

.hc-login .bi {
  font-size: 1.2rem;
  color: var(--hc-green-700);
}

.hc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hc-green-700);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
}

.hc-account-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.hc-account-copy small {
  font-size: 0.72rem;
  color: var(--hc-muted);
}

.hc-account-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-caret {
  font-size: 0.7rem;
  color: var(--hc-muted);
  transition: transform 0.15s ease;
}

.hc-account-btn[aria-expanded="true"] .hc-caret {
  transform: rotate(180deg);
}

.hc-menu {
  min-width: 240px;
  margin-top: 0.4rem !important;
  padding: 0.4rem;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 40, 24, 0.14);
}

.hc-menu-head {
  padding: 0.55rem 0.75rem 0.65rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--hc-border);
  line-height: 1.3;
}

.hc-menu-head strong {
  display: block;
  font-family: "Manrope", sans-serif;
  color: var(--hc-ink);
}

.hc-menu-head small {
  display: block;
  color: var(--hc-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hc-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  color: var(--hc-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.hc-menu .dropdown-item .bi {
  width: 18px;
  color: var(--hc-muted);
}

.hc-menu .dropdown-item:hover,
.hc-menu .dropdown-item:focus {
  background: var(--hc-green-50);
  color: var(--hc-green-900);
}

.hc-menu .dropdown-item:hover .bi { color: var(--hc-green-700); }

.hc-menu .hc-logout,
.hc-menu .hc-logout .bi { color: #b42318; }

.hc-menu .hc-logout:hover { background: #fdecea; color: #8f1d14; }

.hc-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 48px;
  padding: 0 1.1rem 0 0.85rem;
  border-radius: 12px;
  background: var(--hc-green-700);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hc-cart-btn:hover {
  background: var(--hc-green-900);
  color: #fff;
}

.hc-cart-icon {
  position: relative;
  display: inline-flex;
  font-size: 1.25rem;
}

.hc-cart-count {
  position: absolute;
  top: -8px;
  right: -11px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--hc-green-700);
  border-radius: 999px;
  background: #ffd23f;
  color: #3d2c00;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.hc-cart-btn:hover .hc-cart-count { border-color: var(--hc-green-900); }

.hc-cart-count[hidden] { display: none; }

/* Tablet & phone: compact icon buttons, cart always reachable */
@media (max-width: 991px) {
  .hc-logo img { height: 44px; }
  .hc-account-copy,
  .hc-caret,
  .hc-cart-text { display: none; }
  .hc-account-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .hc-login .bi { font-size: 1.35rem; }
  .hc-avatar { width: 32px; height: 32px; }
  .hc-cart-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

@media (max-width: 575px) {
  .hc-logo img { height: 38px; }
}

/* ---------- Footer ---------- */

.sf-footer {
  margin-top: 2rem;
  padding: 0;
  background: var(--sf-bg);
  color: var(--sf-text);
  font-size: 0.92rem;
}

.sf-footer > .container {
  padding-top: 2.75rem;
}

/* Promise strip: each item links to the policy that backs it. */
.sf-promise {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--sf-bg-2);
}

.sf-promise-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-promise-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  padding: 1.15rem 1rem;
  color: var(--sf-text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.sf-promise-list li + li a {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-promise-list a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sf-promise-list .bi {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(127, 224, 161, 0.12);
  color: var(--sf-accent);
  font-size: 1.2rem;
}

.sf-promise-list strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.sf-promise-list small {
  display: block;
  color: var(--sf-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

body.mobile-cart-strip-visible .sf-footer {
  padding-bottom: 72px; /* room for the fixed mobile cart strip */
}

.sf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.sf-logo {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: #fff;
}

.sf-logo img {
  display: block;
  width: auto;
  height: 40px;
}

.sf-logo:focus-visible,
.sf-footer a:focus-visible,
.sf-promise-list a:focus-visible,
.sf-toggle:focus-visible,
.sf-link-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 224, 161, 0.45);
  border-radius: 6px;
}

.sf-tagline {
  max-width: 300px;
  margin-bottom: 1rem;
  color: var(--sf-text);
}

.sf-contact {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.sf-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sf-contact .bi { color: var(--sf-accent); }

.sf-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sf-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.sf-app .bi { font-size: 1.3rem; }
.sf-app span { font-weight: 700; }
.sf-app small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--sf-muted); }
.sf-app:hover { border-color: var(--sf-accent); color: #fff; }

.sf-social {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.15s ease;
}

.sf-social a:hover { background: var(--hc-green-700); color: #fff; }

.sf-heading {
  margin: 0 0 0.9rem;
}

.sf-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sf-heading);
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
  cursor: default;
}

.sf-toggle .bi { display: none; }

.sf-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-list a,
.sf-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sf-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sf-list a:hover,
.sf-link-btn:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-list .sf-strong {
  color: var(--sf-accent);
  font-weight: 700;
}

.sf-pill {
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #ffd23f;
  color: #3d2c00;
  font-size: 0.7rem;
  font-weight: 800;
}

/* Business / grievance disclosures */
.sf-business {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  line-height: 1.55;
}

.sf-business strong {
  color: #fff;
}

.sf-business a {
  color: var(--sf-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-business a:hover {
  color: #fff;
}

.sf-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-ids span {
  margin-right: 0.35rem;
  color: var(--sf-muted);
}

.sf-officer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 420px;
}

.sf-officer .bi {
  color: var(--sf-accent);
}

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1.1rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sf-muted);
  font-size: 0.82rem;
}

.sf-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-legal-links a {
  color: var(--sf-text);
  text-decoration: none;
}

.sf-legal-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1199px) {
  .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0 1.5rem; align-items: start; }
  .sf-brand .sf-logo { grid-row: span 3; }
}

@media (max-width: 991px) {
  .sf-promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-promise-list li:nth-child(3) a { border-left: 0; }
  .sf-promise-list li:nth-child(n+3) a { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

@media (max-width: 767px) {
  .sf-footer > .container { padding-top: 2rem; }
  .sf-promise-list a { padding: 0.9rem 0.5rem; gap: 0.6rem; }
  .sf-promise-list .bi { width: 36px; height: 36px; font-size: 1.05rem; }
  .sf-promise-list small { display: none; }
  .sf-business { margin-top: 1.5rem; flex-direction: column; }
  .sf-grid { grid-template-columns: 1fr; gap: 0; }
  .sf-brand { display: block; margin-bottom: 1rem; }

  .sf-col { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .sf-heading { margin: 0; }

  .sf-toggle {
    min-height: 52px;
    cursor: pointer;
  }

  .sf-toggle .bi {
    display: inline-block;
    color: var(--sf-muted);
    transition: transform 0.2s ease;
  }

  .sf-col.is-open .sf-toggle .bi { transform: rotate(180deg); }

  .sf-list { padding-bottom: 1rem; }

  /* Collapsed only when JS can open it again (html.js is set in _Layout). */
  .js .sf-col:not(.is-open) .sf-list { display: none; }

  .sf-list a,
  .sf-link-btn { display: inline-block; padding: 0.2rem 0; }

  .sf-bottom { margin-top: 1rem; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-skip-link, .top-header, .hc-caret, .sf-toggle .bi { transition: none; }
}
