/*
Theme Name: Number Three One - Child
Theme URI: https://standoutmedia.dk/
Author: Standoutmedia A/S
Author URI: https://standoutmedia.dk/
Description: Et helt specielt Standoutmedia Tema
Template: number-three-one
Text Domain: number-three-child
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* ===== CSS Variables ===== */

:root {
    /* Font sizes */
    --h1: 54px;
    --h2: 38px;
    --h3: 22px;
    --h4: 18px;
    --h5: 16px;
    --h6: 14px;
    --p: 17px;

    /* Gaps */
    --gap-l: 100px;
    --gap-m: 40px;
    --gap-s: 20px;

    /* font families */
    --h-fam: 'Montserrat', 'Open Sans', sans-serif;
    --p-fam: 'Open Sans', sans-serif;
    --btn-fam: var(--h-fam);

    /* colors - mørk grøn fra logoet, rolig grå-sort og varm off-white */
    --color-1: #2f5a1f;
    --color-2: #24461a;
    --color-bg: #f0ece4;
    --av-bg-alt: #e7e1d5;
    --av-green-soft: #e1e8d9;
    --color-text: #3d3d3b;
    --color-dark: #1d241b;
    --color-overlay: transparent;

    /* Alstrup Vision ekstra */
    --av-green-deep: #1f3a15;
    --av-line: #e3dfd5;
    --av-radius: 10px;
    --av-shadow: 0 18px 40px -24px rgb(29 36 27 / 35%);
    --av-text-width: 760px;

    /* transitions */
    --transition: .175s ease-out;

    /* Margin on the right and left of the main content sections (change 0 to 1 to match template distances)*/
    --content-margin: calc(0 * var(--gap-m));
    --slider-text-width: 800px;
    
    /* Theme defined variables from PHP */
    --content-width: initial;
    --sidebar-width: initial;
    /* END Theme defined variables from PHP */
}


/* ===== END CSS Variables ===== */


/*======================================================================//
// style.css                                                            //
//======================================================================*/


/* ===== Basis ===== */

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--p-fam);
    font-size: var(--p);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--h-fam);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

h4 {
    font-weight: 600;
}

a {
    color: var(--color-1);
}

a:hover {
    color: var(--color-2);
}

/* Temaet sætter a:visited { color: inherit }, som ellers gør besøgte links og knapper sorte/usynlige */
.entry-content a:visited {
    color: var(--color-1);
}

p:empty {
    display: none;
}

/* Typografi rammes ud fra placering, så teksten i editoren kan være almindelige afsnit uden klasser */

/* Indledning: første afsnit efter overskriften */
.av-kontakt-tekst > h2 + p,
.av-ydelser > .section > h2 + p,
.av-contact-intro > h1 + p,
.entry-content > p:has(+ .av-cases),
.av-team-intro-text > p:first-child {
    font-size: 1.15em;
    line-height: 1.65;
    color: var(--color-text);
}

/* Lille label over overskriften */
.av-contact-intro > p:has(+ h1),
.av-hvem p:has(+ h2),
.av-case-card > p:first-child {
    margin-bottom: 8px;
    font-family: var(--h-fam);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-1);
}

/* Rolle under personens navn (i personsektionerne sat med [span class="av-role"]) */
.av-person > h3 + p,
.av-role {
    display: block;
    margin-top: -6px;
    font-family: var(--h-fam);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-1);
}

/* ===== END Basis ===== */


/* ===== Knapper og links ===== */

/* Knapper laves i editoren med temaets [button]-shortcode omkring et almindeligt link:
   [button]<a href="/kontakt/">Book en snak</a>[/button]  ->  <span class="stom-button"><a ...>
   Varianter: [button class="av-btn-light"], [button class="av-btn-outline"] og [button class="av-link"] (tekstlink med pil).
   Så er der ingen skjulte klasser i teksten - alt kan ses og rettes i Visuel-fanen. */
.stom-button {
    display: inline-block;
}

.stom-button a,
.stom-button a:visited,
.entry-content .stom-button a:visited,
.gform_wrapper .gform_footer input[type=submit],
.gform_wrapper .gform_footer button {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid var(--color-1);
    border-radius: 6px;
    background-color: var(--color-1);
    color: #fff;
    font-family: var(--btn-fam);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.stom-button a:hover,
.stom-button a:focus,
.gform_wrapper .gform_footer input[type=submit]:hover,
.gform_wrapper .gform_footer button:hover {
    background-color: var(--color-2);
    border-color: var(--color-2);
    color: #fff;
    transform: translateY(-1px);
}

.stom-button.av-btn-light a,
.stom-button.av-btn-light a:visited {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-1);
}

.stom-button.av-btn-light a:hover {
    background-color: var(--color-bg);
    border-color: var(--color-bg);
    color: var(--color-2);
}

.stom-button.av-btn-outline a,
.stom-button.av-btn-outline a:visited {
    background-color: transparent;
    border-color: rgb(255 255 255 / 70%);
    color: #fff;
}

.stom-button.av-btn-outline a:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--color-1);
}

/* Knapper efter hinanden står som en knaprække (temaet fjerner afsnittet omkring shortcodes,
   så knapperne ligger direkte i containeren) */
.stom-button + .stom-button {
    margin-left: 10px;
}

/* Tekstlink med pil: [button class="av-link"] */
.stom-button.av-link a,
.stom-button.av-link a:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--h-fam);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-1);
    text-decoration: none;
    transform: none;
}

.stom-button.av-link a:hover {
    background: none;
    color: var(--color-2);
    transform: none;
}

.stom-button.av-link a::after {
    content: '→';
    transition: transform var(--transition);
}

.stom-button.av-link a:hover::after {
    transform: translateX(4px);
}

/* ===== END Knapper og links ===== */


/* ===== Header ===== */

.site-header {
    position: relative;
    z-index: 20;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--av-line);
}

.site-header .header-wrapper {
    align-items: center;
}

.site-header .site-branding #logo {
    padding: 20px 0;
}

.site-header .site-branding #logo img {
    width: 220px;
    height: auto;
}

/* Topbar i fuld bredde: mørkegrøn med lys tekst (overstyrer farven valgt i Tema indstillinger → Header) */
.site-header .top-bar {
    background-color: var(--av-green-deep) !important;
    font-size: 13px;
}

.site-header .top-bar .section {
    padding-block: 9px;
}

.site-header .top-bar .top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-header .top-bar p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.site-header .top-bar br {
    display: none;
}

.site-header .top-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--h-fam);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgb(255 255 255 / 85%);
    text-decoration: none;
    transition: color var(--transition);
}

.site-header .top-bar a + a {
    margin-left: 22px;
    padding-left: 22px;
    border-left: 1px solid rgb(255 255 255 / 22%);
}

.site-header .top-bar a .stom-custom-svg {
    font-size: 13px;
    line-height: 0;
    color: #a9c98f;
}

.site-header .top-bar a svg {
    fill: currentColor;
}

.site-header .top-bar a:hover {
    color: #fff;
}

.main-navigation .menu > li > a {
    font-family: var(--h-fam);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-dark);
}

.main-navigation .menu > li.current-menu-item > a,
.main-navigation .menu > li.current-menu-ancestor > a,
.main-navigation .menu > li > a:hover {
    color: var(--color-1);
}

.main-navigation .menu > li.menu-cta {
    margin-left: 12px;
}

.main-navigation .menu > li.menu-cta > a {
    padding: 11px 22px;
    border-radius: 6px;
    background-color: var(--color-1);
    color: #fff;
    font-weight: 600;
}

.main-navigation .menu > li.menu-cta > a:hover {
    background-color: var(--color-2);
    color: #fff;
}

.main-navigation .menu > li.menu-cta > a::before,
.main-navigation .menu > li.menu-cta > a::after {
    display: none;
}

/* Undermenu: venstrestillet og ens farve uanset om siden er besøgt */
header .main-navigation ul.menu .sub-menu a,
header .main-navigation ul.menu .sub-menu a:visited {
    justify-content: flex-start;
    text-align: left;
    font-size: 14px;
    color: var(--color-dark);
}

header .main-navigation ul.menu .sub-menu a:hover,
header .main-navigation ul.menu .sub-menu .current-menu-item > a {
    color: var(--color-1);
}

/* Sticky header ved scroll: topbaren glider væk, og hovedlinjen beholder luft omkring logo, menu og knap */
#page.header-sticky .site-header .top-bar {
    max-height: 60px;
    overflow: hidden;
    transition: max-height .25s ease;
}

#page.header-sticky-active.scrolled .site-header .top-bar {
    max-height: 0;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) #page.header-sticky-active.scrolled #masthead {
    box-shadow: 0 6px 24px rgb(0 0 0 / 8%);
}

@media only screen and (min-width: 960px) {
    #page.header-sticky-active.scrolled #masthead .site-branding #logo {
        padding: 14px 0;
    }

    #page.header-sticky-active.scrolled #masthead .site-branding #logo img {
        max-height: 44px;
        width: auto;
    }
}

/* ===== END Header ===== */


/* ===== Topbillede / slider ===== */

/* Forsiden: Thy-billedet med mørk toning fra venstre, så teksten står klart og billedet stadig ses */
.home .main-slider-section .slides {
    position: relative;
}

.home .main-slider-section .slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(17 24 14 / 82%) 0%, rgb(17 24 14 / 62%) 32%, rgb(17 24 14 / 18%) 62%, rgb(17 24 14 / 0%) 82%),
        linear-gradient(to top, rgb(17 24 14 / 40%) 0%, rgb(17 24 14 / 0%) 35%);
    pointer-events: none;
}

.home .main-slider-section .image-aligner img {
    display: block;
    height: min(76vh, 760px);
    min-height: 520px;
    max-height: none;
    object-position: center 62%;
}

.home .main-slider-section .slider-text {
    align-items: center;
    padding: var(--gap-l) var(--gap-m);
    background: none;
    text-align: left;
    z-index: 1;
}

.home .main-slider-section .slider-text-inner-wrapper {
    max-width: 720px;
}

/* Lille grøn accentstreg over overskriften */
.home .main-slider-section .slider-text-inner-wrapper::before {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-bottom: 26px;
    border-radius: 2px;
    background-color: #a9c98f;
}

.home .main-slider-section h1 {
    margin-bottom: 22px;
    font-size: clamp(36px, 4.4vw, 62px);
    line-height: 1.08;
    letter-spacing: -.02em;
    text-wrap: balance;
    color: #fff;
}

.home .main-slider-section h1 + p {
    max-width: 540px;
    margin: 0;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.6;
    color: rgb(255 255 255 / 88%);
}

.home .main-slider-section .stom-button {
    margin-top: 38px;
}

.home .main-slider-section .stom-button a {
    padding: 15px 28px;
}

/* Første knap er den primære - de øvrige er diskrete outline-knapper */
.home .main-slider-section .stom-button ~ .stom-button a {
    border-color: rgb(255 255 255 / 55%);
    background-color: transparent;
    color: #fff;
}

.home .main-slider-section .stom-button ~ .stom-button a:hover {
    border-color: #fff;
    background-color: #fff;
    color: var(--color-1);
}

/* Undersider: stort naturbillede øverst, der glider langsommere end siden (parallax i script.js) */
body:not(.home) .main-slider-section .slides,
body:not(.home) .main-slider-section .image-aligner {
    position: relative;
    overflow: hidden;
}

body:not(.home) .main-slider-section .image-aligner img {
    height: clamp(300px, 52vh, 560px);
    min-height: 0;
    max-height: none;
    object-position: center 60%;
    will-change: transform;
}

/* Let toning i bunden, så overgangen til den beige side bliver blød */
body:not(.home) .main-slider-section .slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(17 24 14 / 0%) 55%, rgb(17 24 14 / 28%) 100%);
    pointer-events: none;
}

/* ===== END Topbillede / slider ===== */


/* ===== Indholdssider ===== */

.home .entry-header,
.home #content .entry-content:empty {
    display: none;
}

body .page-slider-section ~ main {
    margin-top: 0;
}

body:not(.home) #content {
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: var(--gap-l);
}

body:not(.home) .entry-header,
body:not(.home) .entry-content {
    max-width: var(--av-text-width);
    margin-inline: auto;
}

/* Overskrifter og underoverskrifter på undersiderne: fede og i alstrup visions grønne farve */
body:not(.home) .entry-title {
    margin-bottom: 28px;
    font-size: var(--h1);
    font-weight: 800;
    color: var(--color-1);
}

body:not(.home) .entry-content h2 {
    margin-top: 1.6em;
    font-size: 30px;
    font-weight: 800;
    color: var(--color-1);
}

body:not(.home) .entry-content h3 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-size: 23px;
    font-weight: 700;
    color: var(--color-1);
}

/* Indledningen (første afsnit, skrevet helt i fed) fremhæves som en grøn manchet */
body:not(.home) .entry-content > p:first-child > strong:only-child,
body:not(.home) .entry-content > .stom-cols-elm:first-child > p:first-child > strong:only-child {
    display: block;
    font-family: var(--h-fam);
    font-size: 1.22em;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-1);
}

/* Undersiderne er lavet med [grid_x] kolonner - i den smalle læsekolonne stables de for ro og læsbarhed */
body:not(.home) .entry-content > .stom-cols-elm {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

body:not(.home) .entry-content > .stom-cols-elm + .stom-cols-elm {
    margin-top: 8px;
}

.entry-content ul {
    padding-left: 0;
    list-style: none;
}

.entry-content ul li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 26px;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    top: .7em;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-1);
}

.entry-content img {
    border-radius: var(--av-radius);
}

/* Bredere layout til oversigtssider (Cases / Hvem er vi) */
body.page-id-820 .entry-header,
body.page-id-820 .entry-content,
body.page-id-528 .entry-header,
body.page-id-528 .entry-content,
body.page-id-488 .entry-header,
body.page-id-488 .entry-content {
    max-width: 1140px;
}

/* ===== END Indholdssider ===== */


/* ===== Sektioner: fælles ===== */

body .section-wrap.av-ydelser,
body .section-wrap.av-tilbyder,
body .section-wrap.av-hvem,
body .section-wrap.av-trio,
body .section-wrap.av-kontakt,
body .section-wrap.av-footer {
    margin: 0;
    padding-block: var(--gap-l);
}

/* Første sektion lige under forsidens topbillede: kun sektionens egen luft, ingen ekstra margin */
body.home #ydelser.section-wrap {
    margin-top: 0;
}

/* Lyse sektioner i træk deles af en tynd linje i stedet for luft */
.section-wrap.av-trio {
    border-top: 1px solid var(--av-line);
}

.av-ydelser > .section > h2,
.av-trio > .section > h2,
.av-tilbyder > .section > h2 {
    margin-bottom: 14px;
    text-align: center;
    font-size: var(--h2);
}

.av-ydelser > .section > h2 + p {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.av-trio > .section > h2 {
    margin-bottom: 48px;
}

/* ===== END Sektioner: fælles ===== */


/* ===== Kort (ydelser, cases, trio) ===== */

.av-cards {
    display: grid;
    grid-template-columns: repeat(var(--av-cols, 4), minmax(0, 1fr));
    gap: 28px;
}

.av-cards.columns-3 {
    --av-cols: 3;
}

.av-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    background-color: #fff;
    transition: box-shadow var(--transition), transform var(--transition);
}

.av-card:hover {
    box-shadow: var(--av-shadow);
    transform: translateY(-3px);
}

.av-card > * {
    margin-inline: 24px;
}

.av-card > p:first-child,
.av-card > .av-card-img {
    margin-inline: 0;
}

.av-card > p:last-child {
    margin-top: auto;
    padding-bottom: 24px;
}

.av-card .av-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.av-card .av-card-img img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform .6s ease;
}

.av-card:hover .av-card-img img {
    transform: scale(1.04);
}

/* Titlerne skal kunne rumme lange danske ord som "Organisationsudvikling" i smalle kort */
.av-card h3 {
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: clamp(16px, 1.35vw, 19px);
    letter-spacing: -.015em;
    overflow-wrap: break-word;
    hyphens: auto;
}

.av-card h3 a {
    color: var(--color-dark);
    text-decoration: none;
}

.av-card h3 a:hover {
    color: var(--color-1);
}

.av-card p {
    font-size: 15.5px;
    line-height: 1.65;
}

/* Underlogo (onfly/trust/focus) i kortene - det eneste billede i et kort */
.av-card p > img {
    width: 140px;
    max-width: 60%;
    height: auto;
    margin-top: 22px;
    border-radius: 0;
    filter: none;
}

.av-case-card {
    padding-top: 26px;
    border-top: 4px solid var(--color-1);
}

.av-case-card h3 {
    margin-top: 0;
}

.av-card.av-case-card > p:first-child {
    margin-inline: 24px;
}

/* ===== END Kort ===== */


/* ===== Sektion: Vi tilbyder ===== */

.section-wrap.av-tilbyder {
    background-color: var(--av-green-deep);
    color: #e7ece3;
}

.av-tilbyder h2 {
    color: #fff;
}

.av-tilbyder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 48px auto 56px;
    text-align: center;
}

.av-tilbyder-item {
    font-family: var(--h-fam);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
}

.av-tilbyder-item img {
    height: 56px;
    width: auto;
    margin: 0 auto 6px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

/* Knapperne under "Vi tilbyder dig" centreres */
.av-tilbyder > .section {
    text-align: center;
}

/* ===== END Sektion: Vi tilbyder ===== */


/* ===== Sektion: Hvem er vi (billede & tekst) ===== */

.section-wrap.av-hvem {
    background-color: var(--av-bg-alt);
}

.av-hvem h2 {
    font-size: var(--h2);
}

.av-hvem .stom-picture img {
    border-radius: var(--av-radius);
    box-shadow: var(--av-shadow);
}

/* ===== END Sektion: Hvem er vi ===== */


/* ===== Hvem er vi siden ===== */

.av-team-intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
    margin-bottom: var(--gap-l);
}

.av-team-intro > .stom-cols-elm,
.av-team > .stom-cols-elm {
    float: none;
    width: auto;
    margin: 0;
}

.av-team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.av-person {
    padding: 22px 24px;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    background-color: #fff;
}

.av-person h3,
body:not(.home) .entry-content .av-person h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

/* Undersidernes h3-margin må ikke skubbe korttitlerne ned */
body:not(.home) .entry-content .av-card h3 {
    margin-top: 22px;
}

body:not(.home) .entry-content .av-case-card h3 {
    margin-top: 0;
}

.av-person > h3 + p {
    margin: 0 0 12px;
}

.av-team-intro-img img {
    width: 100%;
    height: auto;
    box-shadow: var(--av-shadow);
}

.av-person-section {
    max-width: var(--av-text-width);
    margin: 0 auto var(--gap-l);
    padding-top: var(--gap-m);
    border-top: 1px solid var(--av-line);
}

/* Portrættet i personsektionen (billedet er højrejusteret i editoren) */
.av-person-section img {
    float: right;
    width: 240px;
    height: auto;
    margin: 6px 0 20px 32px;
}

/* ===== END Hvem er vi siden ===== */


/* ===== Kontakt (global sektion) ===== */

.section-wrap.av-kontakt {
    background-color: var(--av-bg-alt);
    border-top: 1px solid var(--av-line);
}

.av-kontakt-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.av-kontakt h2 {
    font-size: var(--h2);
}

/* Kontaktoplysninger: afsnittet efter indledningen */
.av-kontakt-tekst > h2 + p + p:not(:has(> img)) {
    margin-top: 28px;
    padding-left: 18px;
    border-left: 3px solid var(--color-1);
    line-height: 1.9;
}

.av-kontakt-form {
    padding: 36px;
    border-radius: var(--av-radius);
    background-color: #fff;
    box-shadow: var(--av-shadow);
}

.av-kontakt-form .gform_wrapper,
.av-kontakt-form .gform_wrapper form {
    margin: 0 !important;
    padding: 0;
    max-width: none;
}

/* Gravity Forms 2.4 (ul/li markup) som et roligt 2-kolonne grid */
.av-kontakt-form .gform_wrapper ul.gform_fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.av-kontakt-form .gform_wrapper ul.gform_fields li.gfield {
    grid-column: 1 / -1;
    float: none;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.av-kontakt-form .gform_wrapper ul.gform_fields li.gfield::before {
    display: none;
}

.av-kontakt-form .gform_wrapper ul.gform_fields li.gf_left_half,
.av-kontakt-form .gform_wrapper ul.gform_fields li.gf_right_half {
    grid-column: auto;
}

.av-kontakt-form .gform_wrapper .ginput_container {
    margin: 0 !important;
}

.av-kontakt-form .gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]),
.av-kontakt-form .gform_wrapper textarea {
    width: 100% !important;
}

/* Felterne bruger placeholders - labels skjules visuelt men bevares for skærmlæsere */
.av-kontakt-form .gform_wrapper .gfield_label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.av-kontakt-form .gform_wrapper .gform_footer {
    margin: 20px 0 0;
    padding: 0;
}

.gform_wrapper input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=image]):not([type=file]),
.gform_wrapper textarea,
.gform_wrapper select {
    padding: 12px 14px !important;
    border: 1px solid #d6d2c8;
    border-radius: 6px;
    background-color: #fff;
    font-family: var(--p-fam);
    font-size: 16px !important;
    color: var(--color-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus {
    outline: none;
    border-color: var(--color-1);
    box-shadow: 0 0 0 3px rgb(47 90 31 / 15%);
}

.gform_wrapper .gfield_label {
    font-family: var(--h-fam);
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--color-dark);
}

/* ===== END Kontakt ===== */


/* ===== Kontaktsiden ===== */

body.page-id-492 .entry-content {
    max-width: 1140px;
}

.av-contact-page {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 72px;
    align-items: start;
}

.av-contact-page p:empty {
    display: none;
}

.av-contact-intro h1 {
    margin: 0 0 20px;
    font-weight: 800;
    color: var(--color-1);
    font-size: clamp(32px, 3.4vw, 46px);
    line-height: 1.12;
    text-wrap: balance;
}

/* Kontaktpunkterne skrives i editoren som
   [span class="av-contact-item av-phone"]<strong>Telefon</strong> (linjeskift) link[/span]
   Hvert punkt står i sit eget afsnit. */
.av-contact-intro > p:has(> .av-contact-item) {
    margin: 0 0 14px;
}

.av-contact-intro > h1 + p + p:has(> .av-contact-item),
.av-contact-intro > p:not(:has(> .av-contact-item)) + p:has(> .av-contact-item) {
    margin-top: 36px;
}

.av-contact-item {
    position: relative;
    display: block;
    min-height: 82px;
    padding: 18px 22px 18px 86px;
    border: 1px solid var(--av-line);
    border-radius: var(--av-radius);
    background-color: #fff;
    font-family: var(--h-fam);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-dark);
}

.av-contact-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 22px;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    background: var(--color-1) var(--av-icon) center / 20px no-repeat;
}

/* Den fede overskrift i punktet bliver en lille grå label */
.av-contact-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7a7f74;
}

.av-contact-item strong + br {
    display: none;
}

.av-contact-item.av-phone {
    --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.av-contact-item.av-mail {
    --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}

.av-contact-item.av-address {
    --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.av-contact-item a,
.entry-content .av-contact-item a:visited {
    color: var(--color-dark);
    text-decoration: none;
    word-break: break-word;
}

.av-contact-item a:hover {
    color: var(--color-1);
}

body:not(.home) .entry-content .av-contact-page .av-kontakt-form h2 {
    margin: 0 0 6px;
    font-size: 26px;
}

.av-contact-page .av-kontakt-form > p:not(:empty) {
    margin: 0 0 24px;
    color: #6b7066;
}

/* Gravity Forms (gammel ul/li-markup) må ikke få indholdets listeprikker */
.gform_wrapper ul.gform_fields li.gfield {
    padding-left: 0;
}

.gform_wrapper ul.gform_fields li.gfield::before {
    display: none;
}

.av-kontakt-form .gform_wrapper textarea {
    min-height: 160px;
}

body .av-contact-page .av-kontakt-form .gform_wrapper {
    padding-top: 0;
}

body .av-kontakt-form .gform_wrapper .gform_footer input[type=submit],
body .av-kontakt-form .gform_wrapper .gform_footer button {
    width: 100%;
    padding: 16px 28px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

/* ===== END Kontaktsiden ===== */


/* ===== Footer (global sektion) ===== */

.section-wrap.av-footer {
    background-color: var(--color-dark);
    color: #c9cec4;
    font-size: 15px;
    line-height: 1.8;
}

.av-footer h4 {
    margin-bottom: 14px;
    font-size: 15px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}

.av-footer a {
    color: #fff;
    text-decoration: none;
}

.av-footer a:hover {
    color: #b9d3a8;
}

.av-footer .av-adr .company-info {
    display: block;
}

.av-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}

/* Logoet i footeren - det eneste billede der */
.av-footer img {
    width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: grayscale(100%) invert(1);
    mix-blend-mode: screen;
}

.av-footer .stom-button {
    margin-top: 10px;
}

/* ===== END Footer ===== */


/* ===== Ikonkort (kundeønske nov. 2026: ikoner i stedet for stockfotos) ===== */

/* Kortene står hvide på den beige baggrund med luft omkring indholdet */
.av-card.av-card-ikon {
    padding: 34px 6px 0;
    border-color: transparent;
    box-shadow: 0 1px 0 rgb(29 36 27 / 4%);
}

/* Ikonet tegnes med CSS, så redaktøren blot skriver [span class="av-card-icon av-icon-..."][/span]
   ([div] kan ikke bruges, da kortet selv er en [div] og shortcodes af samme navn ikke kan indlejres) */
.av-card .av-card-icon {
    display: block;
    width: 68px;
    height: 68px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--av-green-soft) var(--av-icon) center / 34px no-repeat;
}

.av-card.av-card-ikon h3,
body:not(.home) .entry-content .av-card.av-card-ikon h3 {
    margin-top: 18px;
}

.av-card.av-card-ikon p > img {
    margin-top: 18px;
}

/* Korttitler har samme farve, uanset om siden er besøgt */
.av-card h3 a,
.av-card h3 a:visited,
.entry-content .av-card h3 a:visited {
    color: var(--color-dark);
}

.av-card h3 a:hover {
    color: var(--color-1);
}

/* Luft efter kortgitteret, når der følger tekst (Ydelser-siden) */
.entry-content .av-cards + p {
    margin-top: 40px;
}

.av-icon-organisation { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M12 7.5v4M12 11.5 6.8 16.7M12 11.5l5.2 5.2M7.5 19h9'/%3E%3C/svg%3E"); }
.av-icon-strategi { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M9 22h6'/%3E%3Cpath d='M5 5h11l3 2.5L16 10H5z'/%3E%3Cpath d='M19 13H8l-3 2.5L8 18h11z'/%3E%3C/svg%3E"); }
.av-icon-leder { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 21v-1a6 6 0 0 1 12 0v1'/%3E%3Cpath d='M18 3v9M18 3.5h3.5l-1.2 1.8 1.2 1.8H18'/%3E%3C/svg%3E"); }
.av-icon-coaching { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5A2.5 2.5 0 0 1 5.5 3h7A2.5 2.5 0 0 1 15 5.5v4a2.5 2.5 0 0 1-2.5 2.5H8l-3.5 3v-3A1.5 1.5 0 0 1 3 10.5z'/%3E%3Cpath d='M18 8h.5A2.5 2.5 0 0 1 21 10.5v4a1.5 1.5 0 0 1-1.5 1.5v3L16 16h-4.5A2.5 2.5 0 0 1 9 13.5V15'/%3E%3C/svg%3E"); }
.av-icon-profiler { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3v5.5M12 15.5V21M3 12h5.5M15.5 12H21'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E"); }
.av-icon-onfly { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11A8 8 0 0 0 5.6 6.4L4 8'/%3E%3Cpath d='M4 3v5h5'/%3E%3Cpath d='M4 13a8 8 0 0 0 14.4 4.6L20 16'/%3E%3Cpath d='M20 21v-5h-5'/%3E%3C/svg%3E"); }
.av-icon-trust { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-9-9.5C2 7 4.2 4 7.3 4c1.9 0 3.4 1 4.7 2.6C13.3 5 14.8 4 16.7 4 19.8 4 22 7 21 10.5 19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
.av-icon-focus { --av-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5a1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.2'/%3E%3C/svg%3E"); }

/* "Læs mere" i kortene som en aflang, omkranset knap */
.av-card .stom-button a,
.av-card .stom-button a:visited {
    padding: 9px 22px;
    border: 1.5px solid var(--color-1);
    border-radius: 999px;
    background-color: transparent;
    font-size: 14px;
    color: var(--color-1);
    transform: none;
    transition: background-color var(--transition), color var(--transition);
}

.av-card .stom-button a::after {
    content: none;
}

/* Knappen er sidste element i kortet og skubbes ned i bunden, så knapperne flugter */
.av-card > .stom-button:last-child {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 6px;
    padding-bottom: 24px;
}

.av-card .stom-button a:hover {
    background-color: var(--color-1);
    color: #fff;
}

/* Fem kort: 3 på første række og 2 centreret under */
.av-cards.av-cards-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.av-cards.av-cards-5 > * {
    grid-column: span 2;
}

.av-cards.av-cards-5 > :nth-child(4) {
    grid-column: 2 / span 2;
}

/* Forsiden: de fem ydelser som karrusel (3 synlige ad gangen). Pile og prikker bygges i script.js */
.home #ydelser .av-cards-5 {
    --av-carousel-gap: 28px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--av-carousel-gap)) / 3);
    gap: var(--av-carousel-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* luft til kortenes hover-løft og skygge */
    padding: 6px 2px 18px;
    margin: -6px -2px 0;
}

.home #ydelser .av-cards-5::-webkit-scrollbar {
    display: none;
}

.home #ydelser .av-cards-5 > *,
.home #ydelser .av-cards-5 > :nth-child(4),
.home #ydelser .av-cards-5 > :nth-child(5) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
    scroll-snap-align: start;
}

.av-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.av-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid var(--color-1);
    border-radius: 50%;
    background-color: transparent;
    color: var(--color-1);
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), opacity var(--transition);
}

.av-carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.av-carousel-btn:hover:not(:disabled) {
    background-color: var(--color-1);
    color: #fff;
}

.av-carousel-btn:disabled {
    opacity: .3;
    cursor: default;
}

.av-carousel-dots {
    display: flex;
    gap: 8px;
}

.av-carousel-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: #c9c3b6;
    cursor: pointer;
    transition: width var(--transition), background-color var(--transition);
}

.av-carousel-dots button.is-active {
    width: 26px;
    background-color: var(--color-1);
}

/* ===== END Ikonkort ===== */


/* ===== Kontakt: portræt af Christian ===== */

/* "Book en snak": billedet står i sit eget afsnit lige før kontaktoplysningerne (ingen klasser i editoren).
   Teksten lægges i et grid, så billede og kontaktoplysninger står side om side og flugter i top og bund. */
.av-kontakt-tekst {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 22px;
    align-items: stretch;
}

.av-kontakt-tekst > * {
    grid-column: 1 / -1;
}

.av-kontakt-tekst > p:has(> img) {
    grid-column: 1;
    margin: 28px 0 0;
    line-height: 0;
}

/* Kontaktoplysningerne centreres lodret ud for billedet */
.av-kontakt-tekst > p:has(> img) + p {
    grid-column: 2;
    align-self: center;
    margin: 28px 0 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--color-1);
    line-height: 1.9;
}

.av-kontakt-tekst > p > img {
    display: block;
    width: 150px;
    height: 188px;
    border-radius: var(--av-radius);
    object-fit: cover;
    object-position: center 15%;
    box-shadow: var(--av-shadow);
}

/* Kontaktsiden: større portræt over overskriften (beskåret til overkroppen) */
.av-contact-intro > p:has(> img) {
    margin-bottom: 32px;
    line-height: 0;
}

.av-contact-intro > p > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 14%;
    box-shadow: var(--av-shadow);
}

/* ===== END Kontakt: portræt ===== */


/*======================================================================//
// END style.css                                                        //
//======================================================================*/


/*======================================================================//
// woocommerce.css                                                      //
//======================================================================*/


/* woocommerce style goes here */


/*======================================================================//
// END woocommerce.css                                                  //
//======================================================================*/