/* Shared Recubela header/footer compatibility layer.
   Load after the page stylesheet so every page matches contact.html. */

:root {
  --recubela-header-bg: #FFFFFF;
}

[data-theme="dark"] {
  --recubela-header-bg: var(--header-bg, rgba(11, 26, 18, 0.85));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--recubela-header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line, rgba(15, 42, 29, 0.12));
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.site-header .brand,
.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--on-bg, var(--ink, #1A1F18));
  text-decoration: none;
}

.site-header .brand-mark,
.site-footer .brand-mark {
  width: 30px;
  height: 30px;
  background: var(--forest, #0F2A1D);
  color: var(--paper, #FAF7EF);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

[data-theme="dark"] .site-header .brand-mark {
  background: var(--tan, #D9B47A);
  color: var(--forest-deep, #081912);
}

.site-header .brand-mark::after,
.site-footer .brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,0.08) 3px 4px);
}

.site-header .brand small,
.site-footer .brand small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #6B6F65);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft, #2D332B);
  transition: background 160ms ease, color 160ms ease;
  position: relative;
  text-decoration: none;
}

.site-header .nav-links a:hover {
  color: var(--on-bg, var(--ink, #1A1F18));
  background: rgba(15,42,29,0.05);
}

[data-theme="dark"] .site-header .nav-links a:hover {
  background: rgba(255,255,255,0.05);
}

.site-header .nav-links a.active {
  color: var(--on-bg, var(--ink, #1A1F18));
  background: rgba(15,42,29,0.07);
}

[data-theme="dark"] .site-header .nav-links a.active {
  background: rgba(255,255,255,0.07);
}

.site-header .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .theme-toggle,
.site-header .menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong, rgba(15, 42, 29, 0.22));
  border-radius: 999px;
  background: transparent;
  color: var(--on-bg, var(--ink, #1A1F18));
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.site-header .theme-toggle:hover,
.site-header .menu-toggle:hover {
  background: rgba(15,42,29,0.05);
  transform: translateY(-1px);
}

[data-theme="dark"] .site-header .theme-toggle:hover,
[data-theme="dark"] .site-header .menu-toggle:hover {
  background: rgba(255,255,255,0.05);
}

.site-header .theme-toggle .moon { display: none; }
[data-theme="dark"] .site-header .theme-toggle .sun { display: none; }
[data-theme="dark"] .site-header .theme-toggle .moon { display: block; }

.site-header .menu-toggle { display: none; }

.site-footer {
  background: var(--forest-deep, #081912);
  color: var(--bone, #E8E2D4);
  padding: 80px 0 32px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .site-footer { background: #060F0A; }

.site-footer::before {
  content: "RECYCLING TOGETHER";
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 700;
  color: rgba(232, 226, 212, 0.06);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 0.8;
}

.site-footer .wrap {
  position: relative;
  z-index: 2;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.site-footer .footer-brand-link {
  color: var(--bone, #E8E2D4);
}

.site-footer .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--tan, #C9A66B);
  color: var(--forest-deep, #081912);
  font-size: 22px;
}

.site-footer .brand small {
  color: rgba(232,226,212,0.5);
}

.site-footer .footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan, #C9A66B);
  margin-bottom: 16px;
}

.site-footer .footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.site-footer .footer-grid a {
  color: var(--bone, #E8E2D4);
  opacity: 0.75;
  font-size: 14px;
  transition: opacity 160ms ease;
  text-decoration: none;
}

.site-footer .footer-grid a:hover { opacity: 1; }

.site-footer .footer-brand p {
  opacity: 0.7;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
  margin-top: 16px;
}

.site-footer .footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 226, 212, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.6;
  position: relative;
  z-index: 2;
}

.site-footer .footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-footer .footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232,226,212,0.3);
}


@media (max-width: 920px) {
  .site-header .nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-header .nav-links,
  .site-header .nav-cta .btn {
    display: none;
  }

  .site-header .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    gap: 6px;
    padding: 8px 0 12px;
  }

  .site-header .nav-links.open a {
    justify-content: center;
    padding: 12px 14px;
  }

  .site-header .menu-toggle { display: grid; }
}

@media (max-width: 768px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 540px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 56px 0 28px; }
}

/* Keep the header CTA compact and consistent on every page. */
.site-header .nav-cta .btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  gap: 10px;
  box-shadow: none;
  transform: none;
}

.site-header .nav-cta .btn:hover {
  transform: none;
  box-shadow: none;
}

/* Index hero badge: keep the badge in place, rotate only the outer text ring. */
.hero-badge {
  position: absolute;
  left: -66px;
  top: 50%;
  width: 170px;
  height: 170px;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}

.hero-badge svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hero-badge .core {
  fill: rgba(250, 247, 239, 0.9);
  stroke: rgba(15, 42, 29, 0.58);
  stroke-width: 1.4;
}

.hero-badge .arrow-icon {
  fill: none;
  stroke: var(--forest-deep, #081912);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-badge text {
  fill: var(--forest-deep, #081912);
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-badge .badge-ring {
  animation: recubela-badge-spin 64s linear infinite;
  transform-origin: 100px 100px;
  transform-box: fill-box;
  will-change: transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-badge .badge-ring { animation: none; }
}

@media (max-width: 920px) {
  .hero-badge {
    left: -48px;
    width: 132px;
    height: 132px;
  }
}


/* ── Real Recubela logo in header and footer ─────────────────────────────── */
.site-header .brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-width: 128px;
  line-height: 0;
}

.site-header .brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 148px;
  object-fit: contain;
}

/* Use the full Recubela logo in the footer instead of the old R mark.
   A light chip keeps the dark wordmark readable on the dark footer. */
.site-footer .footer-logo-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(250, 247, 239, 0.96);
  border: 1px solid rgba(232, 226, 212, 0.22);
  line-height: 0;
}

.site-footer .footer-logo {
  display: block;
  width: 190px;
  max-width: min(190px, 70vw);
  height: auto;
  object-fit: contain;
}

@media (max-width: 920px) {
  .site-header .brand-logo-link {
    min-width: 112px;
  }

  .site-header .brand-logo {
    height: 38px;
    max-width: 132px;
  }

  .site-footer .footer-logo {
    width: 170px;
  }
}

@media (max-width: 540px) {
  .site-header .brand-logo-link {
    min-width: 98px;
  }

  .site-header .brand-logo {
    height: 34px;
    max-width: 116px;
  }

  .site-footer .footer-logo {
    width: 158px;
  }
}




/* ── Final visual balance: white base, green section rhythm, fixed dark mode ── */
:root {
  --paper: #FFFFFF;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F4F8F2;
  --header-bg: #FFFFFF;
  --recubela-header-bg: #FFFFFF;
  --green-section: ##081912;
  --green-section-2: ##081912;
  --green-section-line: rgba(15,42,29,0.10);
}

html[data-theme="dark"] {
  --bg: #0B1A12;
  --paper: #0B1A12;
  --surface: #122218;
  --surface-2: #16291E;
  --bone: #1B3024;
  --bone-soft: #16291E;
  --on-bg: #ECE7D8;
  --on-bg-soft: #9CA294;
  --ink: #ECE7D8;
  --ink-soft: #C7C2B4;
  --muted: #8E928A;
  --line: rgba(232,226,212,0.10);
  --line-strong: rgba(232,226,212,0.22);
  --header-bg: #0B1A12;
  --recubela-header-bg: #0B1A12;
  --forest: #DCE6BD;
  --forest-deep: #060F0A;
  --tan: #D9B47A;
  --green-section: #0F2017;
  --green-section-2: #13291D;
  --green-section-line: rgba(232,226,212,0.10);
}

body {
  background: var(--bg) !important;
  color: var(--on-bg, var(--ink)) !important;
}

.site-header {
  background: var(--recubela-header-bg) !important;
  border-bottom-color: var(--green-section-line) !important;
}

html[data-theme="dark"] .site-header {
  background: #0B1A12 !important;
}

/* Meer groene ademruimte tussen de witte kaarten */
.page-intro {
  background:
    radial-gradient(circle at 85% 10%, rgba(122,139,92,0.12), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, var(--green-section) 100%) !important;
}

.services,
.about,
.grades,
.split,
.config,
.use-cases {
  background: var(--green-section) !important;
}

.inspection,
.repair-types,
.contact-grid {
  background: var(--green-section-2) !important;
}

.contact-grid {
  border: 1px solid var(--green-section-line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px) !important;
  margin: 80px 0 100px;
}

.cta-section {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--green-section) 100%) !important;
}

.service,
.grade,
.use-card,
.form-card,
.info-card,
.repair-card,
.cta-card {
  background: var(--surface) !important;
}

html[data-theme="dark"] .page-intro {
  background:
    radial-gradient(circle at 85% 10%, rgba(217,180,122,0.10), transparent 34%),
    linear-gradient(180deg, #0B1A12 0%, var(--green-section) 100%) !important;
}

html[data-theme="dark"] .services,
html[data-theme="dark"] .about,
html[data-theme="dark"] .grades,
html[data-theme="dark"] .split,
html[data-theme="dark"] .config,
html[data-theme="dark"] .use-cases,
html[data-theme="dark"] .inspection,
html[data-theme="dark"] .repair-types,
html[data-theme="dark"] .contact-grid,
html[data-theme="dark"] .cta-section {
  background: var(--green-section) !important;
}

html[data-theme="dark"] .service,
html[data-theme="dark"] .grade,
html[data-theme="dark"] .use-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .repair-card,
html[data-theme="dark"] .cta-card {
  background: var(--surface) !important;
  border-color: var(--line) !important;
}

html[data-theme="dark"] .site-footer {
  background: #060F0A !important;
}

@media (max-width: 920px) {
  .contact-grid {
    margin: 56px 0 80px;
  }
}
