/* ==========================================================================
   Pitucão · Botanical Garden — custom component layer
   (Tailwind utilities handle layout/colors/spacing; this file adds what
   Tailwind can't do natively: variable-font axes, component classes, grain)
   ========================================================================== */

/* ---------- body atmosphere ---------- */
body {
  background-image:
    radial-gradient(ellipse at top left, rgba(139,165,132,.18), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(196,154,90,.12), transparent 50%);
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 1; opacity: .55;
  mix-blend-mode: multiply;
}
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

/* ---------- variable-font axis helpers (Fraunces) ---------- */
.ff-display-md        { font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 500; }
.ff-display-lite      { font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300; }
.ff-display-headline  { font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400; }
.ff-display-body      { font-variation-settings: "opsz"  36, "SOFT"  80, "wght" 400; }
.ff-display-body-lite { font-variation-settings: "opsz"  36, "SOFT"  80, "wght" 300; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  font-variation-settings: "opsz" 36, "SOFT" 80, "wght" 500;
  letter-spacing: .01em;
  border-radius: 2rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-sm    { padding: .55rem 1rem;  font-size: .9rem; }
.btn-lg    { padding: 1rem 1.8rem;  font-size: 1.1rem; }

.btn-solid { background: #1f3a2a; color: #faf5ea; }
.btn-solid:hover { background: #132418; transform: translateY(-2px); }

.btn-wa:hover { background: #25d366; color: #0b2015; }

.btn-ghost {
  color: #1a1612;
  border-bottom: 1px solid #1a1612;
  border-radius: 0;
  padding: .85rem 0;
  background: transparent;
}
.btn-ghost:hover { color: #b85c3d; border-color: #b85c3d; }

.btn-outline {
  border: 1px solid #faf5ea;
  color: #faf5ea;
  background: transparent;
}
.btn-outline:hover { background: #faf5ea; color: #1f3a2a; }

/* ---------- top nav states ---------- */
#topnav.is-scrolled {
  background: rgba(245,237,224,.9);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(26,22,18,.08);
  box-shadow: 0 6px 24px -18px rgba(26,22,18,.35);
}

.nav-link {
  position: relative;
  padding: .35rem 0;
  transition: color .2s;
  display: inline-block;
}
.nav-link::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: #b85c3d;
  transition: width .3s ease, left .3s ease;
}
.nav-link:hover,
.nav-link.is-active { color: #1f3a2a; }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; left: 0; }

/* mobile menu links */
.mm-link { color: #1a1612; display: inline-block; padding: .25rem 0; }
.mm-link:hover { color: #b85c3d; }

/* hamburger states */
#burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#burger.is-open span:nth-child(2) { opacity: 0; }
#burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- shared display type ---------- */
.section-tag {
  display: inline-block;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #4a3f36;
  padding-bottom: .4rem;
  border-bottom: 1px solid #1a1612;
  margin-bottom: 1.8rem;
}
.section-tag-light { color: #8ba584; border-color: #8ba584; }

.display-h {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}

/* ---------- SERVIÇOS · polaroid cards ---------- */
.svc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.svc-card--alt .polaroid { order: 2; }
@media (max-width: 820px) {
  .svc-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-card--alt .polaroid { order: 0; }
  .svc-card__text { text-align: left; }
}

.svc-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.svc-card__num {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300;
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  color: #b85c3d;
  line-height: 1;
  margin-bottom: .6rem;
  display: block;
}
.svc-card__title {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: #1f3a2a;
  margin: 0 0 1rem;
}
.svc-card__title em {
  display: block;
  font-style: italic;
  color: #b85c3d;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300;
}
.svc-card__pitch {
  font-family: "Caveat", cursive;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: #b85c3d;
  line-height: 1.25;
  margin: 0 0 1.2rem;
  max-width: 30ch;
}
.svc-card__desc {
  color: #4a3f36;
  margin: 0 0 1.8rem;
  max-width: 44ch;
  line-height: 1.6;
}
.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 80, "wght" 500;
  font-size: 1.02rem;
  color: #1f3a2a;
  border-bottom: 1px solid #1f3a2a;
  padding: .3rem 0;
  text-decoration: none;
  transition: color .3s, border-color .3s, padding-right .3s;
}
.svc-card__link span {
  display: inline-block;
  transition: transform .3s;
}
.svc-card__link:hover {
  color: #b85c3d;
  border-color: #b85c3d;
}
.svc-card__link:hover span { transform: translateX(5px); }

/* ---------- Polaroid ---------- */
.polaroid {
  position: relative;
  display: block;
  max-width: 400px;
  width: 100%;
  background: #faf5ea;
  padding: 14px 14px 52px;
  margin: 0 auto;
  box-shadow:
    0 30px 60px -25px rgba(26,22,18,.45),
    0 6px 20px -12px rgba(26,22,18,.25);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.polaroid::before {
  /* washi tape */
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background:
    repeating-linear-gradient(45deg,
      rgba(196,154,90,.55) 0 6px,
      rgba(196,154,90,.35) 6px 12px);
  box-shadow: 0 3px 8px -3px rgba(26,22,18,.3);
  z-index: 3;
  border-radius: 1px;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: saturate(.93) contrast(1.02);
  background: #ede0cc;
}
.polaroid figcaption {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: #1a1612;
  letter-spacing: .01em;
}

/* tilts */
.polaroid--a { transform: rotate(-2.5deg); }
.polaroid--b { transform: rotate(2deg); }
.polaroid--c { transform: rotate(-1.8deg); }
.polaroid--d { transform: rotate(2.5deg); }

.polaroid:hover { transform: rotate(0) scale(1.03); }

@media (max-width: 520px) {
  .polaroid { padding: 10px 10px 44px; max-width: 320px; }
  .polaroid::before { width: 80px; height: 22px; top: -11px; }
  .polaroid figcaption { font-size: 1.15rem; bottom: 10px; }
}

/* ---------- footer helpers ---------- */
.social-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(250,245,234,.2);
  border-radius: 50%;
  color: rgba(250,245,234,.75);
  transition: all .25s;
}
.social-btn:hover {
  background: #faf5ea;
  border-color: #faf5ea;
  color: #132418;
  transform: translateY(-2px);
}

.footer-h {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8ba584;
  margin: 0 0 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(139,165,132,.25);
}
.footer-ul {
  display: flex; flex-direction: column;
  gap: .7rem;
  font-size: .92rem;
  list-style: none;
  padding: 0; margin: 0;
}
.footer-a {
  color: rgba(250,245,234,.75);
  text-decoration: none;
  transition: color .2s, padding-left .25s;
}
.footer-a:hover {
  color: #faf5ea;
  padding-left: .3rem;
}
.footer-label {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c49a5a;
}

/* ---------- scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- selection ---------- */
::selection { background: #b85c3d; color: #faf5ea; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
