/* Local demo overrides: keep the captured theme presentation-ready. */
html { scroll-behavior: smooth; }

html.demo-side-menu-open,
html.demo-side-menu-open body,
html.demo-search-open,
html.demo-search-open body {
  overflow: hidden !important;
}

.demo-side-menu-close {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  color: #000000 !important;
  cursor: pointer;
  font: 300 42px/1 Arial, sans-serif !important;
  height: 48px;
  padding: 0 !important;
  position: absolute;
  right: 28px;
  top: 25px;
  width: 48px;
  z-index: 20;
}

.demo-side-menu-close::before,
.demo-side-menu-close::after {
  content: none !important;
  display: none !important;
}

:root,
html[data-mall-color-palette="main"] {
  --demo-brand-yellow: #ffed00;
  --demo-brand-blue: #005bae;
  --ui-global-color-primary: #000000 !important;
  --ui-global-color-secondary: #005bae !important;
  --ui-global-color-text: #000000 !important;
  --ui-global-color-accent: #ffed00 !important;
  --mall-colors-heading: #000000 !important;
  --mall-colors-text: #000000 !important;
  --mall-button-hover-colors-bg: #005bae !important;
}

body {
  color: #000000;
}

body p {
  color: #000000 !important;
}

.hero-copy,
.hero-copy .ui-widget-container {
  color: #000000 !important;
}

/* Descriptive copy originally exported as heading widgets. */
.text-copy .ui-heading-title {
  color: #000000 !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #000000;
}

/* Brand button system. */
.button--primary .ui-widget-mall-button__button {
  background: #005bae !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #005bae !important;
  color: #ffffff !important;
}

#hero .button--tertiary .ui-widget-mall-button__button {
  padding: 16px 40px !important;
}

#hero .button--tertiary .ui-widget-mall-button__button:hover,
#hero .button--tertiary .ui-widget-mall-button__button:focus {
  border-color: #005bae !important;
  color: #005bae !important;
}

.button--primary .ui-widget-mall-button__button:hover,
.button--primary .ui-widget-mall-button__button:focus {
  background: #ffffff !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #ffffff !important;
  color: #005bae !important;
}

.button--secondary .ui-widget-mall-button__button {
  background: transparent !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.button--secondary .ui-widget-mall-button__button:hover,
.button--secondary .ui-widget-mall-button__button:focus {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.button--tertiary .ui-widget-mall-button__button {
  background: #ffffff !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #ffffff !important;
  color: #005bae !important;
}

.button--tertiary .ui-widget-mall-button__button:hover,
.button--tertiary .ui-widget-mall-button__button:focus {
  background: #ffed00 !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #ffed00 !important;
  color: #005bae !important;
}

/* Quaternary: promotional yellow action. */
.button--quaternary .ui-widget-mall-button__button {
  background: #ffed00 !important;
  border: 1px solid #ffed00 !important;
  color: #000000 !important;
}

.button--quaternary .ui-widget-mall-button__button:hover,
.button--quaternary .ui-widget-mall-button__button:focus {
  background: #005bae !important;
  border: 1px solid #005bae !important;
  color: #ffffff !important;
}

.ui-widget-mall-button__button,
.ui-widget-mall-button__button span,
.ui-widget-mall-button__button i,
.ui-widget-mall-button__button svg {
  color: inherit !important;
  fill: currentColor !important;
}

/* Consistent page rhythm replacing mixed 150px margins and 120px padding. */
.site-section:not(#hero) {
  --margin-top: 0px !important;
  --margin-bottom: 0px !important;
  --padding-top: 80px !important;
  --padding-bottom: 80px !important;
  box-sizing: border-box;
  margin-block: 0 !important;
  padding-block: 80px !important;
}

/* Utility bands need less air than editorial content sections. */
#section-brands.site-section,
#section-marquee.site-section {
  --padding-top: 56px !important;
  --padding-bottom: 56px !important;
  padding-block: 56px !important;
}

@media (max-width: 1180px) {
  .site-section:not(#hero) {
    --padding-top: 64px !important;
    --padding-bottom: 64px !important;
    padding-block: 64px !important;
  }

  #section-brands.site-section,
  #section-marquee.site-section {
    --padding-top: 44px !important;
    --padding-bottom: 44px !important;
    padding-block: 44px !important;
  }
}

@media (max-width: 767px) {
  .site-section:not(#hero) {
    --padding-top: 48px !important;
    --padding-bottom: 48px !important;
    padding-block: 48px !important;
  }

  #section-brands.site-section,
  #section-marquee.site-section {
    --padding-top: 36px !important;
    --padding-bottom: 36px !important;
    padding-block: 36px !important;
  }
}

body,
.ui-widget-mall-nav-menu,
.ui-widget-mall-nav-menu a,
.ui-widget-mall-nav-menu span {
  font-family: "Figtree", Arial, sans-serif !important;
  color: #000000 !important;
}

.ui-widget-mall-button__button,
.ui-widget-mall-mailchimp__button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: "Figtree", Arial, sans-serif !important;
}

.mall-icon-font {
  font-family: "Local-Icons" !important;
}

.hero-copy-panel,
.hero-copy-panel h1,
.hero-copy-panel h2,
.hero-copy-panel h3,
.hero-copy-panel p {
  color: #000000 !important;
}

.demo-header-logo {
  display: block;
  width: 190px !important;
  max-width: none !important;
  height: auto !important;
  transform: translateY(0);
}

.site-footer__logo
  .ui-widget-mall-site-logo__image-container,
.site-footer__logo
  .ui-widget-mall-site-logo__link {
  display: block;
  width: 100% !important;
}

.site-footer__logo
  .ui-widget-mall-site-logo__img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

.site-footer__copyright {
  margin-top: 36px;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}

.ui-widget-mall-site-logo:has(.demo-header-logo)
  .ui-widget-mall-site-logo__image-container {
  width: 190px;
  height: 52px;
  overflow: hidden;
}

.hero-media:not(.ui-motion-effects-element-type-background):not(.mall-bg-effect),
.hero-media > .ui-motion-effects-container > .ui-motion-effects-layer,
.hero-media > .mall-bg-effects-container > .mall-bg-effects-element {
  background-image: url("../imgs/hero-castellana.jpg") !important;
  background-size: cover !important;
  background-position: left top !important;
  background-repeat: no-repeat !important;
}

.mall-theme-switcher,
.mall-demo-preview,
.mall-demos-preview,
.mall-palettes-preview,
.mall-skins-demo {
  display: none !important;
}

.demo-disabled-time-popup {
  display: none !important;
}

.ui-widget-mall-woo-cart {
  display: none !important;
}

#main-navigation > li > .mall-megamenu-container {
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

.demo-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.demo-content-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d6d3d0;
}

.demo-content-card img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.demo-content-card__body { padding: 24px; }
.demo-content-card__eyebrow {
  margin: 0 0 10px;
  color: #6f6b66;
  font: 700 12px/1.3 "Figtree", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.demo-content-card h3 {
  margin: 0 0 10px;
  font: 400 30px/1.08 "Cal Sans Local", "Figtree", sans-serif;
}
.demo-content-card p {
  margin: 0;
  font: 400 16px/1.55 "Figtree", sans-serif;
  color: #6f6b66;
}

.events-list {
  display: grid;
  gap: 20px;
  width: 100%;
  margin-top: 44px;
}

.event-card {
  display: grid;
  grid-template-columns: 92px 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  min-width: 0;
  padding: 30px 40px;
  background: #ffffff;
  border-radius: 20px;
}

.event-card__date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 78px;
  min-height: 100px;
  color: #000000;
  border: 1px solid #d6d3d0;
  border-radius: 11px;
  text-decoration: none;
}

.event-card__date strong {
  font: 400 48px/.9 "Cal Sans Local", "Figtree", sans-serif;
}

.event-card__date span {
  margin-top: 12px;
  font: 700 12px/1 "Figtree", sans-serif;
}

.event-card__media {
  position: relative;
  width: 200px;
  height: 200px;
}

.event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.event-card__category {
  position: absolute;
  top: 18px;
  left: -12px;
  padding: 8px 14px;
  color: #000000;
  background: #ffed00;
  border-radius: 4px;
  font: 800 12px/1 "Figtree", sans-serif;
  letter-spacing: .04em;
  transform: rotate(-4deg);
}

.event-card__content {
  min-width: 0;
}

.event-card__content h3 {
  margin: 0 0 14px;
  color: #000000;
  font: 400 28px/1.1 "Cal Sans Local", "Figtree", sans-serif;
}

.event-card__content > p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #000000 !important;
  font: 400 16px/1.55 "Figtree", sans-serif;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #625f5a;
  font: 500 14px/1.4 "Figtree", sans-serif;
}

.event-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.event-card__meta svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #000000;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.event-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 16px 26px;
  color: #000000 !important;
  background: transparent;
  border: 1px solid #000000;
  border-radius: 999px;
  font: 700 16px/1 "Figtree", sans-serif;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.event-card__action:hover,
.event-card__action:focus-visible {
  color: #ffffff !important;
  background: #005bae;
  border-color: #005bae;
}

@media (max-width: 1180px) {
  .event-card {
    grid-template-columns: 78px 170px minmax(0, 1fr);
    gap: 26px;
    padding: 28px;
  }

  .event-card__media {
    width: 160px;
    height: 160px;
  }

  .event-card__action {
    grid-column: 3;
    justify-self: start;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .demo-content-grid { grid-template-columns: 1fr; }
  .demo-content-card img { height: 260px; }

  .events-list {
    gap: 16px;
    margin-top: 32px;
  }

  .event-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 22px 18px;
    padding: 22px;
  }

  .event-card__date {
    align-self: start;
    width: 66px;
    min-height: 84px;
  }

  .event-card__date strong { font-size: 39px; }
  .event-card__date span { margin-top: 9px; }

  .event-card__media {
    width: min(100%, 230px);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
  }

  .event-card__category {
    top: 14px;
    left: -8px;
  }

  .event-card__content,
  .event-card__action {
    grid-column: 1 / -1;
  }

  .event-card__content h3 { font-size: 27px; }
  .event-card__content > p { margin-bottom: 18px; }
  .event-card__meta { display: grid; }

  .event-card__action {
    justify-self: stretch;
    min-width: 0;
  }
}

a[href="#"] { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
