/*
Theme Name: Vibeke Follmann
Description: Eget tema til vibekefollmann.dk. Antropolog og ledelseskonsulent.
Version: 1.2.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: vibeke
License: GNU General Public License v2 or later
*/

/* Design details that blocks cannot express on their own. Layout and colours live in theme.json. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(section, .wp-block-group)[id] { scroll-margin-top: 1.5rem; }
a:focus-visible, .wp-element-button:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }

.vf-label {
	font-size: 0.78rem !important;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0;
}
.vf-label + * { margin-top: 0.9rem !important; }

/* Header */
.vf-header { padding-block: 1.75rem; }
.vf-header .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); line-height: 1.1; margin: 0; }
.vf-header .wp-block-site-title a { color: var(--wp--preset--color--accent); text-decoration: none; }
.vf-header .vf-tagline { font-size: 0.8rem; color: var(--wp--preset--color--muted); letter-spacing: 0.04em; margin: 0.15rem 0 0; }
.vf-header .wp-block-navigation { font-size: 0.95rem; font-weight: 500; }
.vf-header .wp-block-navigation a { text-decoration: none; border-bottom: 1px solid transparent; padding-block: 4px; }
.vf-header .wp-block-navigation a:hover { border-bottom-color: var(--wp--preset--color--accent); color: inherit; }

/* Sections */
.vf-section { padding-block: var(--wp--preset--spacing--60); margin-block: 0 !important; }
.vf-hero { padding-top: var(--wp--preset--spacing--40); }
.vf-hero h1 em { color: var(--wp--preset--color--accent); font-style: italic; }
.vf-lede { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--muted); max-width: 34rem; }
.vf-hero .wp-block-buttons { margin-top: 2rem; }
.vf-hero-cols { align-items: flex-end !important; gap: clamp(2rem, 5vw, 3.5rem) !important; }
.vf-portrait { margin: 0; }
.vf-portrait img { width: 100%; height: auto; object-position: 52% 30%; display: block; }

/* Cut-out portrait: stands on the page background and runs to the bottom edge of the hero. */
.vf-portrait-cutout { margin: 0; }
.vf-portrait-cutout img { display: block; width: 100%; height: auto; }
@media (min-width: 782px) {
	.vf-hero { position: relative; overflow: hidden; padding-bottom: 0; }
	.vf-hero .vf-hero-cols { min-height: clamp(520px, 44vw, 640px); align-items: center !important; }
	.vf-hero .vf-hero-cols > .wp-block-column:first-child { position: relative; z-index: 1; flex-basis: 50% !important; padding-bottom: var(--wp--preset--spacing--60); }
	.vf-hero .vf-portrait-cutout { position: absolute; right: 0; bottom: 0; width: clamp(540px, 60vw, 920px); z-index: 0; pointer-events: none; }
}

/* Method band */
.vf-method .vf-label { color: var(--wp--preset--color--on-deep); opacity: 0.75; }
.vf-method h2 { max-width: 22ch; margin-left: 0 !important; }
.vf-method .vf-fieldnote { margin-left: 0 !important; }
.vf-phases { margin-top: var(--wp--preset--spacing--50) !important; gap: 0 !important; border-top: 1px solid rgba(230, 236, 232, 0.25); }
.vf-phases > .wp-block-column { padding: 2.25rem 2.5rem 0.5rem 0; }
.vf-phases > .wp-block-column + .wp-block-column { padding: 2.25rem 0 0.5rem 2.5rem; border-left: 1px solid rgba(230, 236, 232, 0.25); }
.vf-phase-num { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: var(--wp--preset--font-size--medium); opacity: 0.75; margin: 0; }
.vf-phase-num + h3 { margin-top: 0.4rem !important; }
.vf-dash-list { list-style: none; padding-left: 0; }
.vf-dash-list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.4rem; }
.vf-dash-list li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1px; background: currentColor; }
.vf-fieldnote { margin-top: var(--wp--preset--spacing--50) !important; max-width: 640px; background: rgba(230, 236, 232, 0.07); border-left: 2px solid #D29BBD; padding: 1.4rem 1.6rem; }
.vf-fieldnote .vf-meta { font-size: 0.8rem; letter-spacing: 0.06em; opacity: 0.7; margin: 0; }
.vf-fieldnote .vf-note-quote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: var(--wp--preset--font-size--medium); line-height: 1.45; margin-top: 0.5rem; }
.vf-fieldnote .vf-note { font-size: 0.85rem; opacity: 0.7; margin-top: 0.6rem; }

/* Services */
.vf-services { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; margin-top: var(--wp--preset--spacing--50) !important; }
.vf-services > * { margin: 0 !important; }
.vf-service { border-top: 1px solid var(--wp--preset--color--line); padding-block: 1.75rem 2rem; }
.vf-service h3 { margin: 0; }
.vf-service p { color: var(--wp--preset--color--muted); margin-top: 0.6rem; }

/* About */
.vf-about-cols { gap: clamp(2rem, 5vw, 3.5rem) !important; }
.vf-facts { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.5rem; margin-top: 1.5rem !important; gap: 1.5rem !important; }
.vf-fact-label { font-size: 0.8rem; color: var(--wp--preset--color--muted); margin: 0; }
.vf-fact-value { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); margin: 0.2rem 0 0 !important; line-height: 1.3; }

/* Contact */
.vf-contact { border-top: 1px solid var(--wp--preset--color--line); }
.vf-contact-label { font-size: 0.8rem; color: var(--wp--preset--color--muted); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.vf-contact-value { font-size: var(--wp--preset--font-size--medium); margin-top: 0.15rem !important; margin-bottom: 1.2rem; overflow-wrap: anywhere; }

/* Footer */
.vf-footer { padding-block: 1.75rem 2.5rem; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.vf-footer a { color: inherit; }

/* Plain pages (privatliv m.m.) */
.vf-page { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.vf-page h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.5rem; }

/* Mobile */
@media (max-width: 781px) {
	.vf-hero-cols { align-items: stretch !important; }
	.vf-portrait { max-width: 340px; }
	.vf-phases > .wp-block-column,
	.vf-phases > .wp-block-column + .wp-block-column { padding: 2rem 0 0.5rem; border-left: 0; }
	.vf-phases > .wp-block-column + .wp-block-column { border-top: 1px solid rgba(230, 236, 232, 0.25); }
	.vf-services { grid-template-columns: minmax(0, 1fr); }
	.vf-header .wp-block-navigation { width: 100%; }
}

/* Copy e-mail button (added by assets/js/copy-email.js) */
.vf-copy {
	display: inline-flex; align-items: center; gap: 0.4rem;
	margin-left: 0.6rem; vertical-align: middle;
	min-width: 44px; min-height: 44px; justify-content: center;
	padding: 0 0.5rem; border: 1px solid transparent; border-radius: 2px;
	background: transparent; color: var(--wp--preset--color--muted);
	font: inherit; font-size: 0.85rem; cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}
.vf-copy:hover { color: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--line); }
.vf-copy:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.vf-copy.is-done { color: var(--wp--preset--color--accent); }
.vf-copy { position: relative; }
.vf-copy-status {
	position: absolute; top: calc(100% - 4px); left: 50%; transform: translateX(-50%);
	white-space: nowrap; font-size: 0.75rem; color: var(--wp--preset--color--accent);
	pointer-events: none;
}
.vf-copy-status:empty { display: none; }
.vf-contact-value { overflow-wrap: normal; }
@media (prefers-reduced-motion: reduce) { .vf-copy { transition: none; } }
