@charset "UTF-8";
/*!
Theme Name: BMM Base S
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bmm_base_s
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

BMM Base S is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

*/

/* Variables
--------------------------------------------- */

:root {
  --color-main: #646645; /* reverted from #797c53 for AA contrast: white/cream on olive and olive links now ~5.4–6:1 */
  --color-light: #f8f3ea;
  --color-accent-1: #c3aa5b;
  --color-accent-2: #7c8e8d;
  --color-accent-3: #cc9e7a;
  --color-white: #fff;
  --color-black: #353131;
  --color-rye: #bb533f;

  --font-heading: "Newsreader", serif;
  --font-body: "Open Sans", sans-serif;
  --font-display: "Newsreader", sans-serif;

  --max-width: 1200px;
  --padding: 40px;
  --radius: 8px;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: var(--color-black);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-black);
  clear: both;
  font-family: var(--font-heading), sans-serif;
  margin: 0 0 1rem 0;
  font-weight: 500;

  &:first-child {
    margin-top: 0;
  }
}

h1 {
  font-family: var(--font-heading), sans-serif;
  font-size: calc(8px * 10);
  line-height: 1em;
  letter-spacing: -3%;
}

.huge {
  font-size: clamp(2rem, 8vw, 7rem);
  font-family: var(--font-display), sans-serif;
  display: inline-block;
  letter-spacing: -0.05em;
}

h2 {
  font-size: calc(8px * 7);
  line-height: 1em;
  letter-spacing: -2%;
  margin-bottom: 0.3em;
  margin-top: 1em;
}

h3 {
  font-size: calc(8px * 5);
  line-height: 1.1em;
  letter-spacing: -2%;
  margin-top: 1em;
}

h4 {
  font-size: calc(8px * 4);
  line-height: 1.15em;
  letter-spacing: -2%;
}

h5 {
  font-size: calc(8px * 2.8);
  margin-bottom: 0;
  line-height: 1.3em;
  letter-spacing: -1%;
}

h6 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3em;
  /* color: var(--color-accent-2); */
}

:is(h1, h2, h3, h4, h5, h6) + :is(h2, h3, h4, h5, h6) {
  margin-top: 0.4rem;
}

/* Eyebrow / kicker label. Visually identical to the old h6 "label" usage, but
   NOT a heading element — so these labels (above an h1, card metadata, etc.)
   stop polluting the screen-reader heading outline (WCAG 1.3.1). Mirrors the
   shared heading rule + the h6 override above. */
.eyebrow {
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.3em;
  margin: 0 0 1rem 0;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.7em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

a {
  text-decoration: none;
}

.underline {
  position: relative;
  display: inline-block;
}

.highlight {
  /* Rye red (4.76:1) for emphasis text — gold-as-text was 2.28:1 (fail). */
  color: var(--color-rye);
  /* font-weight: 600; */
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 200;
  font-style: normal;
  font-size: 70px;
  line-height: 1;
  display: inline-block;
  text-decoration: inherit;
  text-transform: none;
  color: var(--color-accent-1);
  /* vertical-align: -0.125em; */
}

/* Elements
--------------------------------------------- */
/* Clip horizontal overflow on the root too — overflow-x on <body> alone is
   unreliable because the viewport's scroll is governed by <html>. Using
   `clip` (not `hidden`) avoids turning these into scroll containers / forcing
   overflow-y to auto, so the decorative blobs that bleed off-screen
   (.shape-left/.shape-right, .page-bg) are clipped without shifting the page. */
html,
body {
  overflow-x: clip;
}

/* Reserve the scrollbar's space permanently so locking the page when the mobile
   menu opens (html.menu-open { overflow: hidden }) doesn't remove the scrollbar,
   widen the viewport, and shift content. Works with the overflow:hidden lock
   (hidden is still a scroll container) and is a no-op on overlay-scrollbar
   systems (mobile, default macOS), which don't have the jump to begin with. */
html {
  scrollbar-gutter: stable;
}

body {
  background: var(--color-light);
  /* color: var(--color-black); */
  /* font-size: 18px; */
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1em 0;
  padding-left: 0;

  &:last-child {
    margin-bottom: 0;
  }

  & li {
    margin-bottom: 0.5em;
    margin-left: 2em;
  }

  & li::marker {
    color: var(--color-black);
  }
}

ul {
  list-style: square;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: var(--color-main);
  font-weight: 600;
}
a:hover,
a:focus,
a:active {
  /* Dark on hover — gold (--color-accent-1) text on light was 2.28:1 (fail). */
  color: var(--color-black);
  text-decoration: unset;
}

/* Visible keyboard focus indicator (WCAG 2.4.7). Uses :focus-visible so the
   ring only shows for keyboard/AT users, not on mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.accordion-header:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  /* border: 1px solid; */
  /* border-color: #ccc #ccc #bbb; */
  /* border-radius: 3px; */
  /* background: #e6e6e6; */
  /* color: rgba(0, 0, 0, 0.8); */
  /* line-height: 1; */
  /* padding: 0.6em 1em 0.4em; */
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  /* border-color: #ccc #bbb #aaa; */
}
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  color: var(--color-main);
  border: 1px solid var(--color-accent-1);
  border-radius: var(--radius);
  padding: 15px 20px;
  line-height: 1em;
  width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
  border: 1px solid var(--color-accent-2);
  color: #111;
}

select {
  /* border: 1px solid #ccc; */
}

textarea {
  width: 100%;
  height: 140px;
}

.forminator-ui {
  .forminator-row {
    margin-bottom: 1.5em !important;
  }

  .forminator-label {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
  }

  .forminator-radio {
    margin-right: 1em;
  }

  .forminator-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none; /* Safari */
    margin: 0 3px 0 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-accent-1);
    border-radius: 50%;
    background: var(--color-white);
    display: inline-block;
    place-content: center;
    transform: translateY(2px);
    cursor: pointer;
  }

  /* the inner dot */
  .forminator-radio input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent-1);
    transform: scale(0);
    transition: transform 0.12s ease;
  }

  /* .forminator-radio input[type="radio"]:checked {
    border-color: #6b6b3a;
  } */
  .forminator-radio input[type="radio"]:checked::before {
    transform: scale(1);
  }

  /* optional: replace the default focus ring with something on-brand */
  .forminator-radio input[type="radio"]:focus-visible {
    outline: 2px solid #6b6b3a;
    outline-offset: 2px;
  }

  .forminator-error-message {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--color-accent-3);
  }
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/
/* Navigation
--------------------------------------------- */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li {
  position: relative;
  margin: 0;
  list-style: none;
}

/* Top-level links reuse the established nav type: 12px uppercase Open Sans 600 */
.main-menu > li > a {
  display: block;
  text-decoration: none;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.main-menu > li > a:hover,
.main-menu > li:hover > a,
.main-menu > li.focus > a {
  color: var(--color-main);
}

/* Caret affordance on items that open a panel (reuses the loaded Material Symbols font) */
.main-menu .menu-item-has-children > a::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 1.2em;
  line-height: 0;
  vertical-align: -0.18em;
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.main-menu .menu-item-has-children:hover > a::after,
.main-menu .menu-item-has-children.focus > a::after {
  transform: rotate(180deg);
}

/* Dropdown rendered as one cohesive panel anchored under the bar */
.main-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--color-main);
  border-radius: calc(var(--radius) + 4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 10;
}

.main-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--color-main);
}

.main-menu li:hover > .sub-menu,
.main-menu li.focus > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.main-menu .sub-menu li {
  margin: 0;
}

.main-menu .sub-menu a {
  display: block;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-light);
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  border-radius: calc(var(--radius) - 2px);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-menu .sub-menu a:hover {
  background: var(--color-light);
  color: var(--color-dark);
}

/* Hamburger toggle — shown on small screens only */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle:hover {
  background: transparent;

  & span,
  & span::before,
  & span::after {
    background: var(--color-light) !important;
  }
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--color-light) !important;
  border-radius: 2px;
  transform: translateX(-50%);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}
.menu-toggle-bars {
  top: 50%;
  margin-top: -1px;
}
.menu-toggle-bars::before {
  top: -7px;
}
.menu-toggle-bars::after {
  top: 7px;
}
.main-navigation.toggled .menu-toggle-bars {
  background: transparent !important;
}
.main-navigation.toggled .menu-toggle-bars::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
  background: var(--color-black) !important;
}
.main-navigation.toggled .menu-toggle-bars::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
  background: var(--color-black) !important;
}
.main-navigation.toggled .menu-toggle:hover .menu-toggle-bars::after,
.main-navigation.toggled .menu-toggle:hover .menu-toggle-bars::before {
  background: var(--color-light) !important;
}
/* .taptap-by-bonfire .sub-menu a {
  padding: 3px 0;
} */

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}
.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}
.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}
.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */

main {
  position: relative;
  padding-bottom: calc(var(--padding) * 2);
}

.sticky {
  display: block;
}

.post,
.page {
  margin: 0;
  position: relative;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.3s ease;
}

/* Scrolled: translucent white bar (no drop shadow, per theme) */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
}

/* Hero templates: header overlays the hero (transparent) until the user scrolls */
.page-template-page-template-pillar .site-header {
  position: fixed;
  background: transparent;
}

.home .site-header.is-scrolled,
.page-template-page-template-pillar .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.7);
}

/* Pillar contrast false-positive fix - leave it */
.page-template-page-template-pillar #page {
  background-color: var(--color-black);
}
.page-template-page-template-pillar .site-main {
  background-color: var(--color-light);
}

/* Pillar hero is dark: keep links light until the bar turns solid */
.page-template-page-template-pillar
  .site-header:not(.is-scrolled)
  .main-menu
  > li
  > a {
  color: var(--color-light);
}
.page-template-page-template-pillar
  .site-header:not(.is-scrolled)
  .main-menu
  > li
  > a:hover {
  color: var(--color-white);
}
.page-template-page-template-pillar
  .site-header:not(.is-scrolled)
  .menu-toggle-bars,
.page-template-page-template-pillar
  .site-header:not(.is-scrolled)
  .menu-toggle-bars::before,
.page-template-page-template-pillar
  .site-header:not(.is-scrolled)
  .menu-toggle-bars::after {
  background: var(--color-light);
}

/* Header inner row */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--padding);
  width: 100%;
  padding: 4px var(--padding);
  transition: padding 0.3s ease;
}
.site-header.is-scrolled .nav-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-category a {
  color: var(--color-main);
  text-decoration: none;

  &:hover {
    color: var(--color-white);
  }
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding a {
  display: block;
  line-height: 0;
}

.site-branding img {
  height: 68px;
  width: auto;
  max-width: none;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .site-branding img {
  height: 44px;
}

/* Logo swap is handled in navigation.js by swapping the single <img>'s src
   (white over the dark pillar hero, color once the bar turns solid) — so there's
   no second, hidden logo image in the DOM. Sizing is handled by .site-branding img
   above. */

/* Mobile navigation: hamburger + full-screen overlay */
@media only screen and (max-width: 900px) {
  /* Lock the page behind the open overlay so it can't scroll independently.
     Locks <html> (the real scroll container here — body overflow doesn't
     propagate to the viewport because html uses overflow-x: clip). Scoped to
     the media query so a resize past the breakpoint auto-unlocks. */
  html.menu-open {
    overflow: hidden;
  }

  .menu-toggle {
    display: block;
    z-index: 110;
  }

  .main-navigation .main-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    /* `safe` centers when the menu fits, but falls back to top-aligned
       (nothing clipped) once it's taller than the screen and must scroll */
    justify-content: safe center;
    align-items: center;
    gap: 8px;
    background: var(--color-light);
    padding: 80px var(--padding) var(--padding);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
    z-index: 105;
  }

  .main-navigation.toggled .main-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-menu li {
    width: 100%;
    text-align: center;
  }
  /* Parent items use the h5 type style in the overlay */
  .main-menu > li > a {
    color: var(--color-main) !important;
    padding: 4px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: calc(8px * 2.8);
    font-weight: 500;
    line-height: 1.3em;
    letter-spacing: -1%;
    text-transform: none;

    &:hover {
      color: var(--color-black) !important;
    }
  }

  /* Panels become inline, always-open accordions in the overlay */
  .main-menu .sub-menu:after {
    content: "";
    display: block;
    width: 100px;
    height: 1px;
    background: var(--color-accent-1);
    margin: 16px auto 12px auto;
  }

  .main-menu .sub-menu,
  .main-menu li:hover > .sub-menu,
  .main-menu li.focus > .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 0 0 6px;
    transition: none;
  }

  /* Only make sub-menu links interactive while the menu is open. When closed,
     the sub-menu inherits the overlay's visibility:hidden (and the desktop
     base rule's pointer-events:none) so its links can't be tapped by mistake. */
  .main-navigation.toggled .main-menu .sub-menu {
    visibility: visible;
    pointer-events: auto;
  }
  .main-menu .sub-menu::before {
    display: none;
  }
  .main-menu .menu-item-has-children > a::after {
    display: none;
  }
  .main-menu .sub-menu a {
    color: var(--color-main);
  }
  .main-menu .sub-menu a:hover {
    background: transparent;
    color: var(--color-black);
  }

  /* When the overlay is open the bars sit on a light panel, so keep them dark */
  /* .page-template-page-template-pillar
    .main-navigation.toggled
    .menu-toggle-bars,
  .page-template-page-template-pillar
    .main-navigation.toggled
    .menu-toggle-bars::before,
  .page-template-page-template-pillar
    .main-navigation.toggled
    .menu-toggle-bars::after {
    background: var(--color-main);
  } */
}

.vertical {
  pointer-events: none;
  position: absolute;
  height: 100%;
  width: 100%;
  overflow-y: hidden;
}
.vertical h1 {
  opacity: 0.05;
  white-space: nowrap;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  position: absolute;
  top: -100px;
  left: -30px;
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
  z-index: 50;
  font-size: 200px;
  margin-bottom: 0;
}

button,
.button {
  display: inline-block;
  border: unset;
  padding: 1em 2em;
  font-family: var(--font-body);
  /* font-size: 20px; */
  line-height: 1.3em;
  text-decoration: unset;
  /* text-transform: uppercase; */
  color: var(--color-white);
  background: var(--color-main);
  font-weight: 700;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  /* font-size: calc(14px); */
  /* font-weight: 900; */
  /* letter-spacing: 0.1em; */
  cursor: pointer;
  transition: 0.3s;

  &:hover {
    /* Charcoal hover bg (not gold) — white text on gold was 2.28:1 (fail);
       white on --color-black is ~13:1. Gold stays a decorative color only. */
    background: var(--color-black);
    color: var(--color-white) !important;
  }

  &.button-alt {
    background: unset;
    border: unset;
    color: var(--color-main) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0;

    &::after {
      content: "east";
      font-family: "Material Symbols Outlined";
      font-weight: 300;
      font-size: 2em;
      line-height: 1;
      transition: transform 0.3s;
      /* border: 2px solid;
      border-radius: 50%; */
    }

    &:hover {
      background: unset;
      border: unset;
      color: var(--color-black) !important;
      transition: 0.3s;

      &::after {
        transform: translateX(2px);
      }
    }
  }
}

.button-disabled {
  cursor: default;
  pointer-events: none;

  &::after {
    opacity: 0;
  }
}

.button-alt {
  color: var(--color-white) !important;

  &:hover {
    background: var(--color-white);
    border: 1px solid var(--color-white);
    color: var(--color-black) !important;
    transition: 0.3s;
  }
}

.wrapper {
  width: var(--max-width);
  max-width: calc(100% - var(--padding) * 4);
  margin-left: auto;
  margin-right: auto;
  /* padding: 0 var(--padding); */
}

.content {
  padding: 0;
  text-wrap: balance;
}

.frame {
  /* overflow: hidden; */
  position: absolute;
  top: 0;
  left: calc(50% + var(--padding) / 2);
  width: calc(var(--max-width) / 2 - var(--padding) / 2);
  height: calc(100% + calc(var(--padding) * 3));

  .round-bottom {
    border-radius: 0 0 1000px 1000px;
    /* width: 100%; */
    /* height: 100%; */
    object-fit: cover;
    position: absolute;
    width: calc(100% - var(--padding));
    max-width: 500px;
    height: 100%;
    top: 0;
    left: 0;
    /* aspect-ratio: 3/4;  */
  }
}

.page-bg {
  position: absolute;
  top: calc(var(--padding) * 2);
  left: -50vw;
  width: 100vw;
  height: 100vh;
  z-index: -1;

  & img {
    max-width: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1) opacity(0.2);
  }

  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    opacity: 1;
  }
}

.top-shape.shape-left {
  /* position: absolute; */
  z-index: -1;
  /* left: 0;
  transform: translateX(-50%) scale(-1, -1) rotate(-5deg);
  top: 20%;
  width: 20vw; */

  position: absolute;
  left: 0;
  transform: translateX(-10%) rotate(40deg);
  top: -15%;
  width: 25vw;
  opacity: 0.7;
}

.top-shape.shape-right {
  position: absolute;
  z-index: -1;
  right: 0;
  transform: translateX(70%) rotate(-20deg);
  top: -10%;
  width: 20vw;
}

.top {
  /* max-width: 1300px; */
  padding: calc(var(--padding) * 4) 0px calc(var(--padding) * 1) 0px;
  margin: 0 auto;
  margin-top: 0 !important;
  position: relative;
  /* overflow: hidden; */

  .shape-left {
    position: absolute;
    z-index: 10;
    left: 0;
    transform: translateX(-60%) scale(-1, -1) rotate(-530deg);
    top: -10%;
    width: 40vw;
    max-width: 400px;
    /* opacity: 0.6; */
  }

  .shape-right {
    position: absolute;
    z-index: 10;
    right: 0;
    transform: translateX(40%);
    top: 20%;
    width: 30vw;
    max-width: 280px;
  }
  & img.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1) contrast(1.5) grayscale(1);
    /* mix-blend-mode: exclusion; */
    mix-blend-mode: multiply;
  }

  .content {
    margin: 0 auto;
    padding-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 4;
    /* max-width: 700px; */

    /* & h5 {
      max-width: 400px;
      margin-top: 2rem;
    } */
  }
}

.top.height-100 {
  height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--padding);
  margin-bottom: calc(var(--padding) * 2);
  background: var(--color-black);

  & * {
    color: var(--color-light);
  }

  .hero-bg {
    filter: brightness(0.5) contrast(1) grayscale(1);
    mix-blend-mode: lighten;
  }

  .top-shape {
    z-index: 2;

    &.shape-left {
      top: 0%;
      width: 30vw;
      max-width: 600px;
    }

    &.shape-right {
      transform: translateX(80%) rotate(-20deg);
      max-width: 400px;
    }
  }

  .content {
    max-width: 600px;
  }

  .scroll-down {
    position: absolute;
    bottom: var(--padding);
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      border-color 0.3s,
      opacity 0.3s;
    animation: bounce-down 2s ease-in-out infinite;
  }

  .scroll-down:hover {
    border-color: rgba(255, 255, 255, 0.8);
  }
}

@keyframes bounce-down {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* Alternate full-screen home hero: small_image as a full-bleed background with
   the label/title/intro centered. Scoped to .home .top.top-fullscreen so it
   wins over the base .top and the responsive .home .top arch overrides.
   Basic version — refine art direction (overlay strength, type colors) later. */
.home .top.top-fullscreen {
  position: relative;
  height: calc(100vh - var(--padding) * 2);
  min-height: 600px;
  margin: 0;
  padding: var(--padding) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-black);
  /* align-items: center; */
  /* text-align: center; */
  /* overflow: hidden; */
}

.home .top.top-fullscreen .shape-left {
  opacity: 0.7;
}

.home .top.top-fullscreen .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: unset;
  mix-blend-mode: unset;
}

/* Subtle scrim for text legibility over the photo — remove/adjust as needed. */
.home .top.top-fullscreen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.home .top.top-fullscreen .content {
  position: relative;
  z-index: 2;
  /* margin: unset; */
  text-align: left;
  z-index: 10;
  position: relative;
  padding: calc(var(--padding) * 3) 0 calc(var(--padding) * 2) 0;
}

.home .top.top-fullscreen .content h1 {
  font-size: clamp(9 * 8px, 7vw, 11 * 8px) !important;
}

.home .top.top-fullscreen .content * {
  color: var(--color-light);
  min-width: 300px;
  max-width: 50vw;
}

.home .top.top-fullscreen + section {
  margin-top: calc(var(--padding) * -1) !important;

  .card .icon img {
    outline: 8px solid var(--color-light);
    border-radius: 50%;
  }
}

.page-top {
  margin-top: calc(var(--padding) * 4) !important;

  &.two-columns {
    align-items: end;

    .right-column {
      margin-bottom: 2em;
    }
  }
}

/* .below-top {
  margin-top: calc(var(--padding) * -2);
} */

.video-container {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  overflow: hidden;

  & iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
  }
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--padding);
}
/* With 5+ cards, cap the grid at 3 columns by forcing each track to be at
   least one-third of the row (minus the 2 gaps). Stays responsive: on narrow
   screens the 240px min wins, and min(100%, …) prevents overflow. */
.cards-section:has(.card:nth-child(5)) {
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, max(240px, calc((100% - 2 * var(--padding)) / 3))), 1fr)
  );
}
/* Exactly 4 cards: by default cap at 2 tracks so an uneven 3+1 can never
   happen — each track is at least half the row (minus its single gap), which
   forbids a 3rd column. Gives a balanced 2×2, collapsing to 1 when narrow. */
.cards-section:has(.card:nth-child(4)):not(:has(.card:nth-child(5))) {
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, max(240px, calc((100% - var(--padding)) / 2))), 1fr)
  );
}
/* Once there's room for all four on one row, restore the default auto-fit so
   4 fit. The wrapper's inner width reaches 1080px (4×240 + 3×40) around a
   1160px viewport in theory, but the scrollbar (~15px) — counted by the media
   query but not by the content-box %s — pushes the real threshold to 1175px. */
@media (min-width: 1101px) {
  .cards-section:has(.card:nth-child(4)):not(:has(.card:nth-child(5))) {
    grid-template-columns: repeat(auto-fit, minmax(min(10px, 100%), 1fr));
  }
}
.cards-section .card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  padding-bottom: var(--padding);
  border-bottom: 1px solid var(--color-accent-1);
  transition: 0.3s;

  /* fill all space above the button so it pins to the card bottom */
  .card-body {
    flex: 1 1 auto;
  }

  /* keep the button sized to its content instead of stretching full-width */
  > .button,
  > .card-link {
    align-self: flex-start;

    /* stretched link: expand this anchor's hit area to fill the whole card
       (the card is position: relative), so a click anywhere on the card
       follows the link — without wrapping all the markup in one giant <a>
       that screen readers would announce as a single unwieldy link. */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
    }
  }

  /* only flag the card as clickable when it actually has a link */
  &:has(> .button, > .card-link) {
    cursor: pointer;
  }

  &:hover {
    /* background: #eee; */
    transform: translateY(-2px);

    .button-alt {
      color: var(--color-black) !important;
    }
  }

  .icon img {
    width: 100px;
    margin-bottom: 1em;
  }

  .card-link {
    color: var(--color-light);
    text-decoration: unset;
    font-weight: 600;
    /* float: right; */

    &:hover {
      color: var(--color-main);
      transition: 0.3s;
    }
  }
}

.news-card .card-img {
  width: calc(100% + var(--padding));
  max-width: calc(100% + var(--padding));
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  transform: translate(calc(var(--padding) / -2), calc(var(--padding) / -2));
}

.cards-section .card:has(.card-img) {
  background-color: var(--color-white);
  /* border: 1px solid var(--color-accent-1); */
  border: unset;
  padding: 16px;
  border-radius: calc(var(--radius) * 2);

  .card-content {
    margin-top: 1em;
    padding: calc(var(--padding) / 2);

    & p:last-child {
      margin-bottom: 0;
    }
  }
}

.cards-section .card-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  /* transform: translate(calc(var(--padding) / -2), calc(var(--padding) / -2)); */
}

/* ── Image-background card grid (per-grid "Image Background" style) ── */
.cards-section--image-bg .card {
  aspect-ratio: 3 / 4;
  background-color: var(--color-black) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 30px !important;
  color: var(--color-light);
  isolation: isolate;
  border-radius: var(--radius);

  .card-content {
    margin-top: 0 !important;
    padding: 0 !important;
    padding-bottom: 0.5em !important;
  }

  .button-alt:hover {
    color: var(--color-black) !important;
  }
}

/* the body shouldn't grow here — let justify-content: flex-end cluster
   the content + link at the bottom of the image (selector depth matches the
   base `.cards-section .card .card-body` rule so this actually wins) */
.cards-section--image-bg .card .card-body {
  flex: 0 0 auto;
}

/* Image fills the whole card and sits behind everything */
.cards-section--image-bg .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transform: none;
  /* cancel the standard card's offset */
  z-index: -2;
  transition: transform 0.4s ease;
}

.cards-section--image-bg .card:hover .card-img {
  transform: scale(1.04);
}

/* Dark gradient overlay for text legibility */
.cards-section--image-bg .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: -1;
}

/* Link text needs to read on the dark image, not the default dark green */
.cards-section--image-bg .card .button,
.cards-section--image-bg .card .card-link {
  color: var(--color-light) !important;
}

.cards-section--image-bg .card h6,
.cards-section--image-bg .card .eyebrow,
.cards-section--image-bg .card .card-content,
.cards-section--image-bg .card .card-content * {
  color: var(--color-light);
}

.cards-section:has(.news-card) {
  grid-template-columns: repeat(3, 1fr);
}

/* News card clickable wrapper */
.news-card .card-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.news-card .card-link-wrapper:hover,
.news-card .card-link-wrapper:focus {
  text-decoration: none;
  color: inherit;
}

.news-card .card-content {
  margin-bottom: 1rem;
}

/* Distillery filters */
.distillery-filters {
  display: flex;
  gap: calc(var(--padding) / 3);
  padding: var(--padding) var(--padding) 0;
  flex-wrap: wrap;
}

.distillery-filters input,
.distillery-filters select {
  font-family: var(--font-body);
  font-size: calc(8px * 2);
  padding: 8px 12px;
  border: 1px solid var(--color-accent-1);
  background: var(--color-white);
  color: var(--color-main);
  flex: 1;
  min-width: 1calc (var(--padding) * 2);
}

.distillery-filters input:focus,
.distillery-filters select:focus {
  outline: none;
  border-color: var(--color-main);
}

.distillery-no-results {
  padding: var(--padding);
  color: var(--color-main);
  text-align: center;
}

/* Distillery card grid */
.distillery-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--padding) / 1);
  padding: var(--padding);
}

.distillery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: calc(var(--padding) / 2); */
  padding-top: 10px;
  border-top: 2px solid var(--color-accent-1);
  /* border-radius: var(--radius); */
  text-decoration: none;
  color: inherit;
  /* background: var(--color-white); */
  transition: 0.3s;
}

.distillery-card:hover {
  background: var(--color-light);
  transform: translateY(-2px);
}

.distillery-card-top {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
}

.distillery-card-top h4 {
  margin-top: 5px;
  margin-bottom: 0;
  padding-top: 10px;
  width: 100%;
  border-top: 1px solid var(--color-accent-2);
}

.distillery-card-address {
  margin: 0;
  /* color: var(--color-accent-2); */
}

.distillery-card-bottom {
  margin-top: auto;
  /* padding-top: calc(var(--padding) / 2); */
}

.distillery-card-bottom .card-link {
  display: inline-block;
  margin-top: 0.75em;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: calc(8px * 1.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.card-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-main);
  /* padding: 2px 8px; */
  /* border-radius: 50px; */
  /* border: 1px solid; */
  /* background: var(--color-accent-1); */
  display: inline-block;
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* margin: 0.2rem 0; */
}

.card-labels .card-label {
  border: 1px solid var(--color-main);
  /* background: var(--color-accent-2); ; */
  padding: 2px 8px;
  border-radius: 50px;
  color: var(--color-main);

  &.pa-rye-family,
  &.spirit-monongahela-rye {
    border: 1px solid var(--color-rye);
    color: var(--color-rye);
  }
}

section {
  margin-top: calc(var(--padding) * 2) !important;
  position: relative;
  z-index: 2;

  &.has-lines {
    z-index: 1;
  }
}

.filled-section {
  position: relative;
  padding: 0;
  /* width: 100%; */
  /* max-width: calc(var(--max-width) - var(--padding) * 2); */
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;

  & img {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
  }

  .two-columns {
    color: var(--color-white);
    margin: 0 auto;
    position: relative;
    align-items: stretch;
    gap: 0;
  }
  &.filled-section--right .right-column,
  &.filled-section--left .left-column {
    position: relative;
    background: var(--color-accent-3);
    border-top: unset !important;
    overflow: hidden;

    &:before {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0%;
      left: 50%;
      background: url(/wp-content/themes/bmm_base_s/images/bg-lines-light.svg);
      background-size: 100%;
      background-repeat: no-repeat;
      background-position: bottom left;
      transform: rotate(60deg);
    }

    .content {
      padding: calc(var(--padding) * 1.5) var(--padding) var(--padding)
        var(--padding);
      position: relative;
      z-index: 2;

      & > * {
        color: var(--color-black);
      }
    }
  }
  &.filled-section--left .left-column:before {
    left: -40%;
    transform: rotate(-110deg);
  }

  .button {
    margin-top: 1em;
    background-color: var(--color-black);
    color: var(--color-light);
    transition: 0.3s;
  }
  .button:hover {
    color: var(--color-main) !important;
    background: #fff;
  }
}

.image-above-content {
  background: var(--color-light);
  color: var(--color-main);
  position: relative;
  display: inline-block;
  width: calc(100% - var(--padding) * 4);
  margin-left: calc(var(--padding) * 2);
  /* margin-top: 0px !important; */
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 10;

  .two-column .content {
    padding: 0;
  }

  .highlight {
    color: var(--color-main);
  }

  & h6,
  & .eyebrow {
    color: var(--color-main);
  }

  .two-columns .left-column:has(.content),
  .two-columns .right-column:has(.content) {
    border-top: 1px solid var(--color-accent-2);
  }

  .cards-section {
    .card {
      padding: var(--padding);
      /* background: var(--color-light); */
      border: 1px solid;

      .huge {
        margin-bottom: -0em;
        padding-bottom: 0;
        line-height: 1em;
      }
    }
  }

  .image {
    position: relative;

    &:after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 3;
      background: linear-gradient(
        to top,
        var(--color-light) 0%,
        transparent 100%
      );
    }
  }
  & img:not(.icon img) {
    width: 100%;
    max-width: unset;
    aspect-ratio: 3/1;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .wrapper {
    position: relative;
    z-index: 10;
    max-width: var(--max-width);
    padding: 0 var(--padding);
    margin: 0 auto;
    margin-top: calc(var(--padding) * -2);
  }

  .accordion {
    .accordion-header {
      background: unset;
      max-width: unset;

      &:hover {
        border-top: 1px solid var(--color-accent-2);
      }
    }
  }
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--padding);
  /* max-width: var(--max-width); */
  align-items: center;
  /* padding: 0 var(--padding); */
  margin: 0 auto;
  position: relative;
  z-index: 11;

  .cards-section {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .left-column.middle,
  .right-column.middle {
    align-self: center;
  }
  .left-column .image,
  .right-column .image {
    height: 100%; /* padding-left: 60px; */
  }

  .left-column:has(.image),
  .right-column:has(.image) {
    text-align: center;
  }

  .left-column img:not(.icon img):not(.content p img),
  .right-column img:not(.icon img):not(.content p img) {
    height: 100%;
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    aspect-ratio: 1;
    border-radius: 250px;
    outline: 1px solid var(--color-accent-1);
    outline-offset: 16px;
  }
  &.no-padding .content {
    padding: 0;
  }

  .left-column p img,
  .right-column p img {
    width: 100%;
    max-width: unset;
    border-radius: var(--radius);
  }
}

.scale-up {
  transform: scale(1.3);
}

.has-lines {
  .shape-left {
    position: absolute;
    left: 0;
    transform: translateX(-50%) scale(-1, -1) rotate(-120deg);
    top: -30%;
    width: 40vw;
    opacity: 0.6;
    z-index: -1;
  }
  .shape-right {
    position: absolute;
    right: 0;
    transform: translateX(75%) rotate(20deg);
    top: -10%;
    width: 55vw;
  }

  .left-column,
  .right-column {
    position: relative;
    z-index: 2;

    .image img {
      border-radius: 300px 300px var(--radius) var(--radius) !important;
      aspect-ratio: 3/4 !important;
      outline: unset !important;
    }
  }
}

.right-column img {
  width: 100%;
  max-width: unset;
}

.left-column img {
  max-width: 100%;
}

/* Divider
--------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 40px;
  /* padding-top: 60px; */
  /* padding-bottom: 60px; */
}

/* Sides take equal space so the image (and the center line) stay centered.
   Their content hugs the image: line + text grouped toward the middle. */
.divider-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}
.divider-side--left {
  justify-content: flex-end;
}
.divider-side--right {
  justify-content: flex-start;
}
.divider-side h6,
.divider-side .eyebrow {
  margin: 0;
  text-align: left;
}

.divider-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider-center img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 50%;
  outline: 1px solid var(--color-accent-1);
  outline-offset: 16px;
}

/* Short line that sits just outside the text, next to the image */
.divider-line {
  display: block;
  flex: 0 0 auto;
  width: 100px;
  height: 1px;
  /* margin: 0 var(--padding); */
  background: var(--color-accent-1);
}

/* Line shown in the center when there is no image */
.divider--no-image .divider-center {
  flex: 1;
}
.divider-line--center {
  width: 100%;
}

@media only screen and (max-width: 600px) {
  .divider {
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .divider-center img {
    width: 140px;
    height: 140px;
    outline-offset: 10px;
  }
  .divider-line {
    width: 40px;
  }
}

.three-columns {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1300px;
  padding: 0 50px;
  margin: 0 auto;
  align-items: stretch;

  .first-column,
  .second-column,
  .third-column {
    flex: 0 0 33.333%;
    border: 2px solid var(--color-main);
    background: var(--color-main);
    color: var(--color-white);
    justify-self: center;
  }
  .first-column .content,
  .second-column .content,
  .third-column .content {
    padding: 60px 30px;
  }
}

.single-column {
  position: relative;
  /* max-width: var(--max-width); */
  /* padding: 0 var(--padding); */
  margin: 0 auto;
  display: grid;
  gap: var(--padding);
  grid-template-columns: repeat(12, 1fr);

  &:before {
    /* content: ""; */
    position: relative;
    grid-column: 1 / span 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent-3);
    z-index: -1;
  }

  &.video {
    max-width: var(--max-width);
    /* padding: 0; */
    position: relative;
    z-index: 12;
  }

  .content {
    padding-top: 0;
    padding-bottom: 0;
    grid-column: 3 / span 8;
    position: relative;
    /* column-count: 2; */

    & > * {
      /* padding: 0 25%; */
    }

    & div {
      padding: 0;
    }
  }
}

/* Single post specific styles */
.single .single-column .content {
  text-wrap: unset;
}

.single .single-column .content h2:not(:first-child),
.single .single-column .content h3:not(:first-child),
.single .single-column .content h4:not(:first-child),
.single .single-column .content h5:not(:first-child),
.single .single-column .content h6:not(:first-child) {
  padding-top: 2rem;
}

/* CTA Styling */
.cta {
  background: var(--color-main);
  padding: var(--padding);
  border-radius: var(--radius);
  text-align: center;
  margin: 0 auto;
  overflow: hidden;

  & * {
    color: var(--color-light);
  }

  .top-shape {
    opacity: 1;

    &.shape-left {
      transform: translateX(-30%) rotate(40deg);
    }

    &.shape-right {
      transform: translateX(40%) rotate(-20deg);
    }
  }

  .cta-title {
    font-weight: 500;
  }

  .button {
    background: var(--color-light);
    color: var(--color-main);

    &:hover {
      background: var(--color-black);
      color: var(--color-light);
    }
  }
}

.newsletter-signup {
  /* padding: var(--padding) 0; */
  /* max-width: calc(var(--max-width) - var(--padding) * 2); */
  /* margin: 0 auto; */

  .separator {
    width: 100%;
    text-align: center;
    position: relative;
    margin-bottom: var(--padding);

    .badge {
      width: 160px;
    }

    &::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      height: 1px;
      background: var(--color-accent-1);
      z-index: -1;
    }
  }

  .two-columns {
    align-items: start;
  }
}

/* Accordion Styling */
.accordion-section {
  max-width: var(--max-width);
  margin: 0 auto;
}

.accordion {
  overflow: hidden;

  .accordion-item:last-child {
    border-bottom: none;
  }

  .accordion-header {
    background: var(--color-white);
    padding: calc(var(--padding) / 2) var(--padding);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid #ccc;

    &:hover {
      border-top: 1px solid var(--color-main);

      .accordion-title {
        transform: translateX(-10px);
      }
    }
  }

  .accordion-header[aria-expanded="true"] {
    border-top: 1px solid var(--color-light);
  }

  .accordion-title {
    margin: 0;
    transition: all 0.3s ease;
  }

  .accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease;

    .accordion-body {
      padding: calc(var(--padding) / 2) var(--padding);
      padding-top: 0;
      max-width: 1000px;
      margin: auto;
      max-height: 1000px;
    }
  }

  .material-icons {
    transition: transform 0.3s ease;
  }

  .accordion-header[aria-expanded="true"] .material-icons {
    /* transform: rotate(45deg); */
  }
}

.site-footer {
  background: var(--color-main);
  /* padding-top: calc(var(--padding) * 2); */
  padding-bottom: 20px;
  /* margin-top: calc(var(--padding) * 2); */

  & * {
    color: var(--color-light);
  }

  & a {
    color: var(--color-light);

    &:hover {
      color: var(--color-white);
    }
  }

  .footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--padding);
    padding-top: calc(var(--padding) * 1.5);
    text-align: left;
    color: var(--color-white);
  }
  .footer-column .content {
    color: var(--color-light);

    .button-alt {
      margin-top: 0;
      color: var(--color-light) !important;

      &:hover {
        color: var(--color-white) !important;
      }
    }
  }
  .footer-column a {
    color: var(--color-light);
  }
  .social-icons {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: end;
  }
  .social-icons a {
    display: inline-flex;
    color: var(--color-white);
  }
  .social-icons a:hover {
    color: var(--color-accent-1);
  }

  .social-icons svg {
    width: 36px;
    height: 36px;
  }

  .social-icons svg path {
    fill: var(--color-light);
  }

  .social-icons svg:hover path {
    fill: var(--color-white);
  }

  @media (max-width: 768px) {
    .footer-columns {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: center;
    }
  }
  .wp-block-columns .wp-block-column {
    color: var(--color-white);
    padding: 0 30px;
  }
  .wp-block-columns .wp-block-column .button {
    background: #fff;
    font-size: 16px;
    padding: 8px 18px;
  }
  .wp-block-columns .wp-block-column .button:hover {
    background: unset;
    color: #fff;
  }
  .bottom-info {
    color: var(--color-white);
  }
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}
.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 0em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/
/* Jetpack infinite scroll
--------------------------------------------- */
/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

.facetwp-facet {
  margin-bottom: 0px !important;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
/* Accessibility
--------------------------------------------- */
/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;
  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;
  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* Region Map
--------------------------------------------- */

.region-map-section {
  /* Break out of the constraining section to full viewport width… */
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}

.region-map-wrap {
  /* …then cap + center the map itself. */
  max-width: 1100px;
  width: calc(100% - (var(--padding) * 2));
  margin: 0 auto;
  position: relative;
}

.region-map {
  width: 100%;
  height: auto;
  display: block;
}

.region-map .region-link path {
  cursor: pointer;
  transition:
    filter 0.2s,
    stroke-width 0.2s;
  fill: var(--color-light);
  /* fill: #cc9e7a; */
  /* fill: var(--color-accent-1); */
  stroke: var(--color-accent-1);
  stroke-width: 1;
  transition: all 0.2s;
}

.region-map .region-link:hover path,
.region-map .region-link:focus path {
  fill: var(--color-accent-1);
}

.region-map .region-link-label {
  pointer-events: none;
}

.region-map .region-link-label .region-thumb-border {
  fill: none;
  stroke: var(--color-accent-1);
  stroke-width: 2;
  transition: all 0.2s;
}

.region-map .region-label {
  font-size: 11px;
  fill: var(--color-main);
  font-weight: 600;
}

.region-map .region-link-label.is-hovered .region-thumb-border {
  stroke: var(--color-white);
}

.region-map .region-link-label.is-hovered text {
  fill: var(--color-white);
}

/* Featured Distillers Slider
--------------------------------------------- */
.featured-distillers-slider {
  position: relative;
  padding: calc(var(--padding) * 2) 0;
  overflow: hidden;
}

.featured-distillers-slider .slider-track {
  position: relative;
  width: 100%;
  min-height: 420px;
}

.featured-distillers-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.featured-distillers-slider .slide.active {
  opacity: 1;
  pointer-events: auto;
}

.featured-distillers-slider .slide-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding);
}

.featured-distillers-slider .slide-image {
  flex: 0 0 3calc (var(--padding) * 2);
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  /* border: 2px solid var(--color-accent-2); */
  outline: 1px solid var(--color-accent-1);
  outline-offset: 16px;
  /* box-shadow: 0 0 0 16px rgba(124, 142, 141, 0.15); */
}

.featured-distillers-slider .slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-distillers-slider .slide-name,
.featured-distillers-slider .slide-city {
  flex: 1;
  text-align: center;
}

.featured-distillers-slider .slide-name {
  text-decoration: none;
}

.featured-distillers-slider .slide-city {
}

.featured-distillers-slider .slide-name h6,
.featured-distillers-slider .slide-city h6 {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
  color: var(--color-main);
}

.featured-distillers-slider .slider-prev,
.featured-distillers-slider .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--color-accent-2);
  color: var(--color-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition:
    background 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.featured-distillers-slider .slider-prev {
  left: var(--padding);
}

.featured-distillers-slider .slider-next {
  right: var(--padding);
}

.featured-distillers-slider .slider-prev:hover,
.featured-distillers-slider .slider-next:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.featured-distillers-slider .slider-playpause {
  position: absolute;
  bottom: var(--padding);
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 1px solid var(--color-accent-2);
  color: var(--color-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition:
    background 0.2s,
    color 0.2s;
}

.featured-distillers-slider .slider-playpause .material-icons {
  font-size: 1.4rem;
}

.featured-distillers-slider .slider-playpause:hover {
  background: var(--color-main);
  color: var(--color-white);
}

.single-distillery {
  .page-top {
    align-items: center;

    .distillery-spirits .card-label {
      text-decoration: none;
      background: var(--color-light);
      transition: 0.2s;
    }

    .distillery-spirits .card-label:hover {
      background: var(--color-main);
      color: var(--color-light);
    }

    .distillery-spirits .card-label.pa-rye-family:hover,
    .distillery-spirits .card-label.spirit-monongahela-rye:hover {
      background: var(--color-rye);
    }

    .right-column {
      text-align: center;
    }

    & img {
      border-radius: unset !important;
      outline: unset !important;
      outline-offset: unset !important;
      aspect-ratio: unset !important;
      max-width: 200px !important;
    }
  }
  .card:not(.newsletter-signup .card) {
    border-bottom: unset;
    padding-bottom: 0;
    padding-top: var(--padding);
    border-top: 1px solid var(--color-accent-1);
  }
  .newsletter-signup .card {
    border-bottom: unset;
    padding-bottom: 0;
  }
  .distillery-map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-accent-1);
    width: 100%;
    aspect-ratio: 5/2;
  }

  .distillery-map-embed iframe {
    display: block;
    /* padding: 8px; */
    background: var(--color-light);
  }
}

/* ── Archive map layout ── */
.archive-map-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 0 var(--padding);
  margin-top: var(--padding) !important;
}

/* ── Filter bar ── */
.archive-filter-bar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  /* border-bottom: 1px solid var(--color-accent-1); */
  /* background: var(--color-light); */
  flex-shrink: 0;
}

.archive-filter-bar select {
  padding: 7px 12px;
  border: 1px solid var(--color-accent-1);
  border-radius: var(--radius);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-main);
  cursor: pointer;
  min-width: 160px;
}

.archive-filter-bar select:focus {
  outline: none;
  border-color: var(--color-main);
}

.archive-filter-bar .region-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-main);
}

.archive-filter-bar .region-toggle input {
  accent-color: var(--color-accent-1);
}

.region-info-box {
  position: absolute;
  background: white;
  border: 1px solid var(--color-accent-1);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-main);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -100%);
  margin-top: -10px;
  white-space: nowrap;
}

/* ── Main split layout ── */
.archive-map-body {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent-1);
  background: var(--color-light);
}

/* ── Sidebar ── */
.archive-sidebar {
  width: 380px;
  flex-shrink: 0;
  /* background: var(--color-light); */
  /* border-right: 1px solid var(--color-accent-1); */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.archive-sidebar .sidebar-header {
  padding: 16px;
  /* border-bottom: 1px solid var(--color-accent-1); */
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-main);
  letter-spacing: 0.03em;
}

.archive-sidebar .sidebar-header strong {
  color: var(--color-main);
  font-weight: 600;
}

.sidebar-search {
  /* padding: 12px 16px; */
  /* border-bottom: 1px solid var(--color-accent-1); */
  flex-shrink: 1;
  width: 100%;
  text-align: right;
}

.sidebar-search input {
  width: 100%;
  max-width: 300px;

  padding: 8px 12px;
  border: 1px solid var(--color-accent-1);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-main);
  background: var(--color-light);
}

.sidebar-search input:focus {
  outline: none;
  border-color: var(--color-main);
}

.archive-sidebar .cards-list {
  overflow-y: auto;
  flex: 1;
  padding: 0 16px;
  display: block;
  /* flex-direction: column; */
  /* gap: 10px; */
}

.archive-sidebar .cards-list::-webkit-scrollbar {
  width: 4px;
}

.archive-sidebar .cards-list::-webkit-scrollbar-track {
  background: transparent;
}

.archive-sidebar .cards-list::-webkit-scrollbar-thumb {
  background: var(--color-accent-1);
  border-radius: 2px;
}

/* ── Distillery Card ── */
.archive-sidebar .dcard {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  /* border: 1px solid var(--color-main); */
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  margin-bottom: 10px;
  overflow: hidden;
}

.archive-sidebar .dcard:hover {
  box-shadow: 0 4px 16px rgba(100, 102, 69, 0.12);
  transform: translateY(-1px);
}

.archive-sidebar .dcard.active {
  border-color: #cc9e7a;
  box-shadow: 0 4px 20px rgba(100, 102, 69, 0.2);

  .dcard-index {
    background: #cc9e7a;
    /* color: var(--color-light); */
  }
}

.archive-sidebar .dcard-index {
  width: 30px;
  flex-shrink: 0;
  background: var(--color-main);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-light);
}

.archive-sidebar .dcard-thumb {
  width: 88px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: var(--color-light);
}

.archive-sidebar .dcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.archive-sidebar .dcard:hover .dcard-thumb img {
  transform: scale(1.05);
}

.archive-sidebar .dcard-body {
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-sidebar .dcard-body h5 {
  margin: 2px 0 -3px 0;
}

.archive-sidebar .dcard-body p {
  margin: 0 0 2px;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 2px;
}

.dcard-location-icon {
  font-size: 14px;
  color: var(--color-accent-2);
}

.archive-sidebar .dcard-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--color-black);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.15s;
}

.archive-sidebar .dcard:hover .dcard-link {
  color: var(--color-main);
}

/* ── Map ── */
#distillery-map {
  flex: 1;
  position: relative;
  min-height: 400px;
  /* border-radius: var(--radius); */
}

/* ── Custom map markers ── */
.marker-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--color-main);
  border: 2px solid var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.marker-pin:hover {
  transform: rotate(-45deg) scale(1.1);
}

.marker-pin.active {
  background: var(--color-accent-1);
  border-color: var(--color-white);
  transform: rotate(-45deg) scale(1.15);
}

.marker-num {
  transform: rotate(45deg);
  /* font-family: var(--font-heading); */
  font-size: 12px;
  font-weight: 700;
  color: var(--color-light);
  line-height: 1;
}

.marker-pin.active .marker-num {
  color: var(--color-white);
}

/* ── No results ── */
.archive-sidebar .no-results-msg {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-main);
  font-family: var(--font-body);
  font-size: 13px;
  display: none;
}
