/*
Theme Name: 3ss Organic Editorial
Theme URI: https://3ss.homes/
Author: 3ss.homes
Description: Tema editorial orgânico para o guia independente 3ss.
Version: 1.0.1
Text Domain: three-ss-organic
*/

:root {
  --paper: #f7f0e5;
  --paper-bright: #fffdf8;
  --paper-soft: #efe1d2;
  --forest: #314a43;
  --forest-deep: #243b35;
  --terracotta: #b95f45;
  --terracotta-dark: #914633;
  --sage: #5f806f;
  --ochre: #d6a143;
  --ink: #302a26;
  --muted: #746b64;
  --line: #dccdbd;
  --info: #e8f0ea;
  --warning: #fff0cf;
  --focus: #386b5a;
  --wide: 1180px;
  --reading: 760px;
  --radius: 32px;
  --radius-small: 12px;
  --shadow: 0 16px 38px rgba(80, 50, 35, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terracotta-dark); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--forest); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
}
p, ul, ol, table { margin: 0 0 1.35rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .5rem; }
strong { color: var(--forest-deep); }
code {
  padding: .1em .38em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
  color: var(--terracotta-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--forest-deep);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 68px;
  border-bottom: 1px solid rgba(49, 74, 67, .12);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  min-height: 68px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  display: inline-grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  color: var(--forest-deep);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
}
.wordmark::after {
  width: 28px;
  height: 4px;
  margin-top: -7px;
  border-radius: 999px;
  background: var(--terracotta);
  content: "";
}
.desktop-nav ul, .mobile-menu ul, .footer-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.desktop-nav ul { gap: 6px; }
.desktop-nav a, .mobile-menu a, .footer-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 48px;
  padding: 0 12px;
  align-items: center;
  color: var(--forest-deep);
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}
.desktop-nav a:hover, .mobile-menu a:hover { color: var(--terracotta-dark); }
.mobile-menu { display: none; }

.site-main { min-height: 70vh; }
h1, h2, h3 {
  margin-top: 0;
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 5.5vw, 4.25rem);
  letter-spacing: -.045em;
}
h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -.035em;
}
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper-bright);
}
.hero::before, .hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.hero::before {
  top: -220px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: rgba(185, 95, 69, .13);
}
.hero::after {
  bottom: -280px;
  left: -190px;
  width: 520px;
  height: 430px;
  background: rgba(95, 128, 111, .14);
}
.hero-inner {
  display: grid;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) 28px 72px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
}
.eyebrow, .section-label {
  display: inline-flex;
  margin-bottom: 16px;
  align-items: center;
  color: var(--terracotta-dark);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before, .section-label::before {
  width: 22px;
  height: 4px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--terracotta);
  content: "";
}
.hero-deck {
  max-width: 690px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}
.fact-strip {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}
.fact-strip li {
  position: relative;
  min-height: 58px;
  margin: 0;
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 253, 248, .76);
  color: var(--forest-deep);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.45;
}
.fact-strip li::before {
  position: absolute;
  top: 20px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50% 50% 50% 0;
  background: var(--sage);
  content: "";
  transform: rotate(-35deg);
}
.button-row {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--terracotta-dark);
  border-radius: 999px;
  background: var(--terracotta-dark);
  color: #fff;
  font-size: .87rem;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { border-color: var(--forest); background: var(--forest); color: #fff; }
.button.secondary { background: transparent; color: var(--forest-deep); }
.button.secondary:hover { border-color: var(--forest); background: var(--forest); color: #fff; }

.organic-figure { margin: 0; }
.organic-figure img {
  width: 100%;
  border: 1px solid rgba(49, 74, 67, .12);
  border-radius: 34% 12% 28% 14% / 18% 24% 16% 30%;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.hero-figure { position: relative; }
.hero-figure::before {
  position: absolute;
  z-index: -1;
  inset: -18px 24px 22px -18px;
  border-radius: 36% 12% 32% 14%;
  background: var(--paper-soft);
  content: "";
}
.hero-figure img { aspect-ratio: 4 / 3; object-position: 67% center; }
.organic-figure figcaption {
  max-width: var(--reading);
  margin: 10px auto 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
}

.chapter {
  position: relative;
  padding: clamp(64px, 7vw, 96px) 28px;
  scroll-margin-top: 82px;
}
.chapter:nth-of-type(4n + 2) {
  border-radius: 0 90px 0 90px;
  background: var(--paper-soft);
}
.chapter:nth-of-type(4n) {
  border-radius: 90px 0 90px 0;
  background: var(--info);
}
.chapter-inner { max-width: var(--wide); margin: 0 auto; }
.reading { max-width: var(--reading); margin: 0 auto; }
.lede { color: #4c4139; font-size: 1.08rem; }
.relationship-note {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--paper-bright);
  color: var(--forest-deep);
  font-weight: 680;
}
.section-figure {
  width: min(100%, 980px);
  margin: 46px auto 0;
}
.section-figure img { aspect-ratio: 14 / 9; }
.section-figure:nth-child(even) img { border-radius: 12% 30% 14% 24% / 22% 14% 28% 18%; }
.product-crop img { aspect-ratio: 16 / 7; object-position: center 45%; }

.disclosure, .notice {
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-small);
  background: var(--paper-bright);
  color: #4d433d;
}
.notice.sage { border-left-color: var(--sage); background: var(--info); }
.notice.warning { border-left-color: var(--ochre); background: var(--warning); }
.notice p:last-child, .disclosure p:last-child { margin-bottom: 0; }
.steps {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.steps li {
  position: relative;
  min-height: 68px;
  margin: 0;
  padding: 15px 0 15px 66px;
  border-top: 1px solid var(--line);
  counter-increment: steps;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  position: absolute;
  top: 13px;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50% 50% 50% 20%;
  background: var(--forest);
  color: #fff;
  content: counter(steps, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 850;
}
.table-wrap {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-bright);
  box-shadow: 0 8px 24px rgba(80, 50, 35, .05);
}
table { width: 100%; min-width: 700px; margin: 0; border-collapse: collapse; }
th, td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
th { background: rgba(239, 225, 210, .55); color: var(--forest-deep); font-size: .78rem; }
tr:last-child td { border-bottom: 0; }
.inline-cta { margin-top: 34px; }
.inline-cta a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: var(--terracotta-dark);
  font-weight: 800;
  text-decoration: none;
}
.inline-cta a::after { color: var(--sage); content: "→"; font-size: 1.25rem; }

.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-bright);
}
.faq-list summary {
  position: relative;
  min-height: 60px;
  padding: 16px 52px 16px 18px;
  cursor: pointer;
  color: var(--forest-deep);
  font-weight: 780;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute;
  top: 13px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--terracotta-dark);
  content: "+";
  font-size: 1.3rem;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.editorial-note {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-bright);
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: #ecf3ef;
}
.site-footer::before {
  position: absolute;
  top: -130px;
  right: -90px;
  width: 330px;
  height: 240px;
  border-radius: 50%;
  background: rgba(214, 161, 67, .12);
  content: "";
}
.footer-inner {
  position: relative;
  display: grid;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px 28px 42px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
}
.site-footer .wordmark { color: #fff; justify-items: start; }
.footer-copy { max-width: 600px; }
.footer-copy p { margin: 14px 0 0; color: #cedbd4; font-size: .88rem; }
.footer-copy strong { color: #fff; }
.footer-nav ul { justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
.footer-nav a { color: #e5eee9; }
.footer-nav a:hover { color: #fff; }
.footer-meta {
  position: relative;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 20px 28px 30px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #aebfb6;
  font-size: .74rem;
}
.simple-page { max-width: var(--reading); margin: 0 auto; padding: 80px 28px; }
.simple-page h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .header-inner { min-height: 64px; padding: 0 20px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    color: var(--forest-deep);
    font-size: .78rem;
    font-weight: 800;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu ul {
    position: absolute;
    top: 54px;
    right: 0;
    display: none;
    width: min(300px, calc(100vw - 32px));
    padding: 10px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-bright);
    box-shadow: var(--shadow);
  }
  .mobile-menu[open] ul { display: flex; }
  .mobile-menu li, .mobile-menu a { width: 100%; }
  .mobile-menu a { padding: 4px 10px; }
  .hero-inner { padding: 52px 20px 60px; grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 700px; }
  .hero-figure { max-width: 680px; margin: 0 auto; }
  .chapter { padding: 60px 20px; }
  .chapter:nth-of-type(4n + 2), .chapter:nth-of-type(4n) { border-radius: 0 52px 0 52px; }
  .section-figure { margin-top: 36px; }
  .footer-inner { padding: 50px 20px 36px; grid-template-columns: 1fr; gap: 28px; }
  .footer-nav ul { justify-content: flex-start; }
  .footer-meta { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  h1 { font-size: clamp(2.15rem, 10vw, 2.75rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .hero-inner { padding: 42px 16px 52px; }
  .fact-strip { grid-template-columns: 1fr; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-figure::before { inset: -10px 12px 12px -10px; }
  .hero-figure img { aspect-ratio: 5 / 4; object-position: 68% center; }
  .chapter { padding: 48px 16px; }
  .chapter:nth-of-type(4n + 2), .chapter:nth-of-type(4n) { border-radius: 0 36px 0 36px; }
  .section-figure img { aspect-ratio: 4 / 3; object-position: center; }
  .product-crop img { aspect-ratio: 4 / 3; }
  .disclosure, .notice { padding: 18px; }
  .steps li { padding-left: 58px; }
  th, td { padding: 13px 12px; }
  .footer-inner { padding-right: 16px; padding-left: 16px; }
  .footer-meta { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
