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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: #c36;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--purple);
  color: #fff;
  padding: 8px 12px;
}

.wrap {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 0.3% 8%;
  gap: 12px;
}

.header-inner > nav {
  flex: 1;
  display: flex;
}

.logo {
  display: block;
  flex: 0 0 15%;
  max-width: 190px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-desktop {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  display: inline-block;
  padding: 8px 11px;
  color: var(--ink);
  font-family: var(--gotham);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--green);
}

.nav-desktop a[aria-current="page"] {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-panel {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
}

.mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}

.mobile-panel a {
  display: block;
  padding: 12px 24px;
  color: var(--ink);
  font-family: var(--gotham);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-panel a[aria-current="page"] {
  color: var(--purple);
}

.page-title {
  width: min(var(--container), calc(100% - 20px));
  margin: 36px auto 18px;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: #333;
}

.hero-slider {
  position: relative;
  height: 550px;
  overflow: hidden;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.slide.is-active .ken .slide-bg {
  animation: kenburns 10s linear forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: #00000054;
  mix-blend-mode: color-burn;
}

.slide-title {
  position: relative;
  z-index: 2;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  text-align: center;
  color: #fff;
  font-family: var(--poppins);
  font-size: 2em;
  font-weight: 600;
  line-height: 39px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.slider-arrow svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.slider-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slider-dots button[aria-current="true"] {
  background: #fff;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container);
  min-height: 493px;
  margin: -10px auto;
}

.about-photo {
  background: url("/assets/img/sobre.webp") center center / cover no-repeat;
  min-height: 280px;
}

.about-copy {
  padding: 36px 40px 28px 36px;
  font-family: var(--poppins);
}

.kicker {
  margin: 0 0 8px;
  color: #000;
  font-family: var(--poppins);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.display {
  margin: 0 0 20px;
  color: var(--purple);
  font-family: var(--poppins);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
}

.about-copy p,
.prose p {
  margin: 0 0 1em;
  font-size: 16px;
  font-weight: 400;
}

.about-copy p {
  color: #000;
  text-align: justify;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: var(--poppins);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  filter: brightness(1.08);
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
  margin: 0 0 50px;
  padding: 80px 24px;
  background: #111;
  text-align: center;
}

.cta-bg {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 100%;
  height: 170%;
  top: -35%;
  background: url("/assets/img/cta.webp") center center / cover no-repeat;
  will-change: transform;
}

.cta.cta-flush {
  margin-bottom: 0;
}

.cta::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #000;
  opacity: 0.5;
}

.cta-inner {
  position: relative;
  z-index: 2;
  width: min(750px, 100%);
}

.cta h2 {
  margin: 0 0 22px;
  color: #fff;
  font-family: var(--poppins);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
}

.flips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: min(var(--container), calc(100% - 32px));
  margin: 50px auto;
}

.flip {
  min-height: 230px;
  perspective: 1000px;
  border-radius: 15px;
}

.flip-inner {
  position: relative;
  min-height: 230px;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip:hover .flip-inner,
.flip:focus-within .flip-inner,
.flip.is-flipped .flip-inner {
  transform: rotateX(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 18px;
  border-radius: 15px;
  backface-visibility: hidden;
  text-align: center;
}

.flip-front {
  background: var(--card);
}

.flip-back {
  background: var(--purple);
  transform: rotateX(180deg);
}

.flip-front svg {
  width: 48px;
  height: 48px;
  fill: var(--green);
}

.flip-front h3 {
  margin: 0;
  color: #000;
  font-family: var(--poppins);
  font-size: 1.3em;
  font-weight: 600;
  line-height: 26px;
}

.site-footer {
  background: var(--purple);
  padding: 30px 0;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.footer-logo {
  width: min(280px, 100%);
  height: auto;
}

.site-footer h2 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: var(--poppins);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
}

.site-footer li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--poppins);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.site-footer li svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  fill: var(--green);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.lead-img {
  display: block;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 10px;
  height: auto;
}

.block {
  width: min(var(--container), calc(100% - 32px));
  margin: 50px auto;
  font-family: var(--poppins);
}

.prose p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 30px;
}

.split h2 {
  margin: 0 0 16px;
  color: var(--purple);
  font-family: var(--poppins);
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.25;
}

.split p {
  margin: 0 0 1em;
  color: var(--muted);
  font-family: var(--poppins);
  font-size: 16px;
}

.split img {
  width: 100%;
  height: auto;
}

.places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: min(var(--container), calc(100% - 32px));
  margin: 30px auto;
}

.places h2 {
  margin: 0 0 8px;
  color: var(--purple);
  font-family: var(--poppins);
  font-size: 1.7em;
  font-weight: 600;
}

.places .addr {
  margin: 0 0 12px;
  color: #000;
  font-family: var(--poppins);
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.35;
}

.places iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
  width: min(var(--container), calc(100% - 32px));
  margin: 30px auto;
}

.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 15px;
  min-height: 200px;
  padding: 20px;
  background: var(--card);
  text-align: center;
}

.icon-box svg {
  width: 48px;
  height: 48px;
  fill: var(--green);
}

.icon-box a,
.icon-box p {
  margin: 0;
  color: #000;
  font-family: var(--poppins);
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
}

.wa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wa-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 7px 0;
}

.wa-list svg {
  width: 22px;
  height: 22px;
  fill: var(--green);
}

.wa-list a {
  color: #000;
  font-family: var(--poppins);
  font-size: 1.3em;
  font-weight: 600;
  text-decoration: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(var(--container), calc(100% - 32px));
  margin: 10px auto 50px;
}

.gallery a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.06);
}

.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.page-content {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 40px;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.page-content p {
  margin: 0 0 1.2em;
}

.page-content blockquote {
  margin: 0 0 1.2em 40px;
}

.page-content a {
  color: #c36;
}

.reveal {
  opacity: 0;
  transform: translate3d(40px, 0, 0);
}

.reveal.is-in {
  animation: fadeInRight 1.3s ease forwards;
}

.reveal-up {
  opacity: 0;
}

.reveal-up.is-in {
  animation: fadeIn 1.3s ease forwards;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(40px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 8% 12px;
  }
  .logo {
    flex: none;
    width: min(220px, 70%);
    max-width: none;
  }
  .mobile-panel.is-open { display: block; }
  .cta h2 { font-size: 38px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .hero-slider { height: 250px; }
  .slide-title {
    padding: 16px 36px;
    font-size: 18px;
    line-height: 1.2;
  }
  .about {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 0 auto;
  }
  .about-photo { display: none; }
  .about-copy { padding: 8px 0 12px; }
  .display { font-size: 35px; }
  .cta { margin-bottom: 0; }
  .flips,
  .split,
  .places,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .flips { gap: 20px; }
  .places iframe { height: 320px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-footer { padding: 20px 15px; }
  .site-footer h2,
  .footer-grid { text-align: center; }
  .site-footer ul { padding-left: 0; }
  .site-footer li { justify-content: center; }
  .footer-logo { margin-inline: auto; }
  .page-title { font-size: 2rem; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide-bg,
  .reveal,
  .reveal-up,
  .flip-inner,
  .gallery img {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
