/* ==========================================================================
   Coggno help center — header & footer
   Ported from the coggno.com `coggno-header` / `coggno-footer` components.
   Everything is namespaced under .cg- so it cannot collide with style.css.
   ========================================================================== */

:root {
  --cg-blue:        #2964ae;
  --cg-blue-dark:   #22548f;
  --cg-navy:        #012850;
  --cg-ink:         #1d2939;
  --cg-muted:       #777e8b;
  --cg-field:       #f4f4f4;
  --cg-line:        rgba(0, 0, 0, .1);
  --cg-footer-link: #b9c8e8;
  --cg-max:         1405px;
  --cg-font: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
}

/* --- skip link ----------------------------------------------------------- */

.cg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  color: var(--cg-blue);
  font: 600 15px/1 var(--cg-font);
  padding: 12px 18px;
  border-radius: 0 0 6px 0;
}
.cg-skip:focus { left: 0; }

/* --- header -------------------------------------------------------------- */

.cg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--cg-line);
  font-family: var(--cg-font);
  -webkit-font-smoothing: antialiased;
}

.cg-header *,
.cg-footer * { box-sizing: border-box; }

.cg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--cg-max);
  min-height: 83px;
  margin: 0 auto;
  padding: 8px 30px;
}

.cg-header__left,
.cg-header__right { display: flex; align-items: center; }
.cg-header__right { gap: 4px; }

.cg-header__brand { display: inline-flex; align-items: center; flex: none; }
.cg-header__logo  { display: block; width: 139px; height: auto; }

.cg-header__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cg-ink);
  cursor: pointer;
  border-radius: 6px;
}
.cg-header__hamburger:hover { background: var(--cg-field); }

.cg-header__nav { display: flex; align-items: center; margin-left: 16px; }

.cg-header__link,
.cg-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 0 12px;
  height: 42px;
  border: 0;
  background: none;
  font: 500 16px/1 var(--cg-font);
  color: var(--cg-ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.cg-header__link:hover,
.cg-menu__trigger:hover { color: var(--cg-blue); text-decoration: none; }

.cg-menu { position: relative; }
.cg-menu__caret { transition: transform .18s ease; flex: none; }
.cg-menu.is-open .cg-menu__caret { transform: rotate(180deg); }
.cg-menu.is-open .cg-menu__trigger { color: var(--cg-blue); }

.cg-menu__panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 248px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cg-line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(1, 40, 80, .12);
}
.cg-menu.is-open .cg-menu__panel { display: block; }
.cg-menu__panel--wide { min-width: 300px; }

.cg-menu__panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font: 500 15px/1.3 var(--cg-font);
  color: var(--cg-ink);
  text-decoration: none;
}
.cg-menu__panel a:hover {
  background: var(--cg-field);
  color: var(--cg-blue);
  text-decoration: none;
}

/* --- header search ------------------------------------------------------- */

.cg-search { position: relative; display: flex; align-items: center; width: 240px; }
.cg-search__label {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.cg-search__icon {
  position: absolute;
  left: 14px;
  color: var(--cg-muted);
  pointer-events: none;
}
.cg-search__input {
  width: 100%;
  height: 42px;
  padding: 8px 16px 8px 40px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: var(--cg-field);
  font: 500 16px/1 var(--cg-font);
  color: var(--cg-ink);
  -webkit-appearance: none;
  appearance: none;
}
.cg-search__input::placeholder { color: var(--cg-muted); }
.cg-search__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--cg-blue);
  box-shadow: 0 0 0 3px rgba(41, 100, 174, .15);
}
.cg-search__input::-webkit-search-cancel-button { cursor: pointer; }

/* --- header actions ------------------------------------------------------ */

.cg-header__login {
  padding: 8px 16px;
  font: 600 16px/1 var(--cg-font);
  color: var(--cg-blue);
  text-decoration: none;
  white-space: nowrap;
}
.cg-header__login:hover { color: var(--cg-blue-dark); text-decoration: none; }

.cg-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--cg-ink);
  border-radius: 6px;
  text-decoration: none;
}
.cg-header__cart:hover { background: var(--cg-field); color: var(--cg-blue); }
.cg-header__cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--cg-blue);
  color: #fff;
  font: 700 10px/17px var(--cg-font);
  text-align: center;
}

.cg-header__cta {
  margin-left: 8px;
  padding: 10px 16px;
  border: 1px solid var(--cg-blue);
  border-radius: 6px;
  background: var(--cg-blue);
  color: #fff;
  font: 600 16px/1 var(--cg-font);
  text-decoration: none;
  white-space: nowrap;
}
.cg-header__cta:hover {
  background: var(--cg-blue-dark);
  border-color: var(--cg-blue-dark);
  color: #fff;
  text-decoration: none;
}

/* --- mobile nav ---------------------------------------------------------- */

.cg-mobile {
  display: none;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--cg-line);
  background: #fff;
}
.cg-mobile[hidden] { display: none !important; }
.cg-mobile a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--cg-line);
  font: 500 16px/1.3 var(--cg-font);
  color: var(--cg-ink);
  text-decoration: none;
}
.cg-mobile a:last-child { border-bottom: 0; }
.cg-mobile__cta {
  margin-top: 14px;
  border: 0 !important;
  border-radius: 6px;
  background: var(--cg-blue);
  color: #fff !important;
  font-weight: 600 !important;
  text-align: center;
}
.cg-search--mobile { width: 100%; margin: 8px 0 4px; }

@media (max-width: 1280px) {
  .cg-header__inner { gap: 14px; padding: 8px 22px; }
  .cg-header__nav   { margin-left: 6px; }
  .cg-header__link,
  .cg-menu__trigger { padding: 0 6px 0 9px; font-size: 15px; }
  .cg-header__right .cg-search { width: 190px; }
  .cg-header__cta   { font-size: 15px; padding: 9px 13px; }
  .cg-header__login { font-size: 15px; padding: 8px 10px; }
}

@media (max-width: 1080px) {
  .cg-header__nav   { display: none; }
  .cg-header__hamburger { display: inline-flex; }
  .cg-header__right .cg-search { width: 200px; }
}

@media (max-width: 860px) {
  .cg-header__inner { gap: 12px; padding: 8px 20px; min-height: 68px; }
  .cg-header__login,
  .cg-header__cta   { display: none; }
  .cg-header__right .cg-search { display: none; }
  .cg-mobile.is-open { display: block; }
}

@media (max-width: 420px) {
  .cg-header__logo { width: 116px; }
  .cg-header__inner { padding: 8px 16px; }
}

/* --- footer -------------------------------------------------------------- */

.cg-footer {
  font-family: var(--cg-font);
  background: var(--cg-navy);
  color: #fff;
}
.cg-footer__main { background: var(--cg-navy); }

.cg-footer__inner {
  display: flex;
  gap: 51px;
  max-width: var(--cg-max);
  margin: 0 auto;
  padding: 32px 30px 50px;
}

.cg-footer__brand { flex: 0 0 auto; max-width: 260px; }
.cg-footer__logo  { display: block; width: 200px; height: auto; margin-bottom: 18px; }

.cg-footer__social {
  display: flex;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.cg-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  opacity: .85;
  text-decoration: none;
}
.cg-footer__social a:hover { opacity: 1; background: rgba(255, 255, 255, .12); color: #fff; }

.cg-footer__apps { display: flex; flex-wrap: wrap; gap: 10px; }
.cg-footer__apps img { display: block; height: 34px; width: auto; }

.cg-footer__columns {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 24px 40px;
  max-width: 1055px;
}
.cg-footer__col { flex: 1 1 160px; min-width: 150px; }

.cg-footer__col h3 {
  margin: 0 0 10px;
  font: 700 15px/1.3 var(--cg-font);
  color: #fff;
}
.cg-footer__col ul { margin: 0; padding: 0; list-style: none; }
.cg-footer__col a {
  display: block;
  font: 500 13px/26px var(--cg-font);
  color: var(--cg-footer-link);
  text-decoration: none;
}
.cg-footer__col a:hover { color: #fff; text-decoration: underline; }

.cg-footer__bottom { background: var(--cg-navy); border-top: 1px solid rgba(255, 255, 255, .12); }
.cg-footer__bottom-inner {
  max-width: var(--cg-max);
  margin: 0 auto;
  padding: 18px 30px;
  text-align: center;
}
.cg-footer__bottom-inner p {
  margin: 0;
  font: 500 13px/1.5 var(--cg-font);
  color: var(--cg-footer-link);
}

@media (max-width: 1100px) {
  .cg-footer__inner { flex-direction: column; gap: 34px; }
  .cg-footer__brand { max-width: none; }
}

@media (max-width: 860px) {
  .cg-footer__inner   { padding: 28px 20px 36px; }
  .cg-footer__columns { gap: 20px 28px; }
  .cg-footer__col     { flex: 1 1 44%; min-width: 0; }
  .cg-footer__bottom-inner { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .cg-footer__col { flex: 1 1 100%; }
}
