/* Light modernisation layer for the static site; loaded after custom.css */

:root {
	--gold: #bd8439;
	--radius: 8px;
}

/* Navbar: softer black, thin gold underline instead of solid blocks */
#menu {
	background: #141414;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}
.navbar-nav > li:hover,
.navbar-nav > li.wj-teaser:hover { background: none; }
.navbar-nav > li > a,
.navbar-nav > li > a.wj-teaser {
	position: relative;
	padding-left: 16px;
	padding-right: 16px;
	font-size: 110%;
	letter-spacing: .06em;
	transition: color .2s ease;
}
.navbar-nav > li > a:after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 10px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transition: transform .25s ease;
}
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus { background: none; color: #fff; }
.navbar-nav > li > a:hover:after,
.nav > li.active > a:after { transform: scaleX(1); height: 2px; opacity: 1; }
.nav > li.active > a,
.nav > li.active > a:hover,
.nav > li.active > a:focus { background: none; color: #fff !important; }

/* Webshop as an outlined pill */
.navbar-nav > li > a.wj-teaser {
	color: var(--gold);
	font-weight: normal;
}
.navbar-nav > li > a.wj-teaser:after { display: none; }
.navbar-nav > li > a.wj-teaser {
	line-height: 30px; /* 30 + 2px border + 18px margin = 50px bar height; taller overflows and breaks the slider */
	margin: 9px 0 9px 10px;
	padding-top: 0;
	padding-bottom: 0;
	border: 1px solid var(--gold);
	border-radius: 999px;
	transition: background .2s ease, color .2s ease;
}
.navbar-nav > li > a.wj-teaser:hover,
.nav > li.active > a.wj-teaser {
	background: var(--gold);
	color: #fff !important;
}

/* Rounded images and content blocks (not the full-width slider) */
#mainbody img,
#bottom2 img,
.ba-gallery img,
.osmodul,
.leaflet-container,
.su-column-inner,
.module-content .custom > div[style*="background"] {
	border-radius: var(--radius);
}
.su-column-inner { overflow: hidden; }

/* Sticky (scrolled) navbar is narrower: tighten spacing so Webshop stays on one line */
.navbar-fixed .navbar-nav > li > a { padding: 15px 12px; }
.navbar-fixed .navbar-nav > li > a:after { left: 12px; right: 12px; }
.navbar-fixed .navbar-nav > li > a.wj-teaser {
	padding: 0 14px;
	margin: 9px 0 9px 6px;
	line-height: 30px;
}

/* Footer: address left, map right; copyright row underneath */
#footer .footer-contact { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
#footer .footer-address { flex: 1 1 260px; }
#footer .footer-address p { text-align: left !important; }
#footer .footer-map { flex: 1 1 320px; }
#footer .footer-map .osmodul { width: 100%; }
#footer .footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 0;
	border-top: 1px solid rgba(255, 255, 255, .15);
	font-size: 13px;
}
#footer .container:has(> .footer-bottom) { padding: 0; }
#footer .leaflet-control-zoom a { color: #000; }

/* Slider caption box ("Tromp Juwelier / Lees verder") */
/* The box is three stacked layers (title, text, button), each with its own background */
#slider h2[class*="n2-style-"] { border-radius: var(--radius) var(--radius) 0 0 !important; } /* slider styles load later and set 0 */
#slider a[class*="n2-style-"][class*="-heading"] { border-radius: 0 0 var(--radius) var(--radius) !important; }

/* Homepage image + text blocks: round each row, with a small gap so the corners show */
#bottom1 .gridstack-left { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.su-button { border-radius: 6px !important; }

/* Webjongens credit with typewriter (dark footer) */
#footer .footer-bottom { align-items: center; }
#footer .footer-bottom p { margin: 0; }
.credit { --credit-heart: #b39c6a; display: inline-flex; align-items: center; gap: .4rem; margin: 0; white-space: nowrap; }
#footer .credit__link { display: inline-flex; align-items: center; gap: .35rem; color: #fff; text-decoration: none; letter-spacing: .02em; }
.credit__link strong { font-weight: 700; }
.credit__link:hover span { text-decoration: underline; text-underline-offset: .2em; }
.credit__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.credit__heart { width: 18px; height: 18px; fill: var(--credit-heart); transition: transform 200ms cubic-bezier(.16, 1, .3, 1); }
.credit__link:hover .credit__heart { transform: scale(1.2); }
.credit__typed { display: inline-flex; align-items: center; gap: .4rem; min-width: 6.5em; color: rgba(255, 255, 255, .72); }
.credit__cursor { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; background: currentColor; animation: credit-blink 1s step-end infinite; }
@keyframes credit-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .credit__cursor { animation: none; } .credit__heart { transition: none; } }

/* Desktop: one bar with the logo as a white tab (same look as the sticky bar), no separate logo header.
   The bar is position: sticky, so the scroll script's fixed/unfixed switch no longer makes the page jump. */
@media (min-width: 769px) {
	.main-header { display: none; }
	#menu,
	#menu.navbar-fixed { position: sticky !important; top: 0; z-index: 100; width: 100%; height: 66px; }
	#menu .container { display: flex; align-items: center; max-width: 1170px; }
	#menu .container:before,
	#menu .container:after { display: none; }
	#menu .logo-menu,
	#menu .logo-menu.logo-fixed { display: block; position: static; float: none; flex: none; padding: 0; margin: 0 12px 0 0; }
	#menu .logo-menu a.navbar-brand { display: block; height: 66px; padding: 0 14px !important; margin: 0; background: #fff; }
	#menu .logo-menu img { display: block; height: 66px; max-height: none; width: auto; padding: 19px 0; box-sizing: border-box; }
	#menu .navbar-collapse { margin: 0; padding: 0; }
	#menu .navbar-nav,
	#menu.navbar-fixed .navbar-nav { display: flex; flex-wrap: nowrap; margin-left: 0; }
	#menu .navbar-nav > li > a { padding: 23px 12px; font-size: 100%; white-space: nowrap; }
	#menu .navbar-nav > li > a:after { left: 12px; right: 12px; bottom: 16px; }
	/* 32 + 2px border + 32px margin = 66px bar height; a taller pill overflows and breaks the slider */
	#menu .navbar-nav > li > a.wj-teaser { padding: 0 14px; margin: 16px 0 16px 6px; line-height: 32px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
	#menu .navbar-nav > li > a { padding-left: 7px; padding-right: 7px; font-size: 90%; }
	#menu .navbar-nav > li > a:after { left: 7px; right: 7px; }
	#menu .logo-menu img { padding: 22px 0; }
	#menu .logo-menu a.navbar-brand { padding: 0 10px !important; }
	#menu .logo-menu { margin-right: 6px; }
}

/* Slider: dots instead of arrows */
.nextend-arrow { display: none !important; }
.slider-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 20;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	box-shadow: 0 0 4px rgba(0, 0, 0, .3);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.slider-dots button:hover { background: #fff; }
.slider-dots button.is-active { background: #b39c6a; border-color: #b39c6a; transform: scale(1.2); }

/* Pages without a slider (Webshop): keep the title clear of the navbar */
#menu + #mainbody { padding-top: 40px; }

@media (max-width: 768px) {
	#footer .container,
	#footer .container:has(> .footer-bottom) { padding-left: 16px; padding-right: 16px; }
}

/* Gallery: photos are cropped inside .ba-image, so round that frame */
.ba-gallery .ba-image { border-radius: var(--radius); }
#footer .footer-address h2 { font-size: 26px; margin-bottom: 18px; }

/* Homepage blocks: bigger titles, calmer buttons */
#bottom1 .gridstack-tekst h2 { font-size: 30px; }
#bottom1 .su-button span {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-size: 17px !important;
	line-height: 1.25 !important;
	padding: 10px 26px !important;
}
#bottom1 .su-button small { display: block; padding: 0 !important; margin-top: 2px; font-size: 13px !important; }

/* Gallery row had Bootstrap's -15px margins without a padded container, so the outer photos were clipped */
.ba-gallery > .row { margin-left: 0; margin-right: 0; }
.ba-gallery { padding: 0 16px; }
.ba-gallery .ba-gallery-grid { padding-left: 0; padding-right: 0; }

/* Dots placed under a block instead of on top of an image */
.slider-dots--below { position: static; margin: 20px 0 10px; }
.slider-dots--below button { border-color: #ccc; background: #ddd; box-shadow: none; }
.slider-dots--below button:hover { background: #bbb; }
#wk-9f7 .uk-slidenav-container { display: none; } /* brand slideshow: dots only */

/* Bold navbar items */
#menu .navbar-nav > li > a,
#menu .navbar-nav > li > a.wj-teaser { font-family: 'frankbold'; font-weight: normal; }

/* Brand card (Onze merken): soft shadow on all sides */
#wk-9f7 .uk-card-default { box-shadow: 0 0 22px rgba(0, 0, 0, .1); border-radius: var(--radius); }
#wk-9f7 { padding: 24px; } /* room for the shadow: the parent module clips overflow */
