/*
Theme Name: book28
Theme URI: https://book28.dk
Author: TECH28 I/S
Description: Tema til book28.dk – enkel booking til frisører, hundefrisører og behandlere. Bygget efter book28 Design & Brand Manual v1.0.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: book28
*/

/* ------------------------------------------------------------------ farver
   Deep Navy #0B1F3B · Ink #2C3F5E · Slate #5E7191 · Teal #00D0D8
   Blue #1A7DFA · knap-blå #1560D4 · Violet #7647FB · Light Gray #E5E9F0 · Mist #F5F7FB */

:root {
	--b28-navy: #0B1F3B;
	--b28-ink: #2C3F5E;
	--b28-slate: #5E7191;
	--b28-teal: #00D0D8;
	--b28-blue: #1A7DFA;
	--b28-btn: #1560D4;
	--b28-violet: #7647FB;
	--b28-line: #D5DCE8;
	--b28-gray: #E5E9F0;
	--b28-mist: #F5F7FB;
	--b28-gradient: linear-gradient(90deg, #00D0D8, #1A7DFA, #7647FB);
	--b28-gutter: 24px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
p { margin-top: 0; margin-bottom: 0; }

/* Sektioner går til kant; indholdet holdes på 1200 px med luft i siderne */
.b28-landing > .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.b28-hero, .b28-strip, .b28-section, .b28-cta-wrap, .b28-header, .b28-footer, .b28-pagehead {
	padding-left: var(--b28-gutter);
	padding-right: var(--b28-gutter);
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ knapper */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: #fff;
	color: var(--b28-navy);
	border: 1px solid #B9C4D6;
	padding: 16px 28px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--b28-navy); background: #fff; color: var(--b28-navy); }
.wp-block-button.b28-btn-white > .wp-block-button__link { background: #fff; color: var(--b28-navy); font-weight: 800; font-size: 1.125rem; padding: 18px 36px; }
.wp-block-button.b28-btn-white > .wp-block-button__link:hover { background: var(--b28-gray); color: var(--b28-navy); }
.wp-block-buttons { gap: 14px; }
:focus-visible { outline: 3px solid var(--b28-blue); outline-offset: 3px; }

/* ------------------------------------------------------------------ små tekster */
.b28-eyebrow {
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--b28-btn);
}
.b28-eyebrow--slate { color: var(--b28-slate); }
.b28-lead { font-size: 1.25rem; line-height: 1.6; color: var(--b28-ink); }
.b28-h-narrow { max-width: 680px; margin-left: 0 !important; }
.b28-section > .b28-h-narrow, .b28-section > .b28-eyebrow { margin-left: auto !important; margin-right: auto !important; max-width: 1200px; }
.b28-section > h2.b28-h-narrow, .b28-section > p.b28-lead.b28-h-narrow { padding-right: calc(100% - min(100%, 680px)); box-sizing: border-box; }

/* ------------------------------------------------------------------ sidehoved */
.b28-header { background: #fff; border-bottom: 1px solid var(--b28-gray); }
.b28-header__row { min-height: 84px; gap: 12px 32px; padding: 12px 0; }
.b28-logo { margin: 0; line-height: 0; flex-shrink: 0; }
.b28-logo img { width: 152px; height: auto; display: block; }
.b28-logo a { display: flex; align-items: center; min-height: 44px; }
.b28-nav { font-size: .9375rem; font-weight: 600; }
.b28-nav .wp-block-navigation__container { gap: 4px 28px; }
.b28-nav .wp-block-navigation-item__content { color: var(--b28-navy); padding: 12px 0; text-decoration: none; }
.b28-nav .wp-block-navigation-item__content:hover { color: var(--b28-btn); }
.b28-nav .b28-nav-cta > .wp-block-navigation-item__content {
	background: var(--b28-btn);
	color: #fff;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
}
.b28-nav .b28-nav-cta > .wp-block-navigation-item__content:hover { background: var(--b28-navy); color: #fff; }
.b28-nav .wp-block-navigation__responsive-container-open,
.b28-nav .wp-block-navigation__responsive-container-close { padding: 11px; color: var(--b28-navy); }
.b28-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.b28-nav .is-menu-open .wp-block-navigation__container { gap: 8px; font-size: 1.25rem; }

/* ------------------------------------------------------------------ top (hero) */
.b28-hero { position: relative; overflow: hidden; padding-top: 88px; padding-bottom: 96px; isolation: isolate; }
.b28-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: -60px;
	width: 1500px;
	height: 1134px;
	margin-left: -750px;
	background: url(assets/img/symbol.svg) no-repeat center / contain;
	opacity: .08;
	pointer-events: none;
}
.b28-hero--side::before { left: auto; right: -180px; top: -80px; width: 1100px; height: 832px; margin-left: 0; }
.b28-hero__cols { gap: 56px 64px; align-items: center; margin-bottom: 0; }
.b28-hero h1 { margin-top: 28px; margin-bottom: 0; }
.b28-hero .b28-lead { margin-top: 28px; max-width: 540px; }
.b28-hero .wp-block-buttons { margin-top: 28px; }
.b28-illu { margin: 0; }
.b28-illu img { display: block; width: 100%; height: auto; }
.b28-hero .b28-illu { margin: -40px -44px -60px; }

/* flueben-lister */
ul.b28-checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
ul.b28-checks li { position: relative; padding-left: 38px; color: var(--b28-ink); }
ul.b28-checks li strong { color: var(--b28-navy); }
ul.b28-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231560D4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
ul.b28-checks--row { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; font-size: .9375rem; font-weight: 600; }
ul.b28-checks--row li { padding-left: 26px; }
ul.b28-checks--row li::before { width: 18px; height: 18px; top: .2em; }
.b28-plan ul.b28-checks li { color: #fff; }
.b28-plan ul.b28-checks li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FE6EB' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ branchestribe */
.b28-strip { background: #fff; border-top: 1px solid var(--b28-gray); border-bottom: 1px solid var(--b28-gray); padding-top: 44px; padding-bottom: 44px; }
.b28-strip__row { gap: 20px 40px; align-items: center; }
.b28-strip__title { font-size: 1.125rem; font-weight: 700; }
.b28-pills { gap: 10px; }
.b28-pill > .wp-block-button__link {
	background: var(--b28-mist);
	color: var(--b28-navy);
	border: 1px solid var(--b28-line);
	padding: 11px 20px;
	font-size: .9375rem;
}
.b28-pill > a.wp-block-button__link[href]:hover { background: var(--b28-navy); border-color: var(--b28-navy); color: #fff; }
.b28-pill--soon > .wp-block-button__link { background: transparent; border-style: dashed; border-color: #B9C4D6; color: var(--b28-slate); font-weight: 600; cursor: default; }
.b28-pill--soon > .wp-block-button__link:hover { background: transparent; color: var(--b28-slate); }

/* ------------------------------------------------------------------ sektioner */
.b28-section { padding-top: 104px; padding-bottom: 104px; }
.b28-section--white { background: #fff; }
.b28-section > h2 { margin-top: 14px; margin-bottom: 0; }
.b28-section > .b28-lead { margin-top: 14px; }
.b28-section > .wp-block-columns, .b28-section > .b28-grid { margin-top: 56px; }
.b28-section > .wp-block-columns:first-child { margin-top: 0; }

/* kort (1-2-3) */
.b28-cards { gap: 24px; }
.b28-card { background: #fff; border-radius: 24px; padding: 36px; }
.b28-section--white .b28-card { background: var(--b28-mist); }
.b28-card h3 { margin: 14px 0 0; }
.b28-card p { margin-top: 14px; color: var(--b28-ink); }
.b28-num { font-size: 3.375rem; font-weight: 800; line-height: 1; margin: 0 !important; }
.b28-num--teal { color: #00A8B5 !important; }
.b28-num--blue { color: var(--b28-blue) !important; }
.b28-num--violet { color: var(--b28-violet) !important; }

/* funktionsgitter */
.b28-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.b28-grid > * { margin: 0 !important; }
.b28-feature { background: var(--b28-mist); border-radius: 20px; padding: 30px; }
.b28-icon { margin: 0; line-height: 0; }
.b28-icon img { width: 52px; height: 52px; }
.b28-feature h3 { font-size: 1.25rem; margin: 12px 0 0; }
.b28-feature p { font-size: 1rem; color: var(--b28-ink); margin-top: 12px; }

/* tekst + billede */
.b28-split { gap: 56px 72px; align-items: center; margin-bottom: 0; }
.b28-split h2 { margin: 16px 0 0; font-size: 2.375rem; line-height: 1.14; }
.b28-split .b28-lead { margin-top: 16px; font-size: 1.125rem; }
.b28-split .b28-illu { margin: -40px -44px -60px; }
.b28-split + .b28-split { margin-top: 96px; }
.b28-photo { margin: 0; }
.b28-photo img { display: block; width: 100%; height: 380px; object-fit: cover; border-radius: 24px; }
.b28-photo--pair img { height: 260px; border-radius: 20px; }

/* tre fordele med farvet topstreg */
.b28-points { gap: 32px; }
.b28-point { border-top: 4px solid var(--b28-teal); padding-top: 20px; }
.b28-point--blue { border-top-color: var(--b28-blue); }
.b28-point--violet { border-top-color: var(--b28-violet); }
.b28-point h3 { font-size: 1.25rem; margin: 0; }
.b28-point p { font-size: 1rem; color: var(--b28-ink); margin-top: 8px; }
.b28-strip .b28-points { margin: 12px 0; }

/* citat */
.b28-quote { text-align: center; padding-top: 88px; padding-bottom: 88px; }
.b28-quote::before { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--b28-gradient); margin: 0 auto 20px; }
.b28-quote__text { font-size: 1.875rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.b28-quote__by { color: var(--b28-slate); font-size: 1rem; margin-top: 20px; }

/* spørgsmål og svar */
.b28-faq > h2 { margin: 0 0 22px; }
.b28-faq .wp-block-details { background: #fff; border-radius: 18px; padding: 0; margin-top: 14px; }
.b28-section--white.b28-faq .wp-block-details { background: var(--b28-mist); }
.b28-faq .wp-block-details summary {
	font-size: 1.1875rem;
	font-weight: 700;
	padding: 24px 64px 24px 28px;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.b28-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.b28-faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 26px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -10px;
	border-right: 2.5px solid var(--b28-navy);
	border-bottom: 2.5px solid var(--b28-navy);
	transform: rotate(45deg);
	transition: transform .15s ease;
}
.b28-faq .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.b28-faq .wp-block-details > :not(summary) { margin: 0; padding: 0 28px 24px; font-size: 1rem; color: var(--b28-ink); }

/* opfordring (mørk boks) */
.b28-cta-wrap { padding-bottom: 104px; }
.b28-section--white + .b28-cta-wrap { padding-top: 104px; }
.b28-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--b28-navy);
	color: #fff;
	border-radius: 32px;
	padding: 72px 56px;
	gap: 32px 48px;
	align-items: center;
}
.b28-cta::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -60px;
	bottom: -110px;
	width: 460px;
	height: 348px;
	background: url(assets/img/symbol-hvid.svg) no-repeat center / contain;
	opacity: .06;
}
.b28-cta__text { flex: 1 1 420px; min-width: 0; }
.b28-cta__text::before { content: ""; display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--b28-gradient); margin-bottom: 16px; }
.b28-cta h2 { color: #fff; margin: 0; font-size: 2.75rem; line-height: 1.1; }
.b28-cta p { color: #C9D3E3; font-size: 1.1875rem; margin-top: 16px; }

/* ------------------------------------------------------------------ priser */
.b28-pagehead { text-align: center; padding-top: 88px; padding-bottom: 56px; }
.b28-pagehead h1 { font-size: 3.5rem; margin: 18px 0 0; }
.b28-pagehead .b28-lead { margin-top: 18px; }
.b28-pricing { padding-top: 0; padding-bottom: 96px; }
.b28-pricing__cols { gap: 24px; align-items: stretch; }
.b28-plan {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--b28-navy);
	color: #fff;
	border-radius: 28px;
	padding: 44px;
	display: flex;
	flex-direction: column;
}
.b28-plan::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -70px;
	top: -50px;
	width: 340px;
	height: 257px;
	background: url(assets/img/symbol-hvid.svg) no-repeat center / contain;
	opacity: .06;
}
.b28-plan .b28-eyebrow { color: #7FE6EB; }
.b28-plan__price { font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-top: 8px; }
.b28-plan__unit { color: #C9D3E3; font-size: 1.125rem; margin-top: 6px; }
.b28-plan__desc { color: #C9D3E3; margin-top: 8px; padding-bottom: 24px; border-bottom: 4px solid transparent; border-image: var(--b28-gradient) 1; }
.b28-plan ul.b28-checks { margin-top: 24px; gap: 12px; }
.b28-plan .wp-block-buttons { margin-top: auto; padding-top: 28px; }
.b28-plan .wp-block-button, .b28-plan .wp-block-button__link { width: 100%; box-sizing: border-box; }
.b28-addons > * { margin-top: 16px; }
.b28-addons > .b28-eyebrow { color: var(--b28-slate); margin-top: 4px; }
.b28-addon { background: #fff; border-radius: 22px; padding: 28px 30px; gap: 12px 24px; align-items: center; }
.b28-addon__text { flex: 1 1 260px; min-width: 0; }
.b28-addon h3 { font-size: 1.3125rem; margin: 0; }
.b28-addon p { font-size: 1rem; color: var(--b28-ink); margin-top: 4px; }
.b28-addon__price { font-size: 1.125rem !important; font-weight: 800; color: var(--b28-navy) !important; white-space: nowrap; margin: 0 !important; }
.b28-note { border: 1.5px dashed #B9C4D6; border-radius: 22px; padding: 24px 30px; font-size: 1rem; color: var(--b28-ink); }

/* ------------------------------------------------------------------ tekstsider */
.b28-text { padding: 72px var(--b28-gutter) 104px; box-sizing: border-box; }
.b28-text h1 { font-size: 3rem; margin: 0 0 32px; }
.b28-text h2 { font-size: 1.75rem; margin: 48px 0 0; }
.b28-text p, .b28-text li { color: var(--b28-ink); }

/* ------------------------------------------------------------------ sidefod */
.b28-footer { background: #fff; border-top: 1px solid var(--b28-gray); padding-top: 56px; padding-bottom: 40px; font-size: .9375rem; }
.b28-footer__cols { gap: 36px 64px; margin-bottom: 0; }
.b28-footer .b28-logo img { width: 150px; }
.b28-footer__tag { color: var(--b28-ink); margin-top: 14px; }
.b28-footer h4 { font-size: .9375rem; margin: 0 0 6px; }
ul.b28-footer__list { list-style: none; padding: 0; margin: 0; }
ul.b28-footer__list a { color: var(--b28-ink); text-decoration: none; display: inline-block; padding: 5px 0; }
ul.b28-footer__list a:hover { color: var(--b28-btn); text-decoration: underline; }
.b28-footer__legal { border-top: 1px solid var(--b28-gray); padding-top: 24px; margin-top: 36px; font-size: .875rem; color: var(--b28-slate); }

/* ------------------------------------------------------------------ tablet og mobil */
@media (max-width: 1100px) {
	.b28-hero .b28-illu, .b28-split .b28-illu { margin: -20px -24px -30px; }
}
@media (max-width: 781px) {
	:root { --b28-gutter: 20px; }
	h1, .b28-pagehead h1 { font-size: 2.375rem !important; line-height: 1.08 !important; }
	h2, .b28-split h2, .b28-cta h2 { font-size: 1.75rem !important; line-height: 1.15 !important; }
	.b28-lead { font-size: 1.0625rem; }
	.b28-hero { padding-top: 40px; padding-bottom: 44px; }
	.b28-hero::before { left: -40px; top: 60px; width: 620px; height: 469px; margin-left: 0; }
	.b28-hero h1, .b28-hero .b28-lead, .b28-hero .wp-block-buttons { margin-top: 20px; }
	.b28-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.b28-hero .wp-block-button, .b28-hero .wp-block-button__link { width: 100%; box-sizing: border-box; }
	ul.b28-checks--row { flex-direction: column; gap: 8px; margin-top: 20px; }
	.b28-strip { padding-top: 28px; padding-bottom: 28px; }
	.b28-section, .b28-quote { padding-top: 52px; padding-bottom: 52px; }
	.b28-section > .wp-block-columns, .b28-section > .b28-grid { margin-top: 24px; }
	.b28-card { padding: 24px; }
	.b28-grid { grid-template-columns: 1fr; gap: 14px; }
	.b28-feature { padding: 22px; }
	.b28-split { gap: 28px; }
	.b28-split + .b28-split { margin-top: 56px; }
	.b28-photo img { height: 240px; }
	.b28-quote__text { font-size: 1.375rem; }
	.b28-cta-wrap { padding-bottom: 44px; }
	.b28-section--white + .b28-cta-wrap { padding-top: 44px; }
	.b28-cta { padding: 36px 26px; border-radius: 24px; }
	.b28-cta .wp-block-buttons, .b28-cta .wp-block-button, .b28-cta .wp-block-button__link { width: 100%; box-sizing: border-box; }
	.b28-pagehead { padding-top: 48px; padding-bottom: 32px; }
	.b28-plan { padding: 30px 24px; }
	.b28-plan__price { font-size: 3.25rem; }
	.b28-text { padding-top: 44px; padding-bottom: 64px; }
	.b28-footer__legal { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* ------------------------------------------------------------------ tilføjelser */
.b28-split--reverse { flex-direction: row-reverse; }
.b28-pair { gap: 16px; margin: 0; }
.b28-photo figcaption { font-size: .875rem; font-weight: 700; color: var(--b28-slate); margin: 8px 0 0; text-align: left; }
.b28-quote.b28-section { padding-top: 88px; padding-bottom: 88px; }
.b28-pricing.b28-section { padding-top: 0; padding-bottom: 96px; }
.b28-pricing > .wp-block-columns { margin-top: 0; }
@media (max-width: 781px) {
	.b28-hero .b28-illu, .b28-split .b28-illu { margin: -12px -16px -24px; }
	.b28-split--reverse { flex-direction: column-reverse; }
	.b28-photo--pair img { height: 170px; }
	.b28-quote.b28-section { padding-top: 52px; padding-bottom: 52px; }
	.b28-pricing.b28-section { padding-bottom: 52px; }
}
.b28-nav .wp-block-navigation__responsive-container.is-menu-open .b28-nav-cta > .wp-block-navigation-item__content { padding: 14px 26px !important; margin-top: 8px; color: #fff; }
