/* Avenro — Brand CSS */
:root {
  --brand:       #383C8A;
  --brand-dark:  #2B2F6E;
  --brand-light: #ECEEFF;
  --gold:        #D6A23C;
  --gold-light:  #FBF3E2;
  --dark:        #1A1A2E;
  --bg:          #F5F5F7;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: #fff; }

/* ── Brand color utilities ── */
.bg-brand       { background-color: var(--brand); }
.bg-brand-dark  { background-color: var(--brand-dark); }
.bg-brand-light { background-color: var(--brand-light); }
.bg-gold        { background-color: var(--gold); }
.bg-gold-light  { background-color: var(--gold-light); }
.bg-site-bg     { background-color: var(--bg); }
.bg-dark        { background-color: var(--dark); }
.text-brand     { color: var(--brand); }
.text-gold      { color: var(--gold); }
.text-dark      { color: var(--dark); }
.border-brand   { border-color: var(--brand); }
.border-gold    { border-color: var(--gold); }
.hover\:bg-brand-dark:hover  { background-color: var(--brand-dark); }
.hover\:bg-brand-light:hover { background-color: var(--brand-light); }
.hover\:text-brand:hover     { color: var(--brand); }

/* ── Font ── */
.font-display { font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--brand); color: #fff; font-weight: 600;
  padding: 0.875rem 2rem; border-radius: 0.5rem;
  transition: background-color 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-primary:hover { background-color: var(--brand-dark); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand); color: var(--brand); font-weight: 600;
  padding: 0.8125rem 2rem; border-radius: 0.5rem;
  transition: background-color 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background-color: var(--brand-light); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: var(--brand); font-weight: 600; text-decoration: none;
  transition: gap 0.2s;
}
.btn-ghost:hover { gap: 0.625rem; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem;
  padding: 2rem; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 24px rgba(56,60,138,0.08); transform: translateY(-2px); }
.card-featured { background: var(--brand); color: #fff; border-color: var(--brand); }
.card-featured .text-gray-500 { color: rgba(255,255,255,0.7); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.badge-gold  { background-color: var(--gold-light); color: #92620d; }
.badge-white { background-color: rgba(255,255,255,0.2); color: #fff; }

/* ── Gold accent — kleine ruit, echo van het Avenro-logomerk ── */
.gold-accent {
  display: block; width: 0.625rem; height: 0.625rem;
  background-color: var(--gold); transform: rotate(45deg);
  margin: 0 0 1.25rem 0.1875rem;
}

/* ── Check list ── */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.375rem 0 0.375rem 1.75rem; position: relative; font-size: 0.9375rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.check-list-white li::before { color: #D6A23C; }

/* ── Stats ── */
.stat-number { font-family: 'Inter', sans-serif; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stat-label  { font-size: 0.875rem; margin-top: 0.375rem; opacity: 0.75; }

/* ── Skill tags ── */
.skill-tag {
  display: inline-flex; align-items: center;
  background-color: var(--brand-light); color: var(--brand);
  font-size: 0.875rem; font-weight: 500;
  padding: 0.375rem 0.875rem; border-radius: 999px;
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #e5e7eb; }
.faq-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--dark); text-align: left; gap: 1rem;
}
.faq-icon { flex-shrink: 0; transition: transform 0.3s; color: var(--brand); }
.faq-icon.open { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer.open { max-height: 500px; }
.faq-body { padding: 0 0 1.25rem; color: #4b5563; line-height: 1.7; }

/* ── Form ── */
.form-label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.375rem; }
.form-input {
  width: 100%; border: 1px solid #d1d5db; border-radius: 0.5rem;
  padding: 0.75rem 1rem; font-family: 'Inter', sans-serif; font-size: 1rem;
  color: var(--dark); transition: border-color 0.2s; background: #fff;
}
.form-input:focus { outline: none; border-color: var(--brand); }
textarea.form-input { resize: vertical; min-height: 140px; }

/* ── MacBook-mockup: CSS-only laptop-frame om projectscreenshots
   (zie includes/macbook-mockup.php). Geen los mockup-afbeeldingsbestand
   nodig — de bestaande screenshot uit het CMS wordt hierin gerenderd. ── */
.macbook-mockup { width: 100%; }
.macbook-mockup-screen {
  position: relative;
  display: block;
  background: var(--dark);
  border-radius: 14px;
  padding: 14px 14px 18px;
  box-shadow: 0 20px 40px -16px rgba(26, 26, 46, 0.35);
  transition: box-shadow 0.35s ease;
}
a.macbook-mockup-screen:hover,
a.macbook-mockup-screen:focus-visible { box-shadow: 0 28px 48px -16px rgba(26, 26, 46, 0.45); }
.macbook-mockup-cam {
  display: block; width: 5px; height: 5px; margin: 0 auto 10px;
  border-radius: 999px; background: #3f3f52;
}
.macbook-mockup-screen img {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: contain; background: #fff; border-radius: 12px;
  transition: transform 0.35s ease;
}
.macbook-mockup-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 4 / 3; background: var(--brand-light);
  color: var(--brand); font-size: 0.875rem; font-weight: 500;
  border-radius: 12px;
}
a.macbook-mockup-screen:hover img,
a.macbook-mockup-screen:focus-visible img { transform: scale(1.04); }
.macbook-mockup-base {
  height: 9px; margin: 0 7%;
  background: linear-gradient(180deg, #d9dbe0, #a9acb8);
  border-radius: 0 0 8px 8px;
}

/* ── Vooraf samengestelde mockup-foto (screenshot al in de MacBook-foto
   geplakt door includes/mockup-generator.php) — de laptop, schaduw en
   afgeronde hoeken zitten al in het bestand, dus hier alleen hover-zoom. ── */
.mockup-composited { display: block; }
.mockup-composited-img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  transition: transform 0.35s ease;
}
a.mockup-composited:hover .mockup-composited-img,
a.mockup-composited:focus-visible .mockup-composited-img { transform: scale(1.04); }

/* ── Portfolio-grid: auto-fill kaarten, min. 320px breed. Voor de volledige
   /portfolio-pagina, waar het aantal projecten kan variëren. ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/* ── Featured-grid: altijd exact 3 kolommen op desktop, ongeacht
   viewportbreedte. Voor de "uitgelichte projecten" op de homepage — daar
   staat per definitie een vast aantal (max. 3) items, dus auto-fill zou
   met een smallere browserbreedte onnodig terugvallen naar 1-2 kolommen
   i.p.v. altijd netjes naast elkaar te blijven staan. ── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px)  { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Step number ── */
.step-num {
  width: 3rem; height: 3rem; border-radius: 999px;
  background: var(--brand-light); color: var(--brand);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.125rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Nav ── */
#mobile-menu { background: #fff; border-top: 1px solid #e5e7eb; }
#mobile-menu a { display: block; padding: 0.625rem 0; color: #4b5563; font-weight: 500; text-decoration: none; }
#mobile-menu a:hover { color: var(--brand); }

/* ── Menu-knop — 44x44px minimaal tapdoel (WCAG 2.5.5 / Apple HIG) ──
   Zichtbaarheid zit hier zelf in (i.p.v. te leunen op Tailwinds md:hidden),
   anders wint deze class het door gelijke specificiteit + latere source order. */
.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 0.5rem;
  background: none; border: none; cursor: pointer;
  transition: background-color 0.2s;
}
.menu-btn:hover { background-color: #f3f4f6; }
@media (min-width: 768px) { .menu-btn { display: none; } }

/* ── Section ── */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Review card ── */
.stars { display: flex; gap: 0.125rem; color: var(--gold); }

/* Focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .section     { padding: 3.5rem 0; }
  .btn-primary, .btn-secondary { padding: 0.75rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
