:root {
  --green-deep: #143d32;
  --green-mid: #1f5c4a;
  --charcoal: #1c2421;
  --ink: #24302c;
  --paper: #f4f7f5;
  --mist: #e4ece8;
  --lime: #c5e84a;
  --teal: #1a9b8e;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --space: clamp(1rem, 3vw, 2.5rem);
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(26, 155, 142, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(197, 232, 74, 0.18), transparent 50%),
    linear-gradient(165deg, var(--paper) 0%, var(--mist) 55%, #dce8e2 100%);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-mid);
}

h1,
h2,
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin: 0 0 0.75rem;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

/* —— Hero: one composition, full-bleed —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(20, 61, 50, 0.88) 0%, rgba(28, 36, 33, 0.55) 48%, rgba(28, 36, 33, 0.25) 100%),
    linear-gradient(to top, rgba(20, 61, 50, 0.75) 0%, transparent 45%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--space) * 1.5) var(--space) calc(var(--space) * 2);
  max-width: 40rem;
  animation: rise-in 0.9s var(--ease) both;
}

.brand {
  margin: 0 0 0.85rem;
  font-size: clamp(2.75rem, 8vw, 5rem);
  color: var(--lime);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  color: var(--white);
  max-width: 16ch;
}

.hero__support {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 32rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--lime);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: #d4f05c;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1.1rem;
}

/* —— Sections —— */
.section {
  display: grid;
  gap: var(--space);
  padding: calc(var(--space) * 2.25) var(--space);
  max-width: var(--max);
  margin: 0 auto;
}

.section--split,
.section--about,
.section--extra,
.section--contact {
  align-items: center;
}

.section__visual {
  margin: 0;
  min-width: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

/* Fotos de produto: mostrar imagem inteira (sem crop nas laterais) */
.section__visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.section--sizes {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--sizes .section__intro,
.section--sizes .size-list {
  padding-left: var(--space);
  padding-right: var(--space);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section--sizes .section__visual--wide {
  max-width: min(100%, 90rem);
  margin: 0 auto;
  padding: 0 var(--space);
  background: transparent;
}

.section--sizes .section__visual--wide img {
  object-position: center bottom;
}

.size-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.size-list li {
  padding: 0.85rem 0.5rem;
  text-align: center;
  background: linear-gradient(145deg, var(--green-deep), var(--green-mid));
  color: var(--white);
  border-radius: 2px;
}

.section--contact {
  margin-bottom: calc(var(--space) * 1.5);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact__lead {
  margin-bottom: 1rem;
}

.contact__address {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 22rem;
}

.contact__label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact__map {
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__photo {
  background: transparent;
}

.contact__photo img {
  object-position: center top;
}

.footer {
  padding: var(--space);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.95rem;
}

.footer p {
  margin: 0.35rem auto;
  max-width: none;
}

.footer a {
  color: var(--lime);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer strong {
  color: var(--white);
  font-family: var(--font-display);
}

.footer__disclaimer {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

/* —— Motion: reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .section--split,
  .section--extra {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .section--about,
  .section--contact {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .size-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 92svh;
  }

  .size-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section--about .section__visual {
    order: -1;
  }
}

/* —— Lixinho: mascote fixo no canto; só os olhos seguem o mouse —— */
.lixinho {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: auto;
  top: auto;
  z-index: 9999;
  display: block;
  width: clamp(132px, 26vw, 188px);
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 0;
  text-decoration: none;
  pointer-events: auto;
  filter: drop-shadow(0 12px 22px rgba(20, 61, 50, 0.36));
  transition: filter 0.28s ease;
}

.lixinho:hover .lixinho__svg,
.lixinho:focus-visible .lixinho__svg {
  transform: rotate(-10deg) scale(1.06);
}

.lixinho:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 12px 22px rgba(20, 61, 50, 0.36))
    drop-shadow(0 0 0 3px rgba(197, 232, 74, 0.85));
}

.lixinho__svg {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-8deg);
  transform-origin: 55% 85%;
  transition: transform 0.28s var(--ease);
  animation: lixinho-bob 3.2s var(--ease) infinite;
}

.lixinho__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: lixinho-blink 4.8s ease-in-out infinite;
}

.lixinho__eye--right {
  animation-delay: 0.12s;
}

@keyframes lixinho-bob {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-7px);
  }
}

@keyframes lixinho-blink {
  0%,
  42%,
  48%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__img,
  .hero__content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .lixinho__svg,
  .lixinho__eye {
    animation: none !important;
  }

  .lixinho:hover .lixinho__svg,
  .lixinho:focus-visible .lixinho__svg {
    transform: rotate(-8deg);
  }
}

.lixinho--calm .lixinho__eye,
.lixinho--calm .lixinho__svg {
  animation: none;
}

.lixinho--calm .lixinho__svg {
  transform: rotate(-8deg);
}

/* —— Exit-intent: Lixinho pede pra ficar —— */
.exit-intent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.exit-intent[hidden] {
  display: none;
}

.exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 36, 33, 0.62);
  backdrop-filter: blur(2px);
  border: 0;
  cursor: pointer;
  animation: exit-fade 0.28s var(--ease) both;
}

.exit-intent__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 6px;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(197, 232, 74, 0.22), transparent 55%),
    linear-gradient(165deg, var(--paper) 0%, var(--mist) 100%);
  color: var(--ink);
  box-shadow: 0 24px 48px rgba(20, 61, 50, 0.28);
  text-align: center;
  animation: exit-pop 0.38s var(--ease) both;
}

.exit-intent__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--charcoal);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.exit-intent__close:hover,
.exit-intent__close:focus-visible {
  background: rgba(20, 61, 50, 0.1);
  outline: none;
}

.exit-intent__face {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 8px 14px rgba(20, 61, 50, 0.22));
}

.exit-intent__face svg {
  display: block;
  transform: rotate(-6deg);
}

.exit-intent__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  max-width: none;
}

.exit-intent__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  max-width: none;
}

.exit-intent__text {
  margin: 0 auto 1.35rem;
  max-width: 28ch;
  font-size: 1.05rem;
}

.exit-intent__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.exit-intent__dismiss {
  background: transparent;
  border-color: rgba(28, 36, 33, 0.22);
  color: var(--charcoal);
  cursor: pointer;
}

.exit-intent__dismiss:hover {
  border-color: var(--green-mid);
  background: rgba(31, 92, 74, 0.08);
}

body.exit-intent-open {
  overflow: hidden;
}

@keyframes exit-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes exit-pop {
  from {
    opacity: 0;
    transform: translateY(0.85rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .exit-intent__backdrop,
  .exit-intent__panel {
    animation: none !important;
  }
}
