/* =========================================================
   Casa e Flor · site
   Cores e fontes do manual de identidade visual.
   Fisterra (títulos) ainda não está no projeto: a Fraunces
   entra como substituta. Para usar a Fisterra, coloque os
   arquivos em assets/fonts/ e descomente o @font-face abaixo.
   ========================================================= */

/*
@font-face {
  font-family: "Fisterra";
  src: url("assets/fonts/Fisterra.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
*/

:root {
  /* Cores principais */
  --oliva: #7A7B4E;
  --terracota: #C05A43;
  /* Cores secundárias */
  --bege: #E4D6BC;
  --limao: #B9B544;
  --musgo: #908E4E;
  /* Variações para contraste e fundos */
  --oliva-escuro: #4E4F2E;
  --oliva-texto: #3E3F24;
  --oliva-suave: #5A5B35;
  --terracota-escuro: #A94A35;
  --limao-claro: #CFCB6A;
  --bege-claro: #EFE6D3;
  --creme: #FAF6EC;
  --noite: #22210F;
  --linha: #CDBE9E;

  --font-display: "Fisterra", "Fraunces", Georgia, serif;
  --font-body: "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--oliva-texto);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
a { color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--limao); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--oliva-escuro); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--oliva-suave);
}
.eyebrow-light { color: var(--limao-claro); }
.eyebrow-line { width: 28px; height: 2px; background: currentColor; }

.section { padding: var(--section-y) 0; }
.section-title { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; color: var(--oliva-escuro); margin-bottom: 20px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: #4A4B30; max-width: 60ch; }
.center { display: flex; justify-content: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; text-align: center;
  padding-block: 10px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-terracota { background: var(--terracota-escuro); color: #fff; }
.btn-terracota:hover { background: #943F2C; }
.btn-bege { background: var(--bege); color: var(--oliva-texto); }
.btn-bege:hover { background: #F0E6D2; }
.btn-oliva { background: var(--oliva-escuro); color: #fff; }
.btn-oliva:hover { background: var(--oliva-texto); }
.btn-outline { border-color: var(--oliva-escuro); color: var(--oliva-escuro); background: transparent; }
.btn-outline:hover { background: var(--oliva-escuro); color: #fff; }
.btn-ghost-light { border-color: #F6EFE1; color: #F6EFE1; background: transparent; font-weight: 500; }
.btn-ghost-light:hover { background: rgba(246, 239, 225, 0.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  display: inline-flex; gap: 8px; margin-top: 28px;
  font-weight: 700; color: var(--terracota-escuro); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.text-link:hover { color: #943F2C; }

/* ---------- 00 · Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 33, 15, 0.65), rgba(34, 33, 15, 0));
  transition: opacity .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; flex-shrink: 0; }
.brand img { height: 44px; width: auto; transition: opacity .3s; }
.brand .brand-dark { position: absolute; inset: 0; opacity: 0; }
.main-nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); padding: 0; list-style: none; }
.main-nav a { color: #F6EFE1; text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav ul a:hover { border-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta-mobile { display: none; }
.menu-toggle { display: none; }

.site-header.is-scrolled { background: rgba(250, 246, 236, 0.96); box-shadow: 0 1px 0 var(--linha); height: 76px; backdrop-filter: blur(8px); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled .brand-light { opacity: 0; }
.site-header.is-scrolled .brand-dark { opacity: 1; }
.site-header.is-scrolled .main-nav a { color: var(--oliva-texto); }
.site-header.is-scrolled .header-actions .btn-bege { background: var(--oliva-escuro); color: #fff; }

/* ---------- 01 · Topo ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh); max-height: 1000px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #F6EFE1; background: var(--noite); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(34, 33, 20, 0.86) 0%, rgba(34, 33, 20, 0.62) 38%, rgba(34, 33, 20, 0.1) 70%, rgba(34, 33, 20, 0) 100%);
}
.hero-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero-content > * { max-width: 660px; }
.hero-title { font-size: clamp(46px, 6.2vw, 88px); line-height: 0.98; color: #F6EFE1; margin-bottom: 24px; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: #EDE4D0; max-width: 560px; margin-bottom: 32px; }

.proof-bar { background: var(--bege); color: var(--oliva-texto); }
.proof-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 104px; }
.proof-item { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.proof-item + .proof-item { padding-left: 40px; border-left: 1px solid #BFAF8E; }
.proof-item img { width: 34px; }
.proof-item div { display: flex; flex-direction: column; line-height: 1.3; }
.proof-item strong { font-size: 16px; }
.proof-item strong.display { font-size: 26px; line-height: 1.1; }
.proof-item span { font-size: 14px; color: var(--oliva-suave); }
.proof-star { color: var(--terracota-escuro); white-space: nowrap; }

/* ---------- Layout em duas colunas ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-reverse > :first-child { order: 2; }

/* ---------- 02 · Sobre ---------- */
.sobre-media { position: relative; }
.sobre-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 240px 240px var(--radius-lg) var(--radius-lg); }
.sobre-badge {
  position: absolute; right: -24px; bottom: 40px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 22px 26px; border-radius: var(--radius-lg);
  background: var(--terracota-escuro); color: #fff; box-shadow: 0 18px 40px rgba(34, 33, 15, 0.22);
}
.sobre-badge img { width: 32px; margin-bottom: 6px; }
.sobre-badge .display { font-size: 52px; line-height: 1; }
.sobre-badge span:last-child { font-size: 15px; }

/* ---------- 03 · Garden ---------- */
.garden { background: var(--bege-claro); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  height: 100%; display: flex; flex-direction: column;
  background: var(--creme); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 0 rgba(78, 79, 46, 0.08); transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(78, 79, 46, 0.16); }
.card-media { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media-brand { display: flex; align-items: center; justify-content: center; }
.card-media-brand img { width: 34%; height: auto; object-fit: contain; }
.brand-oliva { background: var(--oliva); }
.brand-terracota { background: var(--terracota); }
.brand-bege { background: var(--bege); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; flex-grow: 1; }
.card-title { font-size: 20px; color: var(--oliva-escuro); }
.card-text { font-size: 15px; line-height: 1.55; color: #4A4B30; flex-grow: 1; }
.card-link { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--terracota-escuro); }
.card-cta { background: var(--oliva-escuro); color: #F6EFE1; justify-content: center; }
.card-cta .card-body { justify-content: center; gap: 12px; padding: 32px 26px; }
.card-cta .card-body img { width: 40px; }
.card-cta .card-title { font-size: 26px; line-height: 1.12; color: #F6EFE1; }
.card-cta .card-text { flex-grow: 0; color: #E4DBC6; }
.card-cta .card-link { color: var(--limao-claro); }

/* ---------- 04 · Encomendas ---------- */
.encomendas-box {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 5vw, 64px);
  border-radius: 28px;
  background-color: var(--bege);
  background-image: url("assets/img/pattern.png");
  background-size: 260px auto;
  background-repeat: repeat;
}
.encomendas-text {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--creme);
  box-shadow: 0 18px 40px rgba(34, 33, 15, 0.18);
}
.encomendas .lead { margin-bottom: 32px; }
.encomendas .eyebrow { color: var(--terracota-escuro); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps li {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: var(--radius-lg);
  background: var(--creme); color: var(--oliva-texto); font-size: 17px; font-weight: 500;
  box-shadow: 0 10px 24px rgba(34, 33, 15, 0.16);
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--oliva-escuro); color: #fff; font-size: 20px;
}

/* ---------- 05 · Grama ---------- */
.grama-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }

/* ---------- 06 · Paisagismo ---------- */
.paisagismo { background: var(--oliva-escuro); color: #F6EFE1; }
.paisagismo .section-title { color: #F6EFE1; }
.paisagismo .eyebrow { color: var(--limao-claro); }
.paisagismo .lead { color: #E4DBC6; margin-bottom: 28px; }
.paisagismo .btn-oliva { background: var(--bege); color: var(--oliva-texto); }
.paisagismo .btn-oliva:hover { background: #F0E6D2; }
.paisagismo-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 56px); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 17vw, 240px); gap: 16px; }
.gallery li { min-height: 0; }
.gallery .g-destaque { grid-column: span 2; grid-row: span 2; }
.gallery .g-largo { grid-column: span 2; }
.gallery-item { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery li:nth-child(7) .gallery-item img { object-position: 50% 70%; }

.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--noite); overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 20, 10, 0.86); }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--creme); color: var(--oliva-texto);
  font-size: 28px; line-height: 1; cursor: pointer;
}

/* ---------- 07 · Entrega ---------- */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--bege); aspect-ratio: 4 / 3.4; border: 1px solid var(--linha); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.entrega .lead { margin-bottom: 32px; }

/* ---------- 08 · Avaliações ---------- */
.avaliacoes { background: var(--bege-claro); }
.avaliacoes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: clamp(36px, 5vw, 56px); }
.avaliacoes-head .section-title { margin-bottom: 0; }
.rating { display: flex; align-items: center; gap: 16px; padding: 18px 26px; border-radius: var(--radius-lg); background: var(--creme); border: 1px solid var(--linha); }
.rating-score { font-size: 52px; line-height: 1; color: var(--oliva-escuro); }
.rating > div { display: flex; flex-direction: column; }
.rating-stars { color: var(--terracota-escuro); letter-spacing: 3px; font-size: 18px; }
.rating-label { font-size: 15px; color: var(--oliva-suave); }
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 44px; }
.review { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius-lg); background: var(--creme); }
.review-stars { color: var(--terracota-escuro); letter-spacing: 2px; }
.review blockquote { font-size: 16px; line-height: 1.6; color: #3F4028; flex-grow: 1; }
.review cite { font-style: normal; font-weight: 700; color: var(--oliva-escuro); }
.review cite::before { content: "— "; }

/* ---------- 09 · Chamada final ---------- */
.chamada { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 14vw, 180px) 0; color: #F6EFE1; text-align: center; }
.chamada-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.chamada-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(34, 33, 20, 0.62); }
.chamada-content { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.chamada-content img { width: 48px; }
.chamada h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; max-width: 16ch; }
.chamada p { font-size: clamp(17px, 1.5vw, 20px); color: #EDE4D0; max-width: 46ch; margin-bottom: 8px; }

/* ---------- 10 · Rodapé ---------- */
.site-footer { background: var(--noite); color: #E4DBC6; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-label { margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--limao-claro); }
.site-footer p, .site-footer address { font-size: 15px; line-height: 1.6; }
.footer-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #F6EFE1; text-decoration: underline; text-underline-offset: 4px; }
.footer-link:hover { color: var(--limao-claro); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(228, 219, 198, 0.18); font-size: 14px; }

/* ---------- Botão flutuante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; background: var(--terracota-escuro); color: #fff;
  box-shadow: 0 12px 28px rgba(34, 33, 15, 0.3); transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: #943F2C; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav ul { gap: 18px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; border-radius: 10px;
    background: rgba(246, 239, 225, 0.16); cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: #F6EFE1; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .site-header.is-scrolled .menu-toggle { background: var(--bege); }
  .site-header.is-scrolled .menu-toggle span { background: var(--oliva-texto); }
  .brand img { height: 36px; }

  .main-nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center; gap: 36px;
    padding: 96px var(--gutter) 40px; background: var(--oliva-escuro);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a, .site-header.is-scrolled .main-nav ul a { color: #F6EFE1; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 34px; font-weight: 700; }
  .main-nav .nav-cta-mobile, .site-header.is-scrolled .main-nav .nav-cta-mobile { display: inline-flex; align-self: flex-start; min-height: 56px; padding: 0 30px; border: 0; font-size: 17px; color: #fff; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .site-header .brand-light { opacity: 1; }
  .menu-open .site-header .brand-dark { opacity: 0; }
  .menu-open .menu-toggle span { background: #F6EFE1 !important; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
  .header-actions .btn-bege { display: none; }

  .hero { min-height: max(620px, 100svh); }
  .hero-scrim { background: linear-gradient(180deg, rgba(34, 33, 20, 0.35) 0%, rgba(34, 33, 20, 0.55) 40%, rgba(34, 33, 20, 0.88) 100%); }
  .proof-inner { grid-template-columns: 1fr; padding-top: 8px; padding-bottom: 8px; }
  .proof-item { padding: 14px 0; }
  .proof-item + .proof-item { padding-left: 0; border-left: 0; border-top: 1px solid #BFAF8E; }

  .split, .paisagismo-head, .encomendas-box { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .sobre-badge { right: 16px; bottom: 16px; padding: 16px 20px; }
  .sobre-badge .display { font-size: 40px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 34vw, 240px); }
  .gallery .g-destaque { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .reviews { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-row .btn, .encomendas .btn, .entrega .btn, .paisagismo .btn { width: 100%; }
  .btn-lg { padding: 0 22px; }
  .encomendas-box { border-radius: 20px; background-size: 200px auto; }
  .rating { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
