/* ==========================================================================
   Gala Retail — gala.uk.net
   Static site styles (built on ZURB Foundation 6.5.3)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --gala-dark:      #001414;
  --gala-darker:    #001415;
  --gala-teal:      #003c3d;
  --gala-teal-mid:  #005052;
  --gala-green:     #8fbe18;
  --gala-green-alt: #80bd03;
  --gala-green-dk:  #729813;
  --gala-yellow:    #ffcc00;
  --gala-white:     #fefefe;
  --gala-ink:       #0a0a0a;
  --h-bg:      #f6f8f3;
  --h-surface: #ffffff;
  --h-ink:     #0f2424;
  --h-muted:   #5a6b6b;
  --h-line:    #e3e9e1;
  --h-radius:  20px;
  --h-shadow:  0 1px 2px rgba(0,40,40,.06), 0 8px 24px rgba(0,40,40,.08);
  --h-display: "Fraunces", Georgia, serif;
  --font-base: "Nunito Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  color: var(--gala-ink);
  background: #fefefe;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 600;
}
a { color: var(--gala-teal); transition: color .2s ease, background-color .2s ease; }
a:hover, a:focus { color: var(--gala-green); }
img { max-width: 100%; height: auto; }

.button.secondary { background-color: var(--gala-green); color: var(--gala-ink); font-weight: 700; }
.button.secondary:hover,
.button.secondary:focus { background-color: var(--gala-green-dk); color: var(--gala-ink); }

/* ---------- 3. Brand / logo ---------- */
.brand,
.menu a.brand,
.off-canvas .menu a.brand {
  display: inline-flex; flex-direction: row; padding: 0; align-items: center; gap: .45rem;
  color: var(--gala-dark); text-decoration: none; line-height: 1;
}
.brand:hover, .brand:focus { color: var(--gala-dark); }
.brand__mark { width: 46px; height: 46px; flex: none; transition: transform .35s ease; }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__text { display: flex; flex-direction: column; }
.brand__word {
  font-family: var(--font-base); font-weight: 800;
  font-size: 2.05rem; letter-spacing: -.045em; line-height: .85;
}
.brand__sub {
  font-size: .6rem; font-weight: 800; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gala-green-dk); margin-top: .28rem; padding-left: .12rem;
}

/* ---------- 3b. Header ---------- */
.header { position: relative; z-index: 20; background: #fff; }
.header .topper { background-color: var(--gala-dark); }

#topbar-menu.top-bar,
#topbar-menu.top-bar ul { background-color: transparent; padding: 0; }
#topbar-menu .top-bar-right { width: 100%; }
#topbar-menu .menu { justify-content: flex-end; gap: .25rem; }
#topbar-menu .menu a {
  color: rgba(254,254,254,.75); font-size: .8rem; font-weight: 600;
  padding: .55rem .8rem; letter-spacing: .01em;
}
#topbar-menu .menu a:hover { color: var(--gala-green); }
#topbar-menu .menu i { margin-right: .35rem; color: var(--gala-green); }

.top-menu {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6ece4;
  transition: box-shadow .25s ease, background-color .25s ease;
}
.top-menu.is-stuck {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px rgba(0,40,40,.10);
}
.top-menu.is-stuck .brand__mark { width: 38px; height: 38px; }
.top-menu.is-stuck .brand__word { font-size: 1.7rem; }

.top-bar,
.top-bar ul { background-color: transparent; }
.top-bar { padding: .85rem 0; flex-wrap: nowrap; align-items: center; }
.top-menu .top-bar-left .menu > li > .brand { padding: 0; }

#main-nav { align-items: center; gap: .15rem; }
#main-nav > li > a {
  color: var(--gala-dark);
  font-weight: 700; font-size: .92rem;
  padding: .65rem .85rem; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
#main-nav > li > a:hover,
#main-nav > li.is-active > a { background: #eef5df; color: var(--gala-dark); }
#main-nav > li.active > a { background: var(--gala-dark); color: var(--gala-white); }
#main-nav.dropdown.menu > li.is-dropdown-submenu-parent > a { padding-right: 1.6rem; }
#main-nav.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
  border-color: var(--gala-dark) transparent transparent; right: .6rem; margin-top: -2px;
}
#main-nav.dropdown.menu > li.active.is-dropdown-submenu-parent > a::after {
  border-color: var(--gala-white) transparent transparent;
}
#main-nav .is-dropdown-submenu {
  background: #fff; border: 1px solid #e6ece4; border-radius: 16px;
  min-width: 230px; padding: .45rem; margin-top: .35rem;
  box-shadow: 0 18px 40px rgba(0,40,40,.14); z-index: 30;
}
#main-nav .is-dropdown-submenu a { color: var(--gala-dark); padding: .65rem .85rem; font-weight: 600; border-radius: 10px; }
#main-nav .is-dropdown-submenu a:hover,
#main-nav .is-dropdown-submenu .active > a { background: #eef5df; color: var(--gala-dark); }

#main-nav > li.nav-cta { margin-left: .5rem; }
#main-nav > li.nav-cta > a {
  background: var(--gala-green); color: var(--gala-dark);
  padding: .7rem 1.15rem; display: inline-flex; align-items: center; gap: .45rem;
}
#main-nav > li.nav-cta > a:hover { background: var(--gala-dark); color: var(--gala-white); }

.hamburger, .hamburger a { color: var(--gala-dark); }
.hamburger a {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: #eef5df;
}
.hamburger a .fa-2x { font-size: 1.3rem; }
.hamburger a:hover { color: var(--gala-dark); background: var(--gala-green); }

/* Compact nav between tablet and wide desktop */
@media (max-width: 1199px) {
  #main-nav > li > a { padding: .55rem .6rem; font-size: .85rem; }
  #main-nav > li.nav-cta { display: none; }
}

/* ---------- 4. Off-canvas ---------- */
.off-canvas { background: var(--gala-dark); width: 290px; padding: 1rem .75rem; }
.off-canvas.position-right { transform: translateX(290px); }
.off-canvas.position-right.is-open { transform: translateX(0); }
.off-canvas .close-button { color: var(--gala-white); top: .6rem; right: .9rem; font-size: 2rem; }
.off-canvas p.logo { padding: .75rem .5rem 1.5rem; text-align: left !important; }
.off-canvas .brand, .off-canvas .brand:hover { color: var(--gala-white); }
.off-canvas .brand__sub { color: var(--gala-green); }
.off-canvas .menu { background: transparent; }
.off-canvas .menu li > a {
  color: rgba(254,254,254,.85); background: transparent;
  font-weight: 700; padding: .85rem 1rem; border-radius: 12px; margin-bottom: .15rem;
}
.off-canvas .menu .active > a { background: var(--gala-green); color: var(--gala-dark); }
.off-canvas .menu li > a:hover { background: rgba(255,255,255,.08); color: var(--gala-white); }

/* ---------- 5. Slider ---------- */
.gala-slider { position: relative; overflow: hidden; background: var(--gala-dark); aspect-ratio: 1920 / 455; }
.gala-slider .slides { list-style: none; margin: 0; height: 100%; }
.gala-slider .slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.gala-slider .slide.is-active { opacity: 1; visibility: visible; }
.gala-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,20,20,.55); color: #fff;
  cursor: pointer; opacity: 0; transition: opacity .3s ease, background .2s ease;
}
.slider-nav.prev { left: 1rem; }
.slider-nav.next { right: 1rem; }
.gala-slider:hover .slider-nav,
.slider-nav:focus { opacity: 1; }
.slider-nav:hover { background: var(--gala-green); color: var(--gala-ink); }

.slider-dots { position: absolute; bottom: .75rem; left: 0; right: 0; margin: 0; list-style: none; text-align: center; }
.slider-dots li { display: inline-block; margin: 0 4px; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.slider-dots button.is-active { background: var(--gala-green); transform: scale(1.2); }

/* ---------- 6-8. Shared components (buttons, newsletter) ---------- */
.h-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.h-section { padding: 4.5rem 0; }
.h-section--tight { padding: 2rem 0; }

/* ---------- Buttons ---------- */
.h-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn--primary { background: var(--gala-green); color: var(--gala-dark); }
.h-btn--primary:hover, .h-btn--primary:focus { background: #a3d12a; color: var(--gala-dark); }
.h-btn--ghost { color: var(--gala-white); border-color: rgba(255,255,255,.35); }
.h-btn--ghost:hover, .h-btn--ghost:focus { color: var(--gala-white); border-color: var(--gala-green); }
.h-btn--outline-light { color: var(--gala-white); border-color: rgba(255,255,255,.4); }
.h-btn--outline-light:hover, .h-btn--outline-light:focus { color: var(--gala-dark); background: var(--gala-white); }
.h-btn--dark { background: var(--gala-dark); color: var(--gala-white); white-space: nowrap; }
.h-btn--dark:hover, .h-btn--dark:focus { background: var(--gala-teal); color: var(--gala-white); }

/* ---------- Newsletter ---------- */
.h-news-signup { padding-bottom: 5rem; }
.h-signup {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center;
  background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
  padding: 3rem; box-shadow: var(--h-shadow);
}
.h-signup__intro i { font-size: 2rem; color: var(--gala-green-dk); }
.h-signup__intro h2 { font-family: var(--h-display); font-size: 2rem; margin: .75rem 0 .5rem; color: var(--h-ink); }
.h-signup__intro p { color: var(--h-muted); margin: 0; }
.h-signup__fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: .6rem; margin-bottom: 1rem; }
.h-signup__fields input {
  margin: 0; height: 52px; padding: 0 1.1rem; border-radius: 999px;
  border: 1.5px solid var(--h-line); background: var(--h-bg); box-shadow: none;
}
.h-signup__fields input:focus { border-color: var(--gala-green); background: #fff; box-shadow: 0 0 0 4px rgba(143,190,24,.18); }
.h-signup__fields input.is-invalid-input { border-color: #cc4b37; background: #fbe6e3; }
.h-signup__fields .h-btn { height: 52px; justify-content: center; }
.h-signup label.terms { font-size: .85rem; color: var(--h-muted); line-height: 1.5; cursor: pointer; }
.h-signup label.terms input { margin: 0 .4rem 0 0; vertical-align: middle; accent-color: var(--gala-green-dk); }
.h-signup .form-msg { border-radius: 12px; }

@media (max-width: 1023px) { .h-signup { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .h-section { padding: 3rem 0; }
  .h-signup { padding: 1.75rem; gap: 1.5rem; }
  .h-signup__fields { grid-template-columns: 1fr; }
}

/* ---------- 9. Footer ---------- */
.footer {
  clear: both; position: relative; overflow: hidden;
  background: var(--gala-dark); color: rgba(254,254,254,.72); font-size: .95rem;
}
.footer::before {
  content: ""; position: absolute; right: -180px; top: -220px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(143,190,24,.18), transparent 65%);
  pointer-events: none;
}
.footer__wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; position: relative; }
.footer__main { padding: 4rem 0 3rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer a { color: rgba(254,254,254,.8); }
.footer a:hover, .footer a:focus { color: var(--gala-green); }

.footer .brand, .footer .brand:hover { color: var(--gala-white); }
.footer .brand__sub { color: var(--gala-green); }
.footer__about p { margin: 1.25rem 0 0; max-width: 22rem; line-height: 1.6; }

.footer h4 {
  color: var(--gala-white); font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; margin: .6rem 0 1.1rem;
}
.footer__col ul { list-style: none; margin: 0; }
.footer__col li { margin-bottom: .6rem; }
.footer__col li a { position: relative; transition: color .2s ease, padding-left .2s ease; }
.footer__col li a:hover { padding-left: .35rem; }
.footer__contact p { display: flex; gap: .75rem; margin-bottom: .9rem; line-height: 1.55; }
.footer__contact i { color: var(--gala-green); width: 1rem; margin-top: .3rem; flex: none; text-align: center; }
.footer__contact a { word-break: break-word; }

.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .85rem; }
.footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; }
.footer__bar p { margin: 0; }
.footer__bar ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .footer__main { padding: 3rem 0 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- 10. Back to top ---------- */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gala-green); color: var(--gala-ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gala-green-dk); }
body.has-cookie-banner .back-to-top { bottom: 1rem; left: 1rem; right: auto; }

/* ---------- 11. Cookie banner ---------- */
.cookie-banner {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 100;
  width: 520px; max-width: calc(100% - 2rem); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: #fff; color: #222; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 1.25rem 1.5rem;
  font-size: .875rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e5e5; padding-bottom: .75rem; margin-bottom: .75rem; }
.cookie-title { font-weight: 800; font-size: 1.05rem; }
.cookie-close { cursor: pointer; font-size: 1.2rem; color: #555; }
.cookie-message { margin-bottom: 1rem; line-height: 1.5; }
.cookie-categories { display: none; margin-bottom: 1rem; background: transparent; }
.cookie-banner.show-prefs .cookie-categories { display: block; }
.cookie-categories .accordion-title {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: #222; padding: .8rem 2.5rem .8rem 1rem; font-size: .875rem;
  background: #f5f5f5; border: 0; margin-bottom: 4px;
}
.cookie-categories .accordion-title:hover,
.cookie-categories .accordion-title:focus { background: #ececec; }
.cookie-categories .accordion-content { border: 0; padding: .75rem 1rem; color: #444; line-height: 1.5; }
.cookie-categories .always-active { color: var(--gala-green-dk); font-weight: 700; font-size: .8rem; }
.cookie-categories input { margin: 0; width: 18px; height: 18px; accent-color: var(--gala-green-dk); }
.cookie-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.cookie-buttons .button { margin: 0; font-size: .85rem; padding: .7rem .5rem; border-radius: 6px; }
.cookie-buttons .button.hollow { border-color: var(--gala-teal); color: var(--gala-teal); }
.cookie-buttons .button.hollow:hover { background: var(--gala-teal); color: #fff; }
.cookie-buttons .js-save-prefs { display: none; }
.cookie-banner.show-prefs .js-view-prefs { display: none; }
.cookie-banner.show-prefs .js-save-prefs { display: block; }

.manage-consent {
  position: fixed; right: 2.5rem; bottom: 0; z-index: 90;
  background: var(--gala-teal); color: #fff; font-size: .8rem; font-weight: 700;
  padding: .5rem 1rem; border-radius: 6px 6px 0 0; cursor: pointer;
}
.manage-consent[hidden] { display: none; }
.manage-consent:hover { background: var(--gala-green); color: var(--gala-ink); }

/* ---------- 12. Inner pages ---------- */
body:not(.home) { background: var(--h-bg); color: var(--h-ink); }

/* Landing-page sliders become a rounded, contained card */
body:not(.home) .gala-slider {
  max-width: 1240px; margin: 2rem auto 0; border-radius: var(--h-radius);
  width: calc(100% - 2.5rem); box-shadow: var(--h-shadow);
}
.gala-slider.is-single .slider-dots,
.gala-slider.is-single .slider-nav { display: none; }

/* Page header */
.sub-header {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #eef6dc 0%, var(--h-bg) 100%);
  padding: 2.75rem 0 2.25rem; margin: 0;
}
.sub-header::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(143,190,24,.25), rgba(143,190,24,0) 70%);
}
.sub-header__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.sub-header h1 {
  font-family: var(--h-display); font-weight: 600; color: var(--gala-dark);
  font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.01em;
  margin: .6rem 0 0; padding: 0; text-align: left;
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--h-muted); }
.crumbs a { color: var(--gala-green-dk); }
.crumbs a:hover { color: var(--gala-dark); }
.crumbs i { font-size: .6rem; opacity: .6; }

/* Content wrapper */
.content.grid-container { max-width: 1240px; padding: 2rem 1.25rem 3rem; }
.content .inner-content { margin: 0 -.75rem; }
.main { margin-bottom: 1.5rem; }

/* Article / page body as a white reading card */
.main > article,
.main > .entry-content,
.page-template-default .main article {
  background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
  padding: clamp(1.5rem, 3vw, 2.75rem); box-shadow: var(--h-shadow);
}
.article-header { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--h-line); }
.page-title, .entry-title {
  font-family: var(--h-display); font-weight: 600; color: var(--gala-dark);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; margin-bottom: .6rem;
}
.byline { color: var(--h-muted); font-size: .85rem; font-weight: 700; letter-spacing: .04em; margin: 0; }
.byline a {
  display: inline-block; padding: .15rem .6rem; border-radius: 999px; margin-left: .25rem;
  background: #eef5df; color: var(--gala-green-dk); text-decoration: none; font-size: .78rem;
}

.entry-content { line-height: 1.75; font-size: 1.05rem; color: #24393a; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.15rem; }
.entry-content ul, .entry-content ol { margin-left: 1.25rem; }
.entry-content li::marker { color: var(--gala-green-dk); }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--h-display); font-weight: 600; color: var(--gala-dark);
  line-height: 1.2; margin: 2rem 0 .85rem;
}
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content a { color: var(--gala-teal-mid); text-decoration: underline; text-decoration-color: var(--gala-green); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gala-green-dk); }
.entry-content a.button { text-decoration: none; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content iframe { max-width: 100%; border-radius: 14px; }
.entry-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.5rem; border: 0; border-left: 4px solid var(--gala-green);
  background: #f3f8e8; border-radius: 0 14px 14px 0; color: var(--gala-dark);
}
.entry-content .aligncenter, .entry-content img.aligncenter { display: block; margin: 0 auto 1rem; clear: both; }
.entry-content .alignleft, .entry-content img.alignleft { float: left; margin: 0 1.5em 1rem 0; }
.entry-content .alignright, .entry-content img.alignright { float: right; margin: 0 0 1rem 1.5em; }
.entry-content video, .wp-video { max-width: 100%; width: 100% !important; height: auto; border-radius: 14px; }
.wp-video video { width: 100%; height: auto; }
.wp-caption { max-width: 100% !important; background: transparent; padding: 0; margin-bottom: 1rem; }
.wp-caption img { width: 100%; margin: 0; }
.wp-caption p.wp-caption-text { font-size: .85em; color: var(--h-muted); margin: .5rem 0 0; text-align: center; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--h-line); border-radius: 14px; overflow: hidden; }
.entry-content table thead { background: #eef5df; }
.entry-content table tbody tr:nth-child(even) { background: #fafcf6; }
.responsive-embed { margin-bottom: 1rem; border-radius: 14px; }

/* Sidebar */
.sidebar .widget,
.advanced-sidebar-menu, .widget_categories {
  background: var(--h-surface); color: var(--h-ink); border: 1px solid var(--h-line);
  border-radius: var(--h-radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--h-shadow);
}
.sidebar h4, .widgettitle {
  color: var(--gala-dark); font-size: .78rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.sidebar ul { margin: 0; list-style: none; }
.sidebar ul li { list-style: none; margin: 0 0 .25rem; }
.sidebar ul li a {
  display: block; padding: .6rem .85rem; border-radius: 12px; border: 0;
  color: var(--gala-dark); font-weight: 700; text-decoration: none;
}
.sidebar ul li a:hover { background: #eef5df; color: var(--gala-dark); }
.sidebar ul ul li { margin-left: .75rem; }
.sidebar li.current_page_item > a, .sidebar li.current-cat > a { background: var(--gala-dark); color: var(--gala-white); }

/* Landing sections (About, Franchise) */
section.our-story, section.our-team, section.row.news, section.gala-awards { padding: 4rem 0 3rem; }
section.our-story .grid-container, section.our-team .grid-container,
section.row.news .grid-container { max-width: 1000px; }
section.our-team {
  background: var(--gala-teal); color: rgba(254,254,254,.85);
}
section.our-story h1, section.our-team h1, section.row.news h1, .why-gala h1,
section.our-story h2, section.our-team h2, .why-gala h2 {
  font-family: var(--h-display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1; margin-bottom: 1.25rem; color: var(--gala-dark);
}
section.our-team h1, section.our-team h2, section.our-team h3 { color: var(--gala-white); }
section.our-team h3 { color: var(--gala-green); font-size: 1.3rem; }
section.our-story p, section.our-team p, .why-gala p { margin-bottom: 1rem; line-height: 1.75; font-size: 1.05rem; }
section.our-team h4 { margin-bottom: 1rem; }
section.row.news { max-width: none; }
section.row.news .grid-container { max-width: 1240px; }
.button.alt1 { background: var(--gala-dark); color: #fff; }
.button.alt1:hover { background: var(--gala-green); color: var(--gala-dark); }
section.row.why-gala { max-width: none; margin: 0; padding: 4rem 0; }
.page-template-template-franchise-landing section.row.why-gala { background: var(--gala-teal); color: rgba(254,254,254,.85); }
.page-template-template-franchise-landing section.row.why-gala h1,
.page-template-template-franchise-landing section.row.why-gala h2,
.page-template-template-franchise-landing section.row.why-gala h3 { color: var(--gala-white); }
.reveal { border-radius: var(--h-radius); padding: 2rem; border: 0; }
.reveal h4 { font-family: var(--h-display); color: var(--gala-dark); margin: 1rem 0 .5rem; }
.reveal ul { margin-left: 1.25rem; margin-bottom: 1rem; }
hr.white { border-color: rgba(255,255,255,.3); }
.hide { display: none !important; }


/* Franchise: wholesale, testimonials */
section.local-wholesale { max-width: none; margin: 0; padding: 4rem 0; }
section.local-wholesale h1, .reveal h1 {
  font-family: var(--h-display); font-weight: 600; color: var(--gala-dark);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 1.25rem;
}
section.local-wholesale img { border-radius: var(--h-radius); }
section.local-wholesale p { line-height: 1.75; }
.f-testimonials { padding: 3rem 0 4rem; }
.f-testimonials .page-title { text-align: center; }
.f-testimonials .orbit { max-width: 860px; margin: 0 auto; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius); padding: 2rem 2.5rem; box-shadow: var(--h-shadow); }
.f-testimonials h3 { font-family: var(--h-display); font-weight: 600; font-size: 1.25rem; color: var(--gala-dark); }
.f-testimonials p { font-size: 1.1rem; line-height: 1.7; }

/* Buttons site-wide: pill shaped */
.button { border-radius: 999px; padding: .8rem 1.4rem; font-weight: 700; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:not(.secondary):not(.hollow):not(.alt1) { background-color: var(--gala-dark); color: #fff; }
.button:not(.secondary):not(.hollow):not(.alt1):hover,
.button:not(.secondary):not(.hollow):not(.alt1):focus { background-color: var(--gala-green); color: var(--gala-dark); }

/* Cards (news, archives, community) */
.card {
  background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
  overflow: hidden; box-shadow: var(--h-shadow); transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: 0 18px 40px rgba(0,40,40,.14); transform: translateY(-4px); }
.card img { width: 100%; height: auto; margin-bottom: 0; transition: transform .5s ease; }
.card:hover .featured-image img, .card:hover > img { transform: scale(1.04); }
.card .featured-image { overflow: hidden; }
.card h3 { font-family: var(--h-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; margin: 1rem 0 .5rem; }
.card h3 a { color: var(--gala-dark); }
.card h3 a:hover { color: var(--gala-green-dk); }
.card p { font-size: .95rem; line-height: 1.6; margin-bottom: .75rem; color: var(--h-muted); }
.card .button { margin-top: auto; }
.card .card-section { padding: 0 0 1.25rem; display: flex; flex-direction: column; }
.card .card-section > :not(:first-child) { margin-left: 1.25rem; margin-right: 1.25rem; }
.card .card-section > .button { align-self: flex-start; }
.card .featured-image img { aspect-ratio: 16 / 10; object-fit: cover; margin: 0; }
.card .article-header,
.card .entry-content { padding: 0 1.25rem; border: 0; }
.card .article-header { padding-top: 1.1rem; margin-bottom: .25rem; }
.card h4.title { font-family: var(--h-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin-bottom: .5rem; }
.card h4.title a { color: var(--gala-dark); }
.card h4.title a:hover { color: var(--gala-green-dk); }
.card .byline { font-size: .75rem; }
.card .entry-content { font-size: .95rem; }
.card .entry-content p { font-size: .93rem; line-height: 1.6; color: var(--h-muted); }
.card .excerpt-read-more { white-space: nowrap; font-weight: 800; text-decoration: none; color: var(--gala-green-dk); }
.page-template-template-community-landing .card { background: var(--h-surface); color: var(--h-ink); border-color: var(--h-line); }
.page-template-template-community-landing .card h3 a { color: var(--gala-dark); }
.page-template-template-community-landing .card p { color: var(--h-muted); font-style: normal; }
.page-template-template-community-landing .card em { font-style: normal; }
.archive-grid > .cell, .archive-grid .cell { margin-bottom: 1.75rem; }
.page-navigation { margin-top: 1rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination li { display: inline-block; margin: 0; }
.pagination a, .pagination .current { border-radius: 999px; padding: .45rem .95rem; font-weight: 700; }
.pagination a { background: var(--h-surface); border: 1px solid var(--h-line); color: var(--gala-dark); }
.pagination a:hover { background: #eef5df; }
.pagination .current { background: var(--gala-dark); color: #fefefe; }

/* Child pages list (What's In Store) */
.page-template-template-whats-in-store .main > .entry-content,
.page-template-template-whats-in-store .main article { background: transparent; border: 0; box-shadow: none; padding: 0; }
.page-template-template-whats-in-store .entry-content > h2:first-child,
.page-template-template-whats-in-store .entry-content h2 { margin-top: 0; }
.child_pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin: 0; }
.child_page { width: auto; padding: 0; }
.child_page-container {
  height: 100%; background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-radius);
  padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--h-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.child_page-container:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,40,40,.14); }
.child_page-container h4 { order: 2; text-align: left; text-transform: capitalize; font-family: var(--h-display); font-weight: 600; font-size: 1.4rem; margin: 1.1rem 1.25rem .4rem; }
.child_page-container h4 a { color: var(--gala-dark); text-decoration: none; }
.child_page .post_thumb { order: 1; }
.child_page .post_thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; margin: 0; }
.child_page .post_content { order: 3; }
.child_page .post_excerpt { font-size: .93rem; line-height: 1.6; color: var(--h-muted); padding: 0 1.25rem 1.25rem; }
.child_page .post_excerpt a { color: var(--gala-green-dk); font-weight: 800; text-decoration: none; }

/* NextGEN galleries */
.ngg-galleryoverview { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1rem 0; }
.ngg-galleryoverview .clearfix, .ngg-galleryoverview .ngg-navigation { grid-column: 1 / -1; }
.ngg-gallery-thumbnail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; display: block; transition: transform .3s ease, opacity .3s ease; }
.ngg-gallery-thumbnail a { display: block; overflow: hidden; border-radius: 12px; }
.ngg-gallery-thumbnail a:hover img { transform: scale(1.05); opacity: .9; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,10,10,.92); display: flex; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; color: #fff; font-size: 1.75rem; width: 48px; height: 48px; cursor: pointer; border-radius: 50%; }
.lightbox button:hover { background: rgba(255,255,255,.12); color: var(--gala-green); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #ccc; font-size: .9rem; }

/* Store locator */
.store-map { position: relative; height: 450px; margin-bottom: 1.25rem; border-radius: var(--h-radius); overflow: hidden; background: #e5e3df; box-shadow: var(--h-shadow); }
.store-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.store-tools input, .store-tools select { border-radius: 999px; height: 46px; border: 1.5px solid var(--h-line); box-shadow: none; padding: 0 1rem; }
.store-tools input:focus, .store-tools select:focus { border-color: var(--gala-green); box-shadow: 0 0 0 4px rgba(143,190,24,.18); }
.store-tools .input-group-label { background: var(--gala-dark); color: #fff; border-color: var(--gala-dark); border-radius: 999px 0 0 999px; }
.store-tools .input-group input { border-radius: 0 999px 999px 0; }
.store-count { color: var(--h-muted); font-size: .9rem; font-weight: 700; }
.js-store-table { border-radius: 14px; overflow: hidden; border-collapse: separate; border-spacing: 0; border: 1px solid var(--h-line); }
.js-store-table thead th { background: var(--gala-dark); color: #fff; cursor: pointer; user-select: none; white-space: nowrap; }
.js-store-table thead th::after { content: "\f0dc"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: .4rem; opacity: .5; }
.js-store-table thead th.sort-asc::after { content: "\f0de"; opacity: 1; }
.js-store-table thead th.sort-desc::after { content: "\f0dd"; opacity: 1; }
.js-store-table tbody tr { cursor: pointer; }
.js-store-table tbody tr:hover { background: #eef6dd; }
.js-store-table tbody tr.is-selected { background: #dcefb5; }

@media (max-width: 639px) {
  .sub-header { padding: 2rem 0 1.5rem; }
  body:not(.home) .gala-slider { margin-top: 1rem; width: calc(100% - 2rem); }
  .content.grid-container { padding-top: 1.25rem; }
}

/* ---------- 13. Responsive ---------- */
@media screen and (max-width: 63.9375em) { /* < large */
  #main-nav > li > a { font-size: .8rem; padding: .55rem .5rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__word { font-size: 1.75rem; }
  .hovereffect .overlay { padding: 1.25rem 1.75rem; }
  .hovereffect h2 { font-size: 1.4rem; }
}
@media screen and (max-width: 39.9375em) { /* small */
  .top-bar { padding: .5rem 1rem; flex-wrap: nowrap; }
  .top-bar .top-bar-left { flex: 1 1 auto; max-width: none; }
  .top-bar .top-bar-right { flex: 0 0 auto; max-width: none; }
  .slider-nav { display: none; }
  .slider-dots { bottom: .25rem; }
  .slider-dots button { width: 9px; height: 9px; }
  .motto h3 { font-size: 1.15rem; }
  .sub-header h1 { font-size: 2rem; }
  .page-title, .entry-title { font-size: 1.6rem; }
  .entry-content .alignleft, .entry-content .alignright { float: none; display: block; margin: 0 auto 1rem; }
  .store-map { height: 300px; }
  .js-store-table thead { display: none; }
  .js-store-table tbody tr { border-bottom: 2px solid var(--gala-green); }
  .js-store-table td:empty { display: none; }
  .js-store-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--gala-teal); }
  .lightbox { padding: 3.5rem .5rem; }
  .hp-boxes .grid-x { margin: 0; }
  .hp-boxes .cell { padding-left: 1rem; padding-right: 1rem; }
  .tabs-filter { padding: 0 1rem; }
  .tabs-filter a { font-size: .75rem; padding: .5rem .6rem; }
  .subscribe-form { padding: 2rem 1rem; }
  .subscribe-form h1.title { font-size: 1.5rem; }
  .cookie-banner { right: 1rem; left: 1rem; width: auto; padding: 1rem; }
  .cookie-buttons { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 14. Responsive refinements ---------- */
/* Hamburger menu below 1024px (full nav doesn't fit) */
@media (max-width: 1023px) {
  .top-menu .top-bar-right.show-for-medium { display: none !important; }
  .top-menu .top-bar-right.show-for-small-only { display: block !important; }
  .top-bar { padding: .6rem 1.25rem; }
  .top-menu .grid-container { padding: 0; }
}
@media (max-width: 639px) {
  .top-bar { padding: .55rem 1rem; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__word { font-size: 1.6rem; }
  .brand__sub { font-size: .55rem; }
  .hamburger a { width: 42px; height: 42px; border-radius: 12px; }
}

/* News / archive cards: 1 col mobile, 2 col tablet, 3 col desktop */
@media (max-width: 639px) {
  .archive-grid > .cell.small-6 { width: calc(100% - 1.875rem); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .archive-grid > .cell.medium-4 { width: calc(50% - 1.875rem); }
}

/* Article + sidebar stack until desktop */
@media (max-width: 1023px) {
  .content .inner-content > .cell.medium-8,
  .content .inner-content > .cell.medium-4,
  .content .inner-content > .main { width: calc(100% - 1.875rem); }
  .content .inner-content > .main { order: 1; }
  .content .inner-content > .sidebar,
  .content .inner-content > .cell:not(.main) { order: 2; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .sidebar ul li { margin: 0; }
  .sidebar ul li a { background: #eef5df; padding: .45rem .9rem; border-radius: 999px; }
}

/* Two-column landing sections stack on small screens */
@media (max-width: 639px) {
  section.our-story, section.our-team, section.row.news, section.gala-awards,
  section.row.why-gala, section.local-wholesale { padding: 2.5rem 0; }
  .entry-content { font-size: 1rem; }
  .entry-content .alignleft, .entry-content .alignright,
  .entry-content img.alignleft, .entry-content img.alignright { float: none; display: block; margin: 0 auto 1rem; }
  .entry-content iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .main > article, .main > .entry-content, .page-template-default .main article { border-radius: 16px; }
  .f-testimonials .orbit { padding: 1.5rem 1.25rem; }
  .h-signup__intro h2 { font-size: 1.6rem; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
}

/* Store table: compact stacked rows on mobile */
@media (max-width: 639px) {
  .js-store-table, .js-store-table tbody, .js-store-table tr, .js-store-table td { display: block; width: 100%; }
  .js-store-table { border: 0; background: transparent; }
  .js-store-table tbody tr {
    background: var(--h-surface); border: 1px solid var(--h-line); border-radius: 14px;
    padding: .75rem 1rem; margin-bottom: .6rem;
  }
  .js-store-table tbody tr:nth-child(even) { background: var(--h-surface); }
  .js-store-table td { padding: .1rem 0; border: 0; font-size: .92rem; }
  .js-store-table td:first-child { font-weight: 800; font-size: 1rem; color: var(--gala-dark); }
  .js-store-table td:first-child::before { content: none; }
  .js-store-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--h-muted); }
  .store-map { height: 280px; }
}

/* What's In Store cards: smaller min width on phones */
@media (max-width: 639px) {
  .child_pages { grid-template-columns: 1fr; }
}
