/* Florear BH: landing page
   Paleta tirada do vetor da logo. Acento único: verde da marca. */

:root {
  --cream: #F6F1E7;
  --cream-2: #EDE6D6;
  --paper: #FBF8F2;
  --ink: #1D2A20;
  --muted: #55604F;
  --line: #DCD3BF;
  --green: #1A5429;
  --green-deep: #123B1D;
  --green-hover: #154722;
  --olive: #83AA2C;
  --ring: linear-gradient(135deg, #225331 0%, #4F7A2E 55%, #83AA2C 100%);

  --radius: 14px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);

  --font: "Cabin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(26, 84, 41, 0.12);
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; text-wrap: pretty; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-hover); }

.btn--ghost { border-color: var(--green); color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: #fff; }

.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: var(--olive);
}
.link-arrow::after {
  content: "→";
  transition: transform 0.2s var(--ease-out);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* Espaço de foto: mostra o rótulo até a foto real existir em assets/img/photos */
.photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(131, 170, 44, 0.22), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(26, 84, 41, 0.16), transparent 50%),
    var(--cream-2);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.is-empty img { display: none; }
.photo.is-empty::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 16px 16px;
  padding: 8px 12px;
  background: rgba(251, 248, 242, 0.9);
  border: 1px dashed var(--muted);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.site-header__logo img { width: 168px; height: auto; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
}
.site-nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--olive); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0 var(--section); }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.hero__lead {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.1875rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.975rem;
  text-decoration: none;
}
.rating strong { color: var(--ink); }
.rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }

.stars { display: inline-flex; gap: 2px; color: var(--olive); }
.stars .icon { width: 18px; height: 18px; }
.icon--half { clip-path: inset(0 30% 0 0); }

/* Arco: o anel da logo virando moldura de foto */
.hero__media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 460px);
}
.arch {
  padding: 10px;
  background: var(--ring);
  border-radius: 999px 999px var(--radius) var(--radius);
}
.arch .photo {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 8px 8px;
}
.hero__seal {
  position: absolute;
  left: -48px;
  bottom: 48px;
  width: 112px;
  height: 112px;
  padding: 10px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 12px 32px -12px rgba(18, 59, 29, 0.35);
}

/* Seções: cabeçalho */
.section-head {
  display: grid;
  gap: 16px;
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Flores: grade assimétrica */
.flowers { padding-bottom: var(--section); }

.flower-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flower {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.flower .photo { aspect-ratio: 1 / 1; }
.flower__body {
  display: grid;
  gap: 8px;
  padding: 22px 24px 18px;
}
.flower__body p { color: var(--muted); }
.flower__body .link-arrow { margin-top: 4px; justify-self: start; }

.flower--feature { grid-row: span 2; }
.flower--feature .photo { aspect-ratio: auto; flex: 1; min-height: 360px; }

.flower--wide {
  grid-column: span 2;
  flex-direction: row;
}
.flower--wide .photo { aspect-ratio: auto; flex: 1.1; min-height: 260px; }
.flower--wide .flower__body { flex: 1; align-content: center; padding: 28px; }

.flower .photo img { transition: transform 0.6s var(--ease-out); }
.flower:hover .photo img { transform: scale(1.03); }

/* Tradição */
.tradition {
  background: var(--green);
  color: #E9F0E2;
  overflow: hidden;
}
.tradition__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(56px, 8vw, 96px);
}
.tradition__number {
  font-size: clamp(6rem, 16vw, 12rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px #A9C66A;
}
.tradition__text { display: grid; gap: 16px; max-width: 520px; }
.tradition h2 { color: #fff; }
.tradition__text p { font-size: 1.125rem; }
.tradition__seal { width: 160px; height: 160px; opacity: 0.9; }

/* Avaliações */
.reviews { padding-block: var(--section); }
.reviews__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.reviews__score { display: grid; gap: 12px; justify-items: start; position: sticky; top: 112px; }
.reviews__number {
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--green);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.reviews__meta { display: grid; gap: 8px; color: var(--muted); }

.quotes { margin: 0; padding: 0; list-style: none; }
.quote {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.quote:last-child { border-bottom: 1px solid var(--line); }
.quote blockquote {
  margin: 0;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}
.quote__by { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }

/* Visite */
.visit {
  padding-block: var(--section);
  background: var(--paper);
}
.visit__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.visit__info { display: grid; gap: 24px; justify-items: start; }
.visit__lead { color: var(--muted); font-size: 1.125rem; }

.contact-list { display: grid; gap: 20px; margin: 8px 0; }
.contact-item { display: grid; gap: 4px; }
.contact-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 700;
}
.contact-item dd { margin: 0 0 0 30px; }
.contact-item dd a { display: inline-block; padding: 4px 0; text-underline-offset: 4px; text-decoration-color: var(--olive); }
.contact-item dd a:hover { color: var(--green); }

.visit__media {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 16px;
}
.photo--storefront {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}
.map {
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* CTA final */
.closing { padding-block: var(--section); }
.closing__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  text-align: center;
  background: var(--green-deep);
  border-radius: var(--radius);
  color: #E9F0E2;
  overflow: hidden;
  isolation: isolate;
}
.closing__inner::before {
  /* anel da logo ao fundo */
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  aspect-ratio: 1;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  border: 14px solid transparent;
  background: var(--ring) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  opacity: 0.5;
}
.closing h2 { color: #fff; }
.closing p { max-width: 44ch; font-size: 1.125rem; }
.closing .btn { margin-top: 12px; }

/* Rodapé */
.site-footer {
  background: var(--green);
  color: #E9F0E2;
  padding: 48px 0 24px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
}
.site-footer__inner img { width: 190px; }
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.site-footer__social:hover span { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { margin-left: auto; opacity: 0.8; font-size: 0.95rem; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--cream);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(18, 59, 29, 0.55);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.wa-float:hover { background: var(--green-hover); transform: translateY(-2px); }
.wa-float:active { transform: scale(0.96); }
.wa-float .icon { width: 30px; height: 30px; }

/* Revelação no scroll (só com JS ativo) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Botão do menu (só aparece abaixo de 960px) */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  touch-action: manipulation;
}
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.15s;
}
.menu-toggle__bar { position: relative; }
.menu-toggle__bar::before,
.menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bar::before { transform: translateY(-7px); }
.menu-toggle__bar::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: rotate(45deg); background: var(--green); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: rotate(-45deg); background: var(--green); }

.site-nav__wa { display: none; }

/* Crédito */
.site-footer__credit {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(233, 240, 226, 0.18);
  font-size: 0.875rem;
}
.site-footer__credit a {
  display: inline-block;
  padding: 8px 0;
  color: rgba(233, 240, 226, 0.75);
  text-decoration: none;
}
.site-footer__credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Animações de entrada do hero: só transform/opacity/clip-path, sem JS.
   Opacidade parte de 0.01 (não 0) para o navegador já contar o título e a foto como LCP. */
@keyframes rise {
  from { opacity: 0.01; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes arch-reveal {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0); }
}
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes seal-in {
  from { opacity: 0.01; transform: scale(0.6) rotate(-35deg); }
  to { opacity: 1; transform: none; }
}

.hero__title,
.hero__lead,
.hero__actions,
.rating { animation: rise 0.8s var(--ease-out) both; }
.hero__lead { animation-delay: 0.12s; }
.hero__actions { animation-delay: 0.22s; }
.rating { animation-delay: 0.32s; }
.arch { animation: arch-reveal 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; }
.arch .photo img { animation: settle 1.6s var(--ease-out) 0.1s both; }
.hero__seal { animation: seal-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s both; }

/* Revelação no scroll com cascata */
.flower-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.flower-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.flower-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.quotes .reveal:nth-child(2) { transition-delay: 0.1s; }
.quotes .reveal:nth-child(3) { transition-delay: 0.2s; }

.js .reveal--wipe {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.js .reveal--wipe.is-visible { clip-path: inset(0 -10% 0 0); }

.js .reveal--spin {
  transform: rotate(-40deg) scale(0.85);
  transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out);
}

/* Responsivo */
@media (max-width: 960px) {
  .site-header__inner { gap: 12px; }
  .site-header .btn--small { margin-left: auto; }
  .menu-toggle { display: grid; order: 3; }

  /* Menu mobile: painel que desce do header */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(18, 59, 29, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s;
  }
  .site-nav a {
    padding: 14px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .site-nav__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--green);
    color: #fff;
    font-weight: 600;
  }
  .site-nav .site-nav__wa:hover { color: #fff; background: var(--green-hover); text-decoration: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; width: min(100%, 420px); }
  .hero__seal { left: -12px; width: 92px; height: 92px; }

  .flower-grid { grid-template-columns: 1fr 1fr; }
  .flower--feature { grid-row: auto; grid-column: span 2; }
  .flower--feature .photo { min-height: 0; aspect-ratio: 16 / 10; flex: none; }

  .tradition__inner { grid-template-columns: auto 1fr; }
  .tradition__seal { display: none; }

  .reviews__inner { grid-template-columns: 1fr; }
  .reviews__score { position: static; }

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

@media (max-width: 640px) {
  .site-header__logo img { width: 136px; }
  .site-header .btn--small { display: none; }
  .menu-toggle { margin-left: auto; margin-right: -10px; }
  .site-header__inner { min-height: 64px; }

  .hero__actions .btn { flex: 1 1 100%; }

  .flower-grid { grid-template-columns: 1fr; }
  .flower--feature,
  .flower--wide { grid-column: auto; }
  .flower--wide { flex-direction: column; }
  .flower--wide .photo { flex: none; min-height: 0; aspect-ratio: 1 / 1; }
  .flower--wide .flower__body { padding: 22px 24px 18px; }

  .tradition__inner { grid-template-columns: 1fr; gap: 16px; }

  .visit__media { grid-template-columns: 1fr; }
  .photo--storefront { aspect-ratio: 4 / 5; }
  .map { aspect-ratio: 4 / 3; min-height: 0; }
  .site-footer__copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; clip-path: none; }
  .hero__title, .hero__lead, .hero__actions, .rating,
  .arch, .arch .photo img, .hero__seal { animation: none; }
}
