/* ==========================================================================
   Reciclou Cooperativa — Design tokens & base
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Brand blue — matched to the "Abra as portas" campaign deck */
  --navy-950: #04213d;
  --navy-900: #073a66;
  --navy-800: #0a4a86;
  --navy-700: #0170b3;

  /* Loop cyan — from the infinity mark, also the deck's CTA cyan */
  --cyan-500: #12b8d4;
  --cyan-300: #8fe0f0;
  --cyan-100: #e3f7fb;

  /* Accent — reuses the campaign's cyan/blue as the pop color (no gold in this palette) */
  --amber-600: #0a6ea8;
  --amber-500: #12b8d4;
  --amber-300: #8fe0f0;
  --amber-100: #e3f7fb;

  --cream-100: #f7f4ec;
  --cream-200: #efe9db;

  --ink-900: #10222c;
  --ink-700: #33454f;
  --ink-500: #5c6d76;
  --ink-300: #94a3aa;

  --white: #ffffff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}

p { margin: 0 0 1em 0; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber-600);
  display: inline-block;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head p { color: var(--ink-500); font-size: 17px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--amber-300); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-900);
}
.btn-outline:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(4,33,61,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand .logo-mark { height: 30px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.05;
  color: var(--white);
}
.brand-word span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,.78);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links a.active { color: var(--navy-950); background: var(--cyan-300); }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy-950);
    padding: 10px 20px 20px;
    gap: 2px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .site-header.nav-open .nav-links a { padding: 12px 10px; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 78% 8%, var(--navy-700) 0%, var(--navy-900) 46%, var(--navy-950) 100%);
  color: var(--white);
  padding: 76px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 4.6vw, 56px);
  max-width: 15ch;
}
.hero .lede {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 50ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-tags {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan-300);
  letter-spacing: .04em;
}
.hero-tags span { white-space: nowrap; }

.loop-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.loop-wrap svg { width: 100%; height: 100%; overflow: visible; }

.loop-path {
  fill: none;
  stroke: rgba(255,255,255,.16);
  stroke-width: 3;
}
.loop-flow {
  fill: none;
  stroke: var(--cyan-300);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 11 20;
  animation: flow 6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -310; } }

.loop-node {
  transform-box: fill-box;
  transform-origin: center;
}
.loop-node circle {
  stroke: var(--cyan-300);
  stroke-width: 2;
}
.loop-node text {
  font-family: var(--font-mono);
  fill: var(--white);
  font-weight: 600;
  font-size: 14.5px;
  text-anchor: middle;
}
.loop-node .n-label {
  fill: var(--cyan-300);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .03em;
}

.loop-core text { fill: var(--navy-950); font-weight: 700; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--cyan-300); }
.page-hero .eyebrow::before { background: var(--cyan-300); }
.page-hero h1 { color: var(--white); max-width: 22ch; font-size: clamp(30px, 4vw, 46px); }
.page-hero .lede { color: rgba(255,255,255,.75); max-width: 60ch; font-size: 17px; }

/* ==========================================================================
   KPI strip
   ========================================================================== */

.kpi-strip {
  background: var(--navy-950);
  color: var(--white);
  padding: 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
}
.kpi-grid > div {
  padding: 34px 26px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.kpi-grid > div:first-child { border-left: none; }
.kpi-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--cyan-300);
  display: block;
}
.kpi-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 800px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid > div:nth-child(3) { border-left: none; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

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

.card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 30px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-600);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.value-card {
  border-left: 3px solid var(--amber-500);
  padding-left: 22px;
}
.value-card h4 { font-size: 17px; margin-bottom: 6px; }
.value-card p { color: var(--ink-500); font-size: 15px; margin: 0; }

/* Timeline / flow steps */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 980px) { .flow-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .flow-steps { grid-template-columns: 1fr; } }

.flow-step {
  position: relative;
  padding-top: 44px;
}
.flow-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-600);
  font-weight: 600;
  display: block;
  position: absolute;
  top: 0; left: 0;
}
.flow-step::after {
  content: '';
  position: absolute;
  top: 8px; left: 34px;
  right: -18px;
  height: 1px;
  background: var(--cream-200);
}
.flow-step:last-child::after { display: none; }
@media (max-width: 980px) {
  .flow-steps .flow-step:nth-child(3)::after { display: none; }
}
@media (max-width: 620px) {
  .flow-step::after { display: none; }
}
.flow-step h4 { font-size: 16px; margin-bottom: 6px; }
.flow-step p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* Team */
.team-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 26px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-600);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.team-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--navy-950); }
.team-card p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* Materials / oils list */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream-200);
  color: var(--ink-700);
}

/* Section variants */
.section-navy { background: var(--navy-950); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy .section-head p { color: rgba(255,255,255,.68); }

.section-cream { background: var(--cream-200); }

/* ODS grid */
.ods-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  border-top: 3px solid var(--cyan-500);
}
.ods-card .ods-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-500);
  letter-spacing: .04em;
  margin-bottom: 10px;
  display: block;
}
.ods-card h4 { font-size: 16px; margin-bottom: 8px; }
.ods-card p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h3 { color: var(--white); font-size: 26px; max-width: 30ch; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.72); margin: 0; max-width: 42ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Quote / pull */
.pull-quote {
  border-left: 3px solid var(--amber-500);
  padding-left: 26px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-950);
  max-width: 60ch;
}

/* ==========================================================================
   Forms (contact)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy-950);
  font-family: var(--font-mono);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 11.5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-200);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-900);
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan-500);
  outline: none;
}
.form-note {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 14px;
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.form-status.ok { color: #1f8a4d; display: block; }
.form-status.err { color: #c0392b; display: block; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 16px;
}
.contact-card .k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--amber-600);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.contact-card .v { font-size: 16px; font-weight: 600; color: var(--navy-950); }
.contact-card a.v:hover { color: var(--cyan-500); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--cyan-300); }
.footer-brand { color: var(--white); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
