/* ==========================================================================
   NL Marketplace Guide — stylesheet
   ========================================================================== */

:root {
  --color-primary: #ff6600;
  --color-primary-dark: #d95400;
  --color-secondary: #10316b;
  --color-secondary-light: #1c4494;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-dark: #10316b;
  --color-text: #1a1d23;
  --color-text-muted: #5b6472;
  --color-border: #e4e7ec;
  --color-success: #1a8f4c;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 49, 107, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 49, 107, 0.10);
  --shadow-lg: 0 16px 40px rgba(16, 49, 107, 0.16);
  --max-width: 1140px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-secondary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--color-secondary); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
h3 { font-size: 1.2rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-secondary); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; border: 2px solid transparent; cursor: pointer; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: var(--color-secondary-light); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { background: var(--color-bg-alt); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.25rem; max-width: var(--max-width); margin: 0 auto; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--color-secondary); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--color-primary), #ff9248); color: #fff; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: 0.35rem; }
.main-nav ul { list-style: none; display: flex; gap: 0.15rem; margin: 0; padding: 0; align-items: center; }
.main-nav a, .main-nav button.nav-link {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: var(--radius-sm); color: var(--color-text);
  font-weight: 600; font-size: 0.95rem; background: none; border: none; cursor: pointer; font-family: inherit;
}
.main-nav a:hover, .main-nav button.nav-link:hover { background: var(--color-bg-alt); text-decoration: none; }
.main-nav a.active { color: var(--color-primary); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); min-width: 220px; padding: 0.4rem; display: none; z-index: 50;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); font-weight: 500; }
.dropdown-menu a:hover { background: var(--color-bg-alt); text-decoration: none; }
.dropdown > button::after { content: " \25BE"; font-size: 0.7em; }

.lang-switch { display: flex; gap: 0.25rem; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.2rem; margin-left: 0.4rem; }
.lang-btn { border: none; background: none; padding: 0.3rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; cursor: pointer; color: var(--color-text-muted); font-family: inherit; }
.lang-btn.active { background: var(--color-secondary); color: #fff; }

.nav-toggle {
  display: none; border: 1px solid var(--color-border); background: #fff; border-radius: var(--radius-sm);
  width: 42px; height: 38px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-secondary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #16428f 55%, var(--color-primary) 145%);
  color: #fff; padding: 4rem 0 3.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 640px; }
.hero-actions { display: flex; gap: 0.85rem; margin-top: 1.75rem; flex-wrap: wrap; }
.page-hero { background: var(--color-secondary); color: #fff; padding: 2.75rem 0; }
.page-hero h1 { color: #fff; margin: 0 0 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.88); max-width: 680px; margin: 0; }

/* ---------- Sections / Cards ---------- */
section { padding: 3rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 680px; margin-bottom: 2rem; }
.section-head p { color: var(--color-text-muted); }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon { font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--color-bg-alt); border-radius: var(--radius-sm); margin-bottom: 0.9rem; }
.card h3 { margin: 0 0 0.5rem; }
.card p { color: var(--color-text-muted); margin: 0; }

.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--color-primary-dark); background: #fff1e6; padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.6rem; }

.marketplace-card { display: flex; flex-direction: column; gap: 0.6rem; }
.marketplace-card .m-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.marketplace-card .m-badge { width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--color-secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.marketplace-card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--color-text-muted); font-size: 0.92rem; }

.article-card { display: flex; flex-direction: column; }
.article-card .thumb { border-radius: var(--radius-sm); height: 140px; background: linear-gradient(135deg, var(--color-secondary), var(--color-primary)); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; }
.article-card .meta { color: var(--color-text-muted); font-size: 0.82rem; margin-bottom: 0.3rem; }
.article-card h3 a { color: var(--color-secondary); }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--color-text); }
.prose h2 { border-top: 1px solid var(--color-border); padding-top: 1.75rem; }
.prose h2:first-child { border-top: none; padding-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--color-bg-alt); border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--color-text-muted); }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: rgba(255,255,255,0.85); font-size: 0.88rem; margin-top: 0.75rem; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
thead th { background: var(--color-bg-alt); text-align: left; padding: 0.85rem 1rem; color: var(--color-secondary); border-bottom: 2px solid var(--color-border); }
tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-bg-alt); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-secondary); color: #fff; padding: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- Ad slot placeholders ---------- */
.ad-slot {
  background: var(--color-bg-alt); border: 1px dashed #b9c2d0; border-radius: var(--radius-sm);
  min-height: 100px; display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: var(--color-text-muted); font-size: 0.8rem; margin: 2rem 0; text-align: center; padding: 1rem;
}
.ad-slot .ad-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.65rem; font-weight: 700; margin-bottom: 0.4rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.form-status { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.visible { display: block; }
.form-status.success { background: #e9f8ef; color: var(--color-success); border: 1px solid #bfe9cf; }

/* ---------- Contact info cards ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
.info-list li:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,0.82); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.9rem; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom button.link-btn { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 30px rgba(16,49,107,0.18); padding: 1.25rem; transform: translateY(120%); transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner { max-width: var(--max-width); margin: 0 auto; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 380px; font-size: 0.9rem; color: var(--color-text-muted); }
.cookie-banner-text strong { color: var(--color-text); }
.cookie-banner-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.modal-overlay { position: fixed; inset: 0; background: rgba(16,20,30,0.55); z-index: 2100; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.visible { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 1.75rem; box-shadow: var(--shadow-lg); }
.modal h3 { margin-top: 0; }
.consent-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.consent-row:last-of-type { border-bottom: none; }
.consent-row-text strong { display: block; margin-bottom: 0.2rem; }
.consent-row-text span { font-size: 0.85rem; color: var(--color-text-muted); }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cfd6e0; border-radius: 999px; transition: 0.2s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--color-success); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { background: #a9c9b6; opacity: 0.7; cursor: not-allowed; }

.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-secondary); color: #fff; border: none; cursor: pointer; font-size: 1.1rem;
  box-shadow: var(--shadow-md); display: none; align-items: center; justify-content: center; z-index: 400;
}
.back-to-top.visible { display: flex; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--color-border); margin: 2.5rem 0; }
.text-muted { color: var(--color-text-muted); }
.small { font-size: 0.85rem; }
.mt-0 { margin-top: 0; }
ul.checklist { list-style: none; padding: 0; margin: 0; }
ul.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: 0.6rem; }
ul.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--color-success); font-weight: 700; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.18s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .main-nav .dropdown-menu { position: static; box-shadow: none; border: none; display: none; padding-left: 0.75rem; }
  .main-nav .dropdown.open .dropdown-menu { display: block; }
  .lang-switch { margin: 0.6rem 0 0; align-self: flex-start; }
  .nav-toggle { display: flex; }
}
