/* =========================================================================
   PM Patil Projects & Engineers Private Limited — Footer UI
   footer.css
   Same design language as the header (drafting-table blueprint, logo
   navy + slate grey) but with its own class namespace — "pmft-" —
   so it never collides with header.css's "pmp-" classes. Fully
   self-contained: does not depend on header.css being loaded.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  /* ---- Color tokens — same family sampled from the logo ---------------- */
  --pmft-navy-deep: #0a2560;
  --pmft-navy: #0c2c6c;
  --pmft-navy-darker: #071a45; /* footer base background */
  --pmft-steel: #4f6bae; /* links on dark bg */
  --pmft-accent: #8a93a6; /* logo slate grey, lifted for dark bg */
  --pmft-accent-deep: #515763; /* same grey, true value, for light chips */
  --pmft-white: #ffffff;
  --pmft-ink-soft: rgba(255, 255, 255, 0.72);
  --pmft-ink-faint: rgba(255, 255, 255, 0.5);
  --pmft-line: rgba(255, 255, 255, 0.14);
  --pmft-line-strong: rgba(255, 255, 255, 0.24);

  /* ---- Type tokens -------------------------------------------------------*/
  --pmft-font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --pmft-font-body: "Inter", "Segoe UI", sans-serif;
  --pmft-font-mono: "IBM Plex Mono", "Courier New", monospace;

  --pmft-gutter: clamp(18px, 4vw, 64px);
}

.pmft-footer,
.pmft-footer * {
  box-sizing: border-box;
}

/* =========================================================================
   ROOT
   ========================================================================= */
.pmft-footer {
  position: relative;
  margin-top: auto;
  background:
    linear-gradient(rgba(7, 26, 69, 0.94), rgba(7, 26, 69, 0.97)),
    var(--pmft-navy-darker);
  background-blend-mode: multiply;
  color: var(--pmft-ink-soft);
  font-family: var(--pmft-font-body);
  overflow: hidden;
}

/* faint blueprint grid, purely decorative */
.pmft-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.pmft-container {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--pmft-gutter);
}

/* corner registration marks, consistent with header — desktop only */
.pmft-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 2;
}
.pmft-corner::before,
.pmft-corner::after {
  content: "";
  position: absolute;
  background: var(--pmft-accent);
}
.pmft-corner--tl {
  top: 22px;
  left: 14px;
}
.pmft-corner--tr {
  top: 22px;
  right: 14px;
}
.pmft-corner--tl::before,
.pmft-corner--tr::before {
  width: 100%;
  height: 1.5px;
  top: 0;
}
.pmft-corner--tl::after,
.pmft-corner--tr::after {
  width: 1.5px;
  height: 100%;
  left: 0;
}
.pmft-corner--tr::after {
  left: auto;
  right: 0;
}

/* =========================================================================
   TOP — brand / contact / map
   ========================================================================= */
.pmft-top {
  position: relative;
  padding: 72px 0 44px;
  border-bottom: 1px dashed var(--pmft-line);
}

.pmft-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr;
  gap: 48px;
}

/* ---- Brand column ------------------------------------------------------*/
.pmft-brand {
  display: inline-flex;
  margin-bottom: 22px;
}
.pmft-brand__logo {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 4px;
  filter: brightness(0) invert(1);
}

.pmft-lede {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--pmft-ink-soft);
  max-width: 46ch;
}

/* ---- Widget heading (shared by contact + map columns) ------------------*/
.pmft-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--pmft-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pmft-white);
  margin: 0 0 22px;
}
.pmft-heading__mark {
  width: 10px;
  height: 10px;
  position: relative;
  flex: 0 0 auto;
}
.pmft-heading__mark::before,
.pmft-heading__mark::after {
  content: "";
  position: absolute;
  background: var(--pmft-accent);
}
.pmft-heading__mark::before {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}
.pmft-heading__mark::after {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

/* ---- Contact column ------------------------------------------------------*/
.pmft-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pmft-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pmft-contact__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--pmft-line-strong);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--pmft-accent);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.pmft-contact__link {
  font-size: 14px;
  color: var(--pmft-ink-soft);
  text-decoration: none;
  line-height: 1.5;
  padding-top: 6px;
  transition: color 0.2s ease;
  word-break: break-word;
}
.pmft-contact__item:hover .pmft-contact__icon {
  border-color: var(--pmft-accent);
  color: var(--pmft-white);
  background: rgba(255, 255, 255, 0.06);
}
.pmft-contact__item:hover .pmft-contact__link {
  color: var(--pmft-white);
}
.pmft-contact__link:focus-visible,
.pmft-contact__icon:focus-visible {
  outline: 2px solid var(--pmft-accent);
  outline-offset: 3px;
}

/* ---- Map column ----------------------------------------------------------*/
.pmft-map {
  position: relative;
  border: 1px solid var(--pmft-line-strong);
  border-radius: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.pmft-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  filter: grayscale(0.25) contrast(1.05);
}
.pmft-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================================
   BOTTOM — copyright + social
   ========================================================================= */
.pmft-bottom {
  position: relative;
  padding: 10px 0;
}
.pmft-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pmft-copyright {
  font-size: 13px;
  color: var(--pmft-ink-faint);
}
.pmft-copyright a {
  color: var(--pmft-ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--pmft-line-strong);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.pmft-copyright a:hover {
  color: var(--pmft-white);
  border-color: var(--pmft-accent);
}

.pmft-social {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.pmft-social__link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pmft-line-strong);
  border-radius: 3px;
  color: var(--pmft-ink-soft);
  font-size: 13px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.pmft-social__link:hover,
.pmft-social__link:focus-visible {
  border-color: var(--pmft-accent);
  color: var(--pmft-white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.pmft-social__link:focus-visible {
  outline: 2px solid var(--pmft-accent);
  outline-offset: 2px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

/* ---- Tablet: ≤991px — brand full width, contact + map two-up ---------- */
@media (max-width: 991px) {
  .pmft-corner {
    display: none;
  }
  .pmft-top {
    padding: 56px 0 36px;
  }
  .pmft-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "contact map";
    gap: 40px 32px;
  }
  .pmft-col--brand {
    grid-area: brand;
  }
  .pmft-col--contact {
    grid-area: contact;
  }
  .pmft-col--map {
    grid-area: map;
  }
}

/* ---- Mobile: ≤767px — single column stack ------------------------------ */
@media (max-width: 767px) {
  .pmft-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "contact"
      "map";
    gap: 36px;
  }
  .pmft-map__frame {
    aspect-ratio: 16 / 10;
  }
}

/* ---- Small phones: ≤575px ------------------------------------------------*/
@media (max-width: 575px) {
  .pmft-top {
    padding: 44px 0 30px;
  }
  .pmft-brand__logo {
    height: 46px;
  }
  .pmft-lede {
    font-size: 14px;
  }
  .pmft-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .pmft-map__frame {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmft-contact__icon,
  .pmft-contact__link,
  .pmft-social__link,
  .pmft-copyright a {
    transition: none !important;
  }
}
