/** 
 * Theme Name: Agribar
 * Author: Central States Marketing
 * Author URI: https://www.centralstatesmarketing.com/
 * Description: This site was built by Central States Marketing. For more information about the site or this custom WordPress theme, you can contact Central States Marketing at: info@csm.marketing or call us at: 309-693-2345.
 * Version: 1.0.0
 *
 * @package agribar
 * @charset "UTF-8"
 */

/**
 * Table of Contents
 * -----------------
 * 1. Global Settings
 * 2. Typography
 * 3. Utils
 * 4. Site Header
 * 5. Drawer
 * 6. Hero Section
 * 7. About Section
 * 8. About Section
 * 9. Banner Section
 * 10. Featured Section
 * 11. Footer Page
 * 12. Inside Pages
 */

/* ======================== */
/* 1. Global Settings */
/* ======================== */
:root {
  --lightgray: #B4B4B4;
  --gray: #9fa1a2;
  --bg: #ffffff;
  --black: #000000;
  --burgundy: #800020;
  --light-burgundy: #940025;

  --shadow-color: rgba(0, 0, 0, 0.25);
  --shadow-color-hover: rgba(0, 0, 0, 0.4);

  --shadow: 0 0 10px var(--shadow-color);
  --shadow-hover: 0 0 10px var(--shadow-color-hover);
  --shadow-alt: 0 5px 10px var(--shadow-color); /* 5px is the vertical offset */

  --gutter: 2rem;

  --max-w-max: 115.2rem;
  --max-w-content: 82rem;
  --max-w-text: 50rem;

  --border-radius: 2rem;

  --ff-heading: "roboto", sans-serif;
  --ff-body: "roboto", sans-serif;

  --fs-xs: clamp(0.55rem, 0.2vw + 0.5rem, 0.8rem);
  --fs-sm: clamp(0.7rem, 0.25vw + 0.6rem, 0.9rem);
  --fs-base: clamp(0.85rem, 0.35vw + 0.7rem, 1.1rem);
  --fs-md: clamp(1rem, 0.5vw + 0.85rem, 1.4rem);
  --fs-lg: clamp(1.2rem, 0.8vw + 1rem, 1.75rem);
  --fs-xl: clamp(1.5rem, 1.1vw + 1.2rem, 2rem);
  --fs-2xl: clamp(1.75rem, 1.5vw + 1.4rem, 2.7rem);
  --fs-3xl: clamp(2rem, 2vw + 1.5rem, 3.6rem);
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
}

.container {
  max-width: var(--max-w-max);
  margin: 0 auto;
  padding: clamp(2rem, 2vw, 2rem);
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

b,
strong {
  font-weight: bolder;
}

embed,
iframe,
object,
img {
  display: block;
  max-width: 100%;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Template Specific === */
.post-edit-link {
  color: var(--bg) !important;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: fit-content;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  margin: 1em;
  text-decoration: none !important;
  background-color: var(--burgundy);
  transition: 0.3s ease-in-out;
  z-index: 2;
  display: none;
}

/* ======================== */
/* 2. Typography */
/* ======================== */
:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ff-heading);
  line-height: 1;
}

h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  letter-spacing: 1.5px;
  /* line-height: 149%; */
}

h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin: 0 0 1rem 0;
}

h3 {
  font-size: var(--fs-xl);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  font-family: var(--ff-body);
}

h5,
h6 {
  font-size: var(--fs-md);
  margin: 0 0 0.5rem 0;
}

p {
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: var(--bg);
  font-family: var(--ff-body);
}

ul li {
  font-weight: 500;
  letter-spacing: 0px;
  font-family: var(--ff-body);
}

a {
  text-decoration: none;
  transition: var(--transition);
  font-size: var(--fs-base);
}

a:has(svg) {
  display: flex;
}

/* ======================== */
/* 3. Utils */
/* ======================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

hr {
  width: 100%;
  border: none;
  height: 1px;
}

.btn,
.button {
  text-transform: uppercase;
  color: var(--bg);
  padding: 0.5rem 2rem;
  border-radius: 20px;
  font-weight: 500;
  background-color: var(--black);
  display: inline-block;
  align-self: flex-start;
  letter-spacing: 0.25px;
  min-width: 150px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.btn-burgundy,
.button {
  background-color: var(--burgundy);
}

.btn-gray {
  background-color: var(--gray);
}

.btn-black {
	background-color: var(--black);
}

/* Button Hover */
.btn:hover,
.button:hover {
  transform: scale(1.025);
}

.btn-burgundy:hover {
   background-color: var(--light-burgundy);	
}

.btn-gray:hover {
  background-color: var(--light-gray);
}

.btn-black:hover {
	background-color: #323232;
}


.wrapper-max {
  max-width: var(--max-w-max);
  margin-inline: auto;
}

.wrapper-content {
  max-width: var(--max-w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrapper-text {
  max-width: var(--max-w-text);
  margin-inline: auto;
}

/**************************************************
   * 4. === Site Header ===
   **************************************************/
.site-header-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    backdrop-filter: blur(8px);
    z-index: 1001;
    background-color: #ffffffcc;
}

.site-header {
  position: relative;
  z-index: 10001;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.site-branding {
  align-items: center;
  max-width: var(--max-w-max);
  display: flex;
  justify-content: space-between;
  padding: 1rem 3rem;
  margin-inline: auto;
  width: 100%;
}

.site-logo img {
  max-width: 16rem;
  width: 100%;
  transition: max-width 0.3s ease;
  object-fit: cover;
}

.logo-text {
  color: var(--black);
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: 0px;
  font-size: var(--fs-2xl);
}

@media (max-width: 1024px) {
  .site-header {
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-branding {
    gap: 1rem;
    padding: 0;
  }
	
	.site-logo img {
    max-width: 10rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-logo img {
    max-width: 10rem;
  }

  .logo-text span {
    font-size: var(--fs-lg);
  }
}

@media (max-width: 500px) {
  .site-header {
    padding: 1rem;
  }
}

/* === Navigation === */
#site-navigation {
  margin: 0 auto;
  width: 100%;
}

#primary-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  margin: 0;
}

#primary-menu li {
  list-style: none;
}

#primary-menu li a {
  padding: 1.25rem 2rem;
  display: inline-block;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  transition: 0.3s;
  text-transform: uppercase;
}

#primary-menu li a:hover {
  color: var(--burgundy);
}

#primary-menu li a.active {
  color: var(--burgundy) !important;
}

.menu-chevron {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.menu-item-has-children:hover .menu-chevron,
.menu-item-has-children.open .menu-chevron {
  transform: rotate(180deg);
  color: var(--burgundy);
  /* Rotate when the submenu is open */
}

/* === Hamburger Menu === */
.hamburger-wrapper {
  cursor: pointer;
  display: none;
  position: relative;
  z-index: 11000;
}

.hamburger {
  position: relative;
  border: none;
  background: transparent;
}

.hamburger img {
  aspect-ratio: 1/1;
  max-width: 4rem;
  object-fit: cover;
}

.hamburger-wrapper.active .hamburger {
  filter: invert(1);
}

.no-scroll {
  overflow: hidden;
}

/* Submenu Container */
.menu-item-has-children ul {
  position: absolute;
  display: block;
  width: auto;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  background-color: var(--bg);
  border-top: 3px solid var(--burgundy);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* Reveal submenu on hover */
.menu-item-has-children:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 500px; /* submenu height */
}

/* Submenu Items */
.menu-item-has-children ul li {
  width: 100%;
  border-top: 1px solid var(--lightgray);
}

/* Submenu Links */
.menu-item-has-children ul li a {
  display: block;
  width: 100%;
  padding: 1rem;
  color: var(--burgundy);
  transition: color 0.3s ease;
}

/* Hover effect for submenu links */
.menu-item-has-children ul li a:hover {
  color: var(--burgundy);
}

.main-navigation .menu-item:has(.sub-menu):hover .sub-menu {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .site-header #site-navigation {
    display: none;
  }

  ul.sub-menu {
    display: none;
  }

  .hamburger-wrapper {
    display: block;
  }
	
  .menu-chevron {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-logo img {
    max-width: 10rem;
  }
}

/**************************************************
   * 5. === Drawer ===*
   **************************************************/

.drawer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  height: 100%;
  padding: 3rem;
  color: var(--bg);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* Make sure it stretches across full screen */
  width: 100vw;
  height: 100dvh;
  background-color: var(--burgundy);
  z-index: 1002;
  transform: translateX(100vw); /* Start hidden off-screen to the right */
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0); /* Slide in */
}

.drawer__menu-toggle {
  background: none;
  border: none;
}

.drawer__close {
  max-width: 3rem;
}

.drawer #site-navigation {
  background: var(--burgundy);
}

.drawer #site-navigation ul li a {
  color: var(--bg);
}

.drawer .menu-main-menu-container {
  height: 100%;
}

.drawer .menu {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer .menu-item a {
  display: block;
  font-size: var(--fs-3xl);
  padding-block: 1rem;
  font-weight: 700;
}

.drawer .sub-menu {
  display: none !important;
}

.drawer #primary-menu li a.active {
	color: var(--bg) !important;
}

.drawer .sub-menu .menu-item a {
  padding: 0.5rem 0;
  font-size: var(--fs-md);
}

@media (max-width: 768px) {
  .drawer-wrapper {
     padding: 4rem 3rem;
  }
}

@media (max-width: 500px) {
  .drawer-wrapper {
    padding: 2rem;
  }
}

/****************************/
/** == ** Front Page ** == **/
/***************************/

/****************************/
/** 6. == ** Hero Section ** == **/
/***************************/
.hero-wrapper {
  padding: 0 2rem 2rem 2rem;
  margin-bottom: clamp(1.5rem, 2vw + 1rem, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--border-radius);
}

.background-video {
    width: 100%;
    aspect-ratio: 3 / 1;
	min-height: 20rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    overflow: hidden;
    display: block; /* Ensures consistent box behavior */
}

.background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Prevents inline spacing issues */
}

.video-content {
    min-width: 10rem;
	position: absolute;
	top: 0; 
	padding-top: 3rem;
	padding-left: 3rem;
}

.play-button {
	aspect-ratio: 1/1;
	max-width: 10rem;
	cursor: pointer;
	object-fit: contain;
	margin-inline: auto;
}

.play-button:hover {
	transform: scale(1.05);
	transition: 0.3s ease;
}

.hero-title {
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--bg);
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.hero-title span {
  font-weight: 200;
}

.hero-content {
  display: flex;
  flex-direction: column;
  aspect-ratio: 3/1;
  padding: 2rem;
  gap: 1.5rem;
  text-align: center;
  margin-inline: auto;
  width: 100%;
  max-width: var(--max-w-max);
  position: relative;
  z-index: 1;
  background: var(--black);
  height: 100%;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  justify-content: center;
}

.hero-content a {
  margin-inline: auto;
}

.hero-content p {
  max-width: var(--max-w-text);
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .hero-wrapper {
    min-height: 70vh;
  }
	.hero-wrapper .hero-content {
		aspect-ratio: auto !important;
		padding: 3rem;
	}
}

@media (max-width: 768px) {
  .hero-wrapper {
    padding: 0rem 2rem 2rem 2rem;
    min-height: 60vh;
  }
	
	.hero-wrapper .hero-content {
		padding: 2rem;
	}
	
	.video-content {
		padding-top: 2rem;
		padding-left: 2rem;
	}
}

@media (max-width: 600px) {
	
	.background-video { 
		aspect-ratio: 2/1;
	}

}


@media (max-width: 500px) {
  .hero-wrapper {
    min-height: 50vh;
  }
	
	.background-video { 
		aspect-ratio: 1/1;
	}
}

/****************************/
/* 7. ** Product **  */
/***************************/

.product-wrapper {
  position: relative;
  min-height: 30rem;
  background-color: var(--bg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  margin-inline: auto;
  max-width: var(--max-w-content);
  margin-bottom: clamp(4rem, 3rem + 3vw, 6rem);
  overflow: hidden;
  border-radius: 1.5rem;
}

.product-image {
  height: 100%;
  width: 100%;
  min-height: 300px;
}

.product-title {
  text-transform: uppercase;
  color: var(--bg);
}

.product-title span {
  font-weight: 200;
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 2rem;
  background: var(--gray);
  height: 100%;
  width: 100%;
  padding: 4rem;
}

.product-content p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .product-wrapper {
    grid-template-columns: 1fr;
    row-gap: 0rem;
    text-align: center;
  }

  .product-content {
    align-items: center;
    row-gap: 1.5rem;
  }

  .product-content a {
    margin-inline: auto;
  }
}


/****************************/
/* 8. ** About Us **  */
/***************************/

.about-wrapper {
  position: relative;
  min-height: 30rem;
  background-color: var(--bg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
/*   max-width: var(--max-w-max); */
  margin-inline: auto;
	margin-bottom: clamp(4rem, 3rem + 3vw, 6rem);


}

.about-image {
  height: 100%;
  width: 100%;
	min-height: 300px;
}

.about-title {
  text-transform: uppercase;
  color: var(--bg);
}

.about-title span {
  font-weight: 200;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 2rem;
  background: var(--burgundy);
  height: 100%;
  width: 100%;
  padding: 4rem;
}
.about-content p {
  margin-bottom: 0;
}

.about-content p span {
  font-size: 1.2rem;
	font-weight: 600;
}

@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    row-gap: 0rem;
    text-align: center;
  }

  .about-content {
    align-items: center;
    row-gap: 1.5rem;
  }

  .about-content a {
    margin-inline: auto;
  }
}

/****************************/
/* 9. == ** Banner ** == **/
/***************************/
.banner {
  position: relative;
  background-color: var(--bg);
  padding-inline: 5rem;
	margin-bottom: clamp(4rem, 3rem + 3vw, 6rem);
}

.banner-header {
  text-align: center;
	display: flex;
	flex-direction: column;
	margin-bottom: 3rem;
}

.banner-header p {
  color: var(--burgundy);
  text-transform: lowercase;
}

.banner-header h2 {
  color: var(--black);
}

.banner-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 2rem;
  padding: 3rem;
  align-items: center;
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s; /* Optional: delay for effect */
  transition: box-shadow 0.3s ease-in-out;
}

/* Inward radius with background color */
.banner-card::before {
  content: "";
  position: absolute;
  inset: 0;
 	background: var(--gray);
	border-radius: var(--border-radius);
  /* your inward radius mask, moved here */
  --r: 1.5rem; /* radius */
  --s: 40px; /* cut size */
  --_m:/calc(2*var(--r)) calc(2*var(--r))
    radial-gradient(#000 70%, #0000 72%) no-repeat;

  mask:
    right calc(var(--s) + var(--r)) top 0 var(--_m),
    right calc(var(--s) + var(--r)) var(--_m),
    radial-gradient(var(--s) at 100% 0, #0000 99%, #000 101%)
      calc(-1*var(--r)) var(--r) no-repeat,
    conic-gradient(at calc(100% - var(--s) - 2*var(--r)) calc(var(--s) + 2*var(--r)),
      #0000 25%, #000 0);
  z-index: 0; /* sits under content */
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Ensure all content sits above the masked background */
.banner-card > * {
  position: relative;
  z-index: 1;
}

.banner-card h2 {
  font-weight: 600;
  color: var(--black);
  text-align: center;
}
.banner-card .banner-icon {
  width: 100%;
  max-width: 3rem;
  border-radius: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  right: 0;
  transition: transform 0.3s ease;
}

.contact-icon {
	width: 100%;
  	border-radius: 100%;
	object-fit:cover;  
	position: absolute;
	bottom: -0.75rem;
    right: 0.25rem;
	max-width: 3rem;
}

.banner-card .banner-image {
  width: 100%;
  border-radius: 100%;
  border: 4px solid var(--bg);
	object-fit:cover;  
	margin: 0 auto;
		transition: transform 0.3s ease-in-out;

}

.banner-card a {
  margin: 0 auto;
}

/* Hover Effects */
.banner-card:hover .banner-icon {
    transform: scale(0.95);
}

.banner-card:hover {
    box-shadow: 0 19px 16px -24px rgba(0, 0, 0, 0.8);
}

.banner-card:hover .banner-image {
	transform: scale(0.98);
}

.banner-card:hover .banner-icon {
	transform: translate(-6px, 6px) rotate(45deg);
	transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
	.banner {
		padding-inline: 2rem;
	}
	
  .banner-wrapper {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 0rem;
    padding: 0rem;
  }

  .banner-card {
    padding: 2rem;
    border: none;
  }
}

/* Splide Slider */
.splide__slide {
	border-radius: 2rem;
}

.splide__pagination {
	bottom: -2.5rem!important;
}

.splide__pagination__page.is-active {
	background: var(--burgundy)!important;
}

.splide .splide__list {
    padding: 1rem 0rem !important; /* Use your desired padding value */
}

/****************************/
/* 10. Featured Video Section */
/***************************/
.featured-video {
  position: relative;
	margin-bottom: clamp(4rem, 3rem + 3vw, 6rem);

}

.video-header {
  text-align: center;
	display: flex;
	flex-direction: column;
	margin-bottom: 3rem;
}

.video-header p {
  color: var(--burgundy);
  text-transform: lowercase;
}

.video-header h2 {
  color: var(--black);
}

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 1rem;
  max-width: var(--max-w-content);
  margin-inline: auto;
  margin-bottom: 3rem;
}

.videos video {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  border-radius: 1.5rem;
  cursor: pointer;
}

.videos-button {
	margin-inline: auto;
	display: block;
	width: fit-content;
}

@media (max-width: 768px) {
  .featured-video-wrapper {
    padding: 2rem;
  }
	
	.videos {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 650px) {

	.videos {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 500px) {
  .video-header {
    flex-direction: column;
    text-align: center;
  }

  .video-title {
    border-right: none;
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

/****************************/
/** 11. Footer  **/
/***************************/
.site-footer-wrapper {
  background-color: var(--black);
}

.site-footer {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-footer .topbar-wrapper {
  padding: 1rem 4rem;
  background-color: var(--burgundy);
}

.topbar {
	margin-inline: auto;
	max-width: var(--max-w-max);
	display: flex;
  flex-direction: row;
}

.topbar #primary-menu li a.active {
	color: var(--bg) !important;
}
.site-footer #site-navigation {
  background-color: transparent;
}

.site-footer #primary-menu {
  justify-content: inherit;
}

.site-footer #primary-menu li {
  list-style: none;
  gap: 0;
  display: flex;
  align-items: center;
  color: var(--bg);
}

/* Dot divider after each list item */
.site-footer #primary-menu li::after {
  color: var(--gray);
  position: relative;
  display: inline-block;
  border-radius: 100%;
  background: var(--gray);
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

/* Remove last divider */
.site-footer #primary-menu li:last-child::after {
  content: none;
}

.site-footer #primary-menu li a {
  color: var(--bg);
  font-size: var(--fs-sm);
  padding: 1rem 1.25rem;
}

.contact-info {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  justify-content: flex-end;
}

.contact-info img {
  aspect-ratio: 1/1;
  max-width: 3rem;
}

.contact-info a {
  color: white;
  font-weight: 500;
}

.contact-info div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 30rem;
}

.footer-branding .site-logo {
	max-width: 12rem;
	filter: invert(1);
}

.footer-branding .logo-text {
  color: var(--bg);
}

.footer-socials {
	display: flex;
	flex-direction: row;
	gap: 0.5rem;
}

.footer-socials img {
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 100%;
	max-width: 3rem;
}

.footer-main-wrapper {
  background: var(--black);
  padding: 4rem;
}


.footer-main {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
max-width: var(--max-w-max);
  margin-inline: auto;
}

.footer-details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.footer-details .menus {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: flex-start;
}

.menus div {
	display: flex;
	flex-direction: column;
}

.menus span {
  color: var(--bg);
  font-weight: 500;
  font-size: 1.1rem;
  padding: 1rem 0;
}

.menus p {
  padding: 0.5rem 0;
}

#useful-links {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
}

#useful-links li {
  list-style: none;
  font-weight: 400;
}

#useful-links li a {
  color: var(--bg);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
}

.working-time p {
  padding: 0.5rem 0;
  margin-bottom: 0;
}

.footer-divider {
	background: var(--bg);
	height: 1px;
	padding-left: 2rem;
}

.footer-credits {
 	text-align: center;
	display: flex;
	gap: 1rem;
}

.footer-credits a {
  color: var(--bg);
}

.site-footer #site-navigation .menu-item-has-children ul {
  display: none;
}

.site-footer .menu-chevron {
  display: none;
}

@media (max-width: 1130px) {
	.topbar {
		flex-direction: column;
	}
	.site-footer #primary-menu {
    	justify-content: center;
	}
	.contact-info {
		justify-content: center;
	}
}

@media (max-width: 900px) {
  .site-footer #primary-menu {
    flex-direction: column;
	  justify-content: space-between;
  }
	.site-footer #primary-menu {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
	.footer-main-wrapper {
		padding: 2rem;
	}
	
	.site-footer .topbar {
		flex-direction: column;
	}

  .footer-branding {
    flex-direction: column;
    row-gap: 1rem;
    justify-content: center;
  }

  .site-footer #primary-menu li a {
    font-size: var(--fs-base);
  }

  .site-footer {
    row-gap: 2rem;
  }
	
	.footer-main {
		flex-direction: column;
		padding: 0;
	}
	
	.contact-info {
		flex-direction: row !important;
		justify-content: center;
	}
	
	.footer-details .menus {
		flex-direction: column;
	}
	
}

@media (max-width: 650px) {
  .site-footer #primary-menu {
    flex-direction: column;
  }
	
	.footer-branding {
		align-items: center;
		margin-inline: auto;
	}
	
	.footer-main {
		text-align: center;
	}
	
	.contact-info {
		flex-direction: column !important;
		align-items: center;
	}
	
	.footer-details .menus {
		gap: 1rem;
	}
	
	.footer-credits {
	flex-direction: column;
}	
	

}

/****************************/
/** 12. Inside Pages  **/
/***************************/

.page-wrapper {
	padding-top: 0;
}

.default-hero {
	padding-top: 0;
}

.page .hero {
  border-radius: var(--border-radius);
	padding: 2rem 8rem;
}

.inner-container p {
	color: var(--black);
	padding: 0;
	margin: 0 0 1rem 0;
}

.hero .content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 24rem;
  justify-content: center;
}

.hero .content h1 {
  color: var(--bg);
  margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.content .subheader {
    display: flex;
    gap: 0.5rem;
	align-items: center;
}

.content .subheader a,
.content .subheader p {
   text-transform: uppercase;
	text-decoration: none;
	    margin: 0 0 1rem 0;
	    font-weight: 300;
}

.content .subheader img {
	object-fit: contain;
	aspect-ratio: 1/1;
	max-width: 8px;
	    margin: 0 0 1rem 0;
}

.inner-container {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 2rem;
}

.entry-header {
  display: none;
}

.content ul li {
  color: var(--gray);
}

.content a {
  color: var(--bg);
}

/* Container must be positioned so ::before can fill it */
.contact-card {
  position: relative;
}

/* Background layer with inward-radius cut at bottom-right */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gray);
  border-radius: var(--border-radius);

  /* === Inward-radius controls (tweak per section) === */
  --r: 1.5rem;  /* corner radius */
  --s: 40px;    /* size of inner curve */
  --x: 0px;     /* extra horizontal offset of the cut (px) */
  --y: 0px;     /* extra vertical offset of the cut (px) */

  /* === Derived tokens (from your snippet) === */
  --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%, #0000 72%);
  --_g: conic-gradient(
          from 90deg at calc(100% - var(--r)) calc(100% - var(--r)),
          #0000 25%, #000 0
        );
  --_d: calc(var(--s) + var(--r));

  /* Bottom-right inward radius mask with offsets */
  mask:
    calc(100% - var(--_d) - var(--x)) 100% var(--_m),
    100% calc(100% - var(--_d) - var(--y)) var(--_m),
    radial-gradient(var(--s) at 100% 100%, #0000 99%, #000 calc(100% + 1px))
      calc(-1*var(--r) - var(--x)) calc(-1*var(--r) - var(--y)),
    var(--_g) calc(-1*var(--_d) - var(--x)) 0,
    var(--_g) 0 calc(-1*var(--_d) - var(--y));
  mask-repeat: no-repeat;

  /* Safari */
  -webkit-mask:
    calc(100% - var(--_d) - var(--x)) 100% var(--_m),
    100% calc(100% - var(--_d) - var(--y)) var(--_m),
    radial-gradient(var(--s) at 100% 100%, #0000 99%, #000 calc(100% + 1px))
      calc(-1*var(--r) - var(--x)) calc(-1*var(--r) - var(--y)),
    var(--_g) calc(-1*var(--_d) - var(--x)) 0,
    var(--_g) 0 calc(-1*var(--_d) - var(--y));
  -webkit-mask-repeat: no-repeat;

  /* Ensure it never blocks your cards */
  z-index: -1;
  pointer-events: none;
}

/* If you still need to force stacking above, keep this—optional now */
.contact-card > * {
  position: relative;
  z-index: 1;
}

.bm47-video video {
	border-radius: 1.5rem;
	object-fit: cover;
}

/* Key Benefits */
.overlay-icon {
  position: absolute;
  top: 0; 
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 2.5rem;
  padding: 0.75rem;
  border-radius: 100%;
  background: var(--burgundy);
  z-index: 2;
}

.kt-accordion-panel-inner {
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
}


@media (max-width: 768px) {
	.page .hero {
		padding: 2rem 5rem;
	}
	
  .inner-container {
    padding: 2rem;
  }
	
	.hero .content {
		padding: 0rem;
	}	
}

@media (max-width: 500px) {
	.page .hero {
		padding: 2rem;
	}
	
	.hero .content {
		min-height: 16rem;
	}
	
  .inner-container {
    padding: 2rem;
  }

}

/*  === Map SVG === */
.mapsvg-wrap .mapsvg {
  border-radius: var(--border-radius);
}

/* === 404 Error Page === */
.upcoming-events-wrapper {
  position: relative;
  background-color: var(--bg);
}

.error-page {
  text-align: center;
}

.error-page h1, 
.error-page p {
	color: var(--black);
}

.error-subheader {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.error-subheader a {
	margin-inline: auto;
}

/* === Keyframes === */
/* Fade Up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Live Fixes === */

/* === Testimonials ===  */

/* === Gravity Forms === */
.gform_title {
	font-size: var(--fs-base);
	color: var(--bg);
	padding: 0.75rem;
	background: var(--gray);
	width: fit-content;
	border-radius: var(--border-radius);
}

.gf-form-title {
/* 	Second title */
	display: none;
}

.gform_description {
	font-size: var(--fs-2xl);
	line-height: 1.2;
	font-weight: 500;
}

.gravity-theme input, 
.gravity-theme textarea,
select#input_3_5_6 {
	color: white;
    border: 1px solid white;
    padding: 1rem !important;
    border-radius: 0.75rem;
    background: black;
}

.gform_button {
  text-transform: uppercase !important;
  color: var(--bg) !important;
  padding: 0.5rem 2rem !important;
  border-radius: 50px !important;
  background-color: var(--burgundy) !important;
  display: inline-block !important;
  align-self: flex-start !important;
  letter-spacing: 0px !important;
  min-width: 150px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: 0.3s !important;
border: none !important;
}

