
/* Greg Garden: hero com foto, cards de texto, galeria, antes e depois (só Paisagismo e Jardinagem), etapas, perguntas, malha de links internos e contato. */
:root {
  --bg: #f3f5ee; --surface: #ffffff; --fg: #1c2b21; --muted: #5b6a5f; --line: #d9dfd0;
  --leaf: #6f9a2c; --forest: #1f3d2b; --terra: #b4532d; --on-forest: #f3f5ee; --on-terra: #ffffff;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fit: cover;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a15; --surface: #1a251e; --fg: #e8eee3; --muted: #9db0a1; --line: #2c3b31;
    --leaf: #8cb83e; --forest: #0d1510; --terra: #d4693f; --on-forest: #e8eee3; --on-terra: #121a15; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121a15; --surface: #1a251e; --fg: #e8eee3; --muted: #9db0a1; --line: #2c3b31;
  --leaf: #8cb83e; --forest: #0d1510; --terra: #d4693f; --on-forest: #e8eee3; --on-terra: #121a15; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--leaf); }

/* fotos */
.ph { position: relative; overflow: hidden; margin: 0; background: var(--forest); border-radius: 14px; min-width: 0; max-width: 100%; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.arch { aspect-ratio: 4 / 4.2; border-radius: 200px 200px 24px 24px; }
.ph.wide { aspect-ratio: 4 / 3; }

header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; max-width: 1120px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: .02em; display: block; }
.brand-sub { display: block; font-size: 11px; letter-spacing: .08em; color: var(--muted); margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; background: var(--terra); color: var(--on-terra); font-weight: 600; text-decoration: none; font-size: 15px; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); }

.hero { max-width: 1120px; margin-inline: auto; padding-block: 36px 48px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5.6vw, 56px); margin-block: 12px 16px; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 54ch; }
.hero .local { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.also { color: var(--muted); font-size: 15px; max-width: 70ch; margin-top: 16px; }

section { max-width: 1120px; margin-inline: auto; padding-block: 44px; }
.head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; max-width: 62ch; }
.head h2 { font-size: clamp(25px, 4vw, 36px); }
.head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 20px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; padding-inline: 6px; }
.card p { font-size: 15px; color: var(--muted); padding-inline: 6px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery.n1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
.gallery.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .gallery, .gallery.n2 { grid-template-columns: minmax(0, 1fr); } }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 860px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--fg); counter-reset: s; }
.step { padding: 18px 18px 6px 0; counter-increment: s; min-width: 0; }
.step::before { content: counter(s); display: block; font-family: var(--font-display); font-size: 30px; color: var(--terra); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--terra); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }

/* malha de links internos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; text-decoration: none; font: inherit; font-size: 15px; color: var(--fg); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--terra); color: var(--terra); }
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 14px; }
.track { display: flex; gap: 10px; width: max-content; }
.track .chip { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .track { animation: roll 450s linear infinite; }
  .marquee:hover .track { animation-play-state: paused; }
  @keyframes roll { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

.band { background: var(--forest); color: var(--on-forest); border-radius: 24px; padding: 40px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; max-width: 1120px; margin: 20px auto 48px; }
.band h2 { font-size: clamp(24px, 4vw, 34px); max-width: 24ch; }
.band p { margin-top: 8px; color: color-mix(in srgb, var(--on-forest) 75%, transparent); }
footer { max-width: 1120px; margin-inline: auto; padding-block: 24px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; font-size: 14px; color: var(--muted); }
footer b { color: var(--fg); }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 24px 32px; }
    section { padding-block: 32px; }
}
@media (max-width: 520px) { .ba { grid-template-columns: minmax(0, 1fr); } }

/* navegação */
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 1120px; margin: 0 auto 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--terra); }
.brand { text-decoration: none; color: inherit; }
.brand svg { width: 42px; height: 42px; color: var(--leaf); flex: none; }
.crumbs { max-width: 1120px; margin: 8px auto 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.local { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 54ch; }
.hero .lead + .lead { margin-top: 10px; }

/* hubs */
.kwgroup { margin-bottom: 22px; }
.kwgroup h3 { font-size: 19px; margin-bottom: 8px; }
.fam-title { font-size: clamp(22px, 3.4vw, 30px); margin: 8px 0 4px; }
.hubgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hubcard { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; min-width: 0; }
.hubcard:hover { border-color: var(--terra); }
.hubcard h3 { font-size: 21px; }
.hubcard p { font-size: 15px; color: var(--muted); }
.hubcard .more { margin-top: auto; color: var(--terra); font-weight: 600; font-size: 14px; }

/* crédito do rodapé: nome da agência em destaque, na cor de ação do site */
footer .credito a { color: var(--terra); font-weight: 700; text-decoration: none; }
footer .credito a:hover { text-decoration: underline; }

/* Grupos de cidades nas páginas de assunto: recolhidos, com seta para expandir */
details.kwgroup { border-bottom: 1px solid var(--line); }
details.kwgroup summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; padding: 14px 4px; }
details.kwgroup summary::-webkit-details-marker { display: none; }
details.kwgroup summary h3 { margin: 0; }
details.kwgroup summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
details.kwgroup[open] summary::after { transform: rotate(-135deg); }
details.kwgroup .chips { padding: 4px 0 18px; }

/* ===== Celular e telas pequenas ===== */
.wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: #1faa59; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab:hover { filter: brightness(1.08); }
footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* alvos de toque de pelo menos 44px */
.chip { min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
footer a { display: inline-block; padding-block: 6px; }

@media (max-width: 760px) {
  header.top { padding-block: 12px; flex-wrap: nowrap; }
  header.top .btn { padding: 11px 16px; font-size: 14px; white-space: nowrap; }
  .brand-name { font-size: 18px; }
  .nav-links { flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .hero { gap: 22px; }
  .hero .ph.arch { aspect-ratio: 4 / 3; border-radius: 28px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .band { padding: 30px 20px; text-align: center; justify-content: center; }
  .band h2, .band p { margin-inline: auto; }
  .band .btn { width: 100%; }
  .track .chip { font-size: 14px; }
  footer { flex-direction: column; gap: 18px; text-align: center; align-items: center; }
}
.nw { white-space: nowrap; }
.band .btn { text-align: center; line-height: 1.3; }
.band .btn { flex-wrap: wrap; column-gap: .35em; }
