/* ============================================================
   Plantare Paisagismo — identidade derivada da logo:
   verde #01A84F→#018645 (folha), marrom #422302 (lettering),
   formas orgânicas com "ponta de folha" no canto inferior esquerdo
   ============================================================ */

:root {
  --green: #01A84F;
  --green-deep: #018645;
  --green-darker: #01713B;
  --green-tint: #E9F6EE;
  --green-tint-2: #F3FAF5;
  --brown: #422302;
  --brown-soft: #5F4A38;
  --paper: #FCFCF9;
  --white: #FFFFFF;
  --line: #ECE7DD;

  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Figtree', sans-serif;

  /* canto "ponta de folha": três cantos redondos, um quase reto */
  --leaf-radius: 28px 28px 28px 6px;

  --shadow-sm: 0 2px 10px rgba(66, 35, 2, 0.06);
  --shadow-md: 0 14px 34px rgba(66, 35, 2, 0.10);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--brown-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--brown);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

a { color: var(--green-deep); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 104px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(1, 168, 79, 0.32);
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 134, 69, 0.38);
}

.btn-ghost {
  color: var(--brown);
  border: 2px solid var(--line);
  background: var(--white);
}
.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-deep);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--green-deep);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 10px;
}
.text-link svg { transition: transform 0.25s ease; }
.text-link:hover svg { transform: translateX(5px); }

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brown);
  position: relative;
  padding: 6px 0;
}
.nav > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.btn-nav { padding: 11px 24px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brown);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 40px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-blob {
  position: absolute;
  border-radius: 62% 38% 56% 44% / 48% 62% 38% 52%;
  animation: blobMorph 14s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 640px;
  height: 620px;
  right: -180px;
  top: -120px;
  background: linear-gradient(200deg, var(--green-tint), var(--green-tint-2) 70%);
}
.hero-blob-2 {
  width: 320px;
  height: 300px;
  left: -140px;
  bottom: -80px;
  background: var(--green-tint-2);
  animation-delay: -7s;
}

@keyframes blobMorph {
  0%   { border-radius: 62% 38% 56% 44% / 48% 62% 38% 52%; }
  50%  { border-radius: 45% 55% 40% 60% / 60% 42% 58% 40%; }
  100% { border-radius: 55% 45% 62% 38% / 42% 56% 44% 58%; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero h1 { margin-bottom: 22px; }

.highlight { color: var(--green-deep); position: relative; white-space: nowrap; }
.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.14em;
  background: var(--green);
  opacity: 0.28;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.7s ease-out 1s forwards;
}
@keyframes underlineGrow { to { transform: scaleX(1); } }

.hero-sub {
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* marca animada */
.hero-mark { justify-self: center; width: min(380px, 78vw); }
.mark-svg { width: 100%; height: auto; overflow: visible; }

.mark-leaf {
  opacity: 0;
  transform-origin: 12% 78%;
  animation: leafIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes leafIn {
  from { opacity: 0; transform: scale(0.9) rotate(-4deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

.mark-echo {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: echoDraw 1.8s ease 0.7s forwards;
}
@keyframes echoDraw { to { stroke-dashoffset: 0; } }

.mark-trunk line {
  transform-origin: top;
  transform: scaleY(0);
  animation: trunkGrow 0.8s ease-out 1s forwards;
}
.mark-trunk line:nth-child(2) { animation-delay: 1.15s; }
.mark-trunk line:nth-child(3) { animation-delay: 1.3s; }
@keyframes trunkGrow { to { transform: scaleY(1); } }

/* balanço suave depois da entrada */
.hero-mark svg {
  animation: sway 9s ease-in-out 2.5s infinite alternate;
  transform-origin: 45% 90%;
}
@keyframes sway {
  from { transform: rotate(-1.2deg); }
  to   { transform: rotate(1.2deg); }
}

/* entrada dos elementos do hero */
.load-item {
  opacity: 0;
  transform: translateY(22px);
  animation: loadUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
@keyframes loadUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Fatos ============ */
.facts { padding: 26px 0 0; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--leaf-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fact {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* divisórias finas, como as linhas do tronco na logo */
  border-left: 1.5px solid var(--line);
}
.fact:first-child { border-left: none; }

.fact strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--brown);
}
.fact span { font-size: 0.95rem; }

/* ============ Sobre ============ */
.sobre-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.sobre-visual { position: relative; }

.sobre-blob {
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(200deg, var(--green) 0%, var(--green-deep) 80%);
  border-radius: 62% 38% 56% 44% / 48% 62% 38% 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  animation: blobMorph 16s ease-in-out infinite alternate;
}

.sobre-logo {
  background: var(--white);
  border-radius: 50%;
  padding: 10%;
  width: 74%;
  box-shadow: var(--shadow-md);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  animation: floatY 5s ease-in-out infinite alternate;
}
.float-card-1 { top: 6%; right: -6%; }
.float-card-2 { bottom: 4%; left: -8%; animation-delay: -2.5s; }

@keyframes floatY {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

.float-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px 12px 12px 3px;
  background: var(--green-tint);
  color: var(--green-deep);
  flex-shrink: 0;
}
.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--brown);
  line-height: 1.3;
}
.float-card span { font-size: 0.85rem; }

.sobre-text h2 { margin-bottom: 20px; }
.sobre-text p { margin-bottom: 16px; }

/* ============ Serviços ============ */
.servicos { background: var(--green-tint-2); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--leaf-radius);
  padding: 34px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 58% 42% 52% 48% / 46% 58% 42% 54%;
  transition: border-radius 0.5s ease, background 0.3s ease, color 0.3s ease;
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon {
  border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%;
  background: var(--green);
  color: var(--white);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.97rem; }

/* ============ Processo ============ */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}

/* linha fina contínua, como o tronco da logo */
.steps::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 4%;
  right: 4%;
  height: 1.5px;
  background: var(--line);
}

.step { position: relative; padding-top: 54px; }

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ============ Portfólio ============ */
.portfolio { background: var(--green-tint-2); }

.portfolio-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 40px 40px 40px 10px;
  box-shadow: var(--shadow-sm);
  padding: 64px;
}

.portfolio-text h2 { margin-bottom: 16px; }
.portfolio-text > p { margin-bottom: 28px; max-width: 460px; }

.portfolio-handle {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--brown-soft);
}

/* mosaico que lembra o feed do Instagram */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(320px, 100%);
  margin-inline: auto;
  transition: transform 0.3s ease;
}
.insta-grid:hover { transform: translateY(-4px); }

.insta-tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px 16px 16px 4px;
  animation: tileFloat 6s ease-in-out infinite alternate;
}
.insta-tile:nth-child(2) { animation-delay: -1.5s; }
.insta-tile:nth-child(3) { animation-delay: -3s; }
.insta-tile:nth-child(4) { animation-delay: -4.5s; }
.insta-tile:nth-child(5) { animation-delay: -0.8s; }
.insta-tile:nth-child(6) { animation-delay: -2.2s; }
.insta-tile:nth-child(7) { animation-delay: -3.8s; }
.insta-tile:nth-child(8) { animation-delay: -5.2s; }
.insta-tile:nth-child(9) { animation-delay: -2.8s; }

@keyframes tileFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

.t-tint  { background: var(--green-tint); color: var(--green-deep); }
.t-green { background: var(--green); color: var(--white); }
.t-deep  { background: var(--green-deep); color: var(--white); }
.t-center {
  background: linear-gradient(130deg, var(--green-deep), var(--green));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(1, 134, 69, 0.35);
}

/* ============ CTA ============ */
.cta-section { padding-top: 0; }

.cta-banner {
  position: relative;
  background: linear-gradient(130deg, var(--green-deep) 0%, var(--green) 100%);
  border-radius: 40px 40px 40px 10px;
  padding: 72px 64px;
  overflow: hidden;
}

.cta-leaf {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 340px;
  transform: rotate(14deg);
}

.cta-content { position: relative; max-width: 560px; }
.cta-content h2 { color: var(--white); margin-bottom: 14px; }
.cta-content p { color: rgba(255, 255, 255, 0.9); margin-bottom: 30px; }

.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.cta-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
}

/* ============ Contato ============ */
.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.contato h2 { margin-bottom: 34px; }

.contato-list { list-style: none; display: grid; gap: 26px; }

.contato-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contato-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: 16px 16px 16px 4px;
}

.contato-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--brown);
  margin-bottom: 2px;
}
.contato-list p { font-size: 0.98rem; }
.contato-list a { font-weight: 600; }
.contato-list a:hover { text-decoration: underline; }

.contato-map {
  border-radius: var(--leaf-radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 420px;
}
.contato-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ============ Footer ============ */
.footer {
  background: var(--brown);
  color: rgba(255, 250, 244, 0.8);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo-chip {
  display: inline-block;
  background: var(--white);
  border-radius: 50%;
  padding: 12px;
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
}
.footer-logo-chip img { width: 100%; }

.footer-brand p { font-size: 0.95rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a,
.footer-contact a {
  color: rgba(255, 250, 244, 0.8);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover,
.footer-contact a:hover { color: #7FDCA6; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-base {
  border-top: 1px solid rgba(255, 250, 244, 0.14);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 0.85rem;
  color: rgba(255, 250, 244, 0.55);
}

/* ============ WhatsApp flutuante ============ */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(1, 134, 69, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}
.wa-fab:hover { transform: scale(1.08); background: var(--green-deep); }
.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============ Revelação no scroll ============ */
/* estados ocultos só se o JS estiver ativo — sem JS, tudo fica visível */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsivo ============ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  /* no celular a marca vira um emblema compacto acima do título */
  .hero-mark { order: -1; width: min(130px, 34vw); margin-bottom: 0; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }

  .sobre-inner { grid-template-columns: 1fr; gap: 64px; }
  .sobre-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .float-card-1 { right: 0; }
  .float-card-2 { left: 0; }

  .contato-inner { grid-template-columns: 1fr; gap: 48px; }

  .portfolio-card { grid-template-columns: 1fr; gap: 44px; padding: 48px 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .btn-nav { margin-top: 18px; justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .facts-grid { grid-template-columns: 1fr; }
  .fact { border-left: none; border-top: 1.5px solid var(--line); }
  .fact:first-child { border-top: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }

  .cta-banner { padding: 52px 28px; border-radius: 28px 28px 28px 8px; }
  .portfolio-card { padding: 36px 24px; border-radius: 28px 28px 28px 8px; }

  .float-card { padding: 10px 14px; }
  .brand-logo { height: 50px; }
}

/* ============ Acessibilidade: movimento reduzido ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .load-item, .mark-leaf, .reveal { opacity: 1; transform: none; }
  .mark-echo { stroke-dashoffset: 0; }
  .mark-trunk line { transform: scaleY(1); }
}
