/* ==========================================================================
   ReHome — Website de divulgação
   Iniciativa EXACT & EXCELLENT · Economia circular para artigos de casa
   ========================================================================== */

:root {
  --orange: #ff6a1a;
  --orange-dark: #e2530a;
  --orange-soft: #fff1e8;
  --orange-tint: #ffe2cf;
  --ink: #2a2118;
  --ink-soft: #6b6258;
  --white: #ffffff;
  --cream: #fffaf6;
  --line: #f0e6dd;
  --green: #1d7a44;
  --shadow: 0 10px 30px rgba(255, 106, 26, 0.12);
  --shadow-soft: 0 4px 18px rgba(42, 33, 24, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1180px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: #fff; color: var(--orange-dark); border-color: var(--orange-tint); }
.btn-outline:hover { border-color: var(--orange); background: var(--orange-soft); }
.btn-light { background: #fff; color: var(--orange-dark); }
.btn-light:hover { background: var(--orange-soft); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; color: var(--orange); }
.logo span { color: var(--ink); }
.logo-light { color: #fff; }
.logo-light .accent-orange { color: var(--orange); }
.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--orange-dark); }
.nav a.active { font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, var(--orange-soft), transparent 60%),
              linear-gradient(180deg, var(--cream), #fff);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.badge {
  display: inline-block; background: #fff; border: 1px solid var(--orange-tint);
  color: var(--orange-dark); font-weight: 600; font-size: .85rem;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow-soft);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.07; letter-spacing: -.03em; font-weight: 800; }
.hero h1 .accent { color: var(--orange); }
.lead { font-size: 1.18rem; color: var(--ink-soft); margin: 22px 0 30px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 44px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); }

.hero-art { position: relative; height: 440px; }
.hero-blob {
  position: absolute; inset: 8% 5%; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
  background: linear-gradient(135deg, var(--orange), #ffb27a);
  filter: blur(2px); opacity: .9;
  animation: float 8s ease-in-out infinite;
}
.hero-card {
  position: absolute; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; font-size: 2.4rem;
  display: flex; flex-direction: column; gap: 6px; z-index: 2; font-weight: 700;
}
.hero-card span { font-size: .85rem; color: var(--ink-soft); font-weight: 500; }
.hero-card-1 { top: 4%; left: 2%; animation: float 6s ease-in-out infinite; }
.hero-card-2 { bottom: 8%; left: 14%; animation: float 7s ease-in-out infinite .5s; }
.hero-card-3 { top: 22%; right: 0; background: var(--ink); color: #fff; animation: float 5.5s ease-in-out infinite .3s; }
.hero-card-3 span { color: var(--orange-tint); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-muted { background: var(--cream); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head .eyebrow {
  display: inline-block; color: var(--orange-dark); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.02em; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.08rem; }

/* ---------- Feature / value cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform .18s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange-tint); }
.feature-card .icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--orange-soft);
  display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Split (image/text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-copy .eyebrow {
  display: inline-block; color: var(--orange-dark); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px;
}
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; font-weight: 800; margin-bottom: 14px; }
.split-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.split-media {
  border-radius: var(--radius-lg); min-height: 320px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-tint));
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.split-media .glyph { font-size: 6rem; }
.split-media.ink { background: linear-gradient(135deg, var(--ink), #453a2c); }
.split-media.ink .glyph { filter: grayscale(0); }

.check-list { list-style: none; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-dark); font-weight: 800;
  display: grid; place-items: center; font-size: .85rem; margin-top: 2px;
}
.check-list li b { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--line); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Stats band ---------- */
.stats-band { background: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow-soft);
}
.stat-card .big { font-size: 2.8rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-card h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.stat-card p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-inner p { opacity: .92; margin-top: 8px; max-width: 540px; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--orange-soft), #fff); padding: 72px 0 56px; text-align: center; }
.page-hero .eyebrow {
  display: inline-block; color: var(--orange-dark); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); letter-spacing: -.02em; font-weight: 800; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 640px; margin: 16px auto 0; }

/* ---------- Prose ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 14px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose ul { color: var(--ink-soft); margin: 0 0 18px 22px; }
.prose li { margin-bottom: 9px; }
.prose li b { color: var(--ink); }
.prose .callout {
  background: var(--orange-soft); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 22px 26px; margin: 28px 0; color: var(--ink);
}
.prose .callout p { color: var(--ink); margin: 0; }

/* ---------- Timeline ---------- */
.timeline { max-width: 780px; margin: 0 auto; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--orange-tint);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ""; position: absolute; left: -33px; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; border: 4px solid var(--orange);
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-item p { color: var(--ink-soft); }
.timeline-item .phase { color: var(--orange-dark); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { color: var(--orange); font-size: 1.4rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 24px 20px; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-soft); }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-bottom: 24px; }
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: inherit; font-size: .95rem; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink);
  transition: border-color .15s, background .15s; background: var(--cream);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--orange); background: #fff; }
.form-row textarea { resize: vertical; min-height: 130px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin-bottom: 22px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--orange); }
.form-success {
  background: #eafaef; border: 1px solid #b8e8c8; color: var(--green); border-radius: 12px;
  padding: 18px; margin-top: 18px; font-weight: 600; display: none;
}
.form-success.show { display: block; }
.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-aside .info-card {
  background: var(--orange-soft); border-radius: var(--radius-lg); padding: 28px;
}
.contact-aside .info-card h3 { margin-bottom: 10px; }
.contact-aside .info-card p { color: var(--ink-soft); font-size: .95rem; }
.contact-aside .info-card ul { list-style: none; margin-top: 12px; }
.contact-aside .info-card li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink-soft); font-size: .93rem; }
.contact-aside .info-card li b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc6bc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a { display: block; color: #cfc6bc; font-size: .9rem; padding: 4px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--orange); }
.footer-tagline { font-size: .92rem; margin-top: 14px; line-height: 1.7; max-width: 340px; }
.footer-tagline strong { color: var(--orange); }

/* PRR funding logos */
.footer-funding {
  margin-top: 52px; padding: 34px 0 30px; border-top: 1px solid #3a3128;
}
.footer-funding-label {
  text-align: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: #8a8074; margin-bottom: 22px;
}
.funding-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 54px;
}
.funding-logos a { display: block; opacity: .92; transition: opacity .15s, transform .15s; }
.funding-logos a:hover { opacity: 1; transform: translateY(-2px); }
.funding-logos img { height: 56px; width: auto; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 30px; border-top: 1px solid #3a3128; font-size: .85rem; color: #8a8074;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; z-index: 90; box-shadow: var(--shadow);
  transition: transform .3s ease; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cards-grid, .cards-grid.four { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .steps, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; padding: 18px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft);
    margin-left: 0;
  }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .cards-grid, .cards-grid.four { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .funding-logos { gap: 30px 34px; }
  .funding-logos img { height: 46px; }
}
@media (max-width: 480px) {
  .form-row.two { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
