/* ============================================================
   Cultivo de Flores — Sistema editorial botânico
   Base: papel creme quente + verde-floresta profundo
   ============================================================ */

:root {
  --paper: #F7F3E8;
  --paper-deep: #EFEBCE;
  --ink: #14321F;
  --ink-soft: #3D5546;
  --forest: #1B4332;
  --moss: #2D6A4F;
  --leaf: #40916C;
  --bloom: #C05621;       /* terracota — acento florido */
  --bloom-deep: #9C3D12;
  --sun: #DDA15E;
  --line: #D8D2B8;
  --card: #FFFDF6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.075rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--sun); color: var(--ink); }

/* ---------- Tipografia editorial ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--forest); }

a { color: var(--moss); text-decoration-color: rgba(45,106,79,.35); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--bloom); }

/* ---------- Layout ---------- */
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.4rem; }
.wrap-wide { max-width: 72rem; margin: 0 auto; padding: 0 1.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,232,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--forest); text-decoration: none; letter-spacing: -.01em; }
.brand em { font-style: italic; color: var(--bloom); }
.main-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.main-nav a { font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover { color: var(--bloom); }
.main-nav a[aria-current] { color: var(--bloom-deep); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4rem; background:
  radial-gradient(ellipse 90% 60% at 70% -10%, rgba(221,161,94,.18), transparent),
  radial-gradient(ellipse 60% 50% at 10% 110%, rgba(64,145,108,.12), transparent);
}
.hero .kicker { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bloom); font-weight: 600; margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); letter-spacing: -.02em; margin-bottom: 1.3rem; }
.hero h1 em { font-style: italic; color: var(--moss); }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 40rem; margin-bottom: 2rem; }
.hero-img { width: 100%; border-radius: 14px; margin-top: 2.6rem; border: 1px solid var(--line); display: block; }

/* ---------- Botões ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem; padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.btn-primary { background: var(--forest); color: var(--paper) !important; box-shadow: 0 4px 14px rgba(27,67,50,.25); }
.btn-primary:hover { background: var(--moss); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--forest); color: var(--forest) !important; }
.btn-ghost:hover { background: var(--forest); color: var(--paper) !important; }

/* ---------- Seções ---------- */
.section { padding: 3.6rem 0; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.015em; margin-bottom: .6rem; }
.section-sub { color: var(--ink-soft); max-width: 42rem; margin-bottom: 2.4rem; }

/* ---------- Cards de pilares ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.pillar-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.7rem 1.5rem; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: .55rem; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,50,31,.12); border-color: var(--leaf); color: var(--ink); }
.pillar-card .glyph { font-size: 1.6rem; line-height: 1; }
.pillar-card h3 { font-size: 1.22rem; }
.pillar-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.pillar-card .count { margin-top: auto; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bloom); font-weight: 600; }

/* ---------- Lista de artigos ---------- */
.article-list { display: flex; flex-direction: column; }
.article-row { display: block; padding: 1.5rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .15s, padding-left .2s; }
.article-row:hover { background: rgba(64,145,108,.06); padding-left: .9rem; color: var(--ink); }
.article-row .cat { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bloom); font-weight: 600; }
.article-row h3 { font-size: 1.28rem; margin: .3rem 0 .35rem; transition: color .15s; }
.article-row:hover h3 { color: var(--moss); }
.article-row p { font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Artigo (long-form) ---------- */
.article-header { padding: 4rem 0 2.2rem; }
.article-header .breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.article-header .breadcrumb a { color: var(--moss); }
.article-header .kicker { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bloom); font-weight: 600; margin-bottom: .9rem; }
.article-header h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.article-header .lead { font-size: 1.18rem; color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: .7rem; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-soft); }
.byline .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; flex-shrink: 0; }
.byline strong { color: var(--forest); }

.prose { font-size: 1.09rem; }
.prose p { margin-bottom: 1.35em; }
.prose h2 { font-size: 1.65rem; margin: 2.4em 0 .8em; letter-spacing: -.01em; }
.prose h3 { font-size: 1.25rem; margin: 1.9em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.35em 1.4em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--forest); }
.prose blockquote { margin: 2em 0; padding: 1.1em 1.5em; background: var(--paper-deep); border-left: 4px solid var(--sun); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--forest); }
.prose .box-note { margin: 2em 0; padding: 1.2em 1.5em; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.prose .box-note .box-title { font-family: var(--serif); font-weight: 700; color: var(--bloom-deep); display: block; margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .95rem; }
.prose th { background: var(--forest); color: var(--paper); text-align: left; padding: .6em .8em; font-family: var(--sans); font-weight: 600; }
.prose td { padding: .55em .8em; border-bottom: 1px solid var(--line); }
.prose tr:nth-child(even) td { background: rgba(64,145,108,.05); }

/* FAQ */
.faq { margin: 3rem 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .8rem; padding: 1em 1.3em; }
.faq summary { font-family: var(--serif); font-weight: 600; color: var(--forest); cursor: pointer; font-size: 1.05rem; }
.faq details[open] summary { color: var(--bloom-deep); margin-bottom: .5em; }

/* Caixas de download / autor / próximos passos */
.download-box { margin: 3rem 0; padding: 1.6rem 1.8rem; background: var(--forest); color: #E9F0E4; border-radius: 14px; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.download-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: .3rem; }
.download-box p { font-size: .92rem; color: rgba(233,240,228,.85); max-width: 34rem; }
.download-box .btn { background: var(--sun); color: var(--ink) !important; flex-shrink: 0; }
.download-box .btn:hover { background: #e8b678; }

.author-box { margin: 3rem 0; padding: 1.6rem 1.8rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 1.2rem; align-items: flex-start; }
.author-box .avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--forest); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; flex-shrink: 0; }
.author-box h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.author-box p { font-size: .92rem; color: var(--ink-soft); }

.newsletter-band { margin: 3.5rem 0 0; padding: 2.4rem 0; background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.newsletter-band h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.newsletter-band p { color: var(--ink-soft); margin-bottom: 1.3rem; max-width: 36rem; }

.related { margin: 3rem 0; }
.related h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(233,240,228,.8); padding: 3rem 0 2rem; margin-top: 4rem; font-size: .92rem; }
.site-footer a { color: var(--sun); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .fine { border-top: 1px solid rgba(233,240,228,.2); padding-top: 1.4rem; font-size: .82rem; color: rgba(233,240,228,.55); }

/* ---------- Utilitários ---------- */
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bloom); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-4 { margin-top: 4rem; }
.lead-block { font-size: 1.15rem; color: var(--ink-soft); }

@media (max-width: 640px) {
  .site-header .wrap-wide { flex-direction: column; gap: .6rem; align-items: flex-start; }
  .hero { padding: 3rem 0 2.5rem; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; align-items: flex-start; }
}
