/* SU Media Sections — Plugin CSS (base/shared — always loaded) */

/* =============================================================================
   FONTE (self-hostet)
   -----------------------------------------------------------------------------
   Variabel font, så én fil dækker hele vægtintervallet. Latin-subset — dækker
   æ, ø og å. Serveres fra pluginnet i stedet for fonts.gstatic.com: ingen
   tredjeparts-forbindelse på den kritiske sti, og ingen besøgende-IP'er videre
   til Google. Roboto Condensed er SIL Open Font License 1.1.

   Inter blev tidligere hentet med, men --font-body bruges ikke ét eneste sted
   i sektions-CSS'en — brødteksten arver temaets skrifttype. Fonten var altså
   et rent tab på ~48 KB pr. besøgende og er fjernet. Skal Inter bruges,
   kræver det både at filen hentes ind igen og at sektionerne rent faktisk
   sætter font-family: var(--font-body).
   ============================================================================= */

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700 800;
    font-display: swap;
    src: url('../fonts/roboto-condensed-var.woff2') format('woff2');
}

/* =============================================================================
   VARIABLES & TOKENS
   ============================================================================= */

:root {
    --color-brand:              #FF4500;
    --color-brand-dark:         #D93A00;
    --color-brand-light:        #FFF0EB;
    --color-brand-shadow:       rgba(255,69,0,0.28);
    --color-brand-shadow-hover: rgba(255,69,0,0.38);
    --color-dark:               #1E1E1E;
    --color-dark-mid:           #2D2D2D;
    --color-grey:               #5A5A5A;
    --color-grey-light:         #F4F4F4;
    --color-white:              #FFFFFF;
    --color-border:             #E0E0E0;

    --font-heading: 'Roboto Condensed', system-ui, sans-serif;
    /* Ubrugt i dag — se noten om Inter ovenfor. */
    --font-body:    system-ui, sans-serif;

    --radius:       6px;
    --radius-lg:    12px;
    --radius-xl:    20px;
    --transition:   0.22s ease;

    --container-w:  1160px;
    --container-px: 1.5rem;
    --section-py:   5rem;
    --header-h:     72px;
}

/* =============================================================================
   SECTION BACKGROUND OVERRIDES
   ============================================================================= */

.bg-light  { background-color: var(--color-grey-light) !important; }
.bg-brand  { background-color: var(--color-brand-light, var(--color-grey-light)) !important; }

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

.sumedia-sections-wrap .container,
section[class*="hp-"] .container,
.sumedia-header .container,
.sumedia-footer .container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--container-px);
    background: transparent !important;
}

/* =============================================================================
   SHARED BUTTONS
   ============================================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--color-brand);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    border: 2px solid var(--color-brand);
    transition: background var(--transition), border-color var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-brand-dark);
    border-color: var(--color-brand-dark);
    color: var(--color-white);
}

.btn-primary:active {
    opacity: 0.9;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-brand);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--color-brand);
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--color-brand-light);
    color: var(--color-brand-dark);
}

.btn-text-cta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-grey);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 0.6rem;
    transition: color var(--transition);
}

.btn-text-cta:hover { color: var(--color-brand); }

/* =============================================================================
   SHARED SECTION ELEMENTS
   ============================================================================= */

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    color: var(--color-dark);
    margin-bottom: 0.6rem;
    font-weight: 800;
    line-height: 1.18;
}

.section-underline {
    width: 52px;
    height: 4px;
    background: var(--color-brand);
    border-radius: 2px;
    margin: 0.6rem 0 0.9rem;
}

.section-header.centered .section-underline { margin: 0.6rem auto 0.9rem; }

.section-sub {
    font-size: 1.05rem;
    color: var(--color-dark);
    max-width: 540px;
}

.section-header.centered .section-sub { margin: 0 auto; }

.stars { color: #F5A623; font-size: 1.1rem; letter-spacing: 1px; }

.social-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-row .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--color-grey-light);
    color: var(--color-dark);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}

.social-row .social-link:hover {
    background: var(--color-brand);
    color: var(--color-white);
}

.social-row--light .social-link {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
}

.social-row--light .social-link:hover { background: var(--color-brand); }

.proof-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.5rem 0 0;
    text-align: center;
}

.proof-bar .stars { font-size: 1.3rem; }
.proof-bar p { font-size: 0.95rem; color: var(--color-grey); }

/* =============================================================================
   DISCLAIMER & BREADCRUMB
   ============================================================================= */

.sumedia-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: var(--color-brand-light, #fff0eb);
    border-left: 3px solid var(--color-brand);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: var(--color-grey);
    line-height: 1.5;
}

.sumedia-disclaimer__icon {
    color: var(--color-brand);
    flex-shrink: 0;
    font-style: normal;
    margin-top: .05em;
}

.sumedia-disclaimer p { margin: 0; }

.sumedia-breadcrumb {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.sumedia-breadcrumb a { color: inherit; text-decoration: none; }
.sumedia-breadcrumb a:hover { color: var(--color-brand); text-decoration: underline; }
.sumedia-breadcrumb__current { color: var(--color-dark); }

/* =============================================================================
   RESPONSIVE — TABLET (max 960px)
   ============================================================================= */

@media (max-width: 960px) {
    :root { --section-py: 3.5rem; }
}

/* =============================================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================================= */

@media (max-width: 600px) {
    :root { --section-py: 2.75rem; }
}

/* Enkelt produkt indsat som blok — luft omkring kortet, uanset hvor det står.
   Selve kortets udseende kommer fra PA Feed Produkter. */
.sumedia-produkt { margin: 2rem 0; }
.seo-text-body .sumedia-produkt { margin: 1.5rem 0; }
