/* InnovaIT — Style System. Theme: CSS custom properties with data-theme overrides. */

/* ==========================================================================
   1. CSS Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

button {
  font: inherit;
}

/* Skip-to-content link — visually hidden off-screen, shown on keyboard focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 10000;
  background-color: var(--color-teal, #3a98b8);
  color: #0b1318;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 400;
  text-decoration: none;
  outline: 2px solid #0b1318;
  outline-offset: 2px;
}

/* ==========================================================================
   2. CSS Custom Properties — Brand constants + Light theme defaults
   ========================================================================== */

:root {
  /* Brand constants — never change between themes */
  --color-coral:    #e0644e;
  --color-deep-red: #a82b18;
  --color-teal:     #3a98b8;

  /* Light theme (default) */
  --color-bg:        #f0eeea;
  --color-text:      #1a1a1a;
  --color-text-muted: #555;
  --color-surface:   rgba(255, 255, 255, 0.8);
  --color-border:    rgba(0, 0, 0, 0.08);
  --color-nav-bg:    rgba(240, 238, 234, 0.85);
  --color-link:      #256e87;   /* 4.95:1 on #f0eeea — WCAG AA pass */
  --color-error:     #a82b18;   /* 5.99:1 on #f0eeea — WCAG AA pass */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-body:          'Barlow', 'Arial Narrow', Arial, sans-serif;
  --font-mono:          'JetBrains Mono', 'Fira Code', monospace;
  --font-weight-light:  300;
  --font-weight-regular: 400;
}

/* ==========================================================================
   3. System dark mode detection (no manual preference set)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:         #0b1318;
    --color-text:       #f0eeea;
    --color-text-muted: rgba(240, 238, 234, 0.5);
    --color-surface:    rgba(11, 19, 24, 0.85);
    --color-border:     rgba(58, 152, 184, 0.1);
    --color-nav-bg:     rgba(11, 19, 24, 0.85);
    --color-link:       #3a98b8;   /* 5.68:1 on #0b1318 — WCAG AA pass */
    --color-error:      #e0644e;   /* 5.45:1 on #0b1318 — WCAG AA pass */
  }
}

/* ==========================================================================
   4. Manual theme overrides via data-theme attribute
      These win over the media query — set by the JS theme toggle + anti-FOUC script
   ========================================================================== */

[data-theme="dark"] {
  --color-bg:         #0b1318;
  --color-text:       #f0eeea;
  --color-text-muted: rgba(240, 238, 234, 0.5);
  --color-surface:    rgba(11, 19, 24, 0.85);
  --color-border:     rgba(58, 152, 184, 0.1);
  --color-nav-bg:     rgba(11, 19, 24, 0.85);
  --color-link:       #3a98b8;
  --color-error:      #e0644e;
}

[data-theme="light"] {
  --color-bg:         #f0eeea;
  --color-text:       #1a1a1a;
  --color-text-muted: #555;
  --color-surface:    rgba(255, 255, 255, 0.8);
  --color-border:     rgba(0, 0, 0, 0.08);
  --color-nav-bg:     rgba(240, 238, 234, 0.85);
  --color-link:       #256e87;
  --color-error:      #a82b18;
}

/* ==========================================================================
   5. Base typography
   ========================================================================== */

body {
  font-family:  var(--font-body);
  font-weight:  var(--font-weight-light);
  line-height:  1.7;
  color:        var(--color-text);
  background:   var(--color-bg);
}

h1,
h2,
h3,
h4 {
  font-weight:    var(--font-weight-light);
  letter-spacing: 0.05em;
  line-height:    1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }

/* ==========================================================================
   6. Theme transitions — smooth crossfade when toggling
   ========================================================================== */

body,
.nav,
.footer,
button,
a {
  transition:
    background-color 250ms ease,
    color            250ms ease,
    border-color     250ms ease;
}

/* ==========================================================================
   7. Links
   ========================================================================== */

a {
  color:           var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7b. Focus — keyboard-only visible ring (WCAG 2.4.7)
   ========================================================================== */

:focus-visible {
  outline:        2px solid var(--color-teal);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   8. Buttons
   ========================================================================== */

.btn {
  display:        inline-block;
  padding:        0.75rem 2rem;
  border-radius:  4px;
  font-family:    var(--font-body);
  font-weight:    var(--font-weight-regular);
  letter-spacing: 0.05em;
  cursor:         pointer;
  transition:     all 250ms ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-teal);
  color:      #0b1318;
  border:     none;
}

.btn--primary:hover {
  filter: brightness(1.15);
  text-decoration: none;
}

/* ==========================================================================
   9. Layout utilities
   ========================================================================== */

.container {
  max-width: 1200px;
  margin:    0 auto;
  padding:   0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

/* ==========================================================================
   10. Navigation — desktop
   ========================================================================== */

.nav {
  position:   fixed;
  top:        0;
  left:       0;
  width:      100%;
  z-index:    1000;
  padding:    var(--space-sm) 0;
  background: transparent;
  transition: background-color 300ms ease;
}

.nav--scrolled {
  background-color:   var(--color-nav-bg);
  backdrop-filter:    blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:      1px solid var(--color-border);
}

.nav__inner {
  display:     flex;
  align-items: center;
  max-width:   1200px;
  margin:      0 auto;
  padding:     0 var(--space-md);
}

.nav__logo img {
  height: 40px;
  width:  auto;
}

/* Desktop links — hidden on mobile, shown via media query below */
.nav__links {
  display:     flex;
  gap:         var(--space-md);
  margin-left: auto;
}

.nav__links a {
  color:          var(--color-text);
  font-weight:    var(--font-weight-light);
  letter-spacing: 0.05em;
  position:       relative;
  text-decoration: none;
}

.nav__links a:hover {
  color:          var(--color-teal);
  text-decoration: none;
}

/* Utility controls (theme + lang toggles) */
.nav__utils {
  display:     flex;
  gap:         var(--space-sm);
  margin-left: var(--space-md);
  align-items: center;
}

/* Sentinel element at the very top of the page — IntersectionObserver target */
.nav-sentinel {
  height:   1px;
  position: absolute;
  top:      0;
  left:     0;
  width:    100%;
}

/* Hamburger button — only shown on mobile */
.nav-hamburger {
  display:    none;
  flex-direction: column;
  justify-content: space-between;
  gap:        6px;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    4px;
  margin-left: auto;
}

.nav-hamburger span {
  display:    block;
  width:      24px;
  height:     2px;
  background: var(--color-text);
  transition: transform 300ms ease, opacity 300ms ease;
  border-radius: 2px;
}

/* Hamburger → X morphing animation */
.nav-hamburger.open span:nth-child(1) {
  transform:       translateY(8px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform:       translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   11. Mobile nav overlay — full-screen with backdrop blur
   ========================================================================== */

.nav-overlay {
  position:   fixed;
  inset:      0;
  background: rgba(0, 0, 0, 0.6);
  z-index:    1001;
  opacity:    0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.nav-overlay.open {
  opacity:    1;
  visibility: visible;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-overlay__panel {
  position:   fixed;
  inset:      0;
  width:      100%;
  height:     100%;
  background: transparent;
  opacity:    0;
  transition: opacity 200ms ease 100ms;
  padding:    var(--space-lg) var(--space-md);
  display:    flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap:        var(--space-md);
  z-index:    1002;
  overflow-y: auto;
}

.nav-overlay.open .nav-overlay__panel {
  opacity: 1;
}

/* Close button inside the overlay */
.nav-overlay__close {
  position:   absolute;
  top:        var(--space-sm);
  right:      var(--space-md);
  background: none;
  border:     none;
  color:      var(--color-text);
  cursor:     pointer;
  padding:    8px;
  z-index:    1003;
}

/* Nav links inside the mobile panel */
.nav-overlay__links {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--space-sm);
}

.nav-overlay__links a {
  color:          var(--color-text);
  font-size:      1.5rem;
  font-weight:    var(--font-weight-light);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-overlay__links a:hover {
  color: var(--color-teal);
}

/* Utility controls inside the mobile panel */
.nav-overlay__utils {
  display:        flex;
  flex-direction: row;
  align-items:    center;
  gap:            var(--space-sm);
}

/* ==========================================================================
   12. Toggle buttons (theme + language)
   ========================================================================== */

.theme-toggle,
.lang-toggle {
  background:     none;
  border:         1px solid var(--color-border);
  border-radius:  4px;
  padding:        0.25rem 0.5rem;
  color:          var(--color-text);
  cursor:         pointer;
  font-family:    var(--font-body);
  font-size:      0.85rem;
  letter-spacing: 0.03em;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: var(--color-teal);
}

.lang-toggle__active {
  font-weight: var(--font-weight-regular);
  color:       var(--color-teal);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.footer {
  padding:     var(--space-md) 0;
  border-top:  1px solid var(--color-border);
}

.footer__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             var(--space-sm);
}

.footer__info {
  font-size: 0.85rem;
  color:     var(--color-text-muted);
}

.footer__links a {
  color:          var(--color-teal);
  text-decoration: none;
  font-size:      0.85rem;
}

.footer__links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   14. Page placeholder
   ========================================================================== */

/* page-placeholder removed — no longer used in any HTML page */

/* ==========================================================================
   15. Mobile overrides
   ========================================================================== */

@media (max-width: 767px) {
  /* Hide desktop nav controls */
  .nav__links,
  .nav__utils {
    display: none;
  }

  /* Show hamburger */
  .nav-hamburger {
    display: flex;
  }
}

@media (min-width: 768px) {
  /* Always hide mobile overlay on desktop */
  .nav-hamburger,
  .nav-overlay {
    display: none;
  }
}

/* ==========================================================================
   16. Smooth scroll
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   17. Hero section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(58, 152, 184, 0.08) 59px,
      rgba(58, 152, 184, 0.08) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(58, 152, 184, 0.08) 59px,
      rgba(58, 152, 184, 0.08) 60px
    );
  animation: grid-pulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero__bg {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(26, 26, 26, 0.05) 59px,
      rgba(26, 26, 26, 0.05) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(26, 26, 26, 0.05) 59px,
      rgba(26, 26, 26, 0.05) 60px
    );
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero__bg {
    background-image:
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 59px,
        rgba(26, 26, 26, 0.05) 59px,
        rgba(26, 26, 26, 0.05) 60px
      ),
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 59px,
        rgba(26, 26, 26, 0.05) 59px,
        rgba(26, 26, 26, 0.05) 60px
      );
  }
}

/* Hero glow overlay — brighter grid lines masked to cursor position */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(
      circle 150px at var(--mouse-x, -300px) var(--mouse-y, -300px),
      rgba(58, 152, 184, 0.08),
      transparent
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(58, 152, 184, 0.35) 59px,
      rgba(58, 152, 184, 0.35) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(58, 152, 184, 0.35) 59px,
      rgba(58, 152, 184, 0.35) 60px
    );
  -webkit-mask-image: radial-gradient(
    circle 200px at var(--mouse-x, -300px) var(--mouse-y, -300px),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  mask-image: radial-gradient(
    circle 200px at var(--mouse-x, -300px) var(--mouse-y, -300px),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero--glow-active .hero__glow {
  opacity: 1;
}

[data-theme="light"] .hero__glow {
  background-image:
    radial-gradient(
      circle 150px at var(--mouse-x, -300px) var(--mouse-y, -300px),
      rgba(26, 26, 26, 0.04),
      transparent
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(26, 26, 26, 0.15) 59px,
      rgba(26, 26, 26, 0.15) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(26, 26, 26, 0.15) 59px,
      rgba(26, 26, 26, 0.15) 60px
    );
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero__glow {
    background-image:
      radial-gradient(
        circle 150px at var(--mouse-x, -300px) var(--mouse-y, -300px),
        rgba(26, 26, 26, 0.04),
        transparent
      ),
      repeating-linear-gradient(
        0deg,
        transparent,
        transparent 59px,
        rgba(26, 26, 26, 0.15) 59px,
        rgba(26, 26, 26, 0.15) 60px
      ),
      repeating-linear-gradient(
        90deg,
        transparent,
        transparent 59px,
        rgba(26, 26, 26, 0.15) 59px,
        rgba(26, 26, 26, 0.15) 60px
      );
  }
}

@keyframes grid-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__subline {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
}

/* ==========================================================================
   18. Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero__bg {
    animation: none;
  }
  .hero__glow {
    display: none;
  }
  .btn--loading::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .hero__glow {
    display: none;
  }
}

/* ==========================================================================
   19. About preview
   ========================================================================== */

.about-preview {
  max-width: 700px;
}

.about-preview--grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  max-width: 1000px;
}

.about-preview__image {
  display: flex;
  align-items: center;
}

.about-preview__image img {
  height: 100%;
  max-height: 220px;
  width: auto;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}

.about-preview h2 {
  margin-bottom: var(--space-md);
}

.about-preview__body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.about-preview__link {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: var(--font-weight-regular);
}

.about-preview__link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   20. Services grid
   ========================================================================== */

#services h2 {
  margin-bottom: var(--space-md);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 250ms ease;
}

@media (hover: hover) {
  .service-card:hover {
    border-color: var(--color-teal);
    text-decoration: none;
  }
}

.service-card__glyph {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-teal);
  margin-bottom: var(--space-xs);
}

.service-card__title {
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 4AllPortal featured card variant */
.service-card--featured {
  border-left: 3px solid var(--color-teal);
  padding-left: calc(var(--space-md) - 3px);
}

.service-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-bottom: var(--space-xs);
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-preview--grid {
    grid-template-columns: 1fr;
  }

  .about-preview__image {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   21. Contact preview
   ========================================================================== */

#contact h2 {
  margin-bottom: var(--space-md);
}

.contact-preview__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-preview__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-preview__label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.contact-preview__item a {
  color: var(--color-teal);
  text-decoration: none;
}

.contact-preview__item a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   22. Contact form
   ========================================================================== */

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-sm);
  font-family: var(--font-body);
  font-weight: var(--font-weight-light);
  font-size: 1rem;
  color: var(--color-text);
  width: 100%;
  transition: border-color 250ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
  border-color: var(--color-teal);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.85rem;
  color: var(--color-error);
  min-height: 1.2em;
}

.form-privacy-note {
  font-size:   0.875rem;
  color:       var(--color-text-muted);
  margin-top:  var(--space-xs);
  line-height: 1.5;
}

.form-privacy-note a {
  color: var(--color-link);
}

/* Honeypot — invisible to humans, bots fill it */
.form-honeypot {
  position: absolute;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Mobile: stack contact columns */
@media (max-width: 767px) {
  .contact-preview__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   23. About page — intro grid
   ========================================================================== */

.about-intro__grid {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: var(--space-md);
  align-items: start;
}

.about-intro__grid h1 {
  margin-bottom: var(--space-md);
}

.about-intro__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

/* ==========================================================================
   24. About page — process steps
   ========================================================================== */

.about-how h2 {
  margin-bottom: var(--space-md);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.how-steps .step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-teal);
  margin-bottom: var(--space-xs);
}

.how-steps h3 {
  margin-bottom: var(--space-xs);
}

.how-steps p {
  color: var(--color-text-muted);
}

/* ==========================================================================
   25. About page — practice examples
   ========================================================================== */

.about-practice h2 {
  margin-bottom: var(--space-md);
}

.practice-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.practice-card {
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-md);
}

.practice-card h3 {
  margin-bottom: var(--space-xs);
}

.practice-card p {
  color: var(--color-text-muted);
}

.practice-card--highlight {
  border-left-color: var(--color-teal);
  border-left-width: 3px;
}

.practice-card--highlight h3 {
  color: var(--color-teal);
}

/* ==========================================================================
   26. About page — vertical timeline
   ========================================================================== */

.about-experience h2 {
  margin-bottom: var(--space-md);
}

.timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 45%;
  margin-bottom: var(--space-md);
}

.timeline__item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: var(--space-md);
}

.timeline__item:nth-child(even) {
  margin-left: 55%;
  text-align: left;
  padding-left: var(--space-md);
}

.timeline__item::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-teal);
  top: 0.4em;
}

.timeline__item:nth-child(odd)::after {
  right: -6px;
  transform: translateX(50%);
}

.timeline__item:nth-child(even)::after {
  left: -6px;
  transform: translateX(-50%);
}

.timeline__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.timeline__desc {
  margin-bottom: var(--space-xs);
}

.timeline__item--cta .timeline__desc a {
  color: var(--color-teal);
  font-weight: var(--font-weight-regular);
}

/* ==========================================================================
   27. Tech stack tags
   ========================================================================== */

.tech-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  border-radius: 3px;
  padding: 0.15em 0.4em;
  margin: 0 0.25em 0.25em 0;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   28. Services detail page
   ========================================================================== */

.service-detail h2 {
  margin-bottom: var(--space-md);
}

.service-detail p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.service-detail__list {
  list-style: disc;
  padding-left: var(--space-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.service-detail__list li {
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   29. 4AllPortal callout box
   ========================================================================== */

.service-callout {
  border-left: 3px solid var(--color-teal);
  background: rgba(58, 152, 184, 0.06);
  padding: var(--space-md);
  border-radius: 0 4px 4px 0;
  margin: var(--space-md) 0;
}

[data-theme="light"] .service-callout {
  background: rgba(58, 152, 184, 0.08);
}

.service-callout__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--color-teal);
  border: 1px solid var(--color-teal);
  border-radius: 3px;
  padding: 0.2em 0.5em;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.service-callout p {
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   30. Services bottom CTA
   ========================================================================== */

.services-cta {
  text-align: center;
}

.services-cta h2 {
  margin-bottom: var(--space-sm);
}

.services-cta p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   31. Mobile overrides for about page and timeline
   ========================================================================== */

@media (max-width: 767px) {
  .about-intro__grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding-left: var(--space-lg);
    padding-right: 0;
  }

  .timeline__item::after,
  .timeline__item:nth-child(odd)::after,
  .timeline__item:nth-child(even)::after {
    left: 6px;
    right: auto;
    transform: translateX(0);
  }
}

/* ==========================================================================
   32. Button loading state
   ========================================================================== */

.btn--loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn--loading::after {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-left: 0.5em;
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   33. Form error banner
   ========================================================================== */

.form-error-banner {
  display: none;
  border-left: 3px solid var(--color-coral);
  background: rgba(224, 100, 78, 0.08);
  padding: var(--space-sm);
  border-radius: 0 4px 4px 0;
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   34. Form success message
   ========================================================================== */

.form-success {
  display: none;
  border-left: 3px solid var(--color-teal);
  background: rgba(58, 152, 184, 0.06);
  padding: var(--space-md);
  border-radius: 0 4px 4px 0;
  color: var(--color-text);
}

[data-theme="light"] .form-success {
  background: rgba(58, 152, 184, 0.08);
}

/* ==========================================================================
   35. Cookie consent banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  transition: transform 400ms ease, opacity 400ms ease;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--color-text);
  max-width: 600px;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.4rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 250ms ease;
  border: 1px solid var(--color-border);
}

.cookie-banner__btn--accept {
  background: var(--color-teal);
  color: #0b1318;
  border-color: var(--color-teal);
}

.cookie-banner__btn--accept:hover {
  filter: brightness(1.15);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--color-text);
}

.cookie-banner__btn--reject:hover {
  border-color: var(--color-teal);
}

@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   36. FAQ accordion
   ========================================================================== */

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--color-teal);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus sign */
}

.faq-item p {
  padding: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* DAM hero section */
.dam-hero {
  text-align: center;
  padding-top: 6rem;
}

.dam-hero .service-callout__badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.dam-faq {
  background: var(--color-bg);
}

/* DAM solutions showcase ("Wat ik heb gebouwd") */
/* Family grouping header (In-platform extensies / Integratieservices) */
.solution-family {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

/* First family sits closer to the section intro */
.solution-family:first-of-type {
  margin-top: var(--space-md);
}

.solution-family__label {
  font-family:    var(--font-mono);
  font-size:      0.8rem;
  font-weight:    var(--font-weight-regular);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color:          var(--color-teal);
  margin-bottom:  var(--space-xs);
}

.solution-family__lead {
  color:     var(--color-text-muted);
  max-width: 60ch;
}

/* Tech / area tags on each solution card */
.solution-card__tags {
  display:   flex;
  flex-wrap: wrap;
  gap:       0.4rem;
  margin-top: var(--space-sm);
}

.solution-tag {
  font-family:    var(--font-mono);
  font-size:      0.68rem;
  letter-spacing: 0.03em;
  color:          var(--color-text-muted);
  border:         1px solid var(--color-border);
  border-radius:  2px;
  padding:        0.15rem 0.5rem;
  white-space:    nowrap;
}
