/*
Theme Name: FSF Center
Theme URI: https://fsf.center
Author: FSF Center
Author URI: https://fsf.center
Description: Safety training landing page theme for FSF Center (VCA, asbestos, logistics & first-aid courses in Zaventem). Rebuilt from a Lovable/React export into a native WordPress theme, preserving the original charcoal + safety-yellow design and FR/EN/NL language switcher.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fsf-center
*/

/* ==========================================================================
   Design tokens (ported 1:1 from the original design system)
   ========================================================================== */
:root {
  --radius: 0.375rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.22 0.01 90);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.01 90);

  --primary: oklch(0.84 0.17 90);        /* safety yellow */
  --primary-foreground: oklch(0.2 0.01 90);

  --secondary: oklch(0.96 0.005 90);
  --secondary-foreground: oklch(0.24 0.01 90);
  --muted: oklch(0.96 0.005 90);
  --muted-foreground: oklch(0.52 0.01 90);
  --border: oklch(0.9 0.005 90);

  --ink: oklch(0.24 0.005 90);           /* dark industrial surface */
  --ink-foreground: oklch(0.98 0 0);
  --ink-muted: oklch(0.78 0.005 90);
  --topbar: oklch(0.36 0.005 90);

  --shadow-card: 0 10px 30px -12px oklch(0.2 0.02 90 / 0.25);

  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;

  --container: 80rem; /* max-w-7xl */
}

/* Fallback for browsers without oklch() support */
@supports not (color: oklch(1 0 0)) {
  :root {
    --background: #ffffff;
    --foreground: #33322f;
    --primary: #e8d84a;
    --primary-foreground: #302f2b;
    --secondary: #f4f4f2;
    --muted-foreground: #7a7972;
    --border: #e3e2de;
    --ink: #2c2b28;
    --ink-foreground: #fafafa;
    --ink-muted: #c6c5bf;
    --topbar: #4d4c48;
  }
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.125rem;
  padding: 1rem 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 85%, black); }
.btn-ink { background: var(--ink); color: var(--ink-foreground); }
.btn-ink:hover { background: color-mix(in oklab, var(--ink) 85%, white); }
.btn-sm { padding: 0.75rem 1.5rem; gap: 0.5rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; }

.topbar {
  display: none;
  background: var(--topbar);
  color: var(--ink-foreground);
  font-size: 0.875rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.5rem; }
.topbar-left { display: flex; align-items: center; gap: 1.5rem; }
.topbar-item { display: flex; align-items: center; gap: 0.5rem; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-right .btn { padding: 0.375rem 1rem; }

.header-main { background: var(--ink); color: var(--ink-foreground); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }

.site-logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-logo img,
.site-logo-img { height: 3rem; width: auto; }

.nav-menu { display: none; align-items: center; gap: 1.75rem; }
.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--ink-foreground) 90%, transparent);
  transition: color .15s ease;
}
.nav-menu a:hover { color: var(--primary); }

.header-mobile-controls { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle { padding: 0.5rem; color: var(--ink-foreground); }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 0 1.5rem 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding-block: 0.5rem; font-size: 0.875rem; font-weight: 500; color: color-mix(in oklab, var(--ink-foreground) 90%, transparent); }

.lang-switcher { display: flex; align-items: center; gap: 0.25rem; }
.lang-switcher svg { width: 1rem; height: 1rem; margin-right: 0.25rem; color: var(--primary); }
.lang-switcher button {
  border-radius: 0.125rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--ink-foreground) 70%, transparent);
}
.lang-switcher button[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); }
.lang-switcher button:hover { color: var(--primary); }

@media (min-width: 768px) {
  .topbar { display: block; }
}
@media (min-width: 1024px) {
  .nav-menu { display: flex; }
  .header-mobile-controls { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklab, var(--ink) 90%, transparent),
    color-mix(in oklab, var(--ink) 70%, transparent),
    color-mix(in oklab, var(--ink) 20%, transparent));
}
.hero-inner { position: relative; padding-block: 7rem 10rem; }
.hero-inner .eyebrow { color: var(--primary); }
.hero-title {
  margin-top: 1rem;
  max-width: 48rem;
  font-size: 2.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  color: var(--ink-foreground);
}
.hero-text { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: color-mix(in oklab, var(--ink-foreground) 85%, transparent); }
.hero-inner .btn { margin-top: 2.5rem; }

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
}

/* ==========================================================================
   USP bar
   ========================================================================== */
.usp-bar { background: var(--ink); color: var(--ink-foreground); }
.usp-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.usp-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; }
.usp-item .icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }

/* ==========================================================================
   About
   ========================================================================== */
.about-section { padding-block: 5rem; }
.about-grid { display: grid; gap: 3rem; align-items: center; }
.about-copy p { margin-top: 1.5rem; color: var(--muted-foreground); }
.about-copy p:first-of-type { margin-top: 0.75rem; }
.about-title { margin-top: 0.75rem; font-size: 2.25rem; }
.about-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.about-list li { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.about-list .icon { color: var(--primary); }
.about-copy .btn { margin-top: 2rem; }
.about-image img { border-radius: 0.375rem; box-shadow: var(--shadow-card); width: 100%; height: auto; }

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-title { font-size: 3rem; }
}

/* ==========================================================================
   Categories
   ========================================================================== */
.categories-section { background: var(--secondary); padding-block: 5rem; }
.categories-title { margin-top: 0.75rem; max-width: 42rem; font-size: 2.25rem; }
.categories-grid { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.category-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.375rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card .icon-lg { width: 2.25rem; height: 2.25rem; color: var(--primary); }
.category-card h3 { margin-top: 1.25rem; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.category-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.category-card .more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}
.category-card:hover .more { color: var(--primary); }

@media (min-width: 640px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-title { font-size: 3rem; }
}

/* ==========================================================================
   Pillars
   ========================================================================== */
.pillars-section { padding-block: 5rem; }
.pillars-title { margin-top: 0.75rem; font-size: 2.25rem; }
.pillars-grid { margin-top: 3rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.pillar { border-left: 4px solid var(--primary); padding-left: 1.25rem; }
.pillar h3 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.pillar p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section { background: var(--primary); }
.cta-section .container {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; padding-block: 3.5rem;
}
.cta-section h2 { font-size: 1.875rem; font-weight: 700; text-transform: uppercase; color: var(--primary-foreground); }
.cta-address { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; color: color-mix(in oklab, var(--primary-foreground) 80%, transparent); }
.cta-address .icon { width: 1rem; height: 1rem; }

@media (min-width: 768px) {
  .cta-section .container { flex-direction: row; align-items: center; }
  .cta-section h2 { font-size: 2.25rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--ink-foreground); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 4rem; grid-template-columns: 1fr; }
.footer-grid img,
.footer-logo-img { height: 4rem; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; color: var(--ink-muted); }
.footer-col h3 { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.footer-col ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--ink-muted); }
.footer-col li { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-col .icon { width: 1rem; height: 1rem; margin-top: 0.125rem; flex-shrink: 0; color: var(--primary); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.25rem; text-align: center; font-size: 0.75rem; color: var(--ink-muted); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Hide the Lovable "Made with" badge if it was ever cached/embedded anywhere */
#lovable-badge, .lovable-badge, [class*="lovable-badge"] { display: none !important; }
