:root {
  --primary: #d8081f;
  --primary-dark: #a90418;
  --sun: #ffd21f;
  --ink: #171717;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

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

.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: var(--primary);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

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

.whatsapp-button,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-button,
.primary-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 18px 38px rgba(216, 8, 31, 0.28);
}

.secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(20px);
}

.whatsapp-button:hover,
.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-2px);
}

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

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 0;
  content: "";
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.menu-open .hamburger {
  background: transparent;
}

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

.menu-open .hamburger::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-section {
  min-height: 100svh;
}

.glass-panel,
.service-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(24px);
}

.glass-panel {
  border-radius: 2rem;
}

.hero-stats {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.hero-stats div {
  min-height: 96px;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 1rem;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.hero-stats span {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.section-pad {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section-kicker {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(216, 8, 31, 0.09);
  padding: 0.55rem 1rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card {
  min-height: 310px;
  border-radius: 2rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(216, 8, 31, 0.15);
}

.service-card h3 {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.service-card p {
  margin-top: 0.9rem;
  color: #5f5f5f;
  line-height: 1.75;
}

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

.gallery-grid img {
  width: 100%;
  height: 270px;
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.12);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(8) {
  grid-column: span 2;
}

.gallery-grid img:hover {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.015);
}

.units-section {
  background:
    radial-gradient(circle at 24% 0%, rgba(216, 8, 31, 0.08), transparent 28rem),
    radial-gradient(circle at 78% 2%, rgba(255, 210, 31, 0.14), transparent 26rem),
    #f6f7f9;
}

.unit-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.unit-tab {
  min-height: 68px;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.75rem 0.9rem;
  text-align: center;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.unit-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(216, 8, 31, 0.1);
}

.unit-tab.active {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 20px 44px rgba(216, 8, 31, 0.13);
}

.unit-tab strong {
  display: block;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
}

.unit-tab span {
  display: block;
  margin-top: 0.45rem;
  overflow: hidden;
  color: #667085;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-unit-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.84);
  padding: clamp(1.35rem, 4vw, 3rem);
  box-shadow: 0 28px 80px rgba(23, 23, 23, 0.11);
  backdrop-filter: blur(24px);
}

.selected-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--sun);
  padding: 0.35rem 0.65rem;
  color: #1d1d1d;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.selected-unit-info h3 {
  margin-top: 0.55rem;
  color: var(--primary);
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 950;
  line-height: 1;
}

.selected-intro {
  margin-top: 1.1rem;
  max-width: 35rem;
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.75;
}

.selected-details {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.detail-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.detail-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(216, 8, 31, 0.1);
  color: var(--primary);
}

.detail-icon svg {
  width: 18px;
  height: 18px;
}

.detail-row span {
  display: block;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
}

.detail-row strong,
.detail-row a {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.45;
}

.selected-whatsapp {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 0.88rem 1.2rem;
  color: #fff;
  font-weight: 850;
  box-shadow: 0 18px 38px rgba(216, 8, 31, 0.25);
  transition: transform 0.25s ease;
}

.selected-whatsapp:hover {
  transform: translateY(-2px);
}

.selected-map {
  overflow: hidden;
  border-radius: 1.15rem;
  box-shadow: 0 20px 54px rgba(23, 23, 23, 0.12);
}

.selected-map iframe {
  display: block;
  width: 100%;
  height: clamp(310px, 32vw, 430px);
  border: 0;
}

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

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

@media (max-width: 900px) {
  .unit-tabs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.7rem;
    scroll-snap-type: x proximity;
  }

  .unit-tab {
    min-width: 172px;
    scroll-snap-align: start;
  }

  .selected-unit-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(8) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .unit-tab {
    min-width: 155px;
  }

  .selected-unit-card {
    margin-top: 2rem;
    border-radius: 1.25rem;
  }

  .selected-map iframe {
    height: 330px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 245px;
    border-radius: 1.1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
