/*
Theme Name: Whitish Modern Minimal
Theme URI: https://ff-walten.com
Author: ff.walten
Version: 1.2
Description: Clean, minimal theme with improved typography, submenu fixes, vertical-centered menu, stable indicators, and optimized spacing.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
	--ff-color: #af2b1e;
	--ff-color-rgb: rgb(175,43,30);

	--bg: #ffffff;
	--text: #000000;
	--muted: #f7f7f7;
	--muted-2: #f2f2f2;
	--border: #e6e6e6;
	--link: #000000;

	--hero-h-desktop: 360px;
	--hero-h-tablet: 300px;
	--hero-h-mobile: 220px;

	--radius-sm: 2px;
	--icon-size: 16px;

	/** font sizes */
	--font-size-xxs: 0.7rem;
	--font-size-xs: 0.8rem;
	--font-size-s: 0.9rem;
	--font-size-normal: 1rem;
	--font-size-l: 1.2rem;
	--font-size-xl: 1.4rem;
	--font-size-xxl: 2.2rem;
}

/* -----------------------------------------------------
   2. BASE RESET
----------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.site-header,
.site-footer {
	flex-shrink: 0;

	font-family: "Montserrat", sans-serif;
	font-size: var(--font-size-s);
	font-weight: bolder;

	border-top: 1px solid var(--border);
	background: var(--muted-2);
}
.site-header {
	background: var(--bg);
	z-index: 1001;
}
.site-content,
.layout {
	display: grid;
	grid-template-columns: 1fr !important;

	padding: 40px 0;

	flex: 1 0 auto;
	gap: 40px;

	min-height: calc(100vh - var(--header-height, 56px) - var(--footer-height, 76px));
}

body {
	display: flex;
	flex-direction: column;

	margin: 0;

	font-family: "Montserrat", sans-serif;

	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

img {
	display: block;

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

a {
	color: var(--link);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

.container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 16px;
}

.visually-hidden {
	position: absolute!important;
	width: 1px!important;
	height: 1px!important;
	padding: 0!important;
	margin: -1px!important;
	overflow: hidden!important;
	clip: rect(0,0,0,0)!important;
	white-space: nowrap!important;
	border: 0!important;
}

/* -----------------------------------------------------
   3. HEADER
----------------------------------------------------- */


.header-inner {
	display: flex;

	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 56px;
}

/* -----------------------------------------------------
   4. LOGO
----------------------------------------------------- */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.custom-logo,
.custom-logo-link img,
.custom-logo-link svg {
  height: 56px;
  max-height: 56px;
  width: auto;
  display: block;
}

@media (max-width: 820px) {
  .custom-logo,
  .custom-logo-link img,
  .custom-logo-link svg {
	height: 48px;
	max-height: 48px;
  }
}

/* -----------------------------------------------------
   5. MAIN NAVIGATION
----------------------------------------------------- */
.primary-nav {
  display: flex;
  align-items: center;
  position: relative;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.menu > li { position: relative; }

.menu > li > a {
	display: inline-flex !important;

	font-family: "Montserrat", sans-serif;
	font-weight: bold;
	font-size: var(--font-size-s);

	align-items: center !important;
	gap: 6px;
	white-space: nowrap !important;
	line-height: 1.2 !important;
	transition: color .2s ease-in-out;
	text-decoration: none;
	color: rgba(0,0,0,0.8)
}

.menu > li > a:hover,
.menu > li > a:focus {
	color: #af2b1e;
}

.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 10px;
}

.menu > li.menu-item-has-children > a::after {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-block !important;
  line-height: 1 !important;
  margin: 0;
  padding: 0;
  position: static;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='6 9 12 15 18 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
		  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='6 9 12 15 18 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  transition: transform .12s ease-in-out;
}

/* -----------------------------------------------------
   6. SUBMENU
----------------------------------------------------- */
.menu > li > .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 220px;
  list-style: none;
  z-index: 1001;

  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .12s ease-out, transform .12s ease-out, visibility 0s linear .12s;
  pointer-events: none;

  padding: 2rem;
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .12s ease-in, transform .12s ease-in, visibility 0s;
}

.menu .sub-menu {
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.08);
	border: 1px solid var(--border);
}

.menu .sub-menu > li > a {
	display: inline-flex !important;

	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: var(--font-size-s);

	position: relative;
	padding: 10px 14px;
	/* border-radius: 4px; */
	transition: color .2s ease-in-out;
	text-decoration: none;
	color: rgba(0,0,0,0.8)
}

.menu .sub-menu > li > a:hover {
	color: #af2b1e;
	/* color: rgba(0,0,0,0.7) */
}

.menu .sub-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 12px;
	height: 12px;
	display: inline-block;
	margin-left: auto;
	background-color: currentColor;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><polyline points='9 6 15 12 9 18'/></svg>");
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><polyline points='9 6 15 12 9 18'/></svg>");
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: var(--bg);
  border-radius: 8px;
  padding-inline: 14px;
  line-height: 0;
  color: var(--text);
  height: 56px;
}

/* -----------------------------------------------------
   7. LAYOUT
----------------------------------------------------- */

.home .layout {
	grid-template-columns: 3fr 1fr !important;
}

.site-sidebar {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

/* -----------------------------------------------------
   8. CONTENT
----------------------------------------------------- */
.post {
  border-bottom: 1px solid var(--border);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.post:last-child { border-bottom: none; }

.post .entry-meta {
  color: #666;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: var(--font-size-s);
}

h1, h2 { font-family: "Montserrat", sans-serif; font-weight: 400; }
h3, h4 { font-family: "Montserrat", sans-serif; font-weight: 200; }

/* -----------------------------------------------------
   9. FOOTER
----------------------------------------------------- */
.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;

	/* padding: 20px;
	padding-bottom: 30px; */

	padding: 1.2rem;
	padding-bottom: 1.3rem;
}

.footer-credits {
	display: flex;
	flex-grow: 1;
	color: #444;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.footer-links a {
  color: #444;
  text-decoration: none;
  transition: color .15s ease-in-out;
}
.footer-links a:hover {
  color: #af2b1e;
  text-decoration: underline;
}


/** self-defined */
.type-page h1.entry-title,
h1.hero-title {
	/* font-family: "Montserrat", sans-serif; */
	font-weight: bold;
	font-size: var(--font-size-xxl);
	padding-top: 1.5rem;
	letter-spacing: -2px;
	text-align: center;
	text-transform: uppercase;
	color: rgb(12,13,15);
}
h1.hero-title {
	color: rgb(163,15,15);
}
.type-page h2.wp-block-heading {
	font-family: "Montserrat", sans-serif;
	font-weight: bold;
	font-size: var(--font-size-xl);
	color: rgb(163,15,15);
	letter-spacing: 0.48px;
	text-align: center;
	text-transform: uppercase;
	color: var(--ff-color);
}

.type-page figure.wp-block-table {
	font-family: "Montserrat", sans-serif;
	font-weight: 200;
	font-size: var(--font-size-s);
}
.type-post h1.entry-title {
	font-family: "Montserrat", sans-serif;
	font-size: var(--font-size-l);
}
/** ------------ */

/** cmplz */
.cmplz-cookiebanner {
	margin-bottom: 0.5rem;
}
.cmplz-title {
	font-family: "Montserrat", sans-serif;
	font-size: var(--font-size-l) !important;
	font-weight: 600;
}
.cmplz-message {
	font-family: "Montserrat", sans-serif;
	font-size: var(--font-size-s) !important;
	font-weight: 200;
}
.cmplz-btn {
	font-family: "Montserrat", sans-serif;
	font-size: var(--font-size-s) !important;
	font-weight: 600;
}
.cmplz-links ul {
	width: 100%;
	justify-content: space-around !important;
}
.cmplz-link {
	font-family: "Montserrat", sans-serif;
	font-size: var(--font-size-s) !important;
	font-weight: 600;

	color: black !important;

	text-decoration: none !important;
}
/** ----- */

/** flame divider */
.flame-divider {
	--flame-size: 22px;

	height: var(--flame-size);

	background-color: rgba(0,0,0,0.65);
	background-repeat: no-repeat;
	background-position: center;
	background-size: var(--flame-size) var(--flame-size);

	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'><path fill='black' d='M35.56 40.73c-.57 6.08-.97 16.84 2.62 21.42 0 0-1.69-11.82 13.46-26.65 6.1-5.97 7.51-14.09 5.38-20.18-1.21-3.45-3.42-6.3-5.34-8.29-1.12-1.17-.26-3.1 1.37-3.03 9.86.44 25.84 3.18 32.63 20.22 2.98 7.48 3.2 15.21 1.78 23.07-.9 5.02-4.1 16.18 3.2 17.55 5.21.98 7.73-3.16 8.86-6.14.47-1.24 2.1-1.55 2.98-.56 8.8 10.01 9.55 21.8 7.73 31.95-3.52 19.62-23.39 33.9-43.13 33.9-24.66 0-44.29-14.11-49.38-39.65-2.05-10.31-1.01-30.71 14.89-45.11 1.18-1.08 3.11-.12 2.95 1.5Z'/></svg>") center / var(--flame-size) no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'><path fill='black' d='M35.56 40.73c-.57 6.08-.97 16.84 2.62 21.42 0 0-1.69-11.82 13.46-26.65 6.1-5.97 7.51-14.09 5.38-20.18-1.21-3.45-3.42-6.3-5.34-8.29-1.12-1.17-.26-3.1 1.37-3.03 9.86.44 25.84 3.18 32.63 20.22 2.98 7.48 3.2 15.21 1.78 23.07-.9 5.02-4.1 16.18 3.2 17.55 5.21.98 7.73-3.16 8.86-6.14.47-1.24 2.1-1.55 2.98-.56 8.8 10.01 9.55 21.8 7.73 31.95-3.52 19.62-23.39 33.9-43.13 33.9-24.66 0-44.29-14.11-49.38-39.65-2.05-10.31-1.01-30.71 14.89-45.11 1.18-1.08 3.11-.12 2.95 1.5Z'/></svg>") center / var(--flame-size) no-repeat;
}
/** ------------- */

/* -----------------------------------------------------
   10. RESPONSIVE
----------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .layout {
	grid-template-columns: 2fr 1fr;
	gap: 28px;
  }
}

/* Mobile Menu */
@media (max-width: 820px) {

	.container {
		padding: 0px 12px;
	}

	.home .layout {
		grid-template-columns: 1fr !important;
	}

	.container.header-inner {
		padding: 14px 6px;
	}
	.site-branding { min-height: 48px; }

	.nav-toggle {
		display: inline-flex;
		height: 48px;
		padding-inline: 12px;
	}

	.nav-toggle__icon {
		width: 28px;
		height: 28px;
		overflow: visible;
		display: block;
	}
	.nav-toggle__icon line {
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		shape-rendering: geometricPrecision;
		transition: opacity .15s ease;
	}
	.nav-toggle .icon-hamburger {
		color: #af2b1e;
		opacity: 1;
		transition: opacity .15s ease;
	}
	.nav-toggle .icon-x {
		color: #af2b1e;
		opacity: 0;
		transition: opacity .15s ease;
	}
	.nav-toggle[aria-expanded="true"] .icon-hamburger {
		opacity: 0;
	}
	.nav-toggle[aria-expanded="true"] .icon-x {
		opacity: 1;
	}

	.menu {
		width: 94%;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		display: none;
		flex-direction: column;
		position: fixed !important;
		top: 68px;
		background: var(--bg);
		border: 1px solid var(--border);
		border-radius: var(--radius-sm);
		padding: 12px;
		gap: 24px;
	}

	.primary-nav.is-open .menu {
		display: flex;
	}

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

	.home-hero__media {
		padding: 0 12px;
	}

	.site-sidebar {
		display: none;
	}

	.footer-inner {
		padding: 0.6rem;

		font-size: var(--font-size-xxs);

		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.footer-links {
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.7rem 1.25rem;
	}

	/** self-defined */
	.type-page h1.entry-title,
	h1.hero-title {
		padding-top: 0.6rem;

		font-size: var(--font-size-xl);
		letter-spacing: -2px;
	}
	.type-page h2.wp-block-heading {
		font-size: var(--font-size-normal);
	}
	.type-page figure.wp-block-table {
		font-weight: 200;
		font-size: var(--font-size-xs);
	}
	/** ------------ */

	/** flame divider */
	.flame-divider {
		--flame-size: 14px;
	}
	/** ------------- */
}

/* Small Screens */
@media (max-width: 560px) {
  /* .container { padding: 0 12px; } */
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle { transition: none; }
  .nav-toggle__icon .line { transition: none; }
}

/* -----------------------------------------------------
   11. ADDITIONAL FONT SIZING
----------------------------------------------------- */

.home-hero__media { padding: 24px 0; }

/* Grid fallback/option */
.hero-grid__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm, 2px);
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero-carousel { grid-auto-columns: minmax(75%, 1fr); }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
}

.hero-carousel-wrap {
  position: relative;
}

/* Hide native scrollbar while keeping scrollability */
.hero-carousel::-webkit-scrollbar-thumb { background: transparent; }

/* Arrow buttons */
.hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  border: none !important;
  background: none !important;
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: color .2s ease-in-out;
}
.hero-carousel__nav svg {
	width: 48px;
	height: 48px;
}
.hero-carousel__nav--prev { left: 6px; }
.hero-carousel__nav--next { right: 6px; }

.hero-carousel__nav:hover,
.hero-carousel__nav:focus-visible {
  color: rgba(163,15,15,1);
  outline: none;
}

/* Responsive tuning */
@media (max-width: 1024px) {
  .hero-carousel { grid-auto-columns: minmax(75%, 1fr); }
}
@media (max-width: 560px) {
	.hero-grid { grid-template-columns: 1fr; gap: 12px; }
	.hero-carousel { grid-auto-columns: 90%; gap: 12px; }
	.hero-carousel__nav { inline-size: 36px; block-size: 36px; }
	.hero-carousel__img,
	.hero-grid__img { height: var(--hero-h-mobile); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel { scroll-behavior: auto; }
}

/* Grid variant you already have */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* <-- The important bits: width 100%, fixed height, cover-cropped --> */
.hero-carousel__img,
.hero-grid__img {
  display: block;
  width: 100%;
  height: var(--hero-h-desktop);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm, 2px);
}

/* Responsive height + layout tweaks */
@media (max-width: 1024px) {
  .hero-carousel { grid-auto-columns: minmax(75%, 1fr); }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-carousel__img,
  .hero-grid__img { height: var(--hero-h-tablet); }
}

.hero-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;   /* one full-width slide per view */
  gap: 0;                    /* no gaps between slides */
  overflow-x: auto;          /* allows swipe; JS handles arrows/auto */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel__img {
  width: 100%;
  height: var(--hero-h-desktop, 360px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm, 2px);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .hero-carousel__img { height: var(--hero-h-tablet, 300px); }
}
@media (max-width: 560px) {
  .hero-carousel__img { height: var(--hero-h-mobile, 220px); }
}

/* (Optional) hide native scrollbar while keeping swipe & JS control */
.hero-carousel::-webkit-scrollbar { height: 0; }
.hero-carousel { scrollbar-width: none; }
