/*────────────────────────────────────────────────────────────────────────────
   Off-Canvas Navigation
────────────────────────────────────────────────────────────────────────────*/

.offcanvas-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: #3b1200;
  transform: translateX(-105%);
  transition: transform .4s ease;
  z-index: 90;
  overflow-y: auto;
}

.offcanvas-nav.open {
  transform: translateX(0);
}


/*────────────────────────────────────────────────────────────────────────────
   Home Scroll-Down Arrow (bouncing)
────────────────────────────────────────────────────────────────────────────*/

.home-scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 200;
}

.home-scroll-down-trigger {
  display: inline-block;
  animation: home-bounce 2s infinite;
  cursor: pointer;
}

.home-scroll-down-icon {
  width: 2rem;
  height: 2rem;
  stroke: rgba(255,255,255,0.8);
  transition: stroke 0.3s;
}

.home-scroll-down-trigger:hover .home-scroll-down-icon {
  stroke: #fff;
}

/* Bounce keyframes (scoped for home arrow) */
@keyframes home-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}


/*────────────────────────────────────────────────────────────────────────────
   ENTER SITE
────────────────────────────────────────────────────────────────────────────*/

#enter_site {
	position:		fixed;
	left:			0;
	top:			0;
	width:			100%;
	height:			100vh;
	background:		#fff;
	z-index:		900;
	opacity:		1;
	overflow:		hidden;
	transition:		visibility 1s ease-out,
				opacity 1s ease-out;
}

#enter_site_btn {
	position:		fixed;
	left:			calc(50% - 60px);
	top:			calc(50% - 1rem + 30px);
	width:			120px;
	padding:		.5rem;
	text-align:		center;
	font-size:		1.5rem;
	line-height:		1.5rem;
	color:			#fff;
	background-color:	#a1905f;
	z-index:		900;
	cursor:			pointer;
}

#enter_site > img {
	position:		absolute;
	inset:			0;
	width:			100%;
	height:			100%;
	object-fit:		cover;
	object-position:	center; 
}

.arbitrarily-placed-and-sized-parent-element {
	position:		relative;
	top:			0;
	left:			0;
	width:			100vw;
	height:			100vh;
}

.video-embed-object-fit-cover {
	position:		absolute;
	top:			0;
	bottom:			0;
	left:			0;
	right:			0;
	width:			100%;
	height:			100%;
	container-type:		size;
	overflow:		hidden;
	z-index:		28;
}

.video-embed-object-fit-cover > iframe {
	position:		absolute;
	top:			50%;
	left:			50%;
	width:			100%;
	height:			100%;
	transform:		translate(-50%, -50%);

	@container (min-aspect-ratio: 16/9) {
		height: 56.25cqw; /* 100*9/16 */
	}

	@container (max-aspect-ratio: 16/9) {
		width: 177.78cqh; /* 100*16/9 */
	}

	pointer-events: none;
}


/*────────────────────────────────────────────────────────────────────────────
   OFFCANVAS BACKDROP
────────────────────────────────────────────────────────────────────────────*/

.offcanvas-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 89;
}

.offcanvas-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}


/*────────────────────────────────────────────────────────────────────────────
   Menu Links & Colors
────────────────────────────────────────────────────────────────────────────*/

.offcanvas-menu {
  list-style: none;
  margin: 0;
  padding: 4.5rem 0 0;
}

.offcanvas-menu li {
  position: relative;
}

.offcanvas-nav .offcanvas-menu a {
  display: block;
  padding: .25rem 2rem .25rem 1.75rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.offcanvas-nav .offcanvas-menu a:hover {
  background: rgba(255,255,255,.1);
}


/*────────────────────────────────────────────────────────────────────────────
   Submenu Toggle & Styling
────────────────────────────────────────────────────────────────────────────*/

.offcanvas-nav .offcanvas-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  padding-left: 0;
  margin: 0 0 0 1.25rem;
}

.offcanvas-nav .offcanvas-menu .submenu-open > .sub-menu {
  max-height: 800px;
}

.submenu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #64777c;
  padding: .325rem 1.5rem;
  margin-left: auto;
}

.offcanvas-nav .offcanvas-menu .sub-menu a {
  padding-left: 2rem;
}


/*────────────────────────────────────────────────────────────────────────────
   Hamburger Toggle Button
────────────────────────────────────────────────────────────────────────────*/

.menu-toggle {
  position: fixed;
  top: 6.75rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

button.menu-toggle:hover,
button.menu-toggle:focus {
  background-color: transparent;
}

.menu-toggle .hamburger {
  display: block;
  width: 2rem;
  height: 18px;
  position: relative;
}

.menu-toggle .hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  background: #6b2e24;
  left: 0;
  border-radius: 2px;
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.page_scrolled .menu-toggle .hamburger span {
  background: #fff;
}

body.offcanvas-open {
  overflow: hidden;
}

.menu-toggle .hamburger {
  position: relative;
  width: 36px;
  height: 20px;
}

.menu-toggle .hamburger span {
  position: absolute;
  left: 0;
  width: 32px;
  height: 3px;
}

.menu-toggle .hamburger span:nth-child(1) {
  top: 1px;
}

.menu-toggle .hamburger span:nth-child(2) {
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle .hamburger span:nth-child(3) {
  left: 16px;
  bottom: 0;
  width: 16px;
}

.menu-toggle.active {
  top: 2rem;
}

.menu-toggle.active .hamburger span:nth-child(1)::after,
.menu-toggle.active .hamburger span:nth-child(3)::before {
  content: none;
}

.menu-toggle.active .hamburger span:nth-child(1),
.menu-toggle.active .hamburger span:nth-child(3) {
  left: 0;
  width: 100%;
  background-color: #fff;
}

.menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle .hamburger span {
  transform-origin: center center;
}

.menu-toggle.active .hamburger span:nth-child(1),
.menu-toggle.active .hamburger span:nth-child(3) {
  left: 0;              /* full‑width from the left edge */
  width: 28px;          /* span the entire container */
  top: 50%;             /* drop them to vertical center */
  bottom: auto;         /* unset any bottom positioning */
  transform: translateY(-50%); /* pull back up by half their own height */
}

.menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(1)::after,
.menu-toggle.active .hamburger span:nth-child(3)::before {
  content: none;
}

body.page_scrolled .menu-toggle {
  top: 2rem;
}


/*────────────────────────────────────────────────────────────────────────────
   Site Branding (Logo) Styling
────────────────────────────────────────────────────────────────────────────*/

.site-branding {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 6rem 1rem;
  width: 100%;
  height: 180px;
  z-index: 120;
}

.site-logo-link {
  display: block;
}

.site-logo {
  display: inline-block;
}

/* move the reCAPTCHA v3 badge from bottom-right to bottom-left */
.grecaptcha-badge {
  left: 12px !important;
  right: auto !important;
  bottom: 12px !important;
  opacity: 0;
}

#home_add {
  position: absolute;
  left: -37%;
  bottom: 1.5rem;
  width: 70%;
  height: auto;
  z-index: 2;
}



/*────────────────────────────────────────────────────────────────────────────
   SOCIAL SIDEBAR (bottom-right)
────────────────────────────────────────────────────────────────────────────*/

.social-sidebar {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  z-index: 80;
}

.social-sidebar a {
  display: block;
  text-decoration: none;
}

.social-sidebar .icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
  transition: transform .3s ease, color .3s ease;
}

.social-sidebar a:hover .icon {
  transform: scale(1.15);
}

a.facebook_link,
a.instagram_link,
a.whatsapp_link,
a.linkedin_link,
a.email_link {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin: .25rem 0;
}

a.facebook_link > svg,
a.instagram_link > svg,
a.whatsapp_link > svg,
a.linkedin_link > svg,
a.email_link > svg {
  width: 2rem;
  height: 2rem;
  fill: #002e34;
}



/*────────────────────────────────────────────────────────────────────────────
   LANGUAGE SWITCHER
────────────────────────────────────────────────────────────────────────────*/

/* Compact language switcher: DE | EN | FR | ES | NL | RU */
.header-language-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.25rem;
}

.header-language-switcher select {
  padding: .25rem;
  color: #6b2e24;
  background-color: #fff;
  border-radius: 1rem; 	
  border: 1px solid #6b2e24;
}

.language-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.05); /* dimmed backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.language-modal-content {
  background: rgba(255, 255, 255, .9);
  padding: 0 2.5rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  max-width: 90%;
  width: 500px;
  text-align: center;
}

.language-modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--color-heading);
}

.language-options {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.language-options li {
  margin: 0;
}

.language-options a {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--color-link);
  border-radius: .75rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-options a:hover {
  background-color: var(--color-link);
  color: #fff;
}

.popup-dismiss {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.popup-dismiss:hover {
  color: var(--color-link-hover);
}



/*────────────────────────────────────────────────────────────────────────────
   PARALLAX SECTIONS
────────────────────────────────────────────────────────────────────────────*/

.parallax-section {
  position: relative;
  min-height: 100vh;
  padding: 0;
}

.parallax-break {
  height: 100vh;
  background-position: center 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-content {
  padding: 4.5rem 1.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#home.parallax-section,
#inicio.parallax-section,
#accueil.parallax-section,
#startseite.parallax-section {
  min-height: calc(100vh - 180px);
}

#home .section-content,
#inicio .section-content,
#accueil .section-content,
#startseite .section-content {
  padding: 0;
}

h1 {
  margin: 0 !important;
  padding: 0 !important;
}

.section-content figure {
  margin: .75rem -1.5rem;
}

#how-to-contact-us .section-content figure,
#wie-koennen-sie-uns-kontaktieren .section-content figure,
#como-contactar-con-nosotros .section-content figure,
#comment-nous-contacter .section-content figure,
#hoe-neem-je-contact-met-ons-op .section-content figure {
  margin: 0;
}

.parallax-section .section-content {
  transform: translateX(-80px);
  opacity: 0;
  transition: transform 1s ease-out, opacity .75s .25s ease-out;
}

.parallax-section img {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 1s ease-out, transform .75s .25s ease-out;
}

.parallax-section.visible .section-content {
  transform: translateX(0);
  opacity: 1;
  text-align: center;
}

.parallax-section.visible img {
  opacity: 1;
  transform: scale(1);
}

.nav-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: #fff;
  text-decoration: none;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.nav-arrow:hover {
  opacity: 1;
}

.nav-arrow-up {
  top: .625rem;
}

.nav-arrow-down {
  bottom: .625rem;
}

.nav-arrow-up svg,
.nav-arrow-down svg {
  stroke: #002e34;
}



/*────────────────────────────────────────────────────────────────────────────
  Sub-menu grid & tiles (upgraded style only)
────────────────────────────────────────────────────────────────────────────*/
.sub-menu-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem -1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sub-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-item .sub-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.sub-item .sub-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.sub-item .sub-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sub-item .sub-content h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  color: #333333;
}

.sub-item:hover,
.sub-item:focus {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.sub-item img {
  border-radius: 0; /* already handled in container */
  transition: none;  /* keep your own hover scale if you like */
}



/*────────────────────────────────────────────────────────────────────────────
  HORIZONTAL SUB ITEMS
────────────────────────────────────────────────────────────────────────────*/

/* Horizontal sub-items — mobile-friendly (no vertical scroll trap) */
.horizontal-sub-items {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;                 /* enables horizontal swipe */
  overflow-y: visible;              /* allow vertical flow/scroll */
  -webkit-overflow-scrolling: touch;
  /* IMPORTANT: let the browser decide the gesture direction */
  touch-action: auto;               /* was pan-x; that blocked vertical scroll */
  scroll-snap-type: x proximity;    /* softer snap so it doesn't "stick" */
  padding-block: 0.75rem;
  scrollbar-gutter: stable;
}

/* Each section as a horizontal card */
.horizontal-sub-items > .parallax-section {
  flex: 0 0 auto;
  min-width: clamp(260px, 85vw, 920px);
  scroll-snap-align: start;
  scroll-margin-left: 1rem;
}

/* Media inside cards */
.horizontal-sub-items img,
.horizontal-sub-items video,
.horizontal-sub-items iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Optional cosmetics — safe to remove */
.horizontal-sub-items > .parallax-section .section-content {
  border-radius: 12px;
}

/* Optional WebKit scrollbar look */
.horizontal-sub-items::-webkit-scrollbar { height: 8px; }
.horizontal-sub-items::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 999px; }

/* Responsive tweaks */
@media (min-width: 768px) {
  .horizontal-sub-items { gap: 1.25rem; }
  .horizontal-sub-items > .parallax-section { min-width: clamp(420px, 70vw, 1000px); }
}
@media (min-width: 1200px) {
  .horizontal-sub-items > .parallax-section { min-width: clamp(520px, 60vw, 1100px); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .horizontal-sub-items { scroll-snap-type: none; }
}

.page-template-default .social-sidebar {

}

.page-template-default .page-content {
  padding: 2rem;
}


/*────────────────────────────────────────────────────────────────────────────
  FOOTER
────────────────────────────────────────────────────────────────────────────*/

/* ---------- Footer ---------- */
.site-footer {
  background: #231f20;
  color: #fff;
  padding: calc(var(--spacing-lg) * 1.25) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  gap: var(--spacing-lg);
  grid-template-columns: 1fr;
}

.footer-heading {
  margin: 0 0 var(--spacing-sm);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer-brand .footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tagline {
  margin-top: .25rem;
}

.footer-address-text {
  margin: 0 0 var(--spacing-sm);
}

.footer-contact-links .footer-link,
.footer-legal-list .footer-link {
  text-decoration: none;
}

.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .25rem;
}

.site-info {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-base);
  border-top: 1px dashed rgba(0,0,0,.08);
  color: var(--color-muted);
  text-align: left;
  font-size: .9rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}


/*────────────────────────────────────────────────────────────────────────────
   BLOG
────────────────────────────────────────────────────────────────────────────*/

.post-template-default .menu-toggle {
	display:		none;
}

.post-template-default .social-sidebar {
	display:		none;
}

.post-template-default #blog {
	background-color:	auto;
}

.post-template-default .page_thumbnail {
	margin:			0 -1.5rem;
}

.blog_title {
	margin:			2rem 0;
	font-weight:		bold;
	font-size:		1.5rem;
	line-height:		1.5rem;
	text-align:		center;
}

.post-template-default .page_content {
	margin:			1.5rem;
}

.blog_post_datetime {
	font-size:		.75rem;
	margin-bottom:		2rem;
}

#blog #social-media {
	bottom:			unset;
	top:			8.5rem;
}

@media (min-width: 768px) {
	.post-template-default .site-content {
		margin:		0 25%;
		width:		50%;
	}
}


/*────────────────────────────────────────────────────────────────────────────
   TESTIMONIALS
────────────────────────────────────────────────────────────────────────────*/

.glsr-reviews {
	position:		relative;
	display:		flex;
}

.glsr-review {
	position:		absolute;
	opacity:		0 !important;
	visibility:		hidden;
	z-index:		1;
	transition:		opacity .5s ease-out,
				visibility .5s ease-out,
				transform .5s ease-out !important;
}

.glsr-review.review_on {
	opacity:		1 !important;
	visibility:		visible;
}



/*────────────────────────────────────────────────────────────────────────────
   CONTACT FORM 7
────────────────────────────────────────────────────────────────────────────*/

.wpcf7 .wpcf7-text {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border-style: dashed;
  border-width: 0 0 1px;
  border-color: #002e34;
}

.wpcf7 .wpcf7-submit {
  display: block;
  width: 200px;
  color: #fff;
  margin: 1rem auto 0;
  background-color: #002e34;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

#how-to-contact-us .section-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#how-to-contact-us .section-content p {
  margin: 0 0 1rem;
}

#how-to-contact-us .section-content p.vertical_fill {
  margin-top: auto;
}

#contact h3 {
  color: #407c94 !important;
}

.wpcf7-list-item {
  display: block;
  margin: 0;
}


/*────────────────────────────────────────────────────────────────────────────
   Bump fixed header/nav/toggle for the WP admin bar
────────────────────────────────────────────────────────────────────────────*/

body.admin-bar .offcanvas-nav {
  top: 46px;
  height: calc(100% - 46px);
}

body.admin-bar .menu-toggle {
  top: calc(4.5rem + 46px);
}

body.admin-bar .menu-toggle.active {
  top: calc(2rem + 32px);
}

body.admin-bar .header-language-switcher {
  top: calc(2rem + 46px);
}



/*────────────────────────────────────────────────────────────────────────────
   Responsive Width Cap
────────────────────────────────────────────────────────────────────────────*/

@media (min-width: 768px) {
  body.admin-bar .offcanvas-nav {
    top: 32px;
    height: calc(100% - 32px);
  }

  body.admin-bar .menu-toggle {
    top: calc(5.75rem + 32px);
  }

  body.offcanvas-open {
    overflow: unset;
  }

  #home_add {
    left: -20%;
    bottom: 1.5rem;
    width: 35%;
  }
 
  .offcanvas-backdrop {
    display: none;
  }

  .site-content {
    padding: 140px 0 0;
  }

  .site-branding {
    position: fixed;
    padding: 1.5rem 0 0;
  }

  .site-logo {
	height: 80px;
  }

  .menu-toggle {
	display:  none;
  }

  body.page_scrolled .menu-toggle {
    top: 2rem;
  }

  .header-language-switcher {
    position: fixed;
    right: 2rem;
    top: 2rem;
    z-index: 121;
  }

  .social-sidebar {
    right: 2rem;
    bottom: 2rem;
  }

  .offcanvas-nav {
    top: 180px;
    height: auto;
    transform: translateX(0);
  }

  .offcanvas-menu {
    display: flex;
    justify-content: center;
    padding: 0;
  }

  .offcanvas-nav .offcanvas-menu a {
    padding: .5rem;
    font-size: 1rem;
    line-height: 1rem;
  }

  .parallax-section {
    min-height: calc(100vh - 210px);
  }

  .parallax-section .section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
  }

  #how-to-contact-us .section-content {
    padding: 4.5rem 2rem;
  }

  #home.parallax-section .section-content,
  #inicio.parallax-section .section-content,
  #startseite.parallax-section .section-content,
  #accueil.parallax-section .section-content {
    max-width: unset;
    margin: 0;
    padding: 0;
  }

  .section-content figure {
    margin: 1.5rem -1.5rem;
  }

  .sub-menu-grid {
    margin: 1.5rem -1.5rem 0;
  }

  .footer-language-switcher {
    margin-top: 0;
  }

  .site-footer {
    padding: 2rem;
  }

  .footer-inner {

  }
}
