/* =========================================================
   OBAM — Clean Stylesheet (no legacy)
   Brand palette: #FF9C00 (orange) / #466314 (green)
   ========================================================= */

/* ---- Design Tokens ---- */
:root {
  /* Brand */
  --obam-orange: #ff9c00;
  --obam-green: #466314;

  /* Base colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-cream-50: #fcfcf9;
  --color-cream-100: #fffffd;
  --color-slate-900: #13343b;
  --color-slate-700: #23434a;
  --color-slate-500: #626c71;

  /* Surfaces & borders (light) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-border: rgba(19, 52, 59, 0.15);
  --color-card-border: rgba(19, 52, 59, 0.12);

  /* Brand semantics */
  --color-primary: var(--obam-green);
  --color-primary-hover: #3a5511;
  --color-primary-active: #2f470e;
  --color-warning: var(--obam-orange);

  /* Background accents */
  --color-bg-1: rgba(255, 156, 0, 0.1);
  --color-bg-2: rgba(255, 156, 0, 0.12);
  --color-bg-3: rgba(70, 99, 20, 0.1);

  /* Focus & shadows */
  --focus-ring: 0 0 0 3px rgba(70, 99, 20, 0.35);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 18px rgba(0, 0, 0, 0.08);

  /* Typography (base scales up at desktop) */
  --font-family-base: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: clamp(2rem, 6vw, 3rem);
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --lh-tight: 1.2;
  --lh-normal: 1.55;

  /* Spacing & radii */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-full: 9999px;

  /* Layout */
  --container-xl: 1280px;

  /* Header height (JS updates at runtime; this is a safe default) */
  --nav-height: 72px;
}

/* =========================================================
   Base
   ========================================================= */

html {
  font-size: 14px;
  scroll-behavior: smooth;
}
@media (min-width: 1200px) {
  html {
    font-size: 15px;
  }
}
@media (min-width: 1440px) {
  html {
    font-size: 16px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: var(--color-background);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: var(--lh-tight);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
p {
  margin: 0 0 var(--space-16);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-primary-hover);
}

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-16);
}
@media (min-width: 960px) {
  .container {
    padding-inline: 2rem;
  }
}

/* =========================================================
   Fixed Header (opaque, always visible)
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--obam-green); /* solid on-brand */
  color: #000000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}
.nav-brand img {
  width: clamp(120px, 9vw, 170px);
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: var(--radius-8);
}
.nav-links a:hover {
  color: var(--obam-orange);
  background: rgba(255, 156, 0, 0.16);
}

/* Toggle button for small screens; hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }
  .nav-toggle {
    display: block;
  }
  /* Hide the horizontal navigation and stack links vertically */
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--obam-green);
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem 0;
    z-index: 999;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 10px 20px;
    width: 100%;
  }
}

/* Optional compact mode when JS adds .is-scrolled */
.nav.is-scrolled .nav-container {
  padding: 6px 20px;
}
.nav.is-scrolled .nav-brand img {
  width: clamp(110px, 7.5vw, 150px);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 800px at 10% 10%,
      rgba(255, 156, 0, 0.1),
      transparent 60%
    ),
    radial-gradient(
      1200px 800px at 90% 20%,
      rgba(70, 99, 20, 0.1),
      transparent 60%
    ),
    var(--color-cream-100);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-32);
}

.hero h1 {
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-24);
  color: var(--obam-green);
}

.hero p.lead {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-32);
  max-width: 700px;
  margin-inline: auto;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-10);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--obam-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--obam-orange);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  background: #e08700;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 16px 28px;
  border-radius: var(--radius-12);
  font-size: 1.05rem;
}

/* Lone button in a section footer centers itself */
.section .btn:only-child {
  display: inline-flex;
  margin-inline: auto;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: var(--space-16);
  max-width: 640px;
  margin-inline: auto;
}
.bg-alt {
  background: var(--color-bg-1);
}

/* =========================================================
   Services (two cards; “OF” separator hides on desktop)
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  margin-top: 60px;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.services-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin: var(--space-16) 0;
}
@media (min-width: 1024px) {
  .services-separator {
    display: none;
  }
}

.separator-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-border),
    transparent
  );
}
.separator-text {
  background: var(--obam-green);
  color: #fff;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-sm);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  padding: var(--space-32);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--obam-green), #3a5511);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-features {
  list-style: none;
  margin: var(--space-24) 0 0;
  padding: 0;
}
.service-features li {
  display: flex;
  gap: var(--space-12);
  align-items: center;
  padding: 8px 0;
  color: var(--color-text-secondary);
}
.service-features li::before {
  content: "✓";
  color: var(--obam-green);
  font-weight: 700;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 99, 20, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
}

/* =========================================================
   Team
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-32);
  margin-top: 60px;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  padding: var(--space-32);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-20);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--obam-green);
  box-shadow: var(--shadow-md);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* fallback if raw <img> is used */
.team-card img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
  margin: 0 auto var(--space-16);
}

/* =========================================================
   Process
   ========================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
  margin-top: 60px;
}
.process-grid .process-step:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2;
}

.process-step {
  text-align: center;
  position: relative;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--obam-green);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
}
.process-content {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  padding: var(--space-24) var(--space-20);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-20);
}

/* =========================================================
   Case Studies
   ========================================================= */

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-32);
  margin-top: 60px;
}

@media (max-width: 768px) {
  .case-studies-grid .case-study-card:nth-child(3):nth-last-child(1) {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
  }
}

.case-study-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  padding: var(--space-24);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-study-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--obam-green), #3a5511);
}
.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-study-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-20);
}
.case-study-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-1);
  border-radius: var(--radius-10);
  font-size: 2rem;
}
.industry-tag {
  background: var(--obam-green);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* spacing between title and subtitles (“Uitdaging/Oplossing”) */
.case-study-card h3 {
  margin-bottom: 0.75rem;
}
.case-study-card .case-study-section h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.case-study-card h3 + .case-study-sections .case-study-section h4:first-child {
  margin-top: 1.125rem;
}

.case-study-result {
  background: var(--color-bg-3);
  border-left: 4px solid var(--obam-green);
  border-radius: var(--radius-10);
  padding: var(--space-20);
  margin-top: auto;
}

@media (min-width: 769px) and (max-width: 1180px) {
  /* force two sensible columns in this band */
  .case-studies-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
  /* when there are 3 total, the 3rd wraps: center it */
  .case-studies-grid .case-study-card:nth-child(3) {
    grid-column: 1 / -1; /* take the full row */
    justify-self: center; /* and center itself */
    max-width: 560px; /* avoid stretching edge-to-edge */
  }
}

/* =========================================================
   Pricing & Tiers
   ========================================================= */

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}
.pricing-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-1);
  border: 2px solid var(--obam-green);
  border-radius: var(--radius-12);
  font-size: 2rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  padding: var(--space-24);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.pricing-card h4 {
  margin-bottom: var(--space-16);
}
.price {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--obam-green);
  margin-bottom: 8px;
}

.implementation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-24);
}
.tier-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  padding: var(--space-32);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tier-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--obam-green);
  margin-bottom: 8px;
}
.tier-duration {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.tier-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.tier-features li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  color: var(--color-text-secondary);
}
.tier-features li::before {
  content: "✓";
  color: var(--obam-green);
  font-weight: 700;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 99, 20, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
}

.tier-recommended {
  border-color: var(--obam-green);
  transform: scale(1.02);
}
.tier-recommended::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--obam-green), #3a5511);
}

/* Pricing benefits */
.pricing-benefits {
  margin-top: var(--space-24);
}
.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-16);
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-8);
  padding: var(--space-12) var(--space-16);
  box-shadow: var(--shadow-xs);
}
.benefit-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-3);
  color: var(--obam-green);
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--space-16);
  transition: box-shadow 0.2s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: var(--space-16) var(--space-20);
  cursor: pointer;
}
.faq-question h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--color-text);
}
.faq-toggle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--obam-green);
  width: 28px;
  text-align: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 var(--space-20);
  border-top: 1px solid transparent;
}
.faq-answer-content {
  padding: var(--space-16) 0;
}
.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 12px 20px 16px;
  border-top-color: var(--color-card-border);
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Center any CTA button under the FAQ list */
#faq .container > .btn,
#faq .faq-cta .btn,
#faq .cta .btn {
  display: inline-flex;
  margin-inline: auto;
}

/* =========================================================
   Forms (Contact)
   ========================================================= */

.contact-form {
  max-width: 900px;
  margin: 60px auto 0;
  background: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-12);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-20);
}
.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: var(--font-size-md);
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-family-base);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--obam-green);
  box-shadow: var(--focus-ring);
}

/* Desktop grid for first row fields */
@media (min-width: 960px) {
  .contact-form form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-24);
  }
  .contact-form form .form-group:nth-of-type(1),
  .contact-form form .form-group:nth-of-type(2),
  .contact-form form .form-group:nth-of-type(3) {
    grid-column: span 4;
  }
  .contact-form form .form-group:nth-of-type(4) {
    grid-column: 1 / -1;
  } /* select */
  .contact-form form .form-group:nth-of-type(5) {
    grid-column: 1 / -1;
  } /* textarea */
  .contact-form form .form-group:last-of-type {
    grid-column: 1 / -1;
  } /* actions */
}

/* Center submit + helper text */
.contact-form .form-actions,
.contact-form .form-group:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

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

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 0 32px;
  margin-top: 80px;
  text-align: center;
  color: var(--color-text-secondary);
}

/* =========================================================
   Utilities
   ========================================================= */

img,
svg {
  max-width: 100%;
  height: auto;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== OBAM NAV FINAL FIX — SOLID COLOR, NO TRANSPARENCY ==== */

header,
.nav,
.site-header,
#nav,
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;

  /* solid brand color */
  background-color: #e9e6d0; /* elegant, fits OBAM palette */
  background-image: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;

  /* border and shadow for depth */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.nav-container,
header .container,
.navbar .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 24px !important;
  height: 72px !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

.nav a,
header a,
.navbar a {
  color: #fff !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
header a:hover,
.navbar a:hover {
  color: #ff9c00 !important;
}

.nav img,
header img,
.navbar img {
  width: clamp(120px, 8vw, 170px) !important;
  height: auto !important;
}

/* prevent overlap with content */
body {
  padding-top: 72px !important;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */

@media (max-width: 768px) {
  .hero-content {
    padding: 24px 16px;
  }
  .hero p.lead {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .team-grid,
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid .process-step:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
  .section {
    padding: 60px 0;
  }
}

@media (min-width: 960px) {
  .section {
    padding: 90px 0;
  }
}

/* 3) FAQ: center the CTA button and the helper text below it */
#faq .faq-cta,
#faq .container > .btn,
#faq .cta {
  text-align: center !important;
}
#faq .faq-cta .btn,
#faq .cta .btn,
#faq .container > .btn {
  display: inline-flex !important;
  margin-inline: auto !important;
}
#faq .faq-cta .helper,
#faq .form-helper,
#faq .cta .helper {
  text-align: center !important;
  margin-top: 0.5rem;
  color: var(--color-text-secondary);
}

/* 5) "Geavanceerde oplossing” card: center the orphan on second row (<=1024px) */
@media (max-width: 1024px) {
  .implementation-tiers .tier-card:nth-child(3):nth-last-child(1) {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* ===== Contact form centering (grid-aware, final) ===== */

/* Mobile/tablet: ensure column flex centers */
#contact .contact-form .form-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.75rem !important;
}

/* Desktop grid: make the actions row span full width and center as a grid item */
@media (min-width: 960px) {
  #contact .contact-form form > .form-actions {
    grid-column: 1 / -1 !important;
    justify-self: center !important; /* center the grid item itself */
    width: 100%; /* give it room so inner items center nicely */
  }
}

/* Button really centered (even if any legacy float/margins exist) */
#contact .contact-form .form-actions .btn {
  display: inline-flex !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  min-width: 220px;
}

/* Helper text centered under the button */
#contact .contact-form .form-actions .form-helper {
  display: block !important;
  width: 100%;
  text-align: center !important;
  margin-top: 0.5rem;
  color: var(--color-text-secondary);
}
