/* ============================================================
   CasketMart — Chrome (Top Bar, Header, Mobile Nav, Footer)
   assets/css/chrome.css
   ============================================================ */

/* ── TOP ANNOUNCEMENT BAR ── */
.cm-topbar {
  background: var(--teal-deep);
  color: #CFE0DC;
  font-size: 13px;
  position: relative;
  z-index: 60;
}
.cm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.cm-tb-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #BFD4CF;
}
.cm-tb-item svg { color: var(--gold-bright); flex-shrink: 0; }
.cm-tb-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.cm-tb-phone {
  font-weight: 600;
  color: #fff;
  transition: color .15s;
}
.cm-tb-phone:hover { color: var(--gold-bright); }

@media (max-width: 680px) {
  .cm-tb-item:not(.cm-tb-right .cm-tb-item:last-child) { display: none; }
  .cm-topbar__inner { justify-content: center; }
}

/* ── HEADER ── */
.cm-hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,238,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.cm-hdr.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(40,30,12,.4);
  background: rgba(250,246,238,.96);
}
.cm-hdr__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 74px;
}

/* Logo */
.cm-hdr__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.cm-hdr__logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* Desktop nav */
.cm-hdr__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.cm-nav-link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  position: relative;
  white-space: nowrap;
}
.cm-nav-link:hover { background: rgba(0,0,0,.04); }
.cm-nav-link.active { color: var(--gold-deep); }

/* Resources mega menu trigger */
.cm-nav-link--has-mega {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.cm-nav-link--has-mega svg {
  width: 14px;
  height: 14px;
  transition: transform .2s;
  flex-shrink: 0;
}
.cm-nav-link--has-mega.is-open svg { transform: rotate(180deg); }

/* Header actions */
.cm-hdr__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cm-hdr__call {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--r);
  transition: background .15s;
}
.cm-hdr__call:hover { background: var(--gold-tint); }
.cm-hdr__call-ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cm-hdr__call-ic svg { width: 18px; height: 18px; }
.cm-hdr__call-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.cm-hdr__call-txt em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 600;
}
.cm-hdr__call-txt strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* Cart button */
.cm-hdr__cart {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .15s;
  text-decoration: none;
  flex-shrink: 0;
}
.cm-hdr__cart:hover { border-color: var(--line-2); color: var(--ink); }
.cm-hdr__cart svg { width: 20px; height: 20px; }
.cm-cart-dot {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: var(--sans);
}

/* Mobile hamburger */
.cm-hdr__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s;
}
.cm-hdr__burger:hover { border-color: var(--line-2); }
.cm-burger-bar {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
  transform-origin: center;
}

/* Burger → X state */
.cm-hdr__burger.is-open .cm-burger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.cm-hdr__burger.is-open .cm-burger-bar:nth-child(2) { opacity: 0; width: 0; }
.cm-hdr__burger.is-open .cm-burger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1140px) {
  .cm-hdr__call-txt { display: none; }
  .cm-hdr__inner { gap: 24px; }
}
@media (max-width: 880px) {
  .cm-hdr__nav { display: none; }
  .cm-hdr__burger { display: flex; }
}

/* ── MEGA MENU (Resources) ── */
.cm-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 28px 28px 22px;
  display: none;
  z-index: 200;
}
.cm-mega.is-open { display: block; }
.cm-mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
}
.cm-mega__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.cm-mega__item:hover { background: var(--cream); }
.cm-mega__item-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cm-mega__item-ic svg { width: 20px; height: 20px; }
.cm-mega__item-body { display: flex; flex-direction: column; gap: 2px; }
.cm-mega__item-title {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.cm-mega__item-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}
.cm-mega__footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cm-mega__footer-text {
  font-size: 13.5px;
  color: var(--ink-2);
}
.cm-mega__footer-text strong { color: var(--ink); }

/* ── FULLSCREEN MOBILE NAV ── */
.cm-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  /* Slide in from top */
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.cm-mobile-nav.is-open {
  transform: translateY(0);
}

.cm-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 74px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(250,246,238,.96);
}
.cm-mobile-nav__logo img { height: 36px; width: auto; }

.cm-mobile-nav__close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.cm-mobile-nav__close svg { width: 20px; height: 20px; }

.cm-mobile-nav__body {
  flex: 1;
  padding: 24px 20px 0;
}

.cm-mobile-nav__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cm-mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.cm-mobile-nav__item:hover,
.cm-mobile-nav__item:active { background: var(--cream-2); }
.cm-mobile-nav__item-ic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cm-mobile-nav__item-ic svg { width: 22px; height: 22px; }

/* Mobile nav sub-items (for Resources) */
.cm-mobile-nav__sub {
  margin: 4px 0 8px 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cm-mobile-nav__sub a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: var(--r);
  display: block;
  transition: background .15s, color .15s;
}
.cm-mobile-nav__sub a:hover { background: var(--cream-2); color: var(--ink); }

.cm-mobile-nav__footer {
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.cm-mobile-nav__phone {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--teal);
  border-radius: var(--r-lg);
  color: #fff;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background .15s;
}
.cm-mobile-nav__phone:hover { background: var(--teal-2); color: #fff; }
.cm-mobile-nav__phone-ic {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cm-mobile-nav__phone-ic svg { width: 22px; height: 22px; color: var(--gold-bright); }
.cm-mobile-nav__phone-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cm-mobile-nav__phone-label em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.cm-mobile-nav__phone-label strong {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--serif);
}
.cm-mobile-nav__toll {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 8px;
}
.cm-mobile-nav__toll a { color: var(--gold); font-weight: 600; }

/* Prevent body scroll when mobile nav open */
body.cm-nav-open { overflow: hidden; }

/* ── ACCREDITATION STRIP ── */
.cm-truststrip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.cm-truststrip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 66px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.cm-ts-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cm-ts-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}
.cm-ts-badges {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.cm-ts-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.cm-ts-badges svg { color: var(--gold); width: 18px; height: 18px; }

@media (max-width: 860px) {
  .cm-ts-divider { display: none; }
  .cm-truststrip__inner { min-height: 0; gap: 16px; }
  .cm-ts-label { width: 100%; text-align: center; }
  .cm-ts-badges { justify-content: center; gap: 16px; }
}

/* ── FOOTER ── */
.cm-footer {
  background: var(--teal);
  color: #C9DAD6;
  padding-top: 72px;
}
.cm-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cm-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 54px;
}
.cm-footer-brand p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #A9C2BD;
  margin: 20px 0 22px;
  max-width: 340px;
}
.cm-footer-logo { height: 38px; width: auto; margin-bottom: 4px; }
.cm-footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-fbadge {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--teal-line);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #DCE9E6;
  text-align: center;
  line-height: 1.2;
}
.cm-footer-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
.cm-footer-col a,
.cm-footer-col button {
  font-size: 14.5px;
  color: #B7CCC8;
  transition: color .15s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
}
.cm-footer-col a:hover,
.cm-footer-col button:hover { color: var(--gold-bright); }
.cm-footer-contact .cm-footer-phone {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: #fff;
  display: block;
  text-decoration: none;
  transition: color .15s;
}
.cm-footer-contact .cm-footer-phone:hover { color: var(--gold-bright); }
.cm-footer-contact .cm-footer-phone.alt {
  font-size: 18px;
  color: #C9DAD6;
  margin-top: 2px;
}
.cm-fc-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: #A9C2BD;
  margin-top: 13px;
  line-height: 1.5;
}
.cm-fc-line svg {
  color: var(--gold-bright);
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px; height: 16px;
}
.cm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-top: 1px solid var(--teal-line);
  font-size: 13px;
  color: #8FAAA5;
  flex-wrap: wrap;
  gap: 10px;
}
.cm-footer-bottom a {
  color: #8FAAA5;
  text-decoration: none;
  transition: color .15s;
}
.cm-footer-bottom a:hover { color: var(--gold-bright); }
.cm-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .cm-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .cm-footer-top { grid-template-columns: 1fr; }
  .cm-footer-bottom { flex-direction: column; text-align: center; }
  .cm-footer-legal { justify-content: center; }
}

/* ── HEADER: HOURS BLOCK (replaces duplicate phone) ── */
.cm-hdr__hours {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--r);
    transition: background .15s;
}
.cm-hdr__hours:hover { background: var(--gold-tint); color: inherit; }

.cm-hdr__hours-ic {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--gold-tint);
    color: var(--gold-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cm-hdr__hours-ic svg { width: 18px; height: 18px; }

.cm-hdr__hours-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.cm-hdr__hours-txt em {
    font-style: normal;
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--ink-3);
    text-transform: uppercase;
    font-weight: 700;
}
.cm-hdr__hours-txt strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

/* Hide hours text on smaller desktop, keep icon only */
@media (max-width: 1140px) {
    .cm-hdr__hours-txt { display: none; }
}
@media (max-width: 880px) {
    .cm-hdr__hours { display: none; } /* mobile nav handles this */
}

/* ── FOOTER: REAL ACCREDITATION LOGOS ── */
.cm-footer-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Container for each logo — consistent height, transparent bg */
.cm-fbadge-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 4px;
}
.cm-fbadge-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* make logos white on dark footer */
    opacity: 0.75;
    transition: opacity .2s;
    display: block;
}
.cm-fbadge-logo:hover img { opacity: 1; }
.cm-fbadge-logo a { display: flex; align-items: center; }

/* BBB seal needs a little extra room — it's wider than the others */
.cm-fbadge-bbb {
    padding: 4px 8px;
}
.cm-fbadge-bbb img {
    max-height: 52px; /* slightly taller to match BBB seal proportions */
}

@media (max-width: 480px) {
    .cm-footer-badges { gap: 10px; }
    .cm-fbadge-logo { height: 42px; }
    .cm-fbadge-logo img { max-height: 38px; }
}
