/*
Theme Name: DDL Medikal
Theme URI: https://ddlmedikal.com
Author: DDL Medikal
Description: Fast, template-driven corporate theme for DDL Medikal. Core blocks + patterns, no jQuery, no build step.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: ddl
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #0B2545;
	--navy-2: #13315C;
	--navy-3: #1D4373;
	--gold: #B08D57;
	--gold-soft: rgba(176, 141, 87, .18);
	--gray: #F4F6F9;
	--text: #1B1F24;
	--muted: #5A6472;
	--line: #E3E7EE;
	--white: #fff;
	--r: 10px;
	--r-sm: 8px;
	--r-lg: 12px;
	--shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 6px 20px rgba(11, 37, 69, .06);
	--shadow-lg: 0 2px 4px rgba(11, 37, 69, .05), 0 18px 40px rgba(11, 37, 69, .10);
	--wide: 1200px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: 3rem;
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --section: clamp(3rem, .5rem + 6.5vw, 6rem); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }
img, svg, video, iframe { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem); }
h3 { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--gray { background: var(--gray); }
.section__title { margin-bottom: 1.5rem; }

/* Eyebrow + lead */
.eyebrow {
	display: inline-flex; align-items: center; gap: .75rem;
	font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--navy-3); text-decoration: none; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); color: var(--muted); line-height: 1.6; max-width: 68ch; }
.lead--large { font-size: 1.125rem; color: var(--navy); line-height: 1.5; letter-spacing: -.01em; }
@media (min-width: 768px) { .lead--large { font-size: clamp(1.125rem, .9rem + .5vw, 1.25rem); } }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .8125rem 1.5rem;
	font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none;
	color: #fff; background: var(--navy); border: 1.5px solid var(--navy); border-radius: var(--r-sm);
	cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover, .wp-block-button__link:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn--small { min-height: 42px; padding: .5625rem 1.125rem; font-size: .9375rem; }
.btn--outline, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--navy); border-color: rgba(11, 37, 69, .25); }
.btn--outline:hover, .is-style-outline > .wp-block-button__link:hover { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--link, .is-style-ddl-link > .wp-block-button__link {
	background: none; border-color: transparent; color: var(--navy); padding-inline: .25rem; box-shadow: none;
}
.btn--link::after, .is-style-ddl-link > .wp-block-button__link::after {
	content: ""; width: 18px; height: 1px; background: var(--gold); transition: width .25s var(--ease);
}
.btn--link:hover, .is-style-ddl-link > .wp-block-button__link:hover { background: none; color: var(--navy); border-color: transparent; box-shadow: none; transform: none; }
.btn--link:hover::after, .is-style-ddl-link > .wp-block-button__link:hover::after { width: 30px; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--gray); border-color: var(--gray); color: var(--navy); }
/* Dark surfaces: links never override .btn; primary/outline/link variants switch to light colours */
:is(.site-footer, .ddl-section--navy, .cta-band) .btn:not(.btn--light, .btn--outline, .btn--link) { background: #fff; color: var(--navy); border-color: #fff; }
:is(.site-footer, .ddl-section--navy, .cta-band) .btn:not(.btn--light, .btn--outline, .btn--link):hover { background: var(--gray); border-color: var(--gray); color: var(--navy); }
:is(.site-footer, .ddl-section--navy, .cta-band) .btn.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
:is(.site-footer, .ddl-section--navy, .cta-band) .btn.btn--light:hover { background: var(--gray); border-color: var(--gray); color: var(--navy); }
:is(.site-footer, .ddl-section--navy, .cta-band) .btn.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
:is(.site-footer, .ddl-section--navy, .cta-band) .btn.btn--outline:hover { background: transparent; color: #fff; border-color: #fff; }
:is(.site-footer, .ddl-section--navy, .cta-band) .btn.btn--link, :is(.site-footer, .ddl-section--navy, .cta-band) .btn.btn--link:hover { color: #fff; }
.btn-row, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.wp-block-buttons { margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would become the containing block of the fixed mobile menu. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .25s var(--ease); }
.is-scrolled .site-header { border-color: var(--line); box-shadow: 0 4px 18px rgba(11, 37, 69, .06); }
.is-scrolled { --header-h: 64px; }
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.site-logo__img { height: 48px; width: auto; transition: height .25s var(--ease); }
.is-scrolled .site-logo--header .site-logo__img { height: 38px; }
.site-logo__text { font-weight: 700; font-size: 1.25rem; color: var(--navy); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav .menu a {
	position: relative; display: block; padding: .5rem .7rem;
	font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap;
}
.site-nav .menu a::after {
	content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 1px;
	background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav .menu a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--navy); }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: .5rem; }
.site-nav__extra { display: flex; align-items: center; gap: 1.25rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; }
.lang-switch__item { color: var(--muted); text-decoration: none; }
.lang-switch__item.is-current { color: var(--navy); }
.lang-switch__item.is-disabled { opacity: .5; cursor: default; }
.lang-switch__sep { color: var(--line); }

.nav-toggle { display: none; }
.cta-mobile { display: none; }

@media (min-width: 1101px) {
	.site-nav .menu-item-has-children { position: relative; }
	.site-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
		border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
	}
	.site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}

/* Mobile: full-screen menu */
@media (max-width: 1100px) {
	:root { --header-h: 68px; }
	.is-scrolled { --header-h: 60px; }
	.site-logo__img { height: 40px; }
	.is-scrolled .site-logo--header .site-logo__img { height: 34px; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
		width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; position: relative; z-index: 3;
	}
	.site-logo--header { position: relative; z-index: 3; }
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background .2s;
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; }
	.nav-toggle__bars::after { top: 7px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 2; margin: 0;
		flex-direction: column; align-items: stretch; justify-content: space-between; gap: 2rem;
		padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
		background: #fff; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
	/* Scroll lock: body is pinned by JS (position:fixed; top:-scrollY); header stays fixed so it is never pushed off-screen. */
	body.nav-open { position: fixed; left: 0; right: 0; width: 100%; overflow-y: scroll; }
	body.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; background: #fff; }
	body.nav-open .site-header::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	body.admin-bar.nav-open .site-header { top: var(--wp-admin--admin-bar--height, 46px); }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu > li { border-bottom: 1px solid var(--line); }
	.site-nav .menu a { padding: 1rem 0; font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
	.site-nav .menu a::after { left: 0; right: auto; width: 32px; bottom: .6rem; }
	.site-nav .sub-menu { padding: 0 0 .75rem 1rem; }
	.site-nav .sub-menu a { font-size: 1.0625rem; padding: .4rem 0; }
	.cta-desktop { display: none; }
	.cta-mobile { display: inline; }
	.site-nav__extra { flex-direction: column-reverse; align-items: stretch; gap: 1.25rem; padding-top: 1rem; }
	.site-nav__cta { width: 100%; justify-content: center; text-align: center; }
	.lang-switch { justify-content: center; }
	.admin-bar .site-nav { top: var(--wp-admin--admin-bar--height, 46px); }
}

/* ---------- Page header ---------- */
.page-header { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-header__title { max-width: 20ch; margin-bottom: 0; }
.page-header__title::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 1.25rem; background: var(--gold); }
.page-header__lead { max-width: 62ch; margin-top: 1.25rem; color: var(--muted); font-size: 1.1875rem; }
.breadcrumb ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Block content & patterns ---------- */
.entry-content > * + * { margin-block-start: 1.5rem; }
.entry-content > .alignfull { margin-block: 0; }
.entry-content > .alignfull + .alignfull { margin-block-start: 0; }
.page-header + .entry > .entry-content > :first-child:not(.alignfull) { margin-top: clamp(2.5rem, 5vw, 4rem); }
.entry-content > :last-child:not(.alignfull) { margin-bottom: var(--section); }

.ddl-section { padding-block: var(--section); }
.ddl-section--gray { background: var(--gray); }
.ddl-section:not(.ddl-section--gray, .ddl-section--navy) + .ddl-section:not(.ddl-section--gray, .ddl-section--navy),
.ddl-section--gray + .ddl-section--gray, .ddl-section--navy + .ddl-section--navy { padding-top: 0; }
.ddl-section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.ddl-section--navy h2, .ddl-section--navy h3 { color: #fff; }
.ddl-sechead { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ddl-sechead h2 { margin-bottom: 0; }
.ddl-sechead .lead { margin-top: 1rem; }
.ddl-sechead-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ddl-sechead-row > .ddl-sechead { margin-bottom: 0; }
.ddl-sechead-row > .wp-block-buttons { margin: 0; }
@media (min-width: 768px) { .ddl-sechead-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 2rem; } }
.ddl-center { display: flex; justify-content: center; }
.ddl-center .wp-block-buttons { justify-content: center; }

/* Hero */
.ddl-hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.ddl-hero::before {
	content: ""; position: absolute; top: 0; right: 0; width: min(46vw, 640px); height: 100%;
	background: radial-gradient(circle, rgba(11, 37, 69, .09) 1.5px, transparent 1.6px) 0 0 / 18px 18px;
	-webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%); mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
	pointer-events: none;
}
.ddl-hero > * { position: relative; }
.ddl-hero__cols { gap: clamp(2rem, 5vw, 5rem) !important; }
.ddl-hero__title { margin-bottom: 1.5rem; max-width: 16ch; }
.ddl-hero .lead { max-width: 54ch; }

/* Placeholders (image / video spots) */
.ddl-ph {
	position: relative; display: grid; place-items: end center; aspect-ratio: 16 / 10; width: 100%;
	background: url(assets/img/placeholder.svg) center 42% / min(200px, 56%) auto no-repeat, linear-gradient(135deg, #E8ECF2, #D8DFE9);
	border-radius: var(--r-lg); color: #4E5E76; font-size: .8125rem; letter-spacing: .03em; text-align: center; padding: 1.75rem 1.5rem;
}
.ddl-ph > * { margin: 0 !important; opacity: .85; }
.ddl-ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(176, 141, 87, .35); border-radius: var(--r-sm); pointer-events: none; }
.ddl-ph--tall { aspect-ratio: 4 / 5; }
.ddl-ph--wide { aspect-ratio: 4 / 3; }
.ddl-ph--square { aspect-ratio: 1; }
.ddl-ph--video { aspect-ratio: 16 / 9; }
@media (max-width: 781px) { .ddl-ph--tall { aspect-ratio: 4 / 3; } }

/* Intro */
.ddl-intro { gap: clamp(1.5rem, 5vw, 5rem) !important; }
.ddl-intro .wp-block-buttons { margin-top: 1.5rem; }

/* Cards */
.is-style-ddl-card, .ddl-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 1px 2px rgba(11, 37, 69, .04);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.is-style-ddl-card > * { margin-block: 0; }
.is-style-ddl-card > * + * { margin-block-start: .75rem; }
.is-style-ddl-card::before {
	content: ""; position: absolute; top: -1px; left: clamp(1.5rem, 3vw, 2.25rem); width: 40px; height: 2px; background: var(--gold);
	transition: width .35s var(--ease);
}
.is-style-ddl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.is-style-ddl-card:hover::before { width: 72px; }
.is-style-ddl-card h3 { margin: 0; }
.is-style-ddl-card p { color: var(--muted); }
.ddl-num { font-size: .875rem; font-weight: 600; letter-spacing: .12em; color: var(--gold) !important; font-variant-numeric: tabular-nums; }
.ddl-cards, .ddl-services, .ddl-steps, .ddl-mv { gap: clamp(1rem, 2vw, 1.5rem) !important; }

/* Service icon (gold line square) */
.ddl-service h3::before {
	content: ""; display: block; width: 40px; height: 40px; margin-bottom: 1.25rem; border-radius: var(--r-sm);
	border: 1px solid var(--gold-soft);
	background: radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 3.5px), linear-gradient(135deg, #fff, var(--gray));
}
.ddl-service::before { display: none; }

/* Process steps */
.ddl-steps { counter-reset: step; }
.ddl-step { position: relative; padding: 1.75rem 0 0; border-top: 1px solid rgba(11, 37, 69, .15); }
.ddl-step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gray); }
.ddl-step > * { margin-block: 0; }
.ddl-step > * + * { margin-block-start: .6rem; }
.ddl-step .ddl-num { font-size: 2.5rem; font-weight: 300; letter-spacing: -.02em; line-height: 1; color: var(--navy) !important; opacity: .9; }
.ddl-step p:not(.ddl-num) { color: var(--muted); }

/* CTA band */
.ddl-cta { position: relative; overflow: hidden; }
.ddl-cta::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--wide), 100% - 2 * var(--gutter)); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.ddl-cta h2 { margin-bottom: .75rem; }
.ddl-cta .wp-block-buttons { margin-top: 0; justify-content: flex-end; }
.ddl-section--navy .wp-block-button__link { background: #fff; color: var(--navy); border-color: #fff; }
.ddl-section--navy .wp-block-button__link:hover { background: var(--gray); border-color: var(--gray); color: var(--navy); }
.ddl-section--navy .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.ddl-section--navy .is-style-outline > .wp-block-button__link:hover { border-color: #fff; background: transparent; color: #fff; }
@media (max-width: 781px) { .ddl-cta .wp-block-buttons { justify-content: flex-start; } }

.cta-band { background: var(--navy); color: rgba(255, 255, 255, .82); padding-block: clamp(3rem, 6vw, 5rem); position: relative; }
.cta-band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band__inner > div { flex: 1 1 420px; max-width: 720px; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }

/* Split (text + image) */
.ddl-split { gap: clamp(2rem, 6vw, 6rem) !important; }

/* Values */
.ddl-values-wrap { margin-top: clamp(3rem, 6vw, 5rem); }
.is-style-ddl-check { list-style: none; padding: 0; margin: 0; }
.is-style-ddl-check li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.is-style-ddl-check li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 10px;
	border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg) scale(.7); transform-origin: 30% 50%;
}
.ddl-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 0 2rem; }
.ddl-values li { padding-block: 1rem; margin: 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); padding-left: 2.25rem; }
.ddl-values li::before { top: 1.4em; }

/* Form card */
.ddl-form-cols { gap: clamp(2rem, 5vw, 5rem) !important; }
.ddl-form-card::before { display: none; }
.ddl-form-card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.ddl-form-card { box-shadow: var(--shadow); }

/* ---------- Product grid & cards (ddl-core markup) ---------- */
.ddl-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.ddl-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .ddl-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1024px) { .ddl-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.ddl-grid--belgeler { grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
.ddl-card--product { padding: 0; overflow: hidden; }
.ddl-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ddl-card__media { display: grid; place-items: center; aspect-ratio: 1; background: var(--gray); padding: .25rem; overflow: hidden; }
.ddl-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); mix-blend-mode: multiply; }
.ddl-card__media--empty::after { content: ""; width: 32%; aspect-ratio: 1; border: 1px solid rgba(176, 141, 87, .4); border-radius: 50%; }
.ddl-card--product .ddl-card__title { font-size: .9375rem; margin: 0; padding: .75rem .75rem .25rem; line-height: 1.35; letter-spacing: -.005em; }
.ddl-card__meta { margin: 0; padding: 0 .75rem .75rem; font-size: .8125rem; color: var(--muted); }
.ddl-card--product .ddl-card__title:last-child { padding-bottom: .75rem; }
@media (min-width: 640px) {
	.ddl-card__media { padding: .5rem; }
	.ddl-card--product .ddl-card__title { font-size: 1.0625rem; padding: 1.25rem 1.25rem .25rem; }
	.ddl-card__meta { padding: 0 1.25rem 1.25rem; font-size: .875rem; }
	.ddl-card--product .ddl-card__title:last-child { padding-bottom: 1.25rem; }
}
.ddl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.ddl-card--product:hover .ddl-card__media img { transform: scale(1.04); }
.ddl-card--belge { display: flex; flex-direction: column; gap: 1rem; }
.ddl-card--belge .ddl-card__media { aspect-ratio: 3 / 4; border-radius: var(--r-sm); padding: 1rem; }
.ddl-card--belge .ddl-card__title { margin: 0; font-size: 1.125rem; }
.ddl-card__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .9375rem; }
.ddl-card__dl dt { color: var(--muted); }
.ddl-card__dl dd { margin: 0; }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.chip {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .5rem 1.125rem;
	border: 1px solid var(--line); border-radius: 999px; background: #fff;
	font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none; transition: .2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count { font-size: .75rem; opacity: .6; }
.empty-state { color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; justify-content: center; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.nav-links .current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Single product ---------- */
.product__top { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.product__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .product__grid { grid-template-columns: 1.05fr 1fr; } .product__gallery { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.product__main { margin: 0; display: grid; place-items: center; aspect-ratio: 1; background: var(--gray); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.product__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__thumbs { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .625rem; }
.product__thumb { display: block; width: 76px; height: 76px; padding: .375rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--gray); cursor: pointer; transition: border-color .2s; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--gold); }
.product__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1.25rem; }
.product__lead { font-size: 1.0625rem; color: var(--text); line-height: 1.65; }
.product__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 2rem 0; border-block: 1px solid var(--line); }
.product__facts > div { padding: 1rem 0; }
.product__facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product__facts dd { margin: .25rem 0 0; font-weight: 600; color: var(--navy); }
.product__body { max-width: calc(860px + 2 * var(--gutter)); padding-bottom: var(--section); }
.product__section { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.product__section h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.product__section--note { color: var(--muted); font-size: .9375rem; }
.ddl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.ddl-ingredients { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ddl-ingredients th, .ddl-ingredients td { padding: .875rem 1.125rem; text-align: left; border-bottom: 1px solid var(--line); }
.ddl-ingredients th { background: var(--gray); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.ddl-ingredients td + td, .ddl-ingredients th + th { text-align: right; white-space: nowrap; }
.ddl-ingredients tbody tr:last-child td { border-bottom: 0; }
.ddl-brd-note { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.ddl-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); }
.ddl-video iframe, .ddl-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Admin-only notes */
.ddl-admin-note { padding: .75rem 1rem; margin: 0 0 1.5rem; border-left: 3px solid var(--gold); background: #FBF7F0; font-size: .875rem; color: #6B5430; border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- Form (ddl-core markup) ---------- */
.ddl-form p { margin: 0 0 1.125rem; }
.ddl-form label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 600; color: var(--navy); }
.ddl-form input[type="text"], .ddl-form input[type="email"], .ddl-form input[type="tel"], .ddl-form select, .ddl-form textarea {
	width: 100%; min-height: 50px; padding: .75rem 1rem; font: inherit; font-size: 1rem; color: var(--text);
	background: #fff; border: 1px solid #CDD4DF; border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s;
}
.ddl-form textarea { min-height: 140px; resize: vertical; }
.ddl-form :is(input, select, textarea):focus { outline: 0; }
.ddl-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); box-shadow: none; }
.ddl-form__grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.ddl-form__kvkk { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .75rem; align-items: start; }
.ddl-form__kvkk input { width: 18px; height: 18px; margin: .125rem 0 0; accent-color: var(--navy); }
.ddl-form .ddl-form__kvkk label { display: block; margin: 0; font-weight: 400; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.ddl-form__hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ddl-form__submit { width: 100%; }
@media (min-width: 768px) { .ddl-form__submit { width: auto; min-width: 200px; } }
.ddl-form__msg { padding: .875rem 1rem; border-radius: var(--r-sm); font-size: .9375rem; }
.ddl-form__msg--ok { background: #EAF5EE; color: #1E5B34; }
.ddl-form__msg--err { background: #FBECEC; color: #8A1F1F; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(176, 141, 87, 0) 60%); }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; } }
.site-footer__brand p { max-width: 34ch; margin-top: 1.25rem; }
.site-logo--footer .site-logo__img { height: 44px; filter: brightness(0) invert(1); }
.site-footer__title { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.site-footer__links, .site-footer__contact { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: .625rem; }
.site-footer__links a { display: inline-block; padding-block: .125rem; }
.site-footer__contact { margin-bottom: 1.5rem; }
.site-footer__contact li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .875rem; }
.site-footer__contact .ddl-icon { flex-shrink: 0; margin-top: .15rem; color: var(--gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.site-footer .lang-switch__item { color: rgba(255, 255, 255, .6); }
.site-footer .lang-switch__item.is-current { color: #fff; }
.site-footer .lang-switch__sep { color: rgba(255, 255, 255, .2); }

.wa-float { position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.wa-float .ddl-icon { width: 26px; height: 26px; }
.wa-float:hover { color: #fff; background: var(--navy-2); }

/* Generic post list (fallback) */
.post-item { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }

/* ---------- Mobile: patterns collapse to one column ---------- */
@media (max-width: 781px) {
	.wp-block-columns { flex-wrap: wrap !important; }
	.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.ddl-hero::before { width: 100%; height: 60%; }
	.wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-buttons .wp-block-button__link { width: 100%; }
	.is-style-ddl-link > .wp-block-button__link { justify-content: flex-start; }
	.btn-row .btn:not(.btn--link) { flex: 1 1 100%; }
}

@media (max-width: 767px) {
	.ddl-hero { padding-block: 2rem; }
	.ddl-sechead-row .wp-block-buttons { align-items: flex-start; }
	.ddl-sechead-row .wp-block-buttons .wp-block-button__link { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Page hero (inner pages: H1 lives in the block content) */
.ddl-crumbs { padding-top: clamp(1.25rem, 3vw, 2rem); }
.ddl-crumbs .breadcrumb ol { margin: 0; }
.entry-content > .ddl-page-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.ddl-page-hero h1 { max-width: 22ch; margin-bottom: 0; }
.ddl-page-hero h1::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 1.25rem; background: var(--gold); }
.ddl-page-hero .lead { max-width: 62ch; margin-top: 1.25rem; }
.ddl-page-hero .wp-block-buttons { margin-top: 2rem; }
.ddl-gallery { gap: 1.25rem !important; }
.ddl-gallery .ddl-ph { aspect-ratio: 4 / 3; }
.ddl-contact { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.ddl-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.ddl-contact svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; color: var(--gold); }
.ddl-admin-only { outline: 2px dashed var(--gold); outline-offset: 6px; border-radius: var(--r-sm); }

/* Footer cookie-preferences link (re-opens the consent banner) and legal tables */
.site-footer__prefs { padding: .5rem 0; min-height: 44px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; opacity: .85; }
.site-footer__prefs:hover { opacity: 1; }
.ddl-legal-table { overflow-x: auto; }
.ddl-legal-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.ddl-legal-table th, .ddl-legal-table td { padding: .65rem .85rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.ddl-legal-table thead th { background: var(--gray); color: var(--navy); }
