/* ============================================================
   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: 60px;
}

/* Logo */
.cm-hdr__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.cm-hdr__logo img {
  height: 28px;
  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: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* 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;
    transform: translateY(-100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
}
.cm-mobile-nav.is-open { transform: translateY(0); }

.cm-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.cm-mobile-nav__logo img { height: 28px; width: auto; }
.cm-mobile-nav__close {
    width: 40px; height: 40px;
    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: 18px; height: 18px; }

.cm-mobile-nav__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 24px;
}

.cm-mob-list { list-style: none; margin: 0; padding: 0; }
.cm-mob-item { border-bottom: 1px solid var(--line); }
.cm-mob-row { display: flex; align-items: center; }

.cm-mob-link {
    flex: 1;
    display: block;
    padding: 18px 24px;
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
}
.cm-mob-link:hover { color: var(--teal); }

.cm-mob-toggle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-3);
    flex-shrink: 0;
    transition: color .15s;
}
.cm-mob-toggle svg {
    width: 20px; height: 20px;
    transition: transform .25s ease;
}
.cm-mob-item.is-open .cm-mob-toggle { color: var(--teal); }
.cm-mob-item.is-open .cm-mob-toggle svg { transform: rotate(180deg); }

.cm-mob-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: var(--cream-2);
    border-top: 1px solid var(--line);
}
.cm-mob-sub li { border-bottom: 1px solid var(--line); }
.cm-mob-sub li:last-child { border-bottom: none; }
.cm-mob-sub li a {
    display: block;
    padding: 13px 24px 13px 36px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
}
.cm-mob-sub li a:hover { color: var(--gold-deep); }

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

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: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* 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: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cm-fbadge-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 4px;
}

.cm-fbadge-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: opacity .2s;
    display: block;
}

.cm-fbadge-logo:hover img { opacity: 1; }
.cm-fbadge-logo a { display: flex; align-items: center; }

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

/* ── LOGO WRAPPER — strip Kadence/WP figure padding ── */
.cm-hdr__logo .custom-logo-link,
.cm-hdr__logo figure,
.cm-hdr__logo .wp-block-image {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.cm-hdr__logo .custom-logo-link img,
.cm-hdr__logo figure img {
  height: 28px;
  width: auto;
  display: block;
  margin: 0;
}

/* ══ NAV DROPDOWNS ══════════════════════════════════════════ */
.cm-nav-dropdown {
    position: relative;
}
.cm-nav-link--drop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.cm-nav-link--drop svg {
    width: 14px; height: 14px;
    transition: transform .2s;
    flex-shrink: 0;
}
.cm-nav-dropdown:hover .cm-nav-link--drop svg { transform: rotate(180deg); }

.cm-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 210px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cm-nav-dropdown:hover .cm-dropdown,
.cm-nav-dropdown:focus-within .cm-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cm-dropdown__item {
    display: block;
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    border-radius: var(--r-sm);
    transition: background .14s, color .14s;
    text-decoration: none;
    white-space: nowrap;
}
.cm-dropdown__item:hover {
    background: var(--gold-tint);
    color: var(--gold-deep);
}

/* Force dropdowns hidden until hover — override any Kadence interference */
.cm-hdr__nav .cm-dropdown { display: none; }
.cm-hdr__nav .cm-nav-dropdown:hover .cm-dropdown,
.cm-hdr__nav .cm-nav-dropdown:focus-within .cm-dropdown { display: flex; flex-direction: column; }

/* Logo — our class, our size, always wins */
img.cm-site-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    max-width: none !important;
}

/* ══ FIX 8: Dropdown glitch — add buffer zone so menu doesn't vanish ══ */
.cm-nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px; /* bridge the gap between link and dropdown */
}
.cm-hdr__nav .cm-dropdown {
    top: calc(100% + 14px); /* keep aligned with buffer */
}

/* ══ FIX 2: Header phone block ══ */
.cm-hdr__phone-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 10px;
    border-radius: var(--r);
    transition: background .15s;
    white-space: nowrap;
}
.cm-hdr__phone-block:hover { background: var(--cream-2); color: var(--ink); }
.cm-hdr__phone-ic {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gold-tint);
    color: var(--gold-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cm-hdr__phone-txt { display: flex; flex-direction: column; gap: 1px; }
.cm-hdr__phone-txt em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.cm-hdr__phone-txt strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

/* Hide phone block on narrow screens */
@media (max-width: 1100px) { .cm-hdr__phone-block { display: none; } }

/* ══ FIX 10: Mobile nav — fit on one screen, no scroll ══ */
.cm-mobile-nav {
    overflow: hidden; /* was scroll */
    display: flex;
    flex-direction: column;
}
.cm-mobile-nav__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.cm-mobile-nav__items { padding: 8px 0; }
.cm-mobile-nav__item {
    display: block;
    padding: 13px 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.cm-mobile-nav__sub {
    background: var(--cream-2);
    padding: 4px 0 4px 16px;
}
.cm-mobile-nav__sub a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
}
.cm-mobile-nav__sub a:hover { color: var(--gold-deep); }
.cm-mobile-nav__footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    background: var(--paper);
}
