/* ================================================================
   MUDAS FÊNIX — Sistema visual
   HTML5 + CSS3 + Tailwind CDN, sem dependência de framework de build.
   ================================================================ */

:root {
  color-scheme: only light;
  --sage: #e1e5d2;
  --sage-soft: #eef0e4;
  --forest: #082f23;
  --forest-2: #0d4432;
  --leaf: #65a920;
  --cream: #f7f5eb;
  --amber: #efb343;
  --ink: #10251d;
  --muted: #5c6a62;
  --line: rgba(8, 47, 35, 0.15);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow: 0 26px 65px rgba(8, 47, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sage);
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.36), transparent 24%),
    var(--sage);
}

body.menu-open {
  overflow: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

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

::selection {
  color: var(--cream);
  background: var(--forest);
}

.section-shell {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(239, 179, 67, 0.8);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  transition: transform 250ms var(--ease-out), padding 250ms var(--ease-out);
}

.site-header.is-scrolled {
  padding-top: 0.55rem;
}

.glass-nav {
  height: 72px;
  padding: 0.65rem 0.7rem 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  background: rgba(225, 229, 210, 0.18);
  box-shadow: 0 12px 40px rgba(8, 47, 35, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  transition: box-shadow 250ms var(--ease-out), background 250ms var(--ease-out);
}

.site-header.is-scrolled .glass-nav {
  background: rgba(225, 229, 210, 0.3);
  box-shadow: 0 16px 48px rgba(8, 47, 35, 0.18);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 148px;
  height: 48px;
  overflow: hidden;
}

.brand-logo {
  width: 145px;
  height: auto;
}

.brand-logo--light {
  display: none;
}

.nav-link {
  position: relative;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: grid;
  width: 48px;
  height: 48px;
  place-content: center;
  gap: 6px;
  border: 0;
  border-radius: 14px;
  background: var(--forest);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 220ms var(--ease-out);
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 89;
  top: 5.8rem;
  right: 1rem;
  left: 1rem;
  display: grid;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(225, 229, 210, 0.78);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transform-origin: top right;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-menu > a:not(.button) {
  padding: 0.9rem 0.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
}

/* Shared elements */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 27px;
  height: 2px;
  background: var(--leaf);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--leaf {
  color: #a8d46b;
}

.section-title,
.display-title {
  margin: 0;
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.91;
}

.display-title {
  max-width: 820px;
  font-size: clamp(3.35rem, 8.1vw, 8rem);
}

.section-title {
  font-size: clamp(3rem, 6vw, 6.1rem);
}

.display-title em,
.section-title em {
  color: #9bc56a;
  font-weight: 600;
}

.section--intro .section-title em,
.section--solutions .section-title em,
.section--journey .section-title em,
.section--species .section-title em {
  color: var(--forest-2);
}

.section-heading {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-heading--split {
  display: grid;
  gap: 2rem;
}

.section-heading.centered {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.section-description {
  max-width: 540px;
  margin: 1.8rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

.button:hover {
  transform: translateY(-3px);
}

.button:active {
  transform: scale(0.97);
}

.button--compact {
  min-height: 48px;
  border-radius: 14px;
}

.button--dark {
  color: var(--cream);
  background: var(--forest);
  box-shadow: 0 8px 24px rgba(8, 47, 35, 0.2);
}

.button--dark:hover {
  background: #0d4936;
  box-shadow: 0 14px 30px rgba(8, 47, 35, 0.28);
}

.button--amber {
  color-scheme: only light;
  color: #10271e;
  background: #efb343;
  background-color: #efb343;
  box-shadow: 0 14px 35px rgba(239, 179, 67, 0.25);
}

.button--amber:hover {
  background: #ffc65c;
  box-shadow: 0 18px 40px rgba(239, 179, 67, 0.36);
}

.button-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: var(--forest);
  transition: transform 180ms var(--ease-out);
}

.button:hover .button-icon {
  transform: rotate(45deg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0.2rem;
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  transition: transform 200ms var(--ease-out);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 940px;
  overflow: hidden;
  color: white;
  background: var(--forest);
}

.hero-media,
.hero-shade,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url('./assets/mata-atlantica.webp');
  background-position: 50% 50%;
  background-size: cover;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease-in-out) infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 26, 19, 0.92) 0%, rgba(3, 26, 19, 0.7) 48%, rgba(3, 26, 19, 0.28) 100%),
    linear-gradient(0deg, rgba(3, 26, 19, 0.63), transparent 55%);
}

.hero-grain {
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 940px;
  align-items: end;
  gap: 3rem;
  padding-top: 9rem;
  padding-bottom: 8rem;
}

.hero-copy {
  max-width: 920px;
}

.hero-subtitle {
  max-width: 685px;
  margin: 1.65rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.75;
}

.hero-proof {
  position: relative;
  align-self: end;
  max-width: 370px;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(225, 229, 210, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-proof .proof-kicker {
  margin: 0 0 2.4rem;
  color: #b9d588;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-proof strong {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  white-space: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.proof-unit {
  font-size: 0.54em;
  letter-spacing: -0.04em;
}

.proof-unit sup {
  position: relative;
  top: -0.5em;
  font-size: 0.62em;
  line-height: 0;
}

.hero-proof > p:not(.proof-kicker) {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.65;
}

.proof-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.67rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #9ce05c;
  box-shadow: 0 0 0 7px rgba(156, 224, 92, 0.12);
}

.proof-orbit {
  position: absolute;
  top: -50px;
  right: -44px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.proof-orbit span {
  position: absolute;
  top: 17px;
  left: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 3.7rem;
  display: none;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
}

.hero-scroll i {
  display: block;
  width: 58px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll i::after {
  display: block;
  width: 40%;
  height: 100%;
  content: '';
  background: var(--amber);
  animation: scan 2s ease-in-out infinite;
}

/* Metrics */
.metrics-wrap {
  position: relative;
  z-index: 10;
  margin-top: -3rem;
}

.metrics-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(247, 245, 235, 0.92);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.metric-card {
  min-height: 190px;
  padding: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.metric-card:last-child {
  border-bottom: 0;
}

.metric-number,
.metric-suffix {
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.7rem, 8vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.metric-suffix {
  margin-left: 0.25rem;
  color: var(--leaf);
  font-size: clamp(2rem, 5vw, 3rem);
}

.metric-card > p {
  max-width: 260px;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.metric-label {
  display: block;
  color: var(--leaf);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.metric-card--wide > p {
  max-width: 460px;
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Introduction / pain */
.section--intro {
  overflow: clip;
  padding-top: clamp(7.5rem, 12vw, 12rem);
}

.intro-grid {
  display: grid;
  gap: 3.4rem;
}

.lead {
  margin: 0 0 2.5rem;
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3.3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pain-list {
  display: grid;
  gap: 0.7rem;
}

.pain-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid rgba(8, 47, 35, 0.1);
  border-radius: 20px;
  background: rgba(247, 245, 235, 0.52);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.pain-item:hover {
  background: rgba(247, 245, 235, 0.9);
  box-shadow: 0 18px 40px rgba(8, 47, 35, 0.09);
}

.pain-item > span {
  color: var(--leaf);
  font-size: 0.67rem;
  font-weight: 800;
}

.pain-item h3 {
  margin: 0;
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.pain-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.founder-note {
  position: relative;
  margin: 2.6rem 0 0;
  padding: 2rem 1.5rem 1.5rem;
  border-left: 3px solid var(--leaf);
  background: rgba(255, 255, 255, 0.25);
}

.founder-note::before {
  position: absolute;
  top: -0.1rem;
  left: 1.25rem;
  content: '“';
  color: rgba(8, 47, 35, 0.12);
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 1;
}

.founder-note p {
  position: relative;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.founder-note footer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Technical features */
.section--dark {
  overflow: hidden;
  color: white;
  background: var(--forest);
}

.organic-shape {
  position: absolute;
  border: 1px solid rgba(164, 207, 99, 0.22);
  border-radius: 42% 58% 70% 30% / 31% 30% 70% 69%;
}

.organic-shape--one {
  top: -20%;
  right: -14%;
  width: 500px;
  height: 500px;
  animation: morph 12s var(--ease-in-out) infinite alternate;
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  transform-style: preserve-3d;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(164, 207, 99, 0.42);
  background: rgba(255, 255, 255, 0.09);
}

.feature-card--image {
  min-height: 480px;
}

.feature-photo,
.feature-overlay {
  position: absolute;
  inset: 0;
}

.feature-photo {
  background-position: center;
  background-size: cover;
  transition: transform 900ms var(--ease-out);
}

.feature-card:hover .feature-photo {
  transform: scale(1.075);
}

.feature-photo--paper {
  background-image: url('./assets/feature-viveiro.webp');
}

.feature-overlay {
  background: linear-gradient(0deg, rgba(3, 29, 21, 0.96) 0%, rgba(3, 29, 21, 0.18) 76%);
}

.feature-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
}

.feature-index {
  color: #a8d46b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.feature-symbol {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #a8d46b;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
}

.feature-card h3 {
  margin: 0;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.feature-card p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.65;
}

.feature-card--accent {
  color: var(--forest);
  background: #a8d46b;
}

.feature-card--accent:hover {
  border-color: #bddf8b;
  background: #b0dc75;
}

.feature-card--accent .feature-index,
.feature-card--accent .feature-symbol,
.feature-card--accent h3,
.feature-card--accent p {
  color: var(--forest);
}

.feature-card--accent a {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(8, 47, 35, 0.22);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
}

.feature-line {
  height: 1px;
  margin-top: 1.4rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.feature-line span {
  display: block;
  width: 28%;
  height: 100%;
  background: #a8d46b;
  transition: width 500ms var(--ease-out);
}

.feature-card:hover .feature-line span {
  width: 100%;
}

/* Solutions */
.section--solutions {
  background: var(--sage);
}

.solutions-grid {
  display: grid;
  gap: 1rem;
}

.solution-card {
  position: relative;
  min-height: 320px;
  padding: 1.6rem;
  overflow: hidden;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.solution-card:hover {
  box-shadow: var(--shadow);
}

.solution-card--large {
  min-height: 500px;
}

.solution-photo,
.solution-shade {
  position: absolute;
  inset: 0;
}

.solution-photo {
  background-position: center;
  background-size: cover;
  transition: transform 900ms var(--ease-out);
}

.solution-card:hover .solution-photo {
  transform: scale(1.07);
}

.solution-photo--forest {
  background-image: url('./assets/mata-atlantica.webp');
}

.solution-shade {
  background: linear-gradient(0deg, rgba(2, 28, 20, 0.92), rgba(2, 28, 20, 0.04) 76%);
}

.solution-content {
  position: absolute;
  z-index: 2;
  right: 1.6rem;
  bottom: 1.6rem;
  left: 1.6rem;
}

.solution-tag {
  color: inherit;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.solution-card h3 {
  margin: 0.8rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.solution-card p {
  max-width: 500px;
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.65;
}

.solution-card--light {
  color: var(--forest);
  background: var(--cream);
}

.solution-card--leaf {
  color: var(--forest);
  background: #9bcb5d;
}

.solution-card--wide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  background: var(--forest-2);
}

.solution-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(8, 47, 35, 0.18);
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  transition: transform 400ms var(--ease-out);
}

.solution-card:hover .solution-icon {
  transform: rotate(18deg) scale(1.08);
}

.mini-arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.6rem;
  font-size: 1.4rem;
  transition: transform 180ms var(--ease-out);
}

.solution-card:hover .mini-arrow {
  transform: translate(3px, -3px);
}

.tree-rings {
  position: absolute;
  right: -35px;
  bottom: -30px;
  width: 180px;
  height: 180px;
}

.tree-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 47% 53% 45% 55% / 50% 40% 60% 50%;
  transition: transform 650ms var(--ease-out);
}

.tree-rings span:nth-child(2) {
  inset: 27px;
}

.tree-rings span:nth-child(3) {
  inset: 54px;
}

.solution-card:hover .tree-rings span {
  transform: rotate(14deg);
}

/* Journey */
.section--journey {
  background: var(--cream);
}

.journey-grid {
  display: grid;
  gap: 4rem;
}

.journey-media {
  position: relative;
}

.journey-photo {
  min-height: 580px;
  border-radius: 180px 180px 28px 28px;
  background-image: url('./assets/jornada-viveiro.webp');
  background-position: center;
  background-size: cover;
}

.image-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  color: white;
  background: rgba(8, 47, 35, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.image-caption span {
  color: #b9d588;
  font-size: 0.7rem;
  font-weight: 800;
}

.image-caption p {
  margin: 0;
  font-size: 0.78rem;
}

.timeline {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  top: 1.65rem;
  left: 0;
  content: attr(data-step);
  color: var(--leaf);
  font-size: 0.66rem;
  font-weight: 800;
}

.timeline-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  text-align: left;
}

.timeline-item button span {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
}

.timeline-item button i {
  font-style: normal;
  font-size: 1.5rem;
}

.timeline-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-in-out);
}

.timeline-content > p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  transition: padding 420ms var(--ease-in-out);
}

.timeline-item.is-active .timeline-content {
  grid-template-rows: 1fr;
}

.timeline-item.is-active .timeline-content > p {
  padding: 0 0 1.5rem;
}

/* Species */
.section--species {
  overflow: hidden;
  background: var(--sage);
}

.species-controls {
  display: flex;
  align-items: end;
  gap: 0.7rem;
}

.species-controls button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(8, 47, 35, 0.28);
  border-radius: 50%;
  color: var(--forest);
  background: transparent;
  font-size: 1.2rem;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.species-controls button:hover {
  color: white;
  background: var(--forest);
  transform: translateY(-3px);
}

.species-track {
  display: grid;
  grid-auto-columns: minmax(240px, 76vw);
  grid-auto-flow: column;
  gap: 1.2rem;
  padding: 0.7rem 0 1.4rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: inline mandatory;
}

.species-track::-webkit-scrollbar {
  display: none;
}

.species-item {
  scroll-snap-align: start;
}

.species-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.species-photo::after {
  position: absolute;
  inset: 0;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  box-shadow: inset 0 0 0 12px rgba(225, 229, 210, 0.08);
}

.species-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 750ms var(--ease-out), filter 300ms var(--ease-out);
}

.species-item:hover img {
  filter: saturate(1.08);
  transform: scale(1.09) rotate(1.4deg);
}

.species-item > span {
  display: block;
  margin-top: 1.2rem;
  color: var(--leaf);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.species-item h3 {
  margin: 0.25rem 0 0;
  color: var(--forest);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
}

.species-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}

.species-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.species-footer > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Partners */
.section--partners {
  color: white;
  background:
    linear-gradient(rgba(5, 37, 27, 0.96), rgba(5, 37, 27, 0.96)),
    url('./assets/ambiente-florestal.webp') center / cover;
}

.partners-top {
  max-width: 850px;
}

.partners-grid {
  display: grid;
  gap: 1rem;
  margin-top: 4rem;
}

.partner-card {
  display: grid;
  gap: 2.5rem;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}

.partner-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
}

.partner-mark {
  color: #f1f3e8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.partner-mark > span {
  margin-left: 0.2rem;
  color: #8cbe50;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.partner-mark--nativas {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.partner-mark--nativas > span {
  display: block;
  margin-left: 0;
  font-size: 1.05rem;
}

.partner-card h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
}

.partner-card p {
  margin: 0.6rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* Final CTA */
.final-cta {
  position: relative;
  display: grid;
  min-height: 760px;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.final-cta-media,
.final-cta-shade {
  position: absolute;
  inset: 0;
}

.final-cta-media {
  background-image: url('./assets/mata-atlantica.webp');
  background-position: center;
  background-size: cover;
  transition: transform 1.4s var(--ease-out);
}

.final-cta:hover .final-cta-media {
  transform: scale(1.045);
}

.final-cta-shade {
  background: rgba(3, 28, 20, 0.78);
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding-block: 6rem;
}

.final-cta h2 {
  margin: 0;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.final-cta-content > p:not(.eyebrow) {
  max-width: 580px;
  margin: 1.5rem auto 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.final-cta small {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
}

/* Footer */
.site-footer {
  padding: 4.5rem 0 1.5rem;
  color: white;
  background: #031e16;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

.footer-logo {
  width: min(220px, 70vw);
  height: auto;
}

.footer-grid > div:first-child p {
  max-width: 300px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-links p,
.footer-contact p {
  margin: 0 0 0.45rem;
  color: #98c85f;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 32px rgba(8, 47, 35, 0.24);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.whatsapp-float:hover {
  box-shadow: 0 18px 38px rgba(8, 47, 35, 0.34);
  transform: translateY(-4px) rotate(-4deg);
}

.whatsapp-float svg {
  width: 27px;
  fill: white;
}

/* Motion */
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.16); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(250%); }
}

@keyframes morph {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(16deg) scale(1.08); border-radius: 62% 38% 31% 69% / 55% 62% 38% 45%; }
}

/* Tablet */
@media (min-width: 640px) {
  .section-shell {
    width: min(100% - 3rem, 1280px);
  }

  .hero-proof {
    padding: 2rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card:nth-child(1) {
    border-right: 1px solid var(--line);
  }

  .metric-card--wide {
    grid-column: 1 / -1;
  }

  .species-track {
    grid-auto-columns: minmax(260px, 43vw);
  }

  .species-footer,
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .site-header {
    padding: 1.35rem 2rem;
  }

  .glass-nav {
    height: 78px;
    padding-left: 1.3rem;
  }

  .brand,
  .brand-logo {
    width: 164px;
  }

  .hero {
    min-height: min(1000px, 100vh);
  }

  .hero-layout {
    min-height: min(1000px, 100vh);
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
    padding-top: 10rem;
    padding-bottom: 7rem;
  }

  .hero-copy {
    padding-bottom: 1rem;
  }

  .hero-proof {
    align-self: center;
  }

  .hero-scroll {
    display: flex;
  }

  .metrics-grid {
    grid-template-columns: 0.8fr 0.8fr 1.7fr;
  }

  .metric-card {
    min-height: 220px;
    padding: 2.2rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metric-card:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .metric-card--wide {
    grid-column: auto;
    border-right: 0;
  }

  .intro-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 7rem;
  }

  .sticky-copy {
    position: sticky;
    top: 9rem;
    align-self: start;
  }

  .feature-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .feature-card--image {
    grid-row: span 2;
    min-height: 690px;
  }

  .feature-content {
    grid-template-columns: 54px 1fr;
    gap: 1.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .solution-card--large {
    grid-row: span 2;
    min-height: 660px;
  }

  .solution-card--wide {
    grid-column: 1 / -1;
    min-height: 280px;
    flex-direction: row;
    align-items: end;
  }

  .solution-card--wide p {
    margin-right: 10rem;
  }

  .journey-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 7rem;
  }

  .journey-photo {
    min-height: 780px;
  }

  .species-track {
    grid-auto-columns: calc((100% - 3.6rem) / 4);
  }

  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }

  .partner-card {
    grid-template-columns: 0.65fr 1fr;
    align-items: center;
    padding: 2.4rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.6fr 0.8fr;
  }
}

@media (min-width: 1100px) {
  .section-heading--split {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
  }

  .section-heading--split .section-description {
    margin: 0;
    justify-self: end;
  }

  .feature-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .feature-card--image {
    grid-row: span 2;
  }

  .feature-card--accent {
    grid-column: 2 / 4;
  }
}

@media (max-width: 390px) {
  .display-title {
    font-size: 3rem;
  }

  .hero-layout {
    padding-top: 7.5rem;
  }

  .brand,
  .brand-logo {
    width: 132px;
  }
}

/* Ajustes exclusivos de celular: capa real do viveiro e marca branca sobre o hero. */
@media (max-width: 767px) {
  .metric-number {
    font-size: clamp(5rem, 16vw, 7rem);
  }

  .metric-suffix {
    font-size: clamp(2.7rem, 9vw, 3.6rem);
  }

  .hero-media {
    background-image: url('./assets/hero-mobile-viveiro.webp');
    background-position: 50% 46%;
    background-size: cover;
    transform: scale(1.02);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 26, 19, 0.48) 0%, rgba(3, 26, 19, 0.56) 38%, rgba(3, 26, 19, 0.78) 100%),
      linear-gradient(90deg, rgba(3, 26, 19, 0.28), rgba(3, 26, 19, 0.08));
  }

  .site-header:not(.is-scrolled) .glass-nav {
    background: rgba(8, 47, 35, 0.38);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .brand-logo--dark,
  .site-header.is-scrolled .brand-logo--light {
    display: none;
  }

  .brand-logo--light,
  .site-header.is-scrolled .brand-logo--dark {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Filme institucional */
.section--film {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  background: var(--sage);
}

.film-intro {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.8rem);
}

.film-intro .section-description {
  margin: 0;
  align-self: end;
}

.film-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 47, 35, 0.18);
  border-radius: clamp(20px, 3vw, 38px);
  background: var(--forest);
  box-shadow: 0 28px 70px rgba(8, 47, 35, 0.2);
}

.film-frame::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
}

.institutional-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--forest);
  object-fit: cover;
}


/* Assets locais Magnific: duas representações distintas de biomas. */
.solution-card--large:has(.biome-pair) { background:var(--forest); }
.solution-card--large:has(.biome-pair) .solution-shade { display:none; }
.biome-pair { position:absolute; inset:0 0 200px; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:minmax(0,1fr); }
.biome-pair figure { margin:0; position:relative; overflow:hidden; min-width:0; min-height:0; }
.biome-pair img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 700ms var(--ease-out); }
.solution-card:hover .biome-pair img { transform:scale(1.04); }
.biome-pair figcaption { position:absolute; top:1rem; left:1rem; padding:.4rem .7rem; border-radius:999px; background:rgba(8,47,35,.8); color:white; font-size:.7rem; }
.biome-pair figure+figure { border-left:2px solid var(--sage); }
@media(max-width:639px) { .biome-pair { inset:0 0 235px; } .biome-pair figcaption { top:.8rem; left:.5rem; font-size:.6rem; } }
@media(min-width:900px) { .film-intro { grid-template-columns:1.15fr .85fr; align-items:end; } }

/* Parallax cinematográfico do CTA: overscan evita bordas vazias durante o movimento. */
.final-cta.has-parallax .final-cta-media {
  inset:-45% -12%;
  transition:none;
  transform:translate3d(0,var(--cta-bg-y,0px),0) scale(var(--cta-bg-scale,1.16));
  will-change:transform;
}
.final-cta.has-parallax .final-cta-content {
  transform:translate3d(0,var(--cta-copy-y,0px),0);
  will-change:transform;
}
@media(prefers-reduced-motion:reduce) {
  .final-cta .final-cta-media,.final-cta .final-cta-content { transform:none !important; will-change:auto; }
}
