/*
Theme Name: HusGruppen
Theme URI: https://www.husgruppen.dk
Author: HusGruppen
Description: Blok-tema til HusGruppen Consult og HusGruppen Develop. Byg sider af de færdige mønstre under "HusGruppen".
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: husgruppen
*/

/* Overlinje (lille versal-tekst over overskrifter) */
.is-style-eyebrow {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-dark);
}
.has-ink-background-color .is-style-eyebrow,
.has-graphite-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--accent-light);
}

/* Konturknap */
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--sand);
}
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--sand);
	border-color: #6E7377;
}
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

/* Header */
.hg-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.hg-logo-sub { margin: 0; }
.hg-header-btn > .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	padding: 0.7rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
}
.hg-header-btn > .wp-block-button__link:hover {
	background: var(--wp--preset--color--graphite);
	border-color: var(--wp--preset--color--graphite);
}

/* Hovedindhold uden luft omkring sektioner */
.hg-main > .wp-block-post-content > * { margin-block-start: 0; }
.hg-main > .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

/* Sektioner med streg top og bund */
.hg-bordered {
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.hg-topline { border-top: 1px solid var(--wp--preset--color--line); }

/* Kort i et gitter med tynde streger imellem */
.wp-block-columns.hg-cards {
	gap: 2px;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
}
.wp-block-columns.hg-cards > .wp-block-column {
	background: var(--wp--preset--color--white);
	padding: 2rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.wp-block-columns.hg-cards > .wp-block-column > * { margin: 0; }
.hg-card-num { font-weight: 700; }
.hg-card-link { margin-top: auto !important; font-weight: 600; }
.hg-card-link a { text-decoration: none; }
.wp-block-columns.hg-facts { margin-block: 0; }
.wp-block-columns.hg-facts + .wp-block-columns.hg-facts { margin-top: -1px; }
.wp-block-columns.hg-facts > .wp-block-column { padding: 1.25rem 1.4rem; gap: 0.25rem; }

/* Nøgletal og trin */
.hg-stat, .hg-stepnum { margin-bottom: 0.25rem; line-height: 1; letter-spacing: -0.02em; }

/* Billeder og pladsholdere */
.hg-photo { border-radius: 0; }
.wp-block-cover.hg-photo .wp-block-cover__inner-container { width: 100%; }

/* Case-kort */
.hg-tag { font-weight: 600; margin-bottom: 0; }
.wp-block-column h3 a { text-decoration: none; }

/* Kasser i case-forløb */
.hg-box {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	padding: 1.5rem;
}
.hg-forloeb .hg-twocol + .hg-twocol { margin-top: var(--wp--preset--spacing--60); }

/* Liste med streger */
.hg-checklist { list-style: none; padding-left: 0; margin: 0; }
.hg-checklist li {
	padding: 1rem 0 1rem 1.75rem;
	border-top: 1px solid var(--wp--preset--color--line);
	position: relative;
}
.hg-checklist li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.hg-checklist li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--accent-dark);
	font-weight: 700;
}

/* Citat */
.hg-quote::before {
	content: "\201C";
	display: block;
	font-size: 4rem;
	line-height: 0.6;
	font-weight: 800;
	color: var(--wp--preset--color--accent-dark);
	margin-bottom: 1rem;
}
.hg-narrow > * { max-width: 900px; margin-left: auto !important; margin-right: auto !important; }

/* Brødkrumme */
.hg-breadcrumb a { color: inherit; }

/* Footer */
.hg-footer a { color: var(--wp--preset--color--soft); }
.hg-footer p { line-height: 1.7; }

/* Tydeligt fokus til tastatur */
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Justering uden afhængighed af WordPress-version */
.hg-center { text-align: center; }
.hg-right { text-align: right; }
@media (max-width: 781px) { .hg-right { text-align: left; } }

/* Formular-pladsholder (erstattes af WPForms) */
.hg-formbox {
	border: 2px dashed var(--wp--preset--color--accent-dark);
	background: var(--wp--preset--color--white);
	padding: 1.75rem;
}
.hg-formbox > * { margin-block: 0 0.5rem; }

/* WPForms i temaets stil */
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field select,
.wpforms-container .wpforms-field textarea {
	border-radius: 0 !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	font-family: inherit !important;
}
.wpforms-container button[type=submit] {
	background: var(--wp--preset--color--accent) !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	padding: 0.95rem 1.5rem !important;
	height: auto !important;
}
.wpforms-container button[type=submit]:hover { background: var(--wp--preset--color--accent-dark) !important; }

/* Kortgitter i to rækker */
.wp-block-columns.hg-cards-row2 { margin-top: -1px !important; }

/* Karrieretabel */
.hg-table table { border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--small); }
.hg-table td { border: 0; border-top: 1px solid var(--wp--preset--color--line); padding: 0.6rem 0.75rem 0.6rem 0; vertical-align: top; }
.hg-table tr:last-child td { border-bottom: 1px solid var(--wp--preset--color--line); }
.hg-table td:first-child { white-space: nowrap; font-weight: 600; width: 1%; padding-right: 1.25rem; }

/* Fold-ud liste */
.hg-details { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem 0; }
.hg-details summary { font-weight: 700; cursor: pointer; }
.hg-details summary::marker { color: var(--wp--preset--color--accent-dark); }

/* Lang tekst (privatlivspolitik) */
.hg-prose > * { max-width: 760px; }
.hg-prose h2 { margin-top: 2.5rem; }
.hg-prose h2:first-child { margin-top: 0; }

/* Mobil */
@media (max-width: 781px) {
	.hg-logo-sub { display: none; }
	.wp-block-cover.hg-photo { min-height: 260px !important; }
}
