/**
 * Template #29 — Rekenterij layout, hydrangea palette
 * (#002300 / #357904 / #A6D3BC / #699BC9 / #255CB8).
 * @import must be first (except @charset).
 */
@import url("rek-source-style.css");
@import url("rek-source-mob.css");

:root {
  /* Hydrangea swatches */
  --rek-forest: #002300;
  --rek-leaf: #357904;
  --rek-mint: #a6d3bc;
  --rek-sky: #699bc9;
  --rek-cobalt: #255cb8;
  /* Semantic aliases (keep token names used across site.css) */
  --rek-cyan: var(--rek-sky);
  --rek-teal: var(--rek-cobalt);
  --rek-teal-deep: var(--rek-forest);
  --rek-teal-panel: #0a2e12;
  --rek-coral: var(--rek-leaf);
  --rek-amber: var(--rek-cobalt);
  --rek-amber-hover: #3a72d0;
  --rek-ink: var(--rek-forest);
  --rek-muted: #2a4a38;
  --rek-text-on-dark: #eef8f2;
  --rek-section-gradient: radial-gradient(88.18% 60.7% at 50% 50%, var(--rek-sky) 0%, var(--rek-forest) 100%);
  --rek-sidebar-gradient: radial-gradient(288.2% 50.77% at 50% 50%, var(--rek-leaf) 0%, var(--rek-forest) 100%);
  --rek-btn-bg: var(--rek-cobalt);
  --rek-btn-text: #ffffff;
  --rek-btn-border: var(--rek-leaf);
  --rek-grid-bg: var(--rek-teal-panel);
  --rek-footer-border: var(--rek-mint);
  --rek-light-bg: #eef6f1;
}

/* Hero: deep forest overlay from hydrangea palette */
.intro::before {
  background-color: rgba(0, 35, 0, 0.74) !important; /* --rek-forest */
}

/* Dark marketing sections (home). Exclude light legal/content bands. */
section:not(.intro):not(.seo-section):not(.table):not(.section):not(.section-sm):not(.page-hero) {
  background: var(--rek-section-gradient) !important;
  color: var(--rek-text-on-dark);
}
.cell-section {
  background: var(--rek-section-gradient) !important;
  color: var(--rek-text-on-dark);
}
.section-title {
  color: inherit;
}
.grid-item {
  background: var(--rek-grid-bg) !important;
  color: var(--rek-text-on-dark);
}
.info-card-text h3,
.info-card-text p,
.grid-process-title,
.grid-process-text,
.grid-review-text,
.grid-review-name {
  color: var(--rek-text-on-dark);
}

.menu-sidebar {
  background: var(--rek-sidebar-gradient) !important;
}

.btn,
.btn.end-section,
.fixed-link.visible {
  color: var(--rek-btn-text) !important;
  border-color: var(--rek-btn-border) !important;
  background-color: var(--rek-btn-bg) !important;
}
.btn:hover {
  color: var(--rek-text-on-dark) !important;
  border-color: var(--rek-coral) !important;
  background-color: var(--rek-teal-deep) !important;
  box-shadow: 0 2px 22px 0 var(--rek-coral) !important;
}

/* Header dropdown on white panel */
.header-nav__dropdown:hover .header-nav__dropdown-panel {
  border-color: var(--rek-teal) !important;
}
.header-nav__dropdown-link {
  color: var(--rek-ink) !important;
}
.header-nav__dropdown-link:hover,
.header-nav__dropdown-link.active-link,
.desktop-nav-list .active-link {
  color: var(--rek-teal) !important;
}

footer .links-wrapper {
  border-top-color: var(--rek-footer-border) !important;
}
.leadform .form-preloader-orange .dot {
  background: var(--rek-teal) !important;
}

.intro .info h1,
.intro .info p,
.intro .rating p {
  color: #fff !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Avoid ugly mid-word hyphenation in NL headlines */
body * {
  hyphens: manual;
}
.intro h1,
.intro .info p,
.section-title {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Desktop hero + form card layout */
@media (min-width: 1000px) {
  .intro .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 2.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  .intro .info {
    flex: 1 1 0;
    width: auto !important;
    max-width: none;
    min-width: 0;
  }
  .intro .rek-form-wrap {
    flex: 0 0 440px;
    width: 440px;
    max-width: 440px;
  }
  .intro .rek-form-wrap form.lead-form.js-lead-form,
  .intro form.lead-form.js-lead-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 26px !important;
    box-sizing: border-box;
  }
  .intro form.lead-form.js-lead-form .form-heading {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
  }
  .intro form.lead-form.js-lead-form .form-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem 0.9rem;
  }
  .intro form.lead-form.js-lead-form .field-full {
    grid-column: 1 / -1;
  }
  .intro form.lead-form.js-lead-form .input,
  .intro form.lead-form.js-lead-form input {
    min-height: 50px;
  }
  .intro form.lead-form.js-lead-form button[type="submit"] {
    font-size: 1.25rem;
    min-height: 54px;
    margin-top: 1rem;
  }
}

@media (min-width: 1200px) {
  .intro .rek-form-wrap {
    flex-basis: 460px;
    width: 460px;
    max-width: 460px;
  }
}

/* Calculator accents → palette amber */
.calculator-input,
.calculator-input .calculator-currency,
.calculator-labels,
.calculator-result,
.calculator-result-value {
  color: var(--rek-amber) !important;
  border-color: var(--rek-amber) !important;
}
.calculator-slider::-webkit-slider-thumb,
.calculator-slider::-moz-range-thumb {
  background: var(--rek-amber) !important;
}

.themed-section {
  background: var(--rek-section-gradient) !important;
  color: var(--rek-text-on-dark);
}
.themed-text h2,
.themed-text .section-title {
  color: var(--rek-text-on-dark) !important;
}

/* —— Light surfaces: force readable dark text —— */
.seo-section {
  background: linear-gradient(180deg, #dceee4 0%, #eef6f1 40%, #fff 100%) !important;
  color: var(--rek-ink) !important;
}
.seo-section *,
.seo-section h1,
.seo-section h2,
.seo-section h3,
.seo-section h4,
.seo-section h5,
.seo-section h6,
.seo-section p,
.seo-section li,
.seo-section span,
.seo-section strong,
.seo-section b,
.seo-section a:not(.btn) {
  color: var(--rek-ink) !important;
}
.seo-section a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-section .btn,
.seo-section .btn-expand {
  color: var(--rek-btn-text) !important;
  background-color: var(--rek-btn-bg) !important;
  border-color: var(--rek-btn-border) !important;
}

/* Features table sits on light band; cells stay dark panels with white text */
.table.row-31 {
  background: var(--rek-light-bg) !important;
}
.table.row-31 > .container > h2,
.table.row-31 .section-title {
  color: var(--rek-ink) !important;
}
.table .mobile-table,
.table .table-wrapper-desk,
.table .desk-table thead th,
.table .desk-table tbody td,
.table .mobile-table td {
  background: var(--rek-teal-panel) !important;
  border-color: var(--rek-teal) !important;
  color: #fff !important;
}
.table .mobile-table-title,
.table .mobile-table-value {
  color: #fff !important;
}

/* FAQ accordion on dark section — reset <button> UA styles */
.faq-container {
  background: var(--rek-teal-panel) !important;
  border-color: var(--rek-teal) !important;
}
.faq-container .faq-item {
  width: 100%;
}
.faq-container button.faq-question,
.faq-container .faq-question {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 1.15rem 0.5rem 1.15rem 0.65rem;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  color: #fff !important;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq-container .faq-question span {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff !important;
  text-align: left;
  padding-right: 0.75rem;
}
.faq-container .faq-question .faq-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.faq-container .faq-answer p {
  color: rgba(255, 255, 255, 0.92) !important;
  text-align: left;
}

.seo-text.collapsed {
  max-height: 320px;
  overflow: hidden;
  position: relative;
}
.seo-text.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(transparent, #eef6f1);
}
.seo-text.expanded {
  max-height: none;
}

/* Home FAQ open state (source uses .active / our JS may use .open) */
.faq-item.open .faq-answer,
.faq-item.active .faq-answer {
  display: block;
  max-height: 500px;
  padding: 0 0 20px;
}

.page-hero {
  background: var(--rek-section-gradient);
  padding: 3rem 0 2rem;
  color: var(--rek-text-on-dark);
}
.page-hero h1,
.page-hero .lead,
.page-hero .eyebrow {
  color: var(--rek-text-on-dark) !important;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0;
}
.page-hero .lead {
  max-width: 42rem;
  opacity: 0.95;
}

/* Inner pages light content band (legal / about / product) */
main > section.section,
main > section.section-sm,
section.section,
section.section-sm {
  padding: 2.5rem 0 !important;
  background: var(--rek-light-bg) !important;
  color: var(--rek-ink) !important;
}
section.section h1,
section.section h2,
section.section h3,
section.section p,
section.section li,
section.section a,
section.section-sm h1,
section.section-sm h2,
section.section-sm h3,
section.section-sm p,
section.section-sm li,
section.section-sm a,
.prose,
.prose h1,
.prose h2,
.prose h3,
.prose p,
.prose li,
.prose a,
.about-prose,
.about-prose p {
  color: var(--rek-ink) !important;
}
.prose a,
.section-sm a,
.section a {
  color: var(--rek-cobalt) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose {
  max-width: 48rem;
  margin-inline: auto;
  line-height: 1.7;
}
.prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
}
.prose p,
.prose ul {
  margin-bottom: 1rem;
}
.about-prose p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* Inner FAQ page accordion on light bg */
.faq-list .faq-item {
  background: #fff;
  border: 1px solid rgba(8, 51, 68, 0.12);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-list .faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 0;
  color: var(--rek-ink) !important;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-list .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-list .faq-item.is-open .faq-content {
  max-height: 480px;
}
.faq-list .faq-content-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--rek-muted) !important;
  line-height: 1.6;
}
