/* =========================================================
   PM PATIL - CONTACT INFO (compact horizontal layout)
========================================================= */

.pmph-contact-info {
  --navy-900: #0c2c6c;
  --steel-700: #3f4c5a;
  --steel-400: #8b96a5;
  --steel-200: #c7ced8;
  --steel-100: #e4e8ec;
  --off-white: #f3f5f7;
  --white: #ffffff;
  --accent: #2f4e93;
  --accent-soft: #eaf1f9;
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);

  position: relative;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--off-white);
  color: var(--navy-900);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.pmph-contact-info *,
.pmph-contact-info *::before,
.pmph-contact-info *::after {
  box-sizing: border-box;
}

/* faint drafting grid */
.pmph-contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 44, 108, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 44, 108, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.pmph-contact-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Head row: title left, social right ---------- */
.pmph-contact-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pmph-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.pmph-eyebrow-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.pmph-contact-intro h2 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  color: var(--navy-900);
}

.pmph-contact-intro p {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel-700);
}

/* ---------- Social row ---------- */
.pmph-social-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pmph-social-follow {
  margin-right: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.pmph-social-row a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--steel-200);
  border-radius: 50%;
  color: var(--navy-900);
  text-decoration: none;
  transition:
    background 240ms var(--ease),
    border-color 240ms var(--ease),
    color 240ms var(--ease),
    transform 240ms var(--ease);
}
.pmph-social-row a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.pmph-social-row a[aria-label="Email"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.pmph-social-row a:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Body row: 2x2 cards + map ---------- */
.pmph-contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.pmph-contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pmph-contact-card-link {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease),
    transform 240ms var(--ease);
}
.pmph-contact-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px -14px rgba(12, 44, 108, 0.45);
  transform: translateY(-2px);
}

.pmph-icon-chip {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-900);
  transition: background 240ms var(--ease);
}
.pmph-contact-card-link:hover .pmph-icon-chip {
  background: var(--accent);
}
.pmph-icon-chip svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pmph-contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pmph-contact-card-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pmph-contact-card-value {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

/* ---------- Map ---------- */
.pmph-map-card {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--steel-100);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(12, 44, 108, 0.35);
}
.pmph-map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease);
}
.pmph-map-card iframe.is-active {
  opacity: 1;
  visibility: visible;
}

/* Office / Works switch, floating on the map */
.pmph-map-tabs {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 22px -10px rgba(12, 44, 108, 0.5);
}
.pmph-map-tab {
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy-900);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    color 220ms var(--ease);
}
.pmph-map-tab:hover {
  background: var(--accent-soft);
}
.pmph-map-tab.is-active {
  background: var(--navy-900);
  color: var(--white);
}
.pmph-map-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pmph-map-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 22px -10px rgba(12, 44, 108, 0.5);
  transition:
    background 240ms var(--ease),
    color 240ms var(--ease);
}
.pmph-map-cta:hover {
  background: var(--navy-900);
  color: var(--white);
}
.pmph-map-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pmph-contact-body {
    grid-template-columns: 1fr;
  }
  .pmph-map-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .pmph-contact-info {
    padding: 28px 16px;
  }
  .pmph-contact-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .pmph-contact-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pmph-contact-card-link {
    padding: 12px;
  }
  .pmph-map-card {
    min-height: 220px;
  }
}

/* ---------- Company Profile download ---------- */
.pmph-contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.pmph-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(12, 44, 108, 0.6);
  transition:
    background 240ms var(--ease),
    transform 240ms var(--ease);
}

.pmph-profile-btn:hover,
.pmph-profile-btn:focus-visible {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

.pmph-profile-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pmph-profile-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  .pmph-contact-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pmph-profile-btn {
    width: 100%;
    justify-content: center;
  }
}
