/*
Theme Name: BaFaCom
Theme URI: https://bafacom.nl
Author: BaFaCom
Author URI: https://bafacom.nl
Description: Strak verkoopthema voor modules, talen, landingspagina’s en thema’s. Voorbereid op WooCommerce, met de BaFaCom-huisstijl in navy en oranje.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bafacom
Tags: e-commerce, woocommerce, custom-logo, featured-images, one-column, translation-ready
*/

:root {
    --bf-navy: #002d5b;
    --bf-navy-deep: #001e3d;
    --bf-blue: #0072ce;
    --bf-orange: #ff7a00;
    --bf-orange-hot: #ff9a1a;
    --bf-ink: #122033;
    --bf-muted: #5b6b7c;
    --bf-bg: #f4f7fb;
    --bf-white: #ffffff;
    --bf-line: #e4eaf1;
    --bf-radius: 18px;
    --bf-shadow: 0 18px 40px rgba(0, 45, 91, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bafacom-body {
    margin: 0;
    color: var(--bf-ink);
    background: var(--bf-white);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bf-blue); text-decoration: none; }
a:hover { color: var(--bf-orange); }

.bf-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.bf-site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--bf-line);
    backdrop-filter: blur(16px);
}

.bf-header-inner,
.bf-footer-grid,
.bf-hero-grid,
.bf-card-grid,
.bf-product-grid {
    display: grid;
    gap: 24px;
}

.bf-header-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 84px;
}

.bf-logo img {
    height: 52px;
    width: auto;
}

.bf-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bf-nav a,
.bf-nav .menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: var(--bf-navy);
    font-weight: 700;
    font-size: 0.95rem;
}

.bf-nav ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bf-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bf-btn,
.wp-block-button__link,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bf-orange), var(--bf-orange-hot));
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.22);
}

.bf-btn-ghost {
    background: transparent;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.bf-btn-ghost:hover {
    color: var(--bf-orange-hot) !important;
    border-color: var(--bf-orange);
    background: rgba(255, 122, 0, 0.12);
}

.bf-section .bf-btn-ghost {
    color: var(--bf-navy) !important;
    border-color: var(--bf-navy);
}

.bf-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bf-bg);
    color: var(--bf-navy);
    font-weight: 800;
}

.bf-cart span {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bf-orange);
    color: #fff;
    font-size: 0.7rem;
    line-height: 18px;
    text-align: center;
}

.bf-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 114, 206, 0.28), transparent 28%),
        linear-gradient(135deg, var(--bf-navy-deep), var(--bf-navy) 58%, #004b8f);
    color: #fff;
    padding: 84px 0 72px;
}

.bf-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}

.bf-kicker {
    margin: 0 0 12px;
    color: var(--bf-orange-hot);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bf-hero h1,
.bf-section h2,
.bf-page-head h1 {
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.bf-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.bf-section h2,
.bf-page-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--bf-navy); }

.bf-hero p,
.bf-lead {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
}

.bf-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.bf-hero-mark {
    justify-self: end;
    width: min(340px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--bf-shadow);
}

.bf-hero-mark img { margin: 0 auto; }

.bf-section { padding: 80px 0; }
.bf-section.alt { background: var(--bf-bg); }

.bf-section-head {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.bf-section-head p { color: var(--bf-muted); }

.bf-card-grid { grid-template-columns: repeat(4, 1fr); }
.bf-product-grid { grid-template-columns: repeat(3, 1fr); }

.bf-card,
.bf-product,
.woocommerce ul.products li.product {
    background: #fff;
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    box-shadow: var(--bf-shadow);
    overflow: hidden;
}

.bf-card { padding: 28px; }
.bf-card h3,
.bf-product h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 8px;
    color: var(--bf-navy);
    font-size: 1.15rem;
}

.bf-card p { margin: 0; color: var(--bf-muted); }

.bf-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bf-navy), var(--bf-blue));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.bf-product { display: flex; flex-direction: column; }
.bf-product img { aspect-ratio: 4/3; object-fit: cover; background: var(--bf-bg); }
.bf-product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bf-price { color: var(--bf-orange); font-weight: 800; font-size: 1.1rem; }

.bf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bf-step { padding: 8px 8px 0; }
.bf-step strong { display: block; color: var(--bf-orange); margin-bottom: 8px; }

.bf-cta {
    background: linear-gradient(135deg, var(--bf-navy), #004888);
    color: #fff;
    border-radius: 28px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.bf-cta p { color: rgba(255,255,255,0.8); margin: 8px 0 0; }

.bf-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.bf-split-flip { direction: rtl; }
.bf-split-flip > * { direction: ltr; }

.bf-page-head { padding: 48px 0 12px; }
.bf-content { padding-bottom: 72px; }
.bf-content .bf-wrap { display: grid; gap: 24px; }

.bf-site-footer {
    background: var(--bf-navy-deep);
    color: rgba(255,255,255,0.78);
    padding: 56px 0 28px;
}

.bf-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.bf-site-footer h2,
.bf-site-footer h3 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.bf-site-footer a { color: rgba(255,255,255,0.78); }
.bf-site-footer a:hover { color: var(--bf-orange-hot); }
.bf-site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bf-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.92rem; }

@media (max-width: 980px) {
    .bf-header-inner,
    .bf-hero-grid,
    .bf-card-grid,
    .bf-product-grid,
    .bf-steps,
    .bf-footer-grid,
    .bf-cta { grid-template-columns: 1fr; }
    .bf-header-inner { padding: 12px 0; }
    .bf-hero-mark { justify-self: start; }
    .bf-cta { display: grid; }
    .bf-split,
    .bf-split-flip { grid-template-columns: 1fr; direction: ltr; }
}
