/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
  position: relative;
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
  overflow: hidden;
  background: linear-gradient(115deg, #ffffff 0%, #f9fbfd 50%, #f1f7fb 100%);
}

.contact-section::before {
  position: absolute;
  top: 2rem;
  left: -3rem;
  width: 11rem;
  height: 11rem;
  content: "";
  opacity: 0.035;
  border: 2px solid var(--color-brand);
  border-radius: 50%;
  pointer-events: none;
}

.contact-section::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 8rem;
  height: 7rem;
  content: "";
  opacity: 0.13;
  background-image: radial-gradient(var(--color-brand) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}


/* =========================================================
   40 / 60 LAYOUT
   ========================================================= */

.contact-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
}


/* =========================================================
   LEFT SIDE
   ========================================================= */

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-content .section-label {
  margin-bottom: 0.7rem;
}

.contact-content h2 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.contact-title-line {
  display: block;
  width: 2.6rem;
  height: 2px;
  margin-top: 1.45rem;
  background: var(--color-brand);
}

.contact-intro {
  max-width: 35rem;
  margin: 1.3rem 0 0;
  color: var(--color-muted);
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  line-height: 1.7;
}


/* =========================================================
   CONTACT OPTIONS
   ========================================================= */

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 6.4rem;
  padding: 1rem;
  text-align: left;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 19, 23, 0.1);
  border-radius: 0.8rem;
  box-shadow: 0 8px 25px rgba(17, 19, 23, 0.035);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.contact-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--color-brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 200ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(7, 136, 207, 0.25);
  box-shadow: 0 15px 32px rgba(17, 19, 23, 0.07);
}

.contact-card:hover::before {
  transform: scaleY(1);
}

.contact-card:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}


/* =========================================================
   CONTACT ICONS
   ========================================================= */

.contact-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  color: var(--color-brand);
  background: rgba(7, 136, 207, 0.09);
  border-radius: 50%;
}

.contact-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.contact-icon-whatsapp {
  color: #20a85a;
  background: rgba(32, 168, 90, 0.1);
}


/* =========================================================
   CONTACT TEXT
   ========================================================= */

.contact-card-content {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.contact-card-title {
  color: var(--color-ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.contact-card-value {
  color: var(--color-muted);
  font-size: 0.67rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-card-arrow {
  color: var(--color-brand);
  font-size: 1rem;
  transition: transform 200ms ease;
}

.contact-card:hover .contact-card-arrow {
  transform: translateX(4px);
}


/* =========================================================
   MAP AREA
   ========================================================= */

.contact-map-wrap {
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  background: #eef4f8;
  border: 1px solid rgba(7, 136, 207, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 20px 55px rgba(17, 19, 23, 0.08);
}

.contact-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 35rem;
  border: 0;
  filter: saturate(0.78) contrast(0.94) brightness(1.04);
}


/* =========================================================
   FLOATING MAP CARD
   ========================================================= */

.map-location-card {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  width: min(21rem, calc(100% - 2.5rem));
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 19, 23, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 15px 35px rgba(17, 19, 23, 0.12);
  backdrop-filter: blur(12px);
}

.map-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
  border-radius: 0.65rem;
  font-size: 1rem;
  font-weight: 850;
}

.map-location-copy {
  display: grid;
  gap: 0.18rem;
}

.map-location-copy strong {
  color: var(--color-ink);
  font-size: 0.9rem;
}

.map-location-copy > span {
  color: var(--color-muted);
  font-size: 0.7rem;
}

.map-directions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0;
  color: var(--color-brand);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.map-directions span {
  transition: transform 180ms ease;
}

.map-directions:hover span {
  transform: translateX(4px);
}

.map-directions:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .contact-container {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: 2rem;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 5.5rem;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .contact-section {
    padding-block: 4rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .contact-content h2 {
    font-size: clamp(2.8rem, 13vw, 3.8rem);
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.7rem;
    border-top: 1px solid rgba(17, 19, 23, 0.09);
  }

  .contact-card {
    min-height: 4.8rem;
    padding: 0.9rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 19, 23, 0.09);
    border-radius: 0;
    box-shadow: none;
  }

  .contact-card::before {
    display: none;
  }

  .contact-card:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
  }

  .contact-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .contact-card-title {
    font-size: 0.78rem;
  }

  .contact-card-value {
    font-size: 0.66rem;
  }

  .contact-map-wrap {
    min-height: 27rem;
    border-radius: 1rem;
  }

  .contact-map {
    min-height: 27rem;
  }

  .map-location-card {
    left: 0.9rem;
    bottom: 0.9rem;
    width: calc(100% - 1.8rem);
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-card::before,
  .contact-card-arrow,
  .map-directions span {
    transition: none;
  }
}