:root {
  --primary: #063ea5;
  --primary-deep: #041f58;
  --accent: #e7263d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
a,
dd,
strong,
span {
  overflow-wrap: break-word;
}

.text-primary-DEFAULT,
.text-primary {
  color: var(--primary);
}

.brand-logo {
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 70px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.brand-mark svg {
  width: 58px;
  height: 40px;
}

.brand-wordmark {
  display: grid;
  min-width: 0;
  color: #ffffff;
  line-height: 0.95;
}

.brand-wordmark span {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 900;
  white-space: nowrap;
}

.brand-wordmark small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body .hero-title {
  font-size: clamp(3rem, 9vw, 5.2rem);
  max-width: 11ch;
}

.whatsapp-cta {
  max-width: 100%;
  background: linear-gradient(135deg, #e7263d, #b91429) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 42px rgba(185, 20, 41, 0.32);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
  white-space: normal;
}

.whatsapp-cta:hover {
  background: linear-gradient(135deg, #f0354c, #a80f22) !important;
}

.whatsapp-cta svg {
  flex: 0 0 auto;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(24px);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

.menu-open .menu-lines {
  transform: rotate(45deg);
}

.menu-open .menu-lines::before {
  transform: translateY(7px) rotate(90deg);
}

.menu-open .menu-lines::after {
  transform: translateY(-7px);
  opacity: 0;
}

#mobileMenu.open {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 2.4rem;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: currentColor;
}

.section-kicker.light {
  color: #ffffff;
}

.metric {
  min-height: 112px;
  border: 1px solid rgba(6, 62, 165, 0.12);
  border-radius: 1.15rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 900;
}

.metric span {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.92rem;
}

.service-card {
  min-height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.35rem;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.84));
  color: #0f172a;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.service-card h3 {
  margin-top: 1rem;
  color: var(--primary-deep);
  font-size: 1.45rem;
  font-weight: 900;
  text-align: center;
}

.service-card p {
  margin-top: 1rem;
  color: #475569;
  line-height: 1.75;
  text-align: center;
}

.gallery-item {
  position: relative;
  display: block;
  min-height: 250px;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #0f172a;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 50%, rgba(4, 31, 88, 0.42));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.95;
}

.gallery-item:hover::after {
  opacity: 1;
}

.info-line {
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  padding-bottom: 1rem;
}

.info-line dt {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-line dd {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.info-line a {
  color: var(--primary);
  text-decoration: none;
}

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

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

@media (max-width: 767px) {
  .brand-mark {
    width: 58px;
    height: 42px;
  }

  .brand-mark svg {
    width: 48px;
    height: 34px;
  }

  .brand-wordmark span {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-wordmark small {
    display: none;
  }

  body .hero-title {
    max-width: 9ch;
  }

  .service-card {
    min-height: 0;
    border-radius: 1.5rem;
  }

  .gallery-item {
    min-height: 310px;
    border-radius: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
