:root {
  /* Note: All variables starting with --wp--preset-- come from theme.json as these are used in gutenberg block editor and an also be used here for consistency */

  /* Color Palette */

  /* Force Light mode */
  color-scheme: light !important;
  --light-bg: #f6f6f6;

  /* Typography */

  /* --bulma-family-primary: var(--wp--preset--font-family--base); */
  /* --bulma-body-line-height: 1.5em; */

  /* Navbar */

  --bulma-navbar-height: 130px;
}

@media screen and (max-width: 768px) {
  :root {
    --bulma-navbar-height: 50px;
  }
}

/* ====================
* WordPress Admin
==================== */

body:has(#wpadminbar) .navbar.is-fixed-top {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body:has(#wpadminbar) .navbar.is-fixed-top {
    top: 46px;
  }
}

/* ====================
* Accessibility
==================== */

/* High-contrast focus outlines (WCAG) */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ====================
* Typography
==================== */
body {
  font-size: 16px;
}


h1:not(:last-child),
h2:not(:last-child),
h3:not(:last-child),
h4:not(:last-child),
h5:not(:last-child),
p:not(:last-child),
img:not(:last-child) {
  margin-bottom: 20px;
}

.text-is-h1,
.text-is-h2,
.text-is-h3,
.text-is-h4,
.text-is-h5 {
  font-weight: 700;
  line-height: 1.2;
}
.text-is-h2 {
	font-weight: 400;
}
.text-is-h1 {
  font-size: var(--wp--preset--font-size--h-1);
}
.text-is-h2 {
  font-size: var(--wp--preset--font-size--h-2);
}
.text-is-h3 {
  font-size: var(--wp--preset--font-size--h-3);
}
.text-is-h4 {
  font-size: var(--wp--preset--font-size--h-4);
}
.text-is-h5 {
  font-size: var(--wp--preset--font-size--h-5);
}
h1, 
h1.title {
	  font-weight: 400;
}
h2 {
  font-weight: 400;
}

a {
  text-underline-offset: 3px;
}
strong {
  color: inherit;
}

@media(max-width:768px){
	h1, h1.wp-block-heading  {
		font-size: 2rem;
	}
	h2, h2.wp-block-heading  {
		font-size: 1.65rem;
	}
}
/* ====================
* Spacing
==================== */

.mb-20 {
  margin-bottom: 20px !important;
}

.pt-container-y {
  padding-top: var(--wp--preset--spacing--container-y) !important;
}
.pb-container-y {
  padding-bottom: var(--wp--preset--spacing--container-y) !important;
}
.pl-container-x {
  padding-left: var(--wp--preset--spacing--container-x) !important;
}
.pr-container-x {
  padding-right: var(--wp--preset--spacing--container-x) !important;
}

/* ====================
* Layout
==================== */

.container {
  max-width: var(--wp--style--global--content-size) !important;
  padding-top: var(--wp--preset--spacing--container-y);
  padding-right: var(--wp--preset--spacing--container-x);
  padding-bottom: var(--wp--preset--spacing--container-y);
  padding-left: var(--wp--preset--spacing--container-x);
}
.content-narrow {
  width: 700px;
  max-width: 100%;
}
/* ====================
* Single
==================== */

.single .featured-img {
  max-height: 50vh;
  width: 100%;
}
.single .featured-img img {
  object-fit: cover;
  object-position: center;
}

/* ====================
* Header
==================== */

header .navbar {
  background: black;
}

.navbar {
  --bulma-navbar-item-img-max-height: 180px;
}
.navbar-brand,
.navbar-menu {
  margin: 0 !important;
}
.navbar-item {
  padding-left: 0;
  padding-right: 0;
}

/* Make Bulma navbar menu visible when toggled (we handle with [data-expanded]) */
.navbar-menu[hidden] {
  display: none;
}

.navbar-menu ul.menu {
  align-items: center;
  gap: 2rem;
}
.navbar-menu ul.menu a {
  color: #fff;
  text-decoration: none;
  
}
.navbar-menu ul.menu > li > a {
	position: relative;
}

.navbar-menu ul.menu > li > a:after {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    bottom: -.4em;
    margin: 0 auto -2px;
    height: 2px;
    width: 100%;
    opacity: 0;
    transition: all 0.3s;
	background: white;
}
.navbar-menu ul.menu > li > a:hover:after {
	 opacity: 1;
	 margin: 0 auto;
}

.navbar-burger {
  color: #fff;
}

.navbar-burger span:nth-child(4) {
  top: auto;
  bottom: 13px;
}

@media screen and (max-width: 768px) {
  .navbar-item.site-branding img {
    height: 50px;
    width: auto;
  }
  .navbar-menu ul.menu > li > a:after {
	  display:none;
  }
}

/* Mobile Menu */

.navbar-menu .menu-dropdown {
  position: relative;
}
.navbar-menu .menu-dropdown a {
  padding-right: 25px;
}

/* Chevron toggle button */
.submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.submenu-toggle svg {
  fill: currentColor;
  transition: transform 0.2s ease-in-out;
}

header nav .navbar-menu .sub-menu {
  display: none;
  position: absolute;
  background-color: transparent;
  min-width: 300px;
  padding-top: 53px;
  
}
header nav .navbar-menu .sub-menu > li {
  background-color: #fff;
  padding: 5px 15px;
}
header nav .navbar-menu .sub-menu > li:first-child {
  padding-top: 15px;
}
header nav .navbar-menu .sub-menu > li:last-child {
  padding-bottom: 15px;
}
header nav .navbar-menu .sub-menu > li > a {
  color: #555;
}
header nav li:hover > .sub-menu,
header nav li:has(> a:focus) .sub-menu {
/*  display: block; */
}

header nav .navbar-menu .sub-menu > li > a:hover,
header nav .navbar-menu .sub-menu > li > a:focus {
  color: #000;
}

@media screen and (max-width: 1023px) {
  header .container {
    padding: 0 10px;
  }

  .navbar-menu.is-active {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--wp--preset--color--black);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }

  .navbar-menu ul.menu {
    display: block !important;
    gap: 0;
  }

  .navbar-menu ul.menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-menu .sub-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9em;
  }

  .navbar-menu .sub-menu li > a {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .navbar-menu .sub-menu li:last-child a {
    border-bottom: none;
  }

  .navbar-menu .menu-dropdown a {
    padding-right: 50px;
  }

  .submenu-toggle {
    width: 50px;
  }

  .submenu-toggle svg {
    fill: currentColor;
    transition: transform 0.2s ease-in-out;
  }

  header nav .navbar-menu .sub-menu {
    position: static;
    background-color: rgba(0, 0, 0, 0.2);
    min-width: 0;
    padding-top: 0;
  }

  header nav li:hover > .sub-menu,
  header nav li:has(> a:focus) .sub-menu {
    display: none;
  }

  /* Open state for sub-menu */
  header nav li.menu-item-has-children.submenu-open > .sub-menu {
    display: block;
  }

  .menu-item-has-children.submenu-open > .submenu-toggle svg {
    transform: rotate(180deg);
  }
}

/* ====================
* Footer
==================== */

footer {
  padding: 74px 0;
}

footer .text-is-h3 {
	font-weight: 400;
}

@media(max-width: 768px){
	footer .text-is-h3 {
		font-size: 1.25rem;
	}
}
/* ====================
* Hero
==================== */

.hero {
  background-color: var(--light-bg);
}
.hero h1.title {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .hero h1.title {
    margin-bottom: 10px;
  }
}

/* ====================
* Breadcrumbs
==================== */

#breadcrumbs {
  margin-bottom: 0;
}

#breadcrumbs a {
	text-decoration:none;
}
#breadcrumbs a:hover {
	text-decoration:underline;
}
#breadcrumbs .breadcrumb_last {
	color: #777;
}
/* ====================
* Formidable
==================== */

.frm_forms .frm_button_submit {
  text-transform: uppercase;
}

/* ====================
* Google Map
==================== */

.google-map {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 450;
}

/* ====================
* Shortcodes
==================== */

/* Social Icons */

.social-icons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  line-height: 0;
}
.social-icons a {
  color: var(--wp--preset--color--button-500);
  text-decoration: none;
  display: inline-block;
}
.social-icons a:hover {
  color: var(--wp--preset--color--button-600);
}
.social-icons svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  transition: color 0.3s ease;
}

/* Child pages */
.child-page-card {
  display: block;
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
}

.child-page-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.child-page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8); /* 80% black */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
}

.child-page-title {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  z-index: 2;
}

/* ====================
* WP - Blocks
==================== */

/* Button */

.is-btn-light .wp-block-button__link:hover {
  background-color: #e6e6e6 !important;
}

/* Quote */

.wp-block-quote:before {
  content: '\201C';
  margin-bottom: var(--wp--preset--spacing--normal);
  display: block;
  font-family: Georgia, serif;
  line-height: 1em;
  font-size: 140px;
  margin-bottom: -0.5em;
}

/* List */

ul.wp-block-list {
  list-style-type: disc;
}

/* Details */

.wp-block-details {
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  margin: 0;
  margin-bottom: -1px;
}
.wp-block-details p {
  font-size: var(--wp--preset--font-size--large);
  color: #444;
}
.wp-block-details > summary,
.wp-block-details > * {
  padding-left: 12px;
  padding-right: 12px;
}
.wp-block-details > summary {
  padding-top: 16px;
  padding-bottom: 16px;
  transition: all 0.3s;
}
.wp-block-details[open] > summary,
.wp-block-details > summary:hover {
  background-color: rgba(0, 0, 0, 0.04);
}
.wp-block-details > summary + * {
  margin-top: var(--wp--preset--spacing--normal);
}
.wp-block-details > :last-child {
  margin-bottom: var(--wp--preset--spacing--normal);
}

.wp-block-details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.wp-block-details > summary::after {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-bottom: 2px solid var(--wp--preset--color--body-500);
  border-right: 2px solid var(--wp--preset--color--body-500);
  margin-left: 1rem;
  transform: rotate(45deg);
  transition: transform 0.2s ease-in-out;
}

.wp-block-details[open] > summary::after {
  transform: rotate(-135deg);
}
