:root {
  --color-brand: #2f5d3a;
  --color-deep: #244a2e;
  --color-lime: #c5de6b;
  --color-accent: #6a9416;
  --color-cream: #f4f2ea;
  --color-text: #2b2b2b;
  --color-white: #fff;
  --color-line: rgb(36 74 46 / 0.12);

  --font-main: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-hero: clamp(2.4rem, 1.2rem + 4.4vw, 4.5rem);
  --text-section: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);

  --space-section: clamp(3rem, 2.25rem + 3vw, 5.5rem);
  --space-gutter: clamp(1rem, 4vw, 2rem);
  --radius-card: 1.25rem;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgb(36 74 46 / 0.08);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: clip;
}

img, svg, iframe { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; font-weight: 700; }

.container {
  width: min(100% - 2 * var(--space-gutter), 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--color-deep);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--color-deep);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-normal), color var(--duration-normal);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }

.btn-lime { background: var(--color-lime); color: var(--color-deep); }
.btn-lime:hover { background: #d3e784; }
.btn-outline { border-color: var(--color-deep); color: var(--color-deep); }
.btn-outline:hover { background: var(--color-deep); color: var(--color-white); }

/* Header (sits above the hero blob) */
.site-header {
  position: relative;
  z-index: 10;
  padding-block: 1.25rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 3.25rem; width: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-fast);
}
.main-nav a:not(.btn):hover { border-bottom-color: var(--color-brand); }

/* Hero */
.hero {
  position: relative;
  margin-top: -5.5rem;
  padding-top: 8rem;
  padding-bottom: var(--space-section);
}
.hero-blob {
  position: absolute;
  top: 5.5rem;
  right: 0;
  width: min(46vw, 42rem);
  height: min(48vw, 36rem);
  background: var(--color-brand);
  border-radius: 0 0 0 70% / 0 0 0 90%;
}
.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  color: #3b3b3b;
}
.hero h1 em { color: var(--color-accent); font-style: italic; font-weight: 800; }
.hero-lead { max-width: 32rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-photo {
  width: min(100%, 26rem);
  aspect-ratio: 345 / 328;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 58% 42% 55% 45% / 50% 55% 45% 50%;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.2);
  border: 0.5rem solid rgb(255 255 255 / 0.9);
}

/* Sections */
.section { padding-block: var(--space-section) 0; }
.section-title { font-size: var(--text-section); color: #2f2f2f; margin-bottom: 1.25rem; }

.panel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}
.cards {
  grid-column: span 2;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card, .info-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card {
  padding: 1.25rem;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.card:hover { transform: translateY(-4px); }
.card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: center;
}
.card-wide .card-icon { grid-row: span 2; margin-bottom: 0; }
.card-wide h3, .card-wide p { grid-column: 2; }
.card-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.9rem;
  background: var(--color-lime);
  border-radius: 50%;
  color: var(--color-deep);
}
.card-icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.card p { margin: 0; font-size: 0.9rem; color: #4a4a4a; }

.info-card { padding: 1.25rem; display: flex; flex-direction: column; }
.info-card h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.9rem;
}
.hours li:last-child { border-bottom: 0; }
.hours strong { font-weight: 600; white-space: nowrap; }
address { font-style: normal; font-size: 0.9rem; margin-bottom: 1rem; }
.map-frame {
  flex: 1;
  min-height: 11rem;
  width: 100%;
  border: 0;
  border-radius: 0.9rem;
}

/* Company data */
.company {
  margin-top: var(--space-section);
  padding-block: 2.5rem;
  text-align: center;
  background: var(--color-deep);
  color: var(--color-white);
}
.company h2 { font-size: var(--text-section); color: var(--color-white); margin-bottom: 1rem; }
.company-list {
  margin: 0 auto;
  max-width: 44rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}
.company-list div { display: block; }
.company-list dt { display: inline; color: var(--color-lime); font-weight: 600; }
.company-list dt::after { content: ": "; }
.company-list dd { display: inline; margin: 0; }
.company-list a { text-decoration-color: var(--color-lime); text-underline-offset: 3px; }

/* Legal */
.legal { padding-block: var(--space-section) 0; }
.legal-block { max-width: 48rem; margin: 0 auto 2rem; }
.legal-block h2 { font-size: 1.35rem; }
.legal-block p { font-size: 0.92rem; }

.legal-page { padding-block: 2rem 0; min-height: 60vh; }
.legal-title { font-size: var(--text-section); max-width: 48rem; margin: 0 auto 0.25rem; }
.legal-updated { max-width: 48rem; margin: 0 auto 2rem; font-size: 0.85rem; opacity: 0.7; }
.legal-block { scroll-margin-top: 2rem; }

/* Footer */
.site-footer { margin-top: var(--space-section); padding-block: 1.75rem; border-top: 1px solid var(--color-line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.social { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 500; }
.social svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.footer-meta { flex-basis: 100%; margin: 0; font-size: 0.8rem; opacity: 0.7; }

@media (max-width: 64rem) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-column: 1 / -1; }
}

@media (max-width: 52rem) {
  .hero { margin-top: 0; padding-top: 1rem; }
  .hero-blob { width: 100%; height: 22rem; border-radius: 0 0 50% 50% / 0 0 18% 18%; top: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(78%, 18rem); margin-top: 1rem; }
  .hero-text { margin-top: 1rem; }
  .main-nav li:not(:last-child) { display: none; }
  .logo img { height: 2.75rem; }
}

@media (max-width: 36rem) {
  .panel-grid, .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .btn-prefix { display: none; }
  .main-nav .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; white-space: nowrap; }
  .hero-actions .btn, .hero-actions .btn-outline { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================================
   Motion (só transform + opacity)
   ===================================================================== */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Entrada do hero: uma vez por visita, em cascata */
.site-header  { animation: fade 400ms ease-out both; }
.eyebrow      { animation: rise 600ms var(--ease-out) both; }
.hero h1      { animation: rise 600ms var(--ease-out) 80ms both; }
.hero-lead    { animation: rise 600ms var(--ease-out) 140ms both; }
.hero-actions { animation: rise 600ms var(--ease-out) 200ms both; }
.hero-blob    { animation: slide-in-right 800ms var(--ease-out) both; }
.hero-photo   { animation: slide-in-right 700ms var(--ease-out) 150ms both; }
.legal-title, .legal-updated { animation: rise 500ms var(--ease-out) both; }

/* Botões "ouvem" o clique */
.btn { transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }

/* Hover so em mouse */
.card { transition: transform 200ms var(--ease-out), border-color 200ms ease; }
.card-icon { transition: transform 200ms var(--ease-out); }
@media (hover: none) {
  .btn:hover, .card:hover { transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: #cfd6b8; }
  .card:hover .card-icon { transform: scale(1.06); }
}

/* Reveal ao rolar (CSS puro). "backwards" devolve o controle ao hover depois da entrada */
@supports (animation-timeline: view()) {
  .section-title,
  .card,
  .info-card,
  .company .container {
    animation: rise ease-out backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* Movimento reduzido: so opacidade, sem deslocamento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-blob, .hero-photo, .legal-title, .legal-updated { animation-name: fade; }
  @supports (animation-timeline: view()) {
    .section-title, .card, .info-card, .company .container { animation-name: fade; }
  }
  .btn:active, .btn:hover, .card:hover, .card:hover .card-icon { transform: none; }
}

/* =====================================================================
   Botões flutuantes (somente mobile): ligar + WhatsApp
   ===================================================================== */
.fab { display: none; }
@media (max-width: 52rem) {
  .main-nav { display: none; }                 /* o botão do topo sai; os redondos assumem */
  .site-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .fab {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: rise 500ms var(--ease-out) 700ms both;
  }
  .fab-btn {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
    transition: transform 160ms var(--ease-out);
  }
  .fab-btn:active { transform: scale(0.94); }
  .fab-btn svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
  .fab-whatsapp { background: var(--color-lime); color: var(--color-deep); }
  .fab-call { background: var(--color-deep); color: var(--color-white); }
}
@media (prefers-reduced-motion: reduce) {
  .fab { animation-name: fade; }
  .fab-btn:active { transform: none; }
}

