:root {
  --primary-color: #0083AA;
  --primary-dark: #244F67;
  --accent-color: #FDB92E;
  --surface-color: #F4F7F9;
  --panel-color: #FFFFFF;
  --line-color: #D8E1E6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef3f6 100%);
  color: #0f172a;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
  font-family: "Barlow", "Avenir Next", "Segoe UI", sans-serif;
}

a,
button {
  font-family: inherit;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 79, 103, 0.24);
  border-radius: 0;
  background: var(--accent-color);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
  box-shadow: 0 20px 42px -30px rgba(36, 79, 103, 0.5);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: rgba(36, 79, 103, 0.42);
  background: #ffd15c;
  color: var(--primary-color);
  box-shadow: 0 26px 50px -30px rgba(36, 79, 103, 0.55);
  transform: translateY(-2px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 1);
  background: var(--accent-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.main-nav-link {
  position: relative;
}

.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.65rem;
  width: 100%;
  height: 0.14rem;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav-link:hover::after,
.main-nav-link.is-active::after {
  transform: scaleX(1);
}

.entry-button {
  position: relative;
  overflow: hidden;
  opacity: 0;
  border: 1px solid rgba(36, 79, 103, 0.2);
  border-radius: 0;
  background: var(--accent-color);
  color: var(--primary-dark);
  box-shadow: 0 24px 50px -34px rgba(36, 79, 103, 0.42);
  animation: entryButtonIn 0.7s ease forwards;
  animation-delay: var(--entry-delay, 0s);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.entry-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(36, 79, 103, 0.12), rgba(0, 131, 170, 0.22));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.entry-button > span {
  position: relative;
  z-index: 1;
}

.entry-button:hover::before,
.entry-button:focus-visible::before {
  opacity: 1;
}

.entry-button:hover,
.entry-button:focus-visible {
  border-color: rgba(36, 79, 103, 0.42);
  background: #ffd15c;
  color: var(--primary-color);
  box-shadow: 0 28px 54px -34px rgba(36, 79, 103, 0.5);
}

@keyframes entryButtonIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide {
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0s linear 1.3s;
}

.slide.active {
  opacity: 1;
  z-index: 20;
  pointer-events: auto;
  transition: opacity 1.9s ease-in-out;
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  z-index: 35;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.26);
  color: #ffffff;
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
}

.hero-slider-prev {
  left: 1rem;
}

.hero-slider-next {
  right: 1rem;
}

.hero-slider-nav:hover,
.hero-slider-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.42);
  transform: translateY(-50%) scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 35%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 131, 170, 0.16) 0%, rgba(36, 79, 103, 0.4) 100%);
}

.slide.active .hero-text-content {
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.industrial-panel {
  border: 1px solid var(--line-color);
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
  box-shadow: 0 25px 60px -40px rgba(15, 23, 42, 0.45);
}

.industrial-image {
  border: 1px solid rgba(36, 79, 103, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.55rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 0.24rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.typography-parallax {
  background:
    linear-gradient(135deg, rgba(36, 79, 103, 0.95), rgba(0, 131, 170, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 2px, transparent 2px, transparent 160px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scroll-line {
  will-change: transform;
}

.offerings-surface {
  border: 1px solid rgba(36, 79, 103, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 250, 0.98)),
    linear-gradient(90deg, rgba(0, 131, 170, 0.08), rgba(253, 185, 46, 0.08));
}

.reviews-surface {
  border: 1px solid rgba(36, 79, 103, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 250, 0.98)),
    linear-gradient(135deg, rgba(0, 131, 170, 0.06), rgba(253, 185, 46, 0.08));
}

.reviews-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.reviews-track {
  position: relative;
  min-height: 22rem;
}

.review-card {
  display: none;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(36, 79, 103, 0.14);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
}

.review-card.is-active {
  display: grid;
}

.review-avatar-wrap {
  display: flex;
  justify-content: center;
}

.review-avatar,
.review-avatar-placeholder {
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(36, 79, 103, 0.18);
  object-fit: cover;
  background: linear-gradient(135deg, rgba(36, 79, 103, 0.16), rgba(0, 131, 170, 0.12));
}

.review-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: 700;
}

.review-quote {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.review-quote-mark {
  color: var(--accent-color);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
}

.review-quote-text {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.9;
}

.review-author {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reviews-nav {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(36, 79, 103, 0.18);
  background: var(--accent-color);
  color: var(--primary-dark);
  font-size: 1.8rem;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.reviews-nav:hover,
.reviews-nav:focus-visible {
  background: #ffd15c;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.reviews-dot {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(36, 79, 103, 0.25);
  background: rgba(36, 79, 103, 0.12);
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.reviews-dot.is-active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  transform: scale(1.08);
}

.accordion-item {
  border-color: rgba(36, 79, 103, 0.14) !important;
  background-color: #ffffff !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.accordion-item.is-open {
  border-color: rgba(0, 131, 170, 0.35) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 131, 170, 0.08);
}

.accordion-trigger span:last-child {
  display: inline-flex;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-trigger span:last-child {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-item.is-open .accordion-content {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.testimonial-card {
  border: 1px solid var(--line-color);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  box-shadow: 0 24px 50px -38px rgba(15, 23, 42, 0.35);
}

.footer-surface {
  background: linear-gradient(180deg, #102636 0%, #0b1b27 100%);
  color: #ffffff;
  border-top: 4px solid var(--accent-color);
}

.footer-link {
  color: #cdd8df;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.contact-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 250, 0.96));
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(14, 106, 68, 0.22);
  background: linear-gradient(180deg, #25d366 0%, #1fb857 100%);
  color: #ffffff;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 9999px;
  box-shadow: 0 20px 45px -28px rgba(10, 42, 28, 0.55);
  opacity: 0;
  transform: translateX(24px) translateY(8px);
  animation: whatsappFlyIn 0.75s ease 0.35s forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #ffffff;
  background: linear-gradient(180deg, #29de6b 0%, #20c460 100%);
  box-shadow: 0 24px 54px -28px rgba(10, 42, 28, 0.62);
  transform: translateY(-2px);
}

.whatsapp-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes whatsappFlyIn {
  from {
    opacity: 0;
    transform: translateX(24px) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.profile-photo-placeholder {
  border: 1px solid rgba(36, 79, 103, 0.18);
  background:
    linear-gradient(180deg, rgba(36, 79, 103, 0.14), rgba(0, 131, 170, 0.08)),
    linear-gradient(135deg, #f8fbfc, #e8f0f4);
}

.gallery-tiles-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gallery-tile {
  overflow: hidden;
  border: 1px solid var(--line-color);
  background: #ffffff;
  box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.4);
}

.gallery-tile img {
  transition: transform 0.35s ease;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  padding: 1.5rem;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-image {
  max-width: min(100%, 1100px);
  max-height: 85vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: white;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  font-size: 1.75rem;
  line-height: 1;
}

input,
textarea {
  border-radius: 0;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 131, 170, 0.12);
}

@media (min-width: 768px) {
  .gallery-tiles-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 3.4rem;
    height: 3.4rem;
  }

  .reviews-carousel {
    grid-template-columns: 1fr;
  }

  .reviews-nav {
    order: 2;
    justify-self: center;
  }

  .review-card.is-active {
    grid-template-columns: 1fr;
  }

  .reviews-track {
    min-height: auto;
  }
}
