/* ==========================================================
   BRAND TOKENS
   ========================================================== */

:root {
  /* Charlotte Labee palette */
  --cl-sand: #ede2cb;
  --cl-terracotta: #b86947;
  --cl-clay: #c2ae81;
  --cl-brass: #bfa046;
  --cl-chestnut: #7a461e;
  --cl-sage: #877d5a;

  /* Utility */
  --cl-white: #ffffff;
  --cl-black: #000000;
  --cl-text-dark: #1d1d1d;
  --cl-text-muted: #4f4f4f;
  --cl-overlay: rgba(18, 12, 8, 0.88);
}

/* Hide old desktop menu everywhere — replaced by the new transparent header */
.header__desktop_menu {
  display: none !important;
}

/* ==========================================================
   TRANSPARENT STICKY HEADER (site-wide)
   ========================================================== */

header.wp-block-template-part > .wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}

/* Base state: frosted glass (inside pages); home-v2 overrides to transparent below */
.header__transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  padding: 18px 40px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  align-items: center !important;
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

/* Home-v2: start fully transparent so hero image shows through */
.page-id-102567 .header__transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Scrolled state — frosted glass for all pages */
.header__transparent.is-scrolled {
  background-color: rgba(255, 255, 255, 0.65);
  background-image: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Logo shrink on scroll */
.header__transparent .col-header-left.bb-logo figure img {
  transition: width 0.35s ease;
}
.header__transparent.is-scrolled .col-header-left.bb-logo figure img {
  width: 130px !important;
}

/* Content spacer — push page content below the fixed header on inside pages */
body:not(.page-id-102567) header.wp-block-template-part {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .header__transparent {
    padding: 14px 20px;
  }
}

/* ==========================================================
   ADDITIONAL BUTTON STYLES AS PER THE NEW HOME PAGE DESIGN
   ========================================================== */

/* --- SAND (#ede2cb) --- */
.is-style-fill-sand a,
.is-style-fill-sand div {
  background-color: var(--cl-sand) !important;
  border: 1px solid var(--cl-sand) !important;
  color: var(--cl-text-dark) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-fill-sand a:hover {
  background-color: var(--cl-sand) !important;
  border: 1px solid var(--cl-sand) !important;
  color: var(--cl-text-dark) !important;
  opacity: 0.8;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-sand a,
.is-style-outline-sand div {
  background-color: transparent !important;
  border: 1px solid var(--cl-sand) !important;
  color: var(--cl-sand) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-sand a:hover,
.is-style-outline-sand div:hover {
  background-color: transparent !important;
  border: 1px solid var(--cl-sand) !important;
  color: var(--cl-sand) !important;
  opacity: 0.6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* --- TERRACOTTA (#b86947) --- */
.is-style-fill-terracotta a,
.is-style-fill-terracotta div {
  background-color: var(--cl-terracotta) !important;
  border: 1px solid var(--cl-terracotta) !important;
  color: var(--cl-white) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-fill-terracotta a:hover {
  background-color: var(--cl-terracotta) !important;
  border: 1px solid var(--cl-terracotta) !important;
  color: var(--cl-white) !important;
  opacity: 0.8;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-terracotta a,
.is-style-outline-terracotta div {
  background-color: transparent !important;
  border: 1px solid var(--cl-terracotta) !important;
  color: var(--cl-terracotta) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-terracotta a:hover,
.is-style-outline-terracotta div:hover {
  background-color: transparent !important;
  border: 1px solid var(--cl-terracotta) !important;
  color: var(--cl-terracotta) !important;
  opacity: 0.6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* --- CLAY (#c2ae81) --- */
.is-style-fill-clay a,
.is-style-fill-clay div {
  background-color: var(--cl-clay) !important;
  border: 1px solid var(--cl-clay) !important;
  color: var(--cl-text-dark) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-fill-clay a:hover {
  background-color: var(--cl-clay) !important;
  border: 1px solid var(--cl-clay) !important;
  color: var(--cl-text-dark) !important;
  opacity: 0.8;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-clay a,
.is-style-outline-clay div {
  background-color: transparent !important;
  border: 1px solid var(--cl-clay) !important;
  color: var(--cl-clay) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-clay a:hover,
.is-style-outline-clay div:hover {
  background-color: transparent !important;
  border: 1px solid var(--cl-clay) !important;
  color: var(--cl-clay) !important;
  opacity: 0.6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* --- BRASS (#bfa046) --- */
.is-style-fill-brass a,
.is-style-fill-brass div {
  background-color: var(--cl-brass) !important;
  border: 1px solid var(--cl-brass) !important;
  color: var(--cl-white) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-fill-brass a:hover {
  background-color: var(--cl-brass) !important;
  border: 1px solid var(--cl-brass) !important;
  color: var(--cl-white) !important;
  opacity: 0.8;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-brass a,
.is-style-outline-brass div {
  background-color: transparent !important;
  border: 1px solid var(--cl-brass) !important;
  color: var(--cl-brass) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-brass a:hover,
.is-style-outline-brass div:hover {
  background-color: transparent !important;
  border: 1px solid var(--cl-brass) !important;
  color: var(--cl-brass) !important;
  opacity: 0.6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* --- CHESTNUT (#7a461e) --- */
.is-style-fill-chestnut a,
.is-style-fill-chestnut div {
  background-color: var(--cl-chestnut) !important;
  border: 1px solid var(--cl-chestnut) !important;
  color: var(--cl-white) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-fill-chestnut a:hover {
  background-color: var(--cl-chestnut) !important;
  border: 1px solid var(--cl-chestnut) !important;
  color: var(--cl-white) !important;
  opacity: 0.8;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-chestnut a,
.is-style-outline-chestnut div {
  background-color: transparent !important;
  border: 1px solid var(--cl-chestnut) !important;
  color: var(--cl-chestnut) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-chestnut a:hover,
.is-style-outline-chestnut div:hover {
  background-color: transparent !important;
  border: 1px solid var(--cl-chestnut) !important;
  color: var(--cl-chestnut) !important;
  opacity: 0.6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* --- SAGE (#877d5a) --- */
.is-style-fill-sage a,
.is-style-fill-sage div {
  background-color: var(--cl-sage) !important;
  border: 1px solid var(--cl-sage) !important;
  color: var(--cl-white) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-fill-sage a:hover {
  background-color: var(--cl-sage) !important;
  border: 1px solid var(--cl-sage) !important;
  color: var(--cl-white) !important;
  opacity: 0.8;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-sage a,
.is-style-outline-sage div {
  background-color: transparent !important;
  border: 1px solid var(--cl-sage) !important;
  color: var(--cl-sage) !important;
  opacity: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.is-style-outline-sage a:hover,
.is-style-outline-sage div:hover {
  background-color: transparent !important;
  border: 1px solid var(--cl-sage) !important;
  color: var(--cl-sage) !important;
  opacity: 0.6;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* --- Button utility: Padding X (horizontal) --- */
.btn-px-0 a {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.btn-px-1 a {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}
.btn-px-2 a {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.btn-px-3 a {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.btn-px-4 a {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.btn-px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

/* --- Button utility: Padding Y (vertical) --- */
.btn-py-0 a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.btn-py-1 a {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.btn-py-2 a {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.btn-py-3 a {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.btn-py-4 a {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
.btn-py-5 a {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* --- Button utility: Text transform --- */
.btn-uppercase a {
  text-transform: uppercase !important;
}
.btn-lowercase a {
  text-transform: lowercase !important;
}
.btn-capitalize a {
  text-transform: capitalize !important;
}
.btn-text-none a {
  text-transform: none !important;
}
.btn-center a {
  text-align: center !important;
  justify-content: center !important;
}

/* --- Button utility: Full width --- */
.btn-full {
  width: 100% !important;
  display: block !important;
}
.btn-full a {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  box-sizing: border-box;
}

/* Full width on mobile only (≤480px) */
@media (max-width: 480px) {
  .btn-full-sm {
    width: 100% !important;
    display: block !important;
  }
  .btn-full-sm a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box;
  }
}

/* Full width on tablet and below (≤768px) */
@media (max-width: 768px) {
  .btn-full-md {
    width: 100% !important;
    display: block !important;
  }
  .btn-full-md a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box;
  }
}

.btn-left a {
  text-align: left !important;
  justify-content: left !important;
}

/* --- Button utility: Letter spacing ---
   btn-ls-1  0.02em  subtle
   btn-ls-2  0.04em  used in .promo-badge
   btn-ls-3  0.05em  used in buttons / header CTA
   btn-ls-4  0.08em  airy
   btn-ls-5  0.12em  very wide
   btn-ls-6  0.16em
   btn-ls-7  0.20em
   btn-ls-8  0.25em  extra wide
   ------------------------------------------------- */
.btn-ls-0 a {
  letter-spacing: 0 !important;
}
.btn-ls-1 a {
  letter-spacing: 0.02em !important;
}
.btn-ls-2 a {
  letter-spacing: 0.04em !important;
}
.btn-ls-3 a {
  letter-spacing: 0.05em !important;
}
.btn-ls-4 a {
  letter-spacing: 0.08em !important;
}
.btn-ls-5 a {
  letter-spacing: 0.12em !important;
}
.btn-ls-6 a {
  letter-spacing: 0.16em !important;
}
.btn-ls-7 a {
  letter-spacing: 0.2em !important;
}
.btn-ls-8 a {
  letter-spacing: 0.25em !important;
}

/* --- Button utility: Font size ---
   btn-fs-1  10px  xs
   btn-fs-2  12px  sm
   btn-fs-3  14px  default small
   btn-fs-4  16px  default
   btn-fs-5  18px  md
   btn-fs-6  20px  lg
   btn-fs-7  22px  xl
   btn-fs-8  24px  2xl
   ------------------------------------------------- */
.btn-fs-1 a {
  font-size: 10px !important;
}
.btn-fs-2 a {
  font-size: 12px !important;
}
.btn-fs-3 a {
  font-size: 14px !important;
}
.btn-fs-4 a {
  font-size: 16px !important;
}
.btn-fs-5 a {
  font-size: 18px !important;
}
.btn-fs-6 a {
  font-size: 20px !important;
}
.btn-fs-7 a {
  font-size: 22px !important;
}
.btn-fs-8 a {
  font-size: 24px !important;
}

/* --- Button utility: Arrow icon (btn-arrow) --- */
.btn-arrow .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px !important;
}
.btn-arrow .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  background-image: url("https://charlottelabee.com/wp-content/uploads/2023/07/arrow-right-white-2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(10);
  transition: transform 0.25s ease;
}
.btn-arrow .wp-block-button__link:hover::after {
  transform: translateX(5px);
}
.is-style-outline-terracotta.btn-arrow .wp-block-button__link::after {
  filter: invert(46%) sepia(26%) saturate(838%) hue-rotate(333deg) brightness(90%) contrast(87%);
}
.is-style-fill-sand.btn-arrow .wp-block-button__link::after {
  filter: brightness(0);
}

/* ==========================================================
   HEADER COLS ADJUSTMENTS
   ========================================================== */

.col-header-right {
  display: flex;
  justify-content: end;
}

.col-header-right .header-shop-btn {
  display: none !important;
}
/* Hide header search icon on desktop */
.col-header-right .cl-search-toggle.header {
  display: none;
}

/* On mobile: logo takes its natural width, toggle fills the rest */
@media (max-width: 768px) {
  .col-header-left {
    flex: 0 0 auto !important; /* shrink to logo width */
  }

  .col-header-left.bb-logo .wp-block-image figure {
    width: 160px !important; /* fixed logo width on mobile */
  }

  .col-header-right {
    flex: 1 1 auto !important; /* fill remaining space */
    justify-content: flex-end; /* push hamburger to the right */
  }
  .col-header-right .cl-search-toggle.header {
    display: block;
  }
}

/* ==========================================================
   MEGA MENU — Featured Product Cards
   ========================================================== */

/* @media (max-width: 768px) {
  .mega-menu-promo-outer-wrap .mega-menu-promo-wrap {
    flex-basis: 45% !important;
    padding: 50px !important;
  }
} */

.mega-sub-menu h1,
.mega-sub-menu h2,
.mega-sub-menu h3,
.mega-sub-menu h4 {
  font-family: "Playfair Display", serif !important;
}

/* Card wrapper */
.mega-menu-promo-wrap {
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}

/* Image section — rectangle crop */
.mega-menu-promo-wrap__img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 !important;
  gap: 0 !important;
  position: relative;
}

/* Badge — e.g. "Bestseller januari" */
.mega-menu-promo-wrap__img .promo-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: var(--cl-brass);
  color: var(--cl-white);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 1;
}

.mega-menu-promo-wrap__img .wp-block-column {
  padding: 0 !important;
  flex: 1 !important;
}

.mega-menu-promo-wrap__img figure {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
}

.mega-menu-promo-wrap__img figure picture {
  width: 100%;
  height: 100%;
}

.mega-menu-promo-wrap__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Product title */
.mega-menu-promo-wrap h6.wp-block-heading {
  font-family: "Playfair Display", serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 10px 0px 0 0 !important;
  color: var(--cl-text-dark);
  text-transform: none;
}

/* Short description */
.mega-menu-promo-wrap > p {
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin: 5px 0px !important;
  color: var(--cl-text-muted) !important;
  text-transform: none;
}

/* Shop button */
.mega-menu-promo-wrap .wp-block-buttons {
  margin-top: auto;
  padding-top: 10px;
}

/* .mega-menu-promo-wrap .wp-block-button__link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--cl-text-muted) !important;
  text-transform: uppercase;
  transition: color 0.2s ease !important;
  text-align: left;
}

.mega-menu-promo-wrap .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--cl-black) !important;
} */

/* Arrow SVG — match text color */
.mega-menu-promo-wrap .wp-block-button__link svg.icon.arrow-right {
  flex-shrink: 0;
  transition: transform 0.25s ease !important;
}

.mega-menu-promo-wrap .wp-block-button__link svg.icon.arrow-right path {
  fill: currentColor !important;
}

/* Arrow slides right on hover */
.mega-menu-promo-wrap .wp-block-button__link:hover svg.icon.arrow-right {
  transform: translateX(4px) !important;
}

@media (max-width: 768px) {
  div.header_button a {
    font-size: 12px !important;
    white-space: nowrap;
    padding: 6px 8px !important;
  }
}

/* ==========================================================
   MEGA MENU — GRAVITY FORMS STYLES
   ========================================================== */
.mega-menu-item #gform_80 .gform-footer .gform_button.button {
  background-color: var(--cl-terracotta) !important;
  border: none !important;
  color: var(--cl-white) !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition:
    background-color 0.2s ease,
    color 0.2s ease !important;
}
.mega-menu-item #gform_80 .gform-footer .gform_button.button::after {
  content: "" !important;
  display: inline-block !important;
  width: 11px;
  height: 11px;
  background-image: url("https://charlottelabee.com/wp-content/uploads/2023/07/arrow-right-white-2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(10);
  transition: transform 0.25s ease;
}
.mega-menu-item #gform_80 .gform-footer .gform_button.button:hover::after {
  transform: translateX(5px);
}
/* 
footer #gform_79 .gform-footer .gform_button.button {
  padding: 10px 20px !important;
  font-size: 14px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
} */
/* ==========================================================
   MEGA MENU — Section titles (.mega-block-title)
   ========================================================== */
/* 
.mega-block-title {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
} */

@media (min-width: 769px) {
  .mega-block-title .itl-lg {
    font-style: italic !important;
  }
}

@media (max-width: 768px) {
  .mega-block-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .mega-block-title::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background-color: rgb(79 79 79 / 40%);
    flex-shrink: 0;
  }
}

/* ==========================================================
   MEGA MENU — HEADER CTA
   ========================================================== */
.mega-menu-item.header-cta > a.mega-menu-link {
  background-color: var(--cl-terracotta) !important;
  border-radius: 4px !important;
  color: var(--cl-white) !important;
  letter-spacing: 0.12em !important;
  opacity: 1;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  padding-left: 14px !important;
  padding-right: 14px !important;
}
#mega-menu-wrap-max_mega_menu_1 .mega-menu-item.header-cta > a.mega-menu-link::after {
  content: "" !important;
  display: inline-block !important;
  width: 11px;
  height: 11px;
  background-image: url("https://charlottelabee.com/wp-content/uploads/2023/07/arrow-right-white-2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(10);
  transition: transform 0.25s ease;
}
#mega-menu-wrap-max_mega_menu_1 .mega-menu-item.header-cta > a.mega-menu-link:hover::after,
#mega-menu-wrap-max_mega_menu_1 .mega-menu-item.header-cta > a.mega-menu-link:active::after {
  transform: translateX(5px);
}
.mega-menu-item.header-cta > a.mega-menu-link:hover,
.mega-menu-item.header-cta > a.mega-menu-link:active {
  color: var(--cl-white) !important;
  opacity: 0.8 !important;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out !important;
}
/* Push to bottom on small screens */
@media (max-width: 768px) {
  .mega-menu-item.header-cta {
    margin-top: auto !important;
    padding-top: 20px !important;
  }
}

/* ==========================================================
   MEGA MENU — Mobile Social Icons Footer
   ========================================================== */

@media (max-width: 768px) {
  /* Hide the same social links under the Charlotte Labee mega menu */
  .mega-charlotte-labee .social-header,
  .mega-charlotte-labee .wp-block-spacer {
    display: none !important;
  }

  .mega-menu-item.mega-socials-footer {
    display: block !important;
    width: 100%;
    border-top: 1px solid rgb(0 0 0 / 15%) !important;
    padding: 10px 0 10px !important;
    margin-top: 15px !important;
  }

  /* Hide the "Socials" toggle link + chevron — content should show directly */
  .mega-menu-item.mega-socials-footer > a.mega-menu-link {
    display: none !important;
  }

  /* Force the sub-menu always open (bypass Max Mega Menu's collapse) */
  .mega-menu-item.mega-socials-footer > ul.mega-sub-menu {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Flatten the nested mega-menu-row / mega-menu-column wrappers */
  .mega-menu-item.mega-socials-footer .mega-menu-row,
  .mega-menu-item.mega-socials-footer .mega-menu-column,
  .mega-menu-item.mega-socials-footer ul.mega-sub-menu {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* Hide spacer */
  .mega-menu-item.mega-socials-footer .wp-block-spacer {
    display: none !important;
  }
  /* Social links row — left align the icons */
  .mega-menu-item.mega-socials-footer .wp-block-social-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: start;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Individual icon circles */
  .mega-menu-item.mega-socials-footer .wp-block-social-link {
    opacity: 0.85;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .mega-menu-item.mega-socials-footer .wp-block-social-link:hover {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ==========================================================
   SEARCH — Toggle button (inside Max Mega Menu)
   ========================================================== */
.mega-search-nav a.mega-menu-link {
}
.mega-search-nav a.mega-menu-link:hover {
  background: transparent !important;
}
.cl-search-toggle {
  background: transparent !important;
  border: none;
  color: var(--cl-black) !important;
  cursor: pointer;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.cl-search-toggle:hover,
.cl-search-toggle[aria-expanded="true"] {
  opacity: 1;
}

/* ==========================================================
   SEARCH — Overlay panel
   ========================================================== */

.cl-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

.cl-search-overlay[hidden] {
  display: none;
}

/* Top bar — slides down from above */
.cl-search-overlay__bar {
  background: var(--cl-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 40px;
  animation: cl-slide-down 0.25s ease forwards;
}

@keyframes cl-slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Inner: icon | input | close — max 800px centered */
.cl-search-overlay__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.cl-search-overlay__icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.cl-search-overlay__form {
  flex: 1;
}

.cl-search-overlay__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--cl-white);
  font-size: 18px;
  font-family: inherit;
  padding: 6px 0;
  outline: none;
  caret-color: var(--cl-sand);
}

.cl-search-overlay__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Hide browser's native search clear button */
.cl-search-overlay__input::-webkit-search-cancel-button,
.cl-search-overlay__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.cl-search-overlay__input:focus {
  border-bottom-color: var(--cl-sand);
}

.cl-search-overlay__close {
  background: transparent;
  border: none;
  color: var(--cl-white);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  line-height: 0;
}

.cl-search-overlay__close:hover {
  opacity: 1;
}

/* Backdrop — semi-transparent, click to close */
.cl-search-overlay__backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

/* Lock page scroll while overlay is open */
body.cl-search-open {
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cl-search-overlay__bar {
    padding: 16px 20px;
  }

  .cl-search-overlay__input {
    font-size: 16px;
  }
}

/* ==========================================================
   FOOTER 
   ========================================================== */

/* -- Layout ----------------------------------------------- */
footer.wp-block-template-part {
  margin-top: 30px;
}

footer .footer-menu-heading {
  margin-top: 0;
  margin-bottom: 10px;
}

footer .wp-block-list {
  list-style: none;
  padding-left: 0;
}

/* -- Rating / Google -------------------------------------- */
footer .cl-google-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
}

footer .cl-gr-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

footer .cl-gr-stars svg {
  width: 18px;
  height: 18px;
  fill: #fbbc04;
}

footer .cl-gr-icon {
  flex-shrink: 0;
}

/* -- Navigation links ------------------------------------- */
footer .footer_links {
  margin-bottom: 2px;
}

footer .footer_links a:hover {
  color: #fff !important;
  text-decoration: underline;
}

/* -- Social icons ----------------------------------------- */
footer .wp-block-social-links.has-small-icon-size {
  font-size: 20px;
}

/* -- Gravity Form (newsletter signup) --------------------- */
footer .gform_heading .gform_title {
  font-family: var(--wp--preset--font-family--synonym) !important;
  text-transform: uppercase;
  font-size: 14px !important;
}

footer .gform_title {
  font-size: 16px;
  margin-bottom: 25px;
}

footer .gravity-theme {
  margin-top: 30px;
}

footer #gform_79 input[type="text"],
footer #gform_79 input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  color: #fff;
  font-size: 14px;
  border-radius: 0;
}

footer #gform_79 input::placeholder {
  color: #ddd;
}

footer #gform_79 .gfield {
  margin-bottom: 15px;
}

footer #gform_79 .gform-footer {
  padding: 6px 0;
}

footer #gform_79 .gform_button {
  background: transparent;
  border: 1px solid #fff !important;
  color: #fff;
  padding: 10px 20px;
  font-size: 13px !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

footer #gform_79 .gform_button.button::after {
  content: "" !important;
  display: inline-block !important;
  width: 11px;
  height: 11px;
  background-image: url("https://charlottelabee.com/wp-content/uploads/2023/07/arrow-right-white-2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(10);
  transition: transform 0.25s ease;
}
footer #gform_79 .gform-footer .gform_button.button:hover::after {
  transform: translateX(5px);
}

/* -- Desktop (≥769px) ------------------------------------- */
@media (min-width: 769px) {
  footer .footer-outer-columns {
    gap: 250px;
    width: 100%;
  }

  footer .footer-copyright > .wp-block-column:nth-child(1) p {
    white-space: nowrap;
  }

  footer .footer-copyright > .wp-block-column:nth-child(2) *,
  footer .footer-copyright > .wp-block-column:nth-child(3) * {
    text-align: center;
  }
}

/* -- Tablet portrait (769px–1024px) ----------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  footer .footer-outer-columns {
    gap: 20px;
  }

  footer .footer-copyright > .wp-block-column:nth-child(1) p {
    white-space: normal;
  }
}

/* -- Mobile (≤768px) -------------------------------------- */
@media (max-width: 768px) {
  .footer-outer-columns {
    padding: 40px 20px !important;
  }

  footer .footer-outer-columns {
    gap: 10px;
  }

  footer .footer-middle-columns {
    gap: 20px;
    padding-top: 20px;
  }

  footer .footer-copyright {
    gap: 0;
    padding: 16px 0;
  }

  footer .footer-copyright > .wp-block-column p {
    padding: 0;
    margin: 5px 0;
  }

  footer .footer-copyright > .wp-block-column * {
    text-align: left;
  }
}
/* ---- EVENTS SECTION — [cl_recent_events] + Swiper ---- */

.cl-events-wrapper {
  max-width: 1336px;
  margin: 0 auto !important;
  padding: 0 60px !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cl-events-wrapper {
    padding: 0 0px !important;
  }
}

@media (min-width: 769px) {
  .events-home-swiper {
    overflow: visible !important;
  }
  .events-home-swiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transform: none !important;
    width: auto !important;
  }
  .events-home-swiper .swiper-slide {
    display: flex !important;
    flex-direction: column !important;
  }
  .events-home-swiper .swiper-pagination {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .events-home-swiper-outer {
    overflow: hidden;
  }

  /* Equal-height Swiper slides — mirrors desktop grid's auto row-stretch */
  .events-home-swiper .swiper-wrapper {
    align-items: stretch !important;
  }
  .events-home-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .events-home-card {
    flex: 1;
    min-height: 420px;
  }

  .events-home-swiper-nav {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding-left: 20px;
  }
  .events-swiper-prev,
  .events-swiper-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: var(--cl-white) !important;
    color: var(--cl-text-dark) !important;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      opacity 0.2s ease;
    flex-shrink: 0;
  }
  .events-swiper-prev:hover,
  .events-swiper-next:hover {
    background-color: var(--cl-sand);
    border-color: var(--cl-sand);
  }
  .events-swiper-prev.swiper-button-disabled,
  .events-swiper-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
  }
}

@media (min-width: 769px) {
  .events-home-swiper-nav {
    display: none;
  }
}

.events-home-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  padding: 30px;
  min-height: 420px;
  flex: 1;
  display: flex;
  align-items: stretch;
  background-size: cover;
  background-position: center;
}

.events-home-card__gradient {
  background: linear-gradient(0deg, rgba(135, 125, 90, 0.95) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(135, 125, 90, 0) 100%) !important;
}

.events-home-card__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.events-home-card__inner a,
.events-home-card__inner button {
  pointer-events: auto;
}

.events-home-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
}

.events-home-card__body {
  margin-top: 180px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.events-home-card .wp-block-buttons {
  margin-top: auto !important;
}

.event-card-badge {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: var(--cl-brass);
  color: var(--cl-white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
}

.events-home-card__title {
  color: var(--cl-white) !important;
  margin-bottom: 8px !important;
}

.events-home-card__meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 6px 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--cl-sand);
  font-size: 14px !important;
}

.events-home-card__meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: normal;
  padding: 0;
  margin: 0;
}

.events-home-card__meta li svg {
  flex-shrink: 0;
  stroke: var(--cl-brass);
}

.events-home-card__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.events-home-card .wp-block-buttons {
  display: block !important;
}

.events-home-card .wp-block-button {
  width: 100%;
}

@media (hover: hover) {
  .events-home-card {
    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease;
  }
  .events-home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  }
}
