*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: var(--font-size);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.lightbox-open .site-header,
body.lightbox-open .wa-float {
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-image: radial-gradient(at top right, var(--primary) 0%, #556a3747 100%);
  background-color: transparent;
}

.site-header.is-stuck {
  background-image: radial-gradient(at top right, var(--primary) 0%, #9dab89fa 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 12px 0;
  gap: 0;
}

.header-logo {
  flex: 0 0 19%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  width: 197px;
  height: 48px;
  object-fit: contain;
}

.header-spacer {
  flex: 0 0 23.658%;
}

.header-address,
.header-contact {
  display: flex;
  align-items: center;
}

.header-address {
  flex: 0 0 28.764%;
}

.header-contact {
  flex: 0 0 25.244%;
}

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.icon-list a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}

.icon-list svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
  flex-shrink: 0;
  margin-top: 3px;
}

.header-contact .icon-list li + li {
  margin-top: 4px;
}

/* Hero slider */
.hero {
  padding-top: 3%;
}

.hero-inner {
  width: min(70%, 1008px);
  margin: 0 auto;
  position: relative;
}

.hero-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1980 / 750;
  background: #111;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-out;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.85;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  opacity: 1;
}

.hero-arrow svg {
  width: 32px;
  height: 32px;
  display: block;
}

.hero-arrow.prev {
  left: 15px;
}

.hero-arrow.next {
  right: 15px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.67);
  cursor: pointer;
}

.hero-dots button.is-active,
.hero-dots button:hover,
.hero-dots button:focus-visible {
  background: #27ae60;
}

/* Gallery marquee */
.gallery {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  width: max-content;
  animation: gallery-marquee 80s linear infinite;
}

.gallery:hover .gallery-track,
.gallery:focus-within .gallery-track {
  animation-play-state: paused;
}

@keyframes gallery-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gallery-item {
  width: calc(100vw / 3);
  height: 418px;
  flex-shrink: 0;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #171717, transparent, #171717);
  z-index: 2;
  pointer-events: none;
}

/* About */
.about {
  position: relative;
  background: var(--secondary);
  padding: 5% 1% 6%;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.about h1 {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
}

.about-copy {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  text-align: justify;
}

.about-copy p {
  margin: 0 0 1em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-photo img {
  width: 100%;
  border-radius: 20px;
}

.about-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 43px;
  pointer-events: none;
}

.about-shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.about-shape path {
  fill: var(--bg);
}

.anim {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-right {
  transform: translate3d(40px, 0, 0);
}

.anim.is-in {
  opacity: 1;
  transform: none;
}

/* Flip cards */
.cards {
  width: min(100%, 1059px);
  margin: 0 auto 6%;
  padding: 20px 10px 0;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.cards-row + .cards-row {
  margin-top: 10px;
}

.flip {
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 25px;
  transition: transform 0.6s ease-in-out;
  overflow: hidden;
}

.flip-front {
  background: var(--card);
  transform: none;
  z-index: 1;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flip-back {
  background: var(--secondary);
  transform: rotateX(-180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.flip:hover .flip-front,
.flip:focus-within .flip-front,
.flip.is-flipped .flip-front {
  transform: rotateX(180deg);
}

.flip:hover .flip-back,
.flip:focus-within .flip-back,
.flip.is-flipped .flip-back {
  transform: none;
}

.flip-icon {
  width: 40px;
  height: 40px;
  margin: 8px 0 20px;
  fill: var(--accent);
}

.flip h3 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
}

.flip p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.flip-btn {
  display: inline-block;
  color: var(--white);
  border: 2px solid var(--white);
  background: transparent;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 3px;
}

.flip-btn:hover,
.flip-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer */
.site-footer {
  position: relative;
}

.footer-cta-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 1400px);
  margin: 0 auto -90px;
  padding: 0 8%;
}

.footer-cta {
  width: min(100%, 739px);
  min-height: 265px;
  margin: 0 auto;
  background: var(--secondary);
  border-radius: 20px;
  padding: 36px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 16px;
}

.footer-cta h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent);
  max-width: 103%;
}

.footer-cta p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
  max-width: 87%;
}

.social {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.social a {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #556a37;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social svg {
  width: 21px;
  height: 21px;
  fill: var(--white);
}

.footer-bg {
  position: relative;
  background: var(--primary) url("/assets/img/banner-01.webp") center / cover no-repeat;
  padding: 150px 0 50px;
  min-height: 420px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #08160b;
  opacity: 0.86;
}

.footer-logo-wrap {
  position: relative;
  z-index: 1;
  border-left: 1px solid rgba(255, 247, 241, 0.22);
  border-right: 1px solid rgba(255, 247, 241, 0.22);
  display: flex;
  justify-content: center;
  width: min(100%, 640px);
}

.footer-logo {
  width: 62%;
  max-width: 419px;
  margin: 0 auto;
}

.footer-copy {
  background: #556a37;
  text-align: center;
  font-family: var(--font-copy);
  font-size: 12px;
  font-weight: 400;
  color: var(--footer-copy);
  margin: 0;
  padding: 16px 12px 18px;
}

.footer-copy a {
  color: #fff;
}

/* WhatsApp */
.wa-float {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 9999;
}

.wa-float-btn {
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-float-btn svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.wa-float-btn:hover,
.wa-float-btn:focus-visible {
  background: var(--wa-hover);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  padding: 8px;
}

.lightbox-close {
  top: 12px;
  right: 18px;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

.page-404 {
  min-height: 50vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 80px 16px;
}

.page-404 a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    min-height: 0;
    padding: 18px 16px 20px;
    gap: 12px;
  }

  .header-logo,
  .header-address,
  .header-contact {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .header-spacer {
    display: none;
  }

  .header-logo img {
    width: min(280px, 78vw);
    height: auto;
  }

  .icon-list a {
    justify-content: center;
    text-align: center;
  }

  .hero-inner {
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

  .gallery-item {
    width: 50vw;
    height: 280px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .about h1 {
    font-size: 25px;
  }

  .cards-row {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .footer-cta-wrap {
    padding: 0 5%;
    margin-bottom: -60px;
  }

  .footer-cta {
    min-height: 521px;
    padding: 10% 10% 8%;
  }

  .footer-cta h2,
  .footer-cta p {
    font-size: 18px;
    max-width: 100%;
  }

  .footer-bg {
    padding: 25% 5% 8%;
    min-height: 187px;
  }

  .footer-copy {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .gallery-item {
    width: 100vw;
    height: 240px;
  }

  .hero {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track,
  .hero-track,
  .flip-face,
  .anim {
    animation: none !important;
    transition: none !important;
  }

  .anim {
    opacity: 1;
    transform: none;
  }
}
