/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}

.btn--dark {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

.btn--dark:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .feature-card__media img {
  transform: scale(1.04);
}

.feature-card__body {
  padding: 1.4rem 1.35rem 1.6rem;
}

.feature-card__body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.feature-card__body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.icon-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  text-align: center;
  height: 100%;
}

.icon-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(44, 147, 244, 0.1);
  color: var(--color-accent-dark);
}

.icon-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.icon-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: center / cover no-repeat;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 45, 94, 0.55), rgba(25, 36, 49, 0.72));
  z-index: -1;
}

.page-hero__inner {
  padding: 4.5rem 1rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

/* Gallery grid + lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(0.92);
}

.gallery-item__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

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

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  width: 100%;
  text-align: center;
}

.lightbox__figure img {
  max-height: min(78vh, 820px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 4px;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__field {
  display: grid;
  gap: 0.4rem;
}

.form__field label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.form__field input,
.form__field textarea,
.form__field select {
  width: 100%;
  border: 1px solid #d7dbe2;
  border-radius: 4px;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(44, 147, 244, 0.15);
}

.form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-success {
  background: #e8f8ef;
  color: #146c43;
  border: 1px solid #b7e4c7;
}

.form__status.is-error {
  background: #fdecec;
  color: #b42318;
  border: 1px solid #f3c1c1;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  z-index: 150;
  transition: transform var(--transition), background var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  color: #fff;
  background: #1ebe57;
}

/* CTA band */
.cta-band {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  background: center / cover no-repeat;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 45, 94, 0.72);
  z-index: -1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .card-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split__media img {
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  .card-grid,
  .gallery-grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 260px;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .lightbox__prev {
    left: calc(50% - 60px);
  }

  .lightbox__next {
    right: calc(50% - 60px);
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 1rem;
    bottom: 1rem;
  }
}
