*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.header-wrap {
  width: min(100% - 24px, var(--header));
  margin-inline: auto;
}

/* Header */
.topbar {
  background: var(--dark);
  color: #fff;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.top-contacts,
.top-social {
  display: flex;
  align-items: center;
}

.top-contacts-desktop {
  gap: 30px;
}

.top-contacts-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.top-contacts a,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.top-contacts a:hover {
  color: var(--yellow);
}

.top-ico {
  display: inline-flex;
  color: var(--yellow);
  flex-shrink: 0;
}

.top-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.top-social {
  gap: 15px;
}

.top-social a {
  color: var(--yellow);
  display: flex;
}

.top-social .top-ico svg {
  width: 18px;
  height: 18px;
}

.navbar {
  background: var(--yellow);
  position: relative;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
}

.logo {
  display: block;
  width: 16.138%;
  max-width: 194px;
  flex-shrink: 0;
}

.logo img {
  width: 100%;
  height: auto;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-desktop a {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1.6px;
  color: var(--navy);
  padding: 8px 0;
  transition: color 0.3s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--red);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--yellow);
  border: 0;
  color: #16163f;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-mobile {
  background: var(--yellow);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.nav-mobile a {
  display: block;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid #eee;
}

.nav-mobile a.is-active {
  color: #d3b574;
}

/* Hero slider */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
}

.hero-slide-bg.ken-burns {
  animation: kenburns 6s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 50px 24px;
  max-width: 66%;
  margin: 0 auto;
}

.hero-heading {
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease both;
}

.hero-desc {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  animation: fadeInUp 0.8s ease 0.1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-prev {
  left: 16px;
}

.hero-next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: #fff;
}

/* About */
.about-section {
  position: relative;
  background: var(--gray);
  padding: 50px 0 104px;
}

.about-boxed {
  padding: 50px 50px 104px;
}

.interior-pad {
  padding: 50px 0;
  background: #fff;
}

.interior-pad .about-section {
  width: min(100% - 0px, 1240px);
  margin-inline: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.about-kicker {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.about-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.about-text p + p {
  margin-top: 16px;
}

.about-photo {
  margin: 0;
  border-bottom: 10px solid var(--yellow);
}

.about-photo img {
  width: 100%;
}

.about-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  overflow: hidden;
  line-height: 0;
}

.about-wave svg {
  width: calc(100% + 1.3px);
  height: 64px;
  display: block;
}

/* Solutions / flip */
.solutions {
  padding: 50px 0 50px;
  background: #fff;
}

.solutions-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.flip-box {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
}

.flip-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

.flip-back {
  opacity: 0;
}

.flip-box:hover .flip-back,
.flip-box:focus-visible .flip-back {
  opacity: 1;
}

.flip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 16px;
  text-align: center;
}

.flip-overlay-back {
  background: rgba(0, 0, 0, 0.35);
}

.flip-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flip-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--yellow);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-in {
  animation: fadeInUp 0.8s ease both;
}

.reveal-left.is-in {
  animation: fadeInLeft 0.8s ease both;
}

.reveal-right.is-in {
  animation: fadeInRight 0.8s ease both;
}

.flip-grid .flip-box:nth-child(2) .flip-face {
  background-position: top left;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Page title */
.page-title {
  background: var(--gray);
  padding: 25px;
}

.page-title h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

/* Gallery */
.gallery-wrap {
  padding: 50px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 3px solid var(--navy);
  border-radius: 7px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-overlay,
.gallery-title {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.gallery-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  z-index: 1;
  text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:hover .gallery-title,
.gallery-item:focus-visible .gallery-overlay,
.gallery-item:focus-visible .gallery-title {
  opacity: 1;
}

/* CTA + footer */
.cta-bar {
  background: var(--navy);
  border-bottom: 10px solid var(--navy-mid);
  padding: 20px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-bar h2 {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 12px 0 0;
}

.btn-orcamento {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #212529;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  white-space: nowrap;
}

.site-footer {
  background: var(--dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 20% 1fr 32%;
  gap: 0;
  align-items: center;
  padding: 70px 0;
}

.footer-brand img {
  width: 208px;
  height: auto;
}

.footer-contact h3,
.footer-social h3 {
  font-size: 25px;
  font-weight: 600;
  color: var(--yellow);
  text-align: center;
  margin-bottom: 16px;
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  margin-inline: auto;
}

.footer-contact .top-ico {
  color: var(--yellow);
}

.footer-social ul {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-social a {
  color: #fff;
  display: flex;
  transition: color 0.3s;
}

.footer-social .top-ico {
  color: #fff;
}

.footer-social a:hover,
.footer-social a:hover .top-ico {
  color: var(--yellow);
}

.footer-social .top-ico svg {
  width: 27px;
  height: 27px;
}

.footer-copy {
  border-top: 1px solid #c7c7c7;
  padding: 10px 50px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--copy);
}

.footer-copy a {
  color: var(--copy);
}

.footer-copy a:hover {
  color: #fff;
}

.wa-float {
  position: fixed;
  right: 25px;
  bottom: 10px;
  z-index: 9999;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wa-float svg {
  width: 45px;
  height: 45px;
}

.wa-float:hover {
  background: #036628;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 0 60px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 8px;
}

.lightbox-close {
  top: 12px;
  right: 18px;
  font-size: 40px;
}

.lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .logo {
    width: auto;
    max-width: 180px;
  }

  .topbar-inner {
    padding: 27px 15px;
  }

  .top-contacts-desktop a {
    font-size: 12px;
  }

  .navbar-inner {
    padding: 20px 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    max-width: 90%;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .topbar-inner {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  .top-contacts-desktop {
    display: none;
  }

  .top-contacts-mobile {
    display: flex;
    text-align: center;
  }

  .top-contacts-mobile a {
    justify-content: center;
  }

  .top-social {
    justify-content: center;
  }

  .navbar-inner {
    flex-direction: column;
    padding: 16px 15px 8px;
  }

  .logo {
    width: 100%;
    max-width: none;
  }

  .nav-toggle {
    margin: 8px auto 4px;
  }

  .hero-slider {
    height: 420px;
  }

  .hero-heading {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-content {
    max-width: 100%;
    padding: 24px 40px;
  }

  .about-section,
  .about-boxed {
    padding: 24px 10px 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-title {
    font-size: 28px;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-bar h2 {
    font-size: 18px;
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 10px;
    text-align: center;
  }

  .footer-brand img {
    width: 65%;
    margin-inline: auto;
  }

  .footer-copy {
    padding: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wrap {
    padding: 24px 0 40px;
  }

  .interior-pad {
    padding: 16px 0;
  }
}
