/* Flores Sena — BIO PRIME
   Linho da logo como fundo, cacau da arte do condicional para texto e ação,
   taupe da rosa só para linhas e detalhes. */

:root {
  --linho: #EADFD2;
  --po: #F5EEE6;
  --cacau: #3E2A22;
  --cacau-acao: #5E4234;
  --cacau-press: #4B3328;
  --texto-suave: #654C3F;
  --taupe: #A0845F;
  --taupe-forte: #8A6E50;
  --creme-botao: #F8F2EA;
  --aberto: #5F7446;

  --font-title: "Marcellus", "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 450ms;
  --motion-stem: 700ms;
  --motion-signature: 850ms;

  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-grow: cubic-bezier(0.45, 0, 0.2, 1);

  --shift-sm: 6px;
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  --measure: 520px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-sm: 0px;
    --press-scale: 1;
    --motion-stem: 0ms;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--linho);
  color: var(--cacau);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--cacau);
  color: var(--creme-botao);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: calc(12px + var(--safe-top)); }

/* ---------- Botões ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}

.btn i { font-size: 20px; flex: none; }

.btn-primary {
  background: var(--cacau-acao);
  color: var(--creme-botao);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 232, 0.14),
    0 10px 22px -14px rgba(62, 42, 34, 0.7);
}

.btn-primary:active {
  transform: scale(var(--press-scale));
  background: var(--cacau-press);
  box-shadow: inset 0 1px 0 rgba(255, 244, 232, 0.1), 0 4px 10px -8px rgba(62, 42, 34, 0.6);
}

.btn-quiet {
  background: transparent;
  color: var(--cacau);
  border: 1px solid var(--taupe-forte);
  font-weight: 500;
}

.btn-quiet i { color: var(--taupe-forte); }

.btn-quiet small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--texto-suave);
}

.btn-quiet:active {
  transform: scale(var(--press-scale));
  background: rgba(160, 132, 95, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--cacau-press); }
  .btn-quiet:hover { background: rgba(160, 132, 95, 0.1); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: var(--measure);
  margin: 0 auto;
  padding: calc(28px + var(--safe-top)) var(--gutter) 28px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

/* luz suave atrás da logo: a profundidade vem de luz, não de movimento */
.hero-light {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(-40px + var(--safe-top));
  width: 100%;
  aspect-ratio: 1 / 0.9;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(250, 245, 238, 0.95), rgba(250, 245, 238, 0.4) 55%, rgba(250, 245, 238, 0));
  pointer-events: none;
}

.logo-stage {
  position: relative;
  width: min(64vw, 248px);
  margin: 0 auto 26px;
}

.logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 9vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 auto 14px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero-title .line > span { display: inline-block; }

/* ---------- Entrada do hero (signature) ----------
   Letras FS e nome já estão na tela no primeiro paint (LCP).
   O ramo cresce do pé do S até a rosa, a rosa abre, o fio se estende
   e a frase sobe por linha. Os botões nunca esperam. */

.js .hero-light,
.js .logo-ramo,
.js .logo-flor,
.js .logo-fio,
.js .hero-title .line > span {
  animation-duration: var(--motion-signature);
  animation-fill-mode: both;
  animation-play-state: paused;
}

.js .hero-light {
  animation-name: fs-light;
  animation-duration: 900ms;
  animation-timing-function: var(--ease-emphasis);
}

.js .logo-ramo {
  animation-name: fs-ramo;
  animation-timing-function: var(--ease-grow);
  animation-delay: 80ms;
}

.js .logo-flor {
  transform-origin: 60.9% 20.3%;
  animation-name: fs-flor;
  animation-duration: 520ms;
  animation-timing-function: var(--ease-emphasis);
  animation-delay: 700ms;
}

.js .logo-fio {
  animation-name: fs-fio;
  animation-duration: 520ms;
  animation-timing-function: var(--ease-enter);
  animation-delay: 760ms;
}

.js .hero-title .line > span {
  animation-name: fs-line;
  animation-duration: 650ms;
  animation-timing-function: var(--ease-enter);
  animation-delay: 200ms;
}

.js .hero-title .line + .line > span { animation-delay: 290ms; }

.js .hero.is-playing .hero-light,
.js .hero.is-playing .logo-layer,
.js .hero.is-playing .hero-title .line > span {
  animation-play-state: running;
}

.hero-static .hero-light,
.hero-static .logo-layer,
.hero-static .hero-title .line > span {
  animation: none;
}

@keyframes fs-light {
  from { opacity: 0.35; transform: translateX(-50%) scale(0.92); }
}

@keyframes fs-ramo {
  from { clip-path: inset(100% 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes fs-flor {
  from { opacity: 0; transform: scale(0.62) rotate(-10deg); }
}

@keyframes fs-fio {
  from { clip-path: inset(0 50% 0 50%); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes fs-line {
  from { transform: translateY(105%); }
}

@keyframes fs-fade {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* sem crescimento, escala ou deslocamento: o ramo, a rosa e o fio só aparecem */
  .js .logo-ramo,
  .js .logo-flor,
  .js .logo-fio {
    animation-name: fs-fade;
    animation-duration: var(--motion-emphasis);
    animation-timing-function: linear;
    animation-delay: 0ms;
  }
  .js .hero-light,
  .js .hero-title .line > span { animation: none; }
}

.hero-sub {
  color: var(--texto-suave);
  max-width: 34ch;
  margin: 0 auto 26px;
  text-wrap: pretty;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

/* ---------- Horário ---------- */

.info {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4px var(--gutter) 40px;
}

.open-status { display: none; }

.js .open-status {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 22px;
  padding: 8px 16px;
  background: var(--po);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}

.open-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--taupe);
  flex: none;
}

.open-status.is-open .open-dot { background: var(--aberto); }

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--texto-suave);
  font-size: 15px;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.info-list i {
  width: 18px;
  flex: none;
  text-align: center;
  color: var(--taupe-forte);
}

/* ---------- Condicional ---------- */

.cond {
  background: var(--po);
  padding: 52px var(--gutter) 44px;
}

.cond > * {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.cond-head { margin-bottom: 34px; }

.cond h2,
.visit h2 {
  font-family: var(--font-title);
  font-size: clamp(28px, 7.6vw, 34px);
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: balance;
}

.cond-head p,
.visit > p:not(.closing) {
  color: var(--texto-suave);
  max-width: 38ch;
}

.steps {
  position: relative;
  list-style: none;
  margin: 0 auto 30px;
  padding: 0;
}

/* linha simples enquanto o caule não é desenhado (sem JS ou sem suporte) */
.steps::before {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 22px;
  bottom: 96px;
  width: 1px;
  background: var(--taupe);
  opacity: 0.6;
}

.steps.stem-ready::before { display: none; }

.stem {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  overflow: visible;
  pointer-events: none;
}

.stem path {
  fill: none;
  stroke: var(--taupe);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stem .seg {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--motion-stem) var(--ease-standard);
}

.stem .seg.is-drawn { stroke-dashoffset: 0; }

.stem .leaf {
  opacity: 0;
  transition: opacity var(--motion-emphasis) var(--ease-enter);
  transition-delay: calc(var(--motion-stem) * 0.6);
}

.stem .leaf.is-drawn { opacity: 1; }

.step {
  position: relative;
  padding: 0 0 30px 60px;
}

.step h3 {
  font-family: var(--font-title);
  font-size: 21px;
  line-height: 1.25;
  padding-top: 7px;
  margin-bottom: 6px;
}

.step p {
  color: var(--texto-suave);
  max-width: 40ch;
}

.step strong { color: var(--cacau); font-weight: 600; }

.step-mark {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--taupe-forte);
  border-radius: 50%;
  background: var(--po);
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1;
  color: var(--cacau);
}

.step-last { padding-bottom: 0; }

.step-rose {
  position: absolute;
  z-index: 1;
  left: 2px;
  top: -6px;
  width: 42px;
  transform-origin: 10% 95%;
}

.js .steps.stem-ready .step-rose {
  opacity: 0;
  transform: scale(0.82) rotate(-6deg);
  transition:
    opacity var(--motion-scene) var(--ease-enter),
    transform var(--motion-scene) var(--ease-emphasis);
}

.js .steps.stem-ready .step-rose.is-open {
  opacity: 1;
  transform: none;
}

.btn-wide { max-width: var(--measure); }

/* combinados */

.rules { margin-top: 40px; }

.rules-title {
  font-family: var(--font-title);
  font-size: 22px;
  margin-bottom: 8px;
}

.rule { border-top: 1px solid rgba(138, 110, 80, 0.4); }
.rule:last-child { border-bottom: 1px solid rgba(138, 110, 80, 0.4); }

.rule summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 2px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--motion-fast) var(--ease-standard);
}

.rule summary::-webkit-details-marker { display: none; }

.rule summary i {
  flex: none;
  font-size: 14px;
  color: var(--taupe-forte);
  transition: transform var(--motion-standard) var(--ease-standard);
}

.rule summary:active { color: var(--cacau-acao); }

.rule[open] summary i { transform: rotate(45deg); }

.rule-body {
  padding: 0 2px 18px;
  color: var(--texto-suave);
  max-width: 44ch;
}

.rule[open] .rule-body {
  animation: rule-in var(--motion-standard) var(--ease-enter);
}

@keyframes rule-in {
  from { opacity: 0; transform: translateY(calc(var(--shift-sm) * -1)); }
}

/* ---------- Visita ---------- */

.visit {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 52px var(--gutter) 36px;
}

.visit .btn { margin-top: 22px; }

.closing {
  margin-top: 48px;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.35;
  text-align: center;
  color: var(--taupe-forte);
  text-wrap: balance;
}

/* ---------- Rodapé ---------- */

.foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px var(--gutter) calc(32px + var(--safe-bottom));
  text-align: center;
}

.js .foot { padding-bottom: calc(108px + var(--safe-bottom)); }

.foot-mark {
  width: 44px;
  margin: 0 auto 18px;
}

.foot-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 6px;
  font-weight: 500;
  text-decoration: none;
}

.foot-links i { color: var(--taupe-forte); font-size: 18px; }

.copy {
  font-size: 13px;
  color: var(--texto-suave);
}

/* ---------- Barra de WhatsApp ---------- */

.cta-bar { display: none; }

.js .cta-bar {
  display: block;
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px var(--gutter) calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, var(--linho) 62%, rgba(234, 223, 210, 0));
  transform: translateY(110%);
  visibility: hidden;
  transition:
    transform var(--motion-emphasis) var(--ease-exit),
    visibility 0s linear var(--motion-emphasis);
}

.js .cta-bar.is-visible {
  transform: none;
  visibility: visible;
  transition:
    transform var(--motion-emphasis) var(--ease-enter),
    visibility 0s;
}

.cta-bar .btn {
  max-width: var(--measure);
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .js .cta-bar {
    transform: none;
    opacity: 0;
    transition: opacity var(--motion-standard) linear, visibility 0s linear var(--motion-standard);
  }
  .js .cta-bar.is-visible {
    opacity: 1;
    transition: opacity var(--motion-standard) linear, visibility 0s;
  }
  .js .steps.stem-ready .step-rose { transform: none; }
}

/* ---------- Telas maiores ---------- */

@media (min-width: 760px) {
  .hero { padding-top: calc(56px + var(--safe-top)); }
  .cond { padding-top: 72px; padding-bottom: 64px; }
}
