/* ---------------------------------------------------------
   Tokens (paleta do site rafaelacecco.com)
--------------------------------------------------------- */
:root {
  --bg: #FFFFFF;
  --sage: #80917D;         /* cor principal do site original */
  --sage-600: #6D8069;
  --green: #5C7258;        /* verde escuro dos textos em destaque */
  --green-hover: #4B5F48;
  --sage-tint: #E2E6E1;    /* sálvia a 23% sobre branco */
  --sage-mid: #B8C1B6;     /* sálvia a 56% sobre branco */
  --sage-bg: #9FAC9C;      /* sálvia a 74% sobre branco */
  --stone: #EEEDEB;
  --taupe: #767261;
  --dark: #222622;
  --ink: #222622;
  --ink-soft: #5B625A;
  --line: rgba(34, 38, 34, 0.12);

  --frame-bg: var(--sage-tint);
  --num: var(--sage-600);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --radius: 2px;
  --header-h: 84px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   Reset & base
--------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--green);
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 60ch; }

a { color: inherit; }

strong { color: var(--ink); font-weight: 500; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 12px;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover { background: var(--green-hover); }
.btn:hover::after { transform: translateX(5px); }

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

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px -18px rgba(44, 51, 45, 0.35);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
}

.brand img { transition: height 0.3s var(--ease-out); }
.is-scrolled .brand img { height: 52px; }

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

.brand img {
  height: 60px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta) {
  position: relative;
  padding: 6px 0;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover { color: var(--green); }
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav a.is-active { color: var(--green); }

.nav-cta {
  border: 1px solid var(--green);
  color: var(--green) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--green); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1.5px;
  background: var(--green);
}

/* ---------------------------------------------------------
   Layout: blocos de texto + foto
--------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 96px;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split + .split { margin-top: 120px; }

.split-steps { align-items: start; }

.photo {
  position: relative;
  isolation: isolate;
}

/* Moldura deslocada atrás da foto */
.photo::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  background: var(--frame-bg);
  border-radius: var(--radius);
  z-index: -1;
  transition: transform 0.6s var(--ease-out);
}

.split-reverse > .photo::before { inset: 28px 28px -28px -28px; }

.photo:hover::before { transform: translate(-6px, -6px); }
.split-reverse > .photo:hover::before { transform: translate(6px, -6px); }

.photo-frame {
  overflow: hidden;
  border-radius: var(--radius);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  scale: 1.1;
  transition: scale 1.2s var(--ease-out);
}

.photo:hover img { scale: 1.14; }

.photo-landscape img { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  position: relative;
  padding: 72px 0 120px;
  background: linear-gradient(90deg, var(--bg) 0 62%, var(--sage-tint) 62% 100%);
  --frame-bg: var(--sage-mid);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1px solid var(--sage);
  border-radius: 12px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--green);
  animation: scroll-cue 1.8s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

.split-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.photo-hero img {
  aspect-ratio: 3 / 4;
  object-position: 60% 30%;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-bottom: 20px;
}

.h1-sub {
  display: block;
  margin-top: 0.35em;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.lead {
  font-size: 1.12rem;
  color: var(--ink);
}

.hero-content .lead { margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */
.section { padding: 128px 0; }

/* Fundos das seções, como no site original */
.section-tint {
  background: var(--sage-tint);
  --frame-bg: var(--sage-mid);
}

.section-stone {
  background: var(--stone);
  --frame-bg: var(--sage-tint);
  --num: var(--taupe);
}

.section-dark {
  background: var(--dark);
  --frame-bg: var(--green);
  --num: var(--sage-mid);
  --line: rgba(238, 237, 235, 0.16);
}
.section-dark h2 { color: var(--sage-mid); }
.section-dark p { color: rgba(238, 237, 235, 0.8); }

.section-sage {
  background: var(--sage-bg);
  --frame-bg: var(--stone);
  --num: var(--dark);
  --line: rgba(34, 38, 34, 0.2);
}
.section-sage h2 { color: var(--dark); }
.section-sage p { color: var(--dark); }
.section-sage .btn { background: var(--dark); border-color: var(--dark); }
.section-sage .btn:hover { background: #000; }
.section-sage .contact-info dt { color: rgba(34, 38, 34, 0.72); }
.section-sage .contact-info dd a:hover { border-color: var(--dark); }

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--num);
}

.section-index::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}

.line-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.line-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  max-width: 60ch;
}

.note {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--green);
}

.steps {
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
}

.steps > li {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps > li:last-child { border-bottom: 1px solid var(--line); }

.steps > li:hover .step-num { color: var(--green); }

.section-stone .steps > li {
  padding: 22px 24px;
  margin-bottom: 12px;
  background: var(--bg);
  border: 0;
  border-left: 2px solid var(--taupe);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}
.section-stone .steps > li:hover {
  transform: translateX(6px);
  box-shadow: 0 14px 30px -22px rgba(34, 38, 34, 0.45);
}

/* Destaque dos quadros atendidos na avaliação */
.callout {
  margin-top: 16px;
  padding: 8px 28px;
  background: var(--sage-tint);
  border: 0;
  border-left: 2px solid var(--sage);
}
.callout li:last-child { border-bottom: 0; }

.line-list li { position: relative; }

.line-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.line-list li:hover::before { transform: scaleX(1); }

.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  font-variant-numeric: lining-nums;
  color: var(--num);
  min-width: 32px;
  transition: color 0.3s ease;
}

#avaliacao .step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--green);
  font-size: 1.2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
#avaliacao .steps > li:hover .step-num { background: var(--sage); color: #fff; }

.step-title {
  margin: 0 0 6px;
  font-weight: 500;
  color: var(--ink);
}

.step-desc {
  margin: 0;
  font-size: 0.95rem;
}

.step-items {
  margin: 0;
  padding-left: 18px;
}

.step-items li {
  padding: 2px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Contato */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-info dt {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}

.contact-info dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-info dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.contact-info dd a:hover { border-color: var(--green); }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  padding: 48px 0;
  background: var(--stone);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-row img {
  height: 72px;
  width: auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
  max-width: none;
}

/* ---------------------------------------------------------
   Botão flutuante do WhatsApp
--------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border-radius: 28px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(44, 51, 45, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), background-color 0.2s ease;
}

.whatsapp-float.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.whatsapp-float:hover { background: var(--green-hover); }

.whatsapp-float svg { width: 24px; height: 24px; flex: none; }

.whatsapp-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: max-width 0.4s var(--ease-out), margin 0.4s var(--ease-out);
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  max-width: 180px;
  margin-left: 10px;
}

/* Anel pulsante para chamar atenção */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--green);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* ---------------------------------------------------------
   Animações de entrada (só com JS e sem "reduzir movimento")
--------------------------------------------------------- */
.has-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s var(--ease-out) var(--delay, 0ms),
    transform 0.9s var(--ease-out) var(--delay, 0ms);
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.has-motion .reveal-photo .photo-frame {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-out);
}

.has-motion .reveal-photo img { scale: 1.25; }

.has-motion .reveal-photo::before {
  opacity: 0;
  transition: opacity 1s ease 0.6s, transform 0.6s var(--ease-out);
}

.has-motion .reveal-photo.is-visible .photo-frame { clip-path: inset(0 0 0 0); }
.has-motion .reveal-photo.is-visible img { scale: 1.1; }
.has-motion .reveal-photo.is-visible:hover img { scale: 1.14; }
.has-motion .reveal-photo.is-visible::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .photo img { scale: 1; }
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .split { gap: 64px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .wrap { padding: 0 20px; }
  .brand img { height: 50px; }

  .split,
  .split-reverse,
  .split-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .split + .split { margin-top: 80px; }

  /* Em telas pequenas, a foto sempre vem depois do texto */
  .split-reverse > .photo { order: 2; }

  .photo img { aspect-ratio: 4 / 5; max-height: 560px; }
  .photo-landscape img { aspect-ratio: 4 / 3; }

  .section { padding: 80px 0; }
  .hero {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, var(--bg) 0 58%, var(--sage-tint) 58% 100%);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }
  .nav-cta {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-toggle { display: flex; }

  .footer-row { flex-direction: column; text-align: center; }

  .photo::before,
  .split-reverse > .photo::before { inset: 14px -10px -14px 10px; }
  .scroll-cue { display: none; }
  .whatsapp-float { right: 16px; bottom: 16px; }
  .site-nav a:not(.nav-cta) { padding: 18px 20px; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .is-scrolled .brand img { height: 50px; }
  .site-footer p { text-align: center; }
}

@media (max-width: 560px) {
  .contact-info { grid-template-columns: 1fr; }
}
