/* =====================================================================
 * Pagina's en blogs van de werkvloer-agents in de Sunthrex-huisstijl.
 * Zie includes/class-hub-brand.php en templates/page-hub.php.
 * De agents gebruiken een vaste set componenten (.sx-blok, .sx-kaart, …);
 * hier krijgen die onze kleuren, typografie en ruimte. Selectors beginnen
 * met .sx-hub zodat ze winnen van de site-CSS met dezelfde klassenamen.
 * ===================================================================== */

body.sx-hub-page { overflow-x: hidden; }
body.sx-hub-page .container-wrap,
body.sx-hub-page .container-wrap .container.main-content { padding-top: 0 !important; }

/* ---------- Hero (bouwt voort op .sx-brand-hero van de merkpagina's) ---------- */
.sx-hub-hero .sx-brand-hero__sub a { color: #FFC247; }
.sx-hub-hero__checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; color: rgba(255,255,255,.88); font-size: 15px; }
.sx-hub-hero__checks li { margin: 0; padding: 0; }
.sx-hub-hero__checks li::before { content: "\2713"; color: #FFC247; font-weight: 700; margin-right: 8px; }
.sx-hub-hero .sx-brand-hero__cta { align-items: center; }
.sx-hub-hero__shop { color: #FFC247 !important; font-weight: 700; text-decoration: none; padding: 10px 4px; }
.sx-hub-hero__shop:hover { text-decoration: underline; }
.sx-hub-hero__note { margin: 16px 0 0; font-size: 14px; color: rgba(255,255,255,.7) !important; }
.sx-hub-hero__note a { color: #fff !important; text-decoration: underline; }
.sx-hub-hero__photo { position: relative; z-index: 1; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); }
.sx-hub-hero__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sx-hub-hero__photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(10,20,16,.78); backdrop-filter: blur(6px); color: rgba(255,255,255,.88); font-size: 13px; line-height: 1.45; padding: 10px 14px; border-radius: 12px; }
.sx-hub-hero__photo figcaption strong { display: block; color: #FFC247; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 900px) {
    .sx-hub-hero__checks { grid-template-columns: 1fr; }
}

/* ---------- Basis van de agent-inhoud ---------- */
.sx-hub { background: #fff; color: var(--sx-ink, #0E2A26); font-family: 'Open Sans', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.7; }
.sx-hub .sx { background: transparent; color: inherit; font: inherit; }
.sx-hub *, .sx-hub *::before, .sx-hub *::after { box-sizing: border-box; }
.sx-hub .sx-wrap, .sx-hub-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }
.sx-hub h1, .sx-hub h2, .sx-hub h3 { color: var(--sx-ink, #0E2A26); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
.sx-hub h2 { font-size: clamp(24px, 3.2vw, 34px); }
.sx-hub h3 { font-size: 18px; font-weight: 700; }
.sx-hub p { margin: 0 0 1em; color: var(--sx-ink-soft, #3E5A56); }
.sx-hub strong { color: var(--sx-ink, #0E2A26); }
.sx-hub a { color: var(--sx-primary-dark, #00665B); text-decoration: underline; text-underline-offset: 2px; }
.sx-hub a:hover { color: var(--sx-primary, #00897B); }
.sx-hub img { max-width: 100%; height: auto; border-radius: 14px; }
.sx-hub ul:not([class]), .sx-hub ol:not([class]) { padding-left: 1.3em; color: var(--sx-ink-soft, #3E5A56); }

/* Secties: om en om wit en licht mint, net als de rest van de site */
.sx-hub .sx-blok, .sx-hub .sx-sectie { padding: clamp(48px, 7vw, 84px) 0; border: 0; background: #fff; }
.sx-hub .sx-blok:nth-of-type(even), .sx-hub .sx-sectie:nth-of-type(even), .sx-hub .sx-blok.sx-tint { background: var(--sx-bg, #F5FAF8); }
.sx-hub .sx-intro { max-width: 70ch; font-size: 18px; }
.sx-hub .sx-eyebrow, .sx-hub .sx-tag, .sx-hub-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sx-primary, #00897B); background: var(--sx-primary-soft, #E0F2EF); border: 0; border-radius: 999px; padding: 6px 14px; margin: 0 0 14px; }

/* Kaarten en grids */
.sx-hub .sx-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 28px; }
.sx-hub .sx-kaart { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 18px; padding: 24px; box-shadow: 0 6px 20px rgba(14,42,38,.06); }
.sx-hub .sx-kaart p:last-child { margin-bottom: 0; }
.sx-hub .sx-kaart-warm, .sx-hub .sx-kaart.sx-straks { background: var(--sx-primary-soft, #E0F2EF); border-color: rgba(0,137,123,.35); }
.sx-hub .sx-kaart .sx-kaart-link { margin-top: auto; padding-top: 14px; font-weight: 700; }
.sx-hub .sx-cijfer, .sx-hub .sx-getal { display: block; font-size: 30px; font-weight: 800; color: var(--sx-primary, #00897B); line-height: 1.15; margin-bottom: 6px; }
.sx-hub .sx-nummer { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sx-primary, #00897B); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px; }

/* Lijsten */
.sx-hub .sx-lijst { list-style: none; padding: 0; margin: 22px 0 0; }
.sx-hub .sx-lijst li { position: relative; padding: 0 0 0 32px; margin: 0 0 12px; max-width: 72ch; color: var(--sx-ink-soft, #3E5A56); }
.sx-hub .sx-lijst li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--sx-primary-soft, #E0F2EF); color: var(--sx-primary, #00897B); font-weight: 800; font-size: 13px; line-height: 22px; text-align: center; }
.sx-hub .sx-usps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.sx-hub .sx-usps li::before { content: "\2713"; color: var(--sx-primary, #00897B); font-weight: 800; margin-right: 8px; }
.sx-hub .sx-links { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.sx-hub .sx-links li { background: #fff; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 12px; margin: 0; }
.sx-hub .sx-links a { display: block; padding: 14px 18px; text-decoration: none; font-weight: 700; color: var(--sx-ink, #0E2A26); }
.sx-hub .sx-links a::after { content: " \2192"; color: var(--sx-primary, #00897B); }
.sx-hub .sx-links a:hover { color: var(--sx-primary-dark, #00665B); }
.sx-hub .sx-steden { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }
.sx-hub .sx-steden a { display: inline-block; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 999px; padding: 9px 18px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--sx-ink, #0E2A26); background: #fff; }
.sx-hub .sx-steden a:hover { border-color: var(--sx-primary, #00897B); color: var(--sx-primary-dark, #00665B); }
.sx-hub .sx-bronnen { list-style: none; padding: 0; margin: 22px 0 0; font-size: 14.5px; }
.sx-hub .sx-bronnen li { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--sx-line, #D4E3DF); word-break: break-word; color: var(--sx-ink-soft, #3E5A56); }

/* Prijzen, rijen en tabellen */
.sx-hub .sx-prijs { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.sx-hub .sx-prijs li { flex: 1 1 200px; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 14px; padding: 18px; background: #fff; }
.sx-hub .sx-prijs strong { display: block; font-size: 24px; color: var(--sx-primary-dark, #00665B); }
.sx-hub .sx-prijs span { font-size: 14px; color: var(--sx-ink-soft, #3E5A56); }
.sx-hub .sx-rijen { margin-top: 26px; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 18px; overflow: hidden; background: #fff; }
.sx-hub .sx-rij { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; padding: 18px 22px; border-top: 1px solid var(--sx-line, #D4E3DF); }
.sx-hub .sx-rij:first-child { border-top: 0; }
.sx-hub .sx-rij h3 { margin: 0; flex: 1 1 260px; font-size: 17px; }
.sx-hub .sx-rij-prijs { font-weight: 800; color: var(--sx-primary-dark, #00665B); font-size: 19px; }
.sx-hub .sx-rij p { margin: 0; flex: 1 1 100%; font-size: 15px; }
.sx-hub .sx-tabelwrap, .sx-hub .sx-tabel-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 18px; background: #fff; }
.sx-hub table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
.sx-hub table.sx-tabel { min-width: 560px; }
.sx-hub table caption { text-align: left; padding: 14px 18px; font-weight: 700; color: var(--sx-ink, #0E2A26); }
.sx-hub th, .sx-hub td { padding: 13px 18px; border-bottom: 1px solid var(--sx-line, #D4E3DF); text-align: left; vertical-align: top; }
.sx-hub thead th { background: var(--sx-primary-dark, #00665B); color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.sx-hub td.sx-getal { font-weight: 800; color: var(--sx-primary-dark, #00665B); white-space: nowrap; font-size: inherit; display: table-cell; }
.sx-hub tr.sx-ons th, .sx-hub tr.sx-ons td { background: var(--sx-primary-soft, #E0F2EF); }
.sx-hub .sx-uitslag { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 26px; padding: 0; list-style: none; }
.sx-hub .sx-uitslag li { background: #fff; border: 1px solid var(--sx-line, #D4E3DF); border-left: 4px solid var(--sx-primary, #00897B); border-radius: 14px; padding: 18px 20px; }
.sx-hub .sx-noot { font-size: 14.5px; color: var(--sx-ink-soft, #3E5A56); background: var(--sx-cream, #FFF8E7); border-left: 4px solid #FFC247; border-radius: 0 12px 12px 0; padding: 12px 16px; margin-top: 24px; max-width: 72ch; }

/* FAQ */
.sx-hub .sx-vraag { border-top: 1px solid var(--sx-line, #D4E3DF); padding: 20px 0; }
.sx-hub .sx-vraag:first-of-type { border-top: 0; }
.sx-hub .sx-vraag h3 { margin-bottom: .35em; }

/* Knoppen van de agent -> knoppen van de site */
.sx-hub .sx-cta-rij { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 24px 0 8px; }
.sx-hub a.sx-cta, .sx-hub a.sx-knop { display: inline-flex; align-items: center; gap: 8px; background: var(--sx-primary, #00897B); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 999px; border: 0; box-shadow: 0 8px 24px rgba(0,137,123,.25); transition: background .15s, transform .15s; }
.sx-hub a.sx-cta:hover, .sx-hub a.sx-knop:hover { background: var(--sx-primary-dark, #00665B); transform: translateY(-1px); }
.sx-hub a.sx-cta-tweede, .sx-hub a.sx-knop-2 { display: inline-flex; align-items: center; color: var(--sx-primary-dark, #00665B) !important; background: #fff; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--sx-primary, #00897B); }
.sx-hub a.sx-cta-tweede:hover, .sx-hub a.sx-knop-2:hover { background: var(--sx-primary, #00897B); color: #fff !important; }
.sx-hub .sx-onder-cta, .sx-hub .sx-mini { font-size: 14px; color: var(--sx-ink-soft, #3E5A56); margin: 8px 0 0; }

/* Slot-CTA: donkere band in de stijl van de hero */
.sx-hub .sx-slot { position: relative; overflow: hidden; text-align: left; border: 0; border-radius: 26px; margin: 0; padding: clamp(32px, 5vw, 56px);
    background: radial-gradient(ellipse 60% 70% at 100% 0%, rgba(0,137,123,.45) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255,194,71,.25) 0%, transparent 60%), linear-gradient(160deg, #0A1410 0%, #0F1E1A 55%, #162420 100%); }
.sx-hub .sx-slot h2 { color: #fff; }
.sx-hub .sx-slot p { color: rgba(255,255,255,.82); max-width: 60ch; margin-left: 0; margin-right: 0; }
.sx-hub .sx-slot a { color: #fff; }
.sx-hub .sx-slot .sx-cta-rij { justify-content: flex-start; }
.sx-hub .sx-slot a.sx-cta, .sx-hub .sx-slot a.sx-knop { background: #FFC247; color: #0E2A26 !important; box-shadow: 0 8px 24px rgba(255,194,71,.3); }
.sx-hub .sx-slot a.sx-cta:hover, .sx-hub .sx-slot a.sx-knop:hover { background: #ffd47a; }
.sx-hub .sx-slot a.sx-cta-tweede, .sx-hub .sx-slot a.sx-knop-2 { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.sx-hub .sx-slot .sx-onder-cta, .sx-hub .sx-slot .sx-mini { color: rgba(255,255,255,.7); }
.sx-hub > .sx > .sx-wrap > .sx-slot, .sx-hub .sx > .sx-wrap:has(> .sx-slot) { margin-top: clamp(40px, 6vw, 72px); margin-bottom: clamp(40px, 6vw, 72px); }
.sx-hub .sx-verder { font-size: 15px; }
.sx-hub .sx-verder a { margin-right: 10px; }

/* ---------- Sunthrex-blok: producten, installaties, merken ---------- */
.sx-hub-extra h2 { margin-bottom: 26px; }
.sx-hub-products, .sx-hub-installs { padding: clamp(48px, 7vw, 84px) 0; }
.sx-hub-products { background: #fff; }
.sx-hub-installs { background: var(--sx-bg, #F5FAF8); }
.sx-hub-products__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sx-hub-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sx-line, #D4E3DF); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 20px rgba(14,42,38,.06); transition: transform .15s, box-shadow .15s; }
.sx-hub-product:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(14,42,38,.12); }
.sx-hub-product__media { display: flex; align-items: center; justify-content: center; height: 210px; padding: 18px; background: radial-gradient(ellipse 70% 70% at 50% 60%, rgba(0,137,123,.16) 0%, transparent 70%), var(--sx-bg, #F5FAF8); }
.sx-hub-product__media img { max-height: 100%; width: auto; object-fit: contain; border-radius: 0; }
.sx-hub-product__media--logo { background: linear-gradient(160deg, #0A1410 0%, #0F1E1A 55%, #00665B 140%); }
.sx-hub-product__media--logo img { max-height: 46px; max-width: 70%; filter: brightness(0) invert(1); }
.sx-hub-product__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.sx-hub-product h3 { margin: 0 0 4px; font-size: 19px; }
.sx-hub-product h3 a { color: var(--sx-ink, #0E2A26); text-decoration: none; }
.sx-hub-product__sub { font-size: 14px; margin: 0 0 12px; }
.sx-hub-product__price { margin: 0 0 16px; }
.sx-hub-product__price span { font-size: 13px; color: var(--sx-ink-soft, #3E5A56); }
.sx-hub-product__price strong { font-size: 26px; font-weight: 800; color: var(--sx-primary-dark, #00665B); }
.sx-hub-product__price em { display: block; font-style: normal; font-size: 13px; color: var(--sx-ink-soft, #3E5A56); }
.sx-hub-product__cta { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sx-hub-product__cta .sx-btn { text-decoration: none; color: #fff; }
.sx-hub-link { font-weight: 700; text-decoration: none !important; }
.sx-hub-more { margin: 24px 0 0; font-weight: 700; }
.sx-hub-more a { text-decoration: none; }
.sx-hub-installs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sx-hub-install { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--sx-line, #D4E3DF); }
.sx-hub-install img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.sx-hub-install figcaption { padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--sx-ink-soft, #3E5A56); }
.sx-hub-brands { background: linear-gradient(160deg, #0A1410 0%, #0F1E1A 60%, #00423b 140%); padding: 34px 0; }
.sx-hub-brands .sx-hub-container { display: flex; align-items: center; gap: 18px 34px; flex-wrap: wrap; }
.sx-hub-brands p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sx-hub-brands ul { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; list-style: none; margin: 0; padding: 0; flex: 1; }
.sx-hub-brands li { margin: 0; }
.sx-hub-brands img { height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; border-radius: 0; }
.sx-hub-brands a:hover img { opacity: 1; }
.sx-hub-brands__all { color: #FFC247 !important; font-weight: 700; text-decoration: none; }

/* Blogs: inhoud in onze typografie, blok onderaan op volle breedte van de kolom */
.sx-hub--blog h2 { margin-top: 1.4em; }
.sx-hub--blog + .sx-hub-extra { margin-top: 48px; border-radius: 22px; overflow: hidden; }
.sx-hub--blog + .sx-hub-extra .sx-hub-products__grid,
.sx-hub--blog + .sx-hub-extra .sx-hub-installs__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sx-hub--blog + .sx-hub-extra .sx-hub-container { padding: 0 28px; }

@media (max-width: 900px) {
    .sx-hub-products__grid, .sx-hub-installs__grid { grid-template-columns: 1fr; }
    .sx-hub-installs__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 600px) {
    .sx-hub { font-size: 16px; }
    .sx-hub .sx-wrap, .sx-hub-container { padding: 0 16px; }
    .sx-hub a.sx-cta, .sx-hub a.sx-knop, .sx-hub a.sx-cta-tweede, .sx-hub a.sx-knop-2 { width: 100%; justify-content: center; }
    .sx-hub .sx-slot { border-radius: 20px; }
    .sx-hub-brands img { height: 24px; }
}
