/*
Theme Name: Dimsedysen
Theme URI: https://dimsedysen.dk
Author: EvolveU
Description: Blocktema til Dimsedysen – små 3D-printede dimser fra rigtige designere. Lavet til WooCommerce og pluginnet Designer Credits.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: dimsedysen
*/

/* ---------- Generelt ---------- */
.dd-section {
	padding-block: clamp(56px, 8vw, 104px);
	padding-inline: var(--wp--style--root--padding-left, 24px);
}
.dd-eyebrow {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--filament-dark);
	margin-bottom: 0.5rem;
}
.dd-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
	max-width: 36rem;
}
.dd-squiggle {
	display: block;
	width: 140px;
	height: 18px;
	margin: 12px 0 0;
	background: url("assets/images/squiggle.svg") left center / contain no-repeat;
}
.dd-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
	margin-bottom: 32px;
}
.dd-section-head h2 {
	margin: 0;
}

/* Ingen hvid stribe mellem sektionerne, header og footer */
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Header ---------- */
.dd-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.dd-header__bar {
	gap: 16px 32px;
}
.dd-logo {
	display: inline-flex;
	line-height: 0;
}
.dd-logo img {
	height: 64px;
	width: auto;
}
.dd-header__tools {
	gap: 8px 20px;
}
@media (max-width: 600px) {
	.dd-logo img {
		height: 46px;
	}
}

/* ---------- Hero ---------- */
.dd-hero {
	background: var(--wp--preset--color--plate);
}
.dd-hero h1 {
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.02em;
	margin-block: 0 20px;
}
.dd-hero h1 em {
	font-style: normal;
	color: var(--wp--preset--color--filament-dark);
}
.dd-hero__art img {
	width: 100%;
	max-width: 520px;
	height: auto;
	margin-inline: auto;
	display: block;
}
.dd-hero .wp-block-buttons {
	margin-top: 32px;
}
.dd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 28px;
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted);
}
.dd-badges span::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--mint);
	margin-right: 8px;
	vertical-align: middle;
}

/* ---------- Sådan virker det ---------- */
.dd-steps {
	color: var(--wp--preset--color--white);
}
.dd-steps h2,
.dd-steps h3 {
	color: var(--wp--preset--color--white);
}
.dd-steps .dd-eyebrow {
	color: var(--wp--preset--color--filament-light);
}
.dd-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--filament-light);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 1.5rem;
	margin-bottom: 0;
}
.dd-steps h3 {
	margin-top: 16px;
}
.dd-steps p {
	margin-top: 8px;
}
.dd-steps p {
	color: #C9CDDA;
}

/* ---------- Designere ---------- */
.dd-designers {
	background: var(--wp--preset--color--plate);
}
.dd-designers .dc-card {
	background: var(--wp--preset--color--white);
	border: 0;
	box-shadow: 0 1px 0 var(--wp--preset--color--line), 0 16px 32px -24px rgba(28, 35, 64, 0.45);
}
.dd-designers .dc-card__count,
.dd-designers .dc-card__tagline {
	color: var(--wp--preset--color--muted);
}
.dd-callout {
	background: var(--wp--preset--color--white);
	border-radius: 24px;
	padding: clamp(24px, 4vw, 40px);
	margin-top: 40px;
}

/* ---------- Designer Credits-plugin i Dimsedysen-farver ---------- */
:root {
	--dc-muted: var(--wp--preset--color--muted);
	--dc-line: var(--wp--preset--color--line);
	--dc-soft: #FFE9DD;
	--dc-radius: 18px;
}
.dc-avatar--initials {
	color: var(--wp--preset--color--filament-dark);
	font-family: var(--wp--preset--font-family--fredoka);
}
.dc-card__name {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
}
.dc-theme {
	background: #FFE9DD;
}
.dc-theme span {
	color: var(--wp--preset--color--ink);
}
.dc-byline strong {
	color: var(--wp--preset--color--ink);
}

/* ---------- WooCommerce ---------- */
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image-gallery img {
	border-radius: 18px;
	background: var(--wp--preset--color--plate);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--wp--preset--color--ink);
}
.woocommerce ul.products li.product .price {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}
.woocommerce span.onsale {
	background: var(--wp--preset--color--filament-dark);
	border-radius: 999px;
	min-height: auto;
	padding: 4px 12px;
	line-height: 1.6;
}
.woocommerce a.button,
.woocommerce button.button {
	border-radius: 999px;
}

/* ---------- Footer ---------- */
.dd-footer {
	color: #C9CDDA;
	font-size: 0.95rem;
}
.dd-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.dd-footer a:hover {
	color: var(--wp--preset--color--filament-light);
	text-decoration: underline;
}
.dd-footer h3 {
	color: var(--wp--preset--color--white);
	font-size: 1.05rem;
	margin-bottom: 12px;
}
.dd-footer__logo img {
	height: 60px;
	width: auto;
}
.dd-footer__links p {
	margin: 0 0 8px;
}
.dd-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 24px;
	margin-top: 48px;
	font-size: 0.85rem;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-element-button,
	.dc-card {
		transition: transform 0.15s ease, background-color 0.15s ease;
	}
	.wp-element-button:hover {
		transform: translateY(-1px);
	}
}
