/*
 Theme Name: Stohlquist Showpigs
 Theme URI: https://stohlquistshowpigs.com/
 Author: Kim West
 Description: Custom theme for Stohlquist Showpigs
 Version: 1.0
*/

/* ============================
   GLOBAL FONT: MONTSERRAT
   ============================ */

body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  color: #111111;
  margin: 0;
  padding: 0;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================
   GLOBAL LAYOUT
   =================================== */

.site-header {
  position: relative;
  z-index: 1000;
}

/* Top bar (INTERIOR PAGES) */
.top-bar {
  background-color: #8d2529;
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* =========================================
   INTERIOR NAVIGATION – UPDATED
   ========================================= */

.main-nav-bar {
  background-color: #000000;
  position: relative;
  border-top: 4px solid #8d2529; /* optional top accent */
}

.main-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 40px; /* extra bottom padding so logo can drop */
  display: flex;
  justify-content: flex-end; /* pushes nav to right */
  align-items: flex-start;
  position: relative;
}

/* ================================
   LOGO – DROP BELOW BLACK BAR
   ================================ */
.site-logo {
  position: absolute;
  left: 40px;
  bottom: -35px;  /* adjust this to control overlap into white */
}

.site-logo img {
  max-height: 95px; /* larger and more “hero” on interior pages */
  height: auto;
  display: block;
}

/* ================================
   MENU STYLING
   ================================ */

.primary-menu {
  display: flex;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;          /* made larger */
  letter-spacing: 0.16em;   /* crisp spacing */
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}

/* ================================
   RED UNDERLINE AT BOTTOM OF BAR
   ================================ */
.primary-menu li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #8d2529;
  bottom: -40px;  /* aligns the bar with the bottom of the black header */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

/* Show on hover + active */
.primary-menu li:hover::after,
.primary-menu .current-menu-item::after,
.primary-menu .current-page-ancestor::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ================================
   HIDE UNDERLINE IN SUBMENUS
   ================================ */
.primary-menu li ul li::after,
.primary-menu li ul li:hover::after,
.primary-menu li ul .current-menu-item::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  transform: none !important;
}



/* ============================
   MOBILE NAV
   ============================ */

/* hide desktop-only pieces on small screens */
.desktop-only {
  display: block;
}

/* base mobile nav is hidden on desktop */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  /* hide desktop header/nav + home-page top nav on mobile */
  .desktop-only,
  .main-nav-bar,
  .top-bar,
  .home-top-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    background-color: #000000;
    color: #ffffff;
  }

  .mobile-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-logo img {
    height: 40px;
    width: auto;
    display: block;
  }

  .mobile-nav-toggle {
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
  }

  /* hamburger icon */
  .mobile-nav-icon,
  .mobile-nav-icon::before,
  .mobile-nav-icon::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-nav-icon::before {
    margin-top: -6px;
  }

  .mobile-nav-icon::after {
    margin-top: 4px;
  }

  /* open state */
  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-icon {
    transform: rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-icon::before {
    transform: rotate(-90deg) translateX(-4px);
  }

  .mobile-nav-toggle[aria-expanded="true"] .mobile-nav-icon::after {
    opacity: 0;
  }

  .mobile-menu {
    display: none;
    background-color: #111111;
  }

  .mobile-menu.is-open {
    display: block;
  }

  .mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 16px;
  }

  .mobile-menu-list li {
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .mobile-menu-list li:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .mobile-menu-list a {
    display: block;
    padding: 10px 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
  }

  .mobile-menu-list a:hover,
  .mobile-menu-list .current-menu-item > a {
    background-color: #8d2529;
  }
}


/* ===================================
   INTERIOR PAGE TITLE / CONTENT
   =================================== */

.page-hero {
  padding: 40px 20px 20px;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: 60px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.0em;
  color: #8d2529;
}

/* Content wrapper */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Footer */
.site-footer {
  background-color: #8d2529;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================
   HOME HERO AREA
   =================================== */

/* HOMEPAGE HERO */
.home-hero {
  position: relative;
  text-align: center;
  background-image: url("images/linen-texture.jpg"); /* linen base */
  background-size: cover;
  background-position: center top;
  background-repeat: repeat;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 25px 20px 40px;  /* keeps nav close to top */
  min-height: 800px;        /* taller hero area */
  margin-bottom: 80px;      /* space before WELCOME section */
  overflow: hidden;         /* hide edges of background motion */
}

/* Background slideshow layer */
.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* clicks pass through */
}

/* Swiper fill */
.hero-bg-swiper,
.hero-bg-swiper .swiper-wrapper,
.hero-bg-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

/* Background slide image – static, JS will drive transform */
.hero-bg-slide {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(1.05) brightness(1.1);
  transition: transform 8s linear;
}

/* Soft tint so linen still reads under photos */
.home-hero-bg-tint {
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 239, 0.7);
  mix-blend-mode: multiply;
}

/* HOME PAGE NAV (TOP OF HERO) */
.home-top-nav {
  position: relative;
  z-index: 50;
  margin-bottom: 20px;      /* space between nav and hero content */
}

/* Main UL (HOME HERO NAV) */
.home-nav-menu {
  display: flex;
  justify-content: center;
  gap: 90px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu Item */
.home-nav-menu li {
  position: relative;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Base Link Style – MONTSERRAT BLACK */
.home-nav-menu a {
  display: inline-block;
  padding-bottom: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;          /* Montserrat Black */
  letter-spacing: 0.10em;
  font-size: 24px;
  color: #3a3a3a;
  transition: all 0.2s ease;
}

/* Underline (default state = light gray) */
.home-nav-menu a::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 5px auto 0;
  background-color: #bfbfbf;
  transition: background-color 0.25s ease;
}

/* Hover + Active */
.home-nav-menu a:hover,
.home-nav-menu .current-menu-item > a {
  color: #8d2529; /* RED hover text */
}

/* Hover underline + active underline */
.home-nav-menu a:hover::after,
.home-nav-menu .current-menu-item > a::after {
  background-color: #8d2529; /* RED underline */
}


/* ============================
   HOME HERO SUB-MENU – GAPLESS
   ============================ */

/* Parent items act as positioning context */
.home-nav-menu li {
  position: relative;
}

/* Dropdown box */
.home-nav-menu .sub-menu {
  position: absolute;
  top: 100%;                 /* anchor to bottom of parent li */
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 14px 20px 10px;   /* extra top padding so it can overlap parent */
  min-width: 180px;

  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border-radius: 4px;

  text-align: center;
  display: none;             /* hidden by default */
  z-index: 999;
}

/* Make the dropdown overlap the parent a bit (removes the gap) */
.home-nav-menu .sub-menu {
  margin-top: -8px;          /* pull box up into the parent’s area */
}

/* Links inside dropdown */
.home-nav-menu .sub-menu a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hover state for sub links */
.home-nav-menu .sub-menu a:hover,
.home-nav-menu .sub-menu .current-menu-item > a {
  color: #8d2529;
}

/* Show dropdown ONLY while hovering the parent li */
.home-nav-menu li:hover > .sub-menu {
  display: block;
}

/* Kill any dot indicator on the home hero menu (no ghost dot) */
.home-nav-menu .menu-item-has-children > a::before {
  content: none !important;
}
/* Extend hover area under parent menu item */
.home-nav-menu li.menu-item-has-children {
  padding-bottom: 25px;   /* increases hover zone under WINNERS */
}

/* Pull submenu back up so layout stays the same */
.home-nav-menu li.menu-item-has-children > .sub-menu {
  margin-top: -25px !important;  /* compensates for increased hit-box */
}


/* ============================
   INTERIOR NAV SUB-MENU
   ============================ */

.primary-menu li {
  position: relative; /* ensure dropdowns position under each item */
}

/* Base dropdown styling */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;         /* right under the parent item */
  left: 0;
  list-style: none;
  margin: 0;               /* was 10px 0 0 – removed to avoid hover gap */
  padding: 10px 0 8px;     /* add a little top padding instead */
  min-width: 190px;

  background-color: #000000; /* solid black */
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-radius: 3px;

  display: none;
  z-index: 2000;
}

/* Interior dropdown links */
.primary-menu .sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

/* Hover state */
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a {
  background-color: #8d2529;
}

/* =========================================
   INTERIOR NAV – DROPDOWN BEHAVIOR (DESKTOP)
   ========================================= */
@media (min-width: 980px) {

  /* Show dropdown on hover or keyboard focus */
  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu {
    display: block;
  }

  /* HIDE red underline inside submenus */
  .primary-menu li ul li::after,
  .primary-menu li ul li:hover::after,
  .primary-menu li ul .current-menu-item::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    transform: none !important;
  }
}



 /* ===================================
   HERO CONTENT
   =================================== */

/* HERO CONTENT – centered vertically above background */
.home-hero-content {
  position: relative;
  z-index: 10;
  flex: 1;                          /* take remaining height below nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;          /* vertical center */
}

/* HERO LOGO & NOTE */

.home-hero-logo img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.home-hero-note {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ===================================
   HOME SECTIONS BELOW HERO
   =================================== */

.home-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 40px 0 40px;
}

.home-section-title {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #8d2529;
  font-weight: 800;
  margin: 0 0 20px;
  text-align: center;
}

/* Two-column welcome / events */
.home-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.home-welcome-box {
  margin-top: 20px;
}

.home-welcome-content p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}


/* ================
   HOME: SALE EVENTS BOX
   ================ */

.home-events-box {
  background-color: #ffffff;
  padding: 24px 28px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  margin-top: 20px;
}

/* SALE EVENTS header – white text in black bar */
.home-events-box .home-section-title {
  margin: 0 0 20px 0;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #000000;
  padding: 10px 18px;
}

/* List container */
.home-events-list {
  display: flex;
  flex-direction: column;
}

/* Each event block */
.home-event {
  position: relative;
  padding: 16px 0 16px 20px; /* left padding for vertical bar */
  border-bottom: 1px solid #e0e0e0;
}

.home-event:last-child {
  border-bottom: none;
}

/* Red vertical bar */
.home-event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 6px;
  background-color: #8d2529;
}

/* LEFT side content */
.home-event-left {
  width: 100%;
}

/* DATE row: label + TODAY badge */
.home-event-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 2px 0;
}

/* DATE label */
.home-event-date-label {
  font-size: 13px;
  font-weight: 800;
  color: #8d2529;
  text-transform: uppercase;
}

/* TODAY! badge */
.home-event-today {
  font-size: 13px;
  font-weight: 800;
  color: #8d2529;
  text-transform: uppercase;
}

/* Sale name: line by itself, black, bold, caps */
.home-event-name {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
}

/* Live meta line */
.home-event-meta {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #444444;
}

/* BUTTON + LOGO line */
.home-event-right {
  display: flex;
  justify-content: space-between; /* button left, logo right */
  align-items: center;
  width: 100%;
}

/* Button: gray, square, all caps */
.home-events-button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  background-color: #dcdcdc;
  color: #000000;
  border: 1px solid #c5c5c5;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Hover: red with white text */
.home-events-button:hover {
  background-color: #8d2529;
  color: #ffffff;
}

/* Showpig logo – very small (half-size) */
.home-event-online-logo {
  max-height: 10px;
  width: auto;
  display: block;
}

/* Empty state */
.home-events-empty {
  margin: 0;
  font-size: 13px;
  color: #888888;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .home-events-box {
    padding: 18px 16px 16px;
  }

  .home-event-right {
    flex-direction: row;
    gap: 8px;
  }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 900px) {
  .home-nav-menu {
    gap: 30px;
  }

  .home-section {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .main-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-menu {
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
  }

  .home-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 25px;
  }

  .home-nav-menu {
    flex-direction: column;
    gap: 10px;
  }

  .home-hero {
    min-height: 480px;
    margin-bottom: 60px;
  }
}

/* GLOBAL WRAPPER */
.boar-single-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

/* TITLE / BOAR NAME */
.boar-single-header {
  text-align: center;
  margin-bottom: 40px;
}

.boar-title {
  font-size: 4rem; /* bigger */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

/* CUTOUT IMAGE SECTION – background removed */
.boar-cutout-section {
  margin-bottom: 40px;
}

.boar-cutout-inner {
  text-align: center;
  padding: 0; /* remove tall padding */
}

.boar-cutout-image {
  max-width: 100%;
  height: auto;
}

/* PEDIGREE */
.boar-pedigree {
  text-align: center;
  margin: 20px 0 50px;
}

.boar-pedigree-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* TWO-COLUMN SECTION */
.boar-info-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 40px;
}

.boar-info-left,
.boar-info-right {
  flex: 1 1 350px;
}

/* LEFT COLUMN TEXT */
.boar-info-left p {
  margin: 0 0 12px;
  font-size: 1rem;
}

/* ACF description – increased line spacing */
.boar-description-acf {
  margin-top: 25px;
  line-height: 1.7; /* increased spacing */
  font-size: 1rem;
}

/* RIGHT COLUMN POST CONTENT */
.boar-post-content {
  line-height: 1.6;
}

/* PREVIOUS / NEXT NAV */
.boar-single-nav {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #000;
  padding-top: 20px;
  margin-top: 60px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.boar-single-nav a {
  text-decoration: none;
  color: inherit;
}

/* MOBILE */
@media (max-width: 768px) {
  .boar-title {
    font-size: 2.6rem;
  }

  .boar-single-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Winner Gallery Fixes */
.boar-winner-gallery .boar-winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center; /* centers the grid */
}

/* Center winner gallery items and captions */
.boar-winner-gallery .boar-winner-grid .winner-item {
  text-align: center !important;
}

.boar-winner-gallery .winner-caption {
  font-size: 11px !important;
  line-height: 1.2;
  margin-top: 6px;
  color: #444;
  max-width: 240px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}



/* Overall archive wrapper */
.boar-archive {
  /* no special background; let body/site-content handle it */
}

.boar-archive-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;   /* site-content already gives side + bottom padding */
  text-align: center;
}

/* Top callout line (under page title) */
.boar-archive-callout {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.00em;
  text-transform: uppercase;
  margin: 0 0 35px;
  color: #555555;
}

/* Grid layout (desktop: 2 columns; mobile: 1) */
.boar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px 80px; /* row, column */
  align-items: flex-start;
}

@media (max-width: 800px) {
  .boar-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Individual boar cards */
.boar-card {
  text-align: center;
}

.boar-card-link {
  text-decoration: none;
  display: block;
}

/* Image area */
.boar-card-image {
  margin-bottom: 10px;
}

.boar-photo {
  display: block;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Placeholder if no featured image */
.boar-photo--placeholder {
  background: #ccc;
  width: 100%;
  padding-top: 65%;
}

/* Boar name under image – match site style */
.boar-card-title {
  margin: 10px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 2rem;
  color: #8d2529;
}

@media (max-width: 800px) {
  .boar-card-title {
    font-size: 1rem;
  }
}


/* ============================
   FRONT PAGE – BOAR SLIDER 
   ============================ */

.front-boars-slider {
  background: #000;
  padding: 40px 0 50px;
  color: #fff;
}

.front-boars-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.front-boars-heading {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b2329;
  margin-bottom: 30px;
}

/* SWIPER CONTAINER */
.boar-swiper {
  position: relative;
  width: 100%;
}

/* WRAPPER MUST BE FLEX FOR SWIPER */
.boar-swiper .swiper-wrapper {
  display: flex;
}

/* ============================
   SLIDE SIZING (IMPORTANT)
   ============================ */
.boar-swiper .swiper-slide {
  height: 420px;           /* FIXED HEIGHT — adjust if needed */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #000;
}

/* IMAGE WRAPPER */
.boar-card-image-wrap {
  width: 100%;
  height: 320px;          /* keeps a uniform height */
  overflow: hidden;
  background: #000;       /* black bars if needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

.boar-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* keep entire boar visible */
  display: block;
}

/* CARD BOTTOM TEXT */
.boar-card-meta {
  padding-top: 12px;
  text-align: center;
}

.boar-card-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.boar-card-pedigree {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-style: italic;
}

/* ============================
   NAV ARROWS (BOARS + WINNERS)
   ============================ */

/* Base style for all slider arrows that use Swiper's button classes */
.boar-swiper-prev,
.boar-swiper-next,
.winners-swiper-prev,
.winners-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Left / right positions */
.boar-swiper-prev,
.winners-swiper-prev {
  left: 15px;
}

.boar-swiper-next,
.winners-swiper-next {
  right: 15px;
}

/* Kill Swiper's default text/icon arrows so only our chevrons show */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: '' !important;
}

/* Chevron arrow icons – same everywhere */
.boar-swiper-prev::before,
.boar-swiper-next::before,
.winners-swiper-prev::before,
.winners-swiper-next::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
}

/* Directions */
.boar-swiper-prev::before,
.winners-swiper-prev::before {
  transform: rotate(-135deg);
}

.boar-swiper-next::before,
.winners-swiper-next::before {
  transform: rotate(45deg);
}

/* MOBILE boar slider */
@media(max-width: 600px){
  .boar-swiper .swiper-slide {
    height: 380px;
  }
  .boar-card-image-wrap {
    height: 260px;
  }
}

/* =========================================
   HOME – FACEBOOK FEED SECTION
   ========================================= */

/* Remove global .home-section constraints for the Facebook section */
.home-section--facebook {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.home-section--facebook {
  background: url('/wp-content/themes/stohlquist-showpigs/images/linen-texture-copy.jpg') repeat;
  padding: 50px 0;
  margin: 0;               /* no extra margin so it touches success section */
  text-align: center;
}

/* Outer shell – already centered by .home-section */
.home-facebook-feed {
  width: 100%;
}

/* Inner wrapper we control – this centers the feed */
.home-facebook-feed-inner {
  max-width: 1200px;      /* tweak to taste (900–1200) */
  margin: 0 auto;         /* centers it */
  text-align: left;       /* keeps post text normal */
}

/* ============================
   OUR LATEST SUCCESS – SECTION
   ============================ */

.home-section--success {
  /* full-width black band */
  max-width: 100%;
  margin: 0;                   /* no white gap above/below */
  padding: 60px 40px 70px;     /* spacing is inside the black */
  background-color: #000000;
}

.home-section--success .home-section-title {
  color: #ffffff;
  text-align: center;
  margin: 0 0 35px;
}

/* Keep slider content constrained like the rest of the site */
.home-section--success .winners-slider {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   HOME – OUR LATEST SUCCESS SLIDER
   UNIFIED IMAGE HEIGHT / LETTERBOXING
   ============================================ */

.latest-success-slider .success-slide-img {
    width: 100%;
    height: 360px; /* adjust as needed */
    max-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* creates clean letterboxing */
    overflow: hidden;
}

.latest-success-slider .success-slide-img img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* preserves proportions */
    display: block;
}



/* Winner cards */
.winner-card {
  background: #111111;
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 15px;
}

.winner-card-image-wrap {
  position: relative;
  overflow: hidden;
}

.winner-card-image {
  display: block;
  width: 100%;
  height: auto;
}

.winner-card-title {
  margin: 12px 14px 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
}

/* ============================================
   HOME – OUR LATEST SUCCESS SLIDER
   Uniform image frame like Envira
   ============================================ */

.home-section--success .winner-card-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 340px;       /* pick your frame height */
  margin-bottom: 16px; /* keeps caption away from image a bit */
  overflow: hidden;    /* hide any weird overflow */
}

/* Override the generic winner-card-image rule for this section */
.home-section--success .winner-card-image-wrap .winner-card-image {
  max-height: 100%;
  width: auto;   /* override width:100% from the global rule */
  height: auto;
  display: block;
}


/* ============================================
   FORCE WINNERS SLIDER ARROWS TO MATCH BOAR ARROWS
   ============================================ */

.winners-swiper-prev,
.winners-swiper-next {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;

  border-radius: 50% !important;
  background: #ffffff !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  margin: 0 !important;

  box-shadow: 0 0 8px rgba(0,0,0,0.35);

  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Remove Swiper's built-in arrow graphics */
.winners-swiper-prev::after,
.winners-swiper-next::after {
  font-size: 0 !important;
  content: "" !important;
}

/* Inject SAME chevron arrows as boar slider */
.winners-swiper-prev::before,
.winners-swiper-next::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
}

/* Directions */
.winners-swiper-prev::before {
  transform: rotate(-135deg);
}

.winners-swiper-next::before {
  transform: rotate(45deg);
}

.site-footer {
  background: #8d2529; /* Stohlquist red */
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-line {
  font-size: 14px;
  margin: 5px 0;
}

.footer-copy {
  font-size: 13px;
  margin: 15px 0 5px;
  font-weight: 600;
}

.footer-credit {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 0;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}


.home-sidebar-ad,
.sidebar-sponsor-ad {
  margin-top: 24px;
}

.home-sidebar-ad img,
.sidebar-sponsor-ad img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ============= WINNERS HERO SLIDESHOW ============= */

.winner-hero {
    position: relative;
    height: 480px; /* adjust */
    overflow: hidden;
    margin-bottom: 40px;
}

/* Slideshow container */
.winner-hero-slideshow {
    position: absolute;
    inset: 0;
}

/* Individual slides */
.winner-hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 36s infinite;
    filter: brightness(0.55); /* darken so title pops */
}

/* Animation staggering */
.winner-hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.winner-hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.winner-hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.winner-hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }
.winner-hero-slideshow .slide:nth-child(5) { animation-delay: 24s; }
.winner-hero-slideshow .slide:nth-child(6) { animation-delay: 30s; }

@keyframes fadeSlide {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Overlay for extra darkening */
.winner-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

/* Title styling */
.winner-hero-title {
    position: relative;
    z-index: 5;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.winner-hero-title h1 {
    font-size: 110px;
    color: #fff;
    margin: 0;
    font-weight: 900;
    letter-spacing: 3px;
}

/* Content area */
.winner-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   WINNERS OVERVIEW PAGE
   ========================================= */

.winners-overview-page {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 40px;
}

/* =========================================
   WINNERS OVERVIEW — MATCH BOARS HEADER
   ========================================= */

.winners-overview-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 72px;
  font-weight: 700;
  text-align: center;
  color: #8d2529; /* Stohlquist red */
  text-transform: uppercase;
  letter-spacing: 0.00em;
  margin: 80px 0 20px; /* match boars archive spacing */
}

.winners-overview-header {
  text-align: center; /* center intro text under title */
  max-width: 900px;
  margin: 0 auto 40px;
}


.winners-overview-intro p:last-child {
  margin-bottom: 0;
}

/* Grid layout */
.winners-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 960px) {
  .winners-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .winners-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Year cards */
.winners-year-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  background-color: #111111;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.winners-year-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

/* Image area with fixed aspect ratio */
.winners-year-card-media {
  position: relative;
  padding-top: 65%; /* approx 16:10 ratio */
  overflow: hidden;
}

.winners-year-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.4s ease;
  filter: brightness(0.9);
}

.winners-year-card-bg--placeholder {
  background: #444444;
}

.winners-year-card:hover .winners-year-card-bg {
  transform: scale(1.12);
}

/* Dark overlay so text pops if we ever put text over the image */
.winners-year-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}

/* Text block */
.winners-year-card-inner {
  padding: 16px 20px 18px;
  background-color: #111111;
}

.winners-year-card-year {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.winners-year-card-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}/* ============================================
   ENVIRA GALLERY — FINAL TITLE + CAPTION RULES
   ============================================ */

/* TITLE (envira-title) — all caps + black */
.envira-title.envira-gallery-captioned-text {
  text-transform: uppercase !important;
  color: #000 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  display: block !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  text-align: center !important;
}

/* CAPTION (normal text) — black + NO paragraph spacing */
.envira-caption.envira-gallery-captioned-text {
  color: #000 !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  display: block !important;
  text-align: center !important;

  /* remove big <p> margins */
  margin: 0 0 2px !important;
  padding: 0 !important;
}

/* CAPTION <strong> — all caps + Stohlquist red */
.envira-caption.envira-gallery-captioned-text strong {
  text-transform: uppercase !important;
  color: #8d2529 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Kill extra space caused by <br> inside captions */
.envira-caption.envira-gallery-captioned-text br {
  line-height: 0 !important;
  height: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   ENVIRA GALLERY — IMAGE STYLING
   ============================================ */

/* Actual Envira gallery images */
.envira-gallery-wrap img.envira-gallery-image {
  display: block;
  
  /* 🔹 Same visual height for every thumb, no distortion */
  height: 260px !important;      /* adjust to taste */
  width: auto !important;        /* keep aspect ratio */
  max-width: 100% !important;    /* don’t overflow column */

  /* 🔹 Spacing above/below image */
  margin: 15px auto 12px auto !important;

  /* 🔹 Visual treatment */
  border: 2px solid #000 !important;                 
  border-radius: 4px !important;                     
  box-shadow: 0 6px 14px rgba(0,0,0,0.25) !important;
}


/* ===============================
   TOP BAR
   =============================== */

.top-bar {
  background: #8d2529; /* Stohlquist red */
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 0;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-fb-link i {
  font-size: 14px;
}

/* Make icon react on hover */
.topbar-fb-link:hover i {
  opacity: 0.7;
}

/* Hide on mobile (desktop only) */
.desktop-only {
  display: none;
}
@media (min-width: 900px) {
  .desktop-only {
    display: block;
  }
}

/* ============================
   CONTACT PAGE – LAYOUT
   ============================ */

.page-contact .page-header--contact {
  text-align: center;
  margin: 40px 0 30px;
}

.page-contact .page-header--contact .page-title {
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8d2529;
}

/* Top two-column layout */
.page-contact .contact-top {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* Sidebar */
.page-contact .contact-sidebar {
  flex: 0 0 30%;
  max-width: 30%;
  font-size: 15px;
  line-height: 1.6;
}

.page-contact .contact-sidebar-title {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
  color: #8d2529;
  margin: 0 0 15px;
}

.page-contact .contact-sidebar-block {
  margin: 0 0 18px;
}

/* Main content */
.page-contact .contact-main {
  flex: 1 1 0;
  max-width: 65%;
}

.page-contact .contact-main-inner {
  font-size: 16px;
  line-height: 1.7;
}

/* Section titles below content */
.page-contact .contact-section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8d2529;
  font-size: 20px;
  margin: 0 0 20px;
}

/* Sidebar logo */
.page-contact .contact-sidebar-logo {
  display: block;
  max-width: 180px;      /* tweak as needed */
  height: auto;
  margin: 0 0 20px;
}

/* Hide logo on mobile */
@media (max-width: 768px) {
  .page-contact .contact-sidebar-logo {
    display: none;
  }
}




/* ============================
   CONTACT PAGE – MOVIE-REEL CAROUSEL
   ============================ */

.page-contact .contact-carousel {
  margin: 0px 0 50px;
}

/* Make it truly full-width like the map */
.page-contact .contact-carousel-outer {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  background-color: #111111; /* optional: dark strip behind images */
}

/* Scrolling track */
.page-contact .contact-carousel-track {
  --carousel-width: 0px; /* will be updated by JS */
  display: flex;
  align-items: center;
  height: 300px;
  animation: contact-carousel-scroll 90s linear infinite;
}

.contact-carousel-outer:hover .contact-carousel-track,
.contact-carousel-outer.is-paused .contact-carousel-track {
  animation-play-state: paused;
}


/* Individual frames – no gutter */
.page-contact .contact-carousel-item {
  flex: 0 0 auto;
}

.page-contact .contact-carousel-item img {
  display: block;
  max-height: 300px;          /* cap height at 300px */
  width: auto;
}

/* Keyframes for continuous scroll */
@keyframes contact-carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--carousel-width)));
  }
}


/* Mobile tweak */
@media (max-width: 768px) {
  .page-contact .contact-carousel-track {
    height: 220px;
  }

  .page-contact .contact-carousel-item img {
    max-height: 220px;
  }
}

.page-contact .contact-carousel-outer {
  overflow-x: scroll;
  scrollbar-width: none;  /* Firefox */
}

.page-contact .contact-carousel-outer::-webkit-scrollbar {
  display: none;  /* Chrome/Safari */
}


/* Video section */
.page-contact .contact-video {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 40px 40px 50px;
  background-color: #ffffff; /* was #fff4e6 */
}

/* Responsive 16:9 wrapper for Vimeo */
.page-contact .contact-video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.page-contact .contact-video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FULL-WIDTH GRAYSCALE MAP */
.page-contact .contact-map {
  margin: 0;
}

.page-contact .contact-map-inner {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}

.page-contact .contact-map-inner iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(100%) contrast(1.2);
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .page-contact .contact-top {
    padding: 0 20px;
  }

  .page-contact .contact-sidebar,
  .page-contact .contact-main {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ============================
   SCROLL TO TOP BUTTON
   ============================ */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  outline: none;
  /* Stohlquist red with white arrow */
  background: #8d2529;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 9999;
}

/* Visible state */
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover / focus */
.scroll-top:hover,
.scroll-top:focus {
  background: #a53035;
}

/* Slightly smaller / inset on mobile */
@media (max-width: 600px) {
  .scroll-top {
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

.hide-home-flag {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    visibility: hidden !important;
}

/* ============================================
   HOME – WELCOME INTRO TEXT (SEO Paragraph)
   ============================================ */
body.home .home-welcome-box > p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #111111;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
