/* Recubela — design system */

:root {
  /* Light mode (default) */
  --forest: #0F2A1D;
  --forest-deep: #081912;
  --tan: #C9A66B;
  --tan-deep: #A88547;
  --bone: #E8E2D4;
  --bone-soft: #F4EFE5;
  --paper: #FFFFFF;
  --sage: #7A8B5C;
  --sage-deep: #5C6B42;
  --ink: #1A1F18;
  --ink-soft: #2D332B;
  --muted: #6B6F65;
  --line: rgba(15, 42, 29, 0.12);
  --line-strong: rgba(15, 42, 29, 0.22);
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: var(--bone-soft);
  --on-bg: var(--ink);
  --on-bg-soft: var(--muted);
  --header-bg: rgba(255, 255, 255, 0.94);
  --noise-opacity: 0.045;
}

[data-theme="dark"] {
  --bg: #0B1A12;
  --surface: #122218;
  --surface-2: #16291E;
  --on-bg: #ECE7D8;
  --on-bg-soft: #9CA294;
  --ink: #ECE7D8;
  --ink-soft: #C7C2B4;
  --muted: #8E928A;
  --line: rgba(232, 226, 212, 0.1);
  --line-strong: rgba(232, 226, 212, 0.22);
  --paper: #0B1A12;
  --bone: #1B3024;
  --bone-soft: #16291E;
  --header-bg: rgba(11, 26, 18, 0.85);
  --forest: #DCE6BD;
  --tan: #D9B47A;
  --noise-opacity: 0.06;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

[data-theme="dark"] body::before { mix-blend-mode: screen; }

/* Typography */
.serif {
  font-family: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; color: var(--on-bg); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .eyebrow { color: var(--tan); }

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

a { color: inherit; text-decoration: none; }

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

/* Layout */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--forest);
  color: var(--paper);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid var(--forest);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--forest-deep); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(15,42,29,0.4); }

[data-theme="dark"] .btn { background: var(--tan); color: var(--forest-deep); border-color: var(--tan); }
[data-theme="dark"] .btn:hover { background: #E5C291; }

.btn-ghost {
  background: transparent;
  color: var(--on-bg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(15,42,29,0.05); }
[data-theme="dark"] .btn-ghost { color: var(--on-bg); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.04); }

.btn .arrow {
  display: inline-block;
  transition: transform 180ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  background: var(--forest);
  color: var(--paper);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .brand-mark { background: var(--tan); color: var(--forest-deep); }

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 160ms ease, color 160ms ease;
  position: relative;
}
.nav-links a:hover { color: var(--on-bg); background: rgba(15,42,29,0.05); }
[data-theme="dark"] .nav-links a:hover { background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--on-bg); background: rgba(15,42,29,0.07); }
[data-theme="dark"] .nav-links a.active { background: rgba(255,255,255,0.07); }

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

.menu-toggle { display: none; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle {
    display: grid;
    width: 40px; height: 40px;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--on-bg);
  }
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: var(--bone);
  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', 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;
}

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

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

.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--bone); opacity: 0.75; font-size: 14px; transition: opacity 160ms ease; }
.footer-grid a:hover { opacity: 1; }

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

.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;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bone);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
}
[data-theme="dark"] .chip { background: var(--surface-2); color: var(--ink-soft); }

.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Page intro for subpages */
.page-intro {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-intro h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 16px 0 24px;
}
.page-intro h1 em { font-style: italic; color: var(--sage-deep); font-weight: 300; }
[data-theme="dark"] .page-intro h1 em { color: var(--tan); }
.page-intro .lede {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--on-bg); }
.breadcrumb .sep { opacity: 0.4; }

/* Generic prose */
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 16px; max-width: 64ch; }
.prose h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(32px, 4vw, 48px); margin: 56px 0 20px; letter-spacing: -0.02em; }
.prose h3 { font-size: 22px; font-weight: 600; margin: 32px 0 12px; }
.prose ul { padding-left: 18px; margin: 16px 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.prose li { margin-bottom: 8px; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 48px -24px rgba(15,42,29,0.18); }

/* Pallet pattern (decorative) */
.pallet-pattern {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 4px), rgba(15,42,29,0.18) calc(20% - 4px) 20%),
    repeating-linear-gradient(0deg, transparent 0 calc(33.33% - 4px), rgba(15,42,29,0.18) calc(33.33% - 4px) 33.33%);
}

/* Mobile baseline */
@media (max-width: 640px) {
  .page-intro { padding: 56px 0 40px; }
}


/* Shared header/footer compatibility additions */
/* 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;
  }
}
