/* ==========================================================================
   Contact Us hero (contact.html only).
   Layout follows the Contact hero design: copy on the left, framed photo with
   a campus bar on the right, and three info cards under the buttons.
   Scoped under .ph-contact; shared tokens (--hp-*) and .hp-pill come from
   shared-chrome.css.
   ========================================================================== */

.ph-contact.hp-hero {
  position: relative;
  padding: 56px 0 80px;
  overflow: hidden;
}

.ph-contact .hp-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--hp-gutter);
  position: relative;
}

.ph-contact .hp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

/* ---------- copy ---------- */
.ph-contact .ct-copy {
  min-width: 0;
}

.ph-contact .crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin-bottom: 36px;
  background: #ffffff;
  border: 1px solid #e3e9f1;
  border-radius: 999px;
  font-family: var(--hp-nav);
  font-size: 15px;
  color: var(--hp-ink);
}

.ph-contact .crumbs a:hover {
  color: var(--hp-blue);
}

.ph-contact .crumbs [aria-current] {
  font-weight: 600;
  color: var(--hp-navy);
}

.ph-contact .ct-title {
  font-family: var(--hp-serif);
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--hp-blue);
  margin: 0 0 26px;
  text-wrap: balance;
}

.ph-contact .ct-title .accent {
  color: var(--hp-orange);
}

.ph-contact .ct-lead {
  font-family: var(--hp-sans);
  font-size: 20px;
  line-height: 1.6;
  color: var(--hp-ink);
  max-width: 520px;
  margin: 0 0 36px;
}

.ph-contact .ct-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.ph-contact .ct-btns .hp-pill--line {
  background: #ffffff;
}

.ph-contact .ct-pin {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--hp-orange);
  stroke-width: 1.8;
}

/* ---------- framed photo with campus bar ---------- */
.ph-contact .ct-media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 600px;
}

/* soft tilted backing card */
.ph-contact .ct-media::before {
  content: "";
  position: absolute;
  inset: -26px -16px 46px 36px;
  z-index: 0;
  background: #e6eef8;
  border-radius: 36px;
  transform: rotate(3deg);
}

.ph-contact .ct-frame {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: #ffffff;
  border-radius: 34px;
  box-shadow: 0 30px 70px rgba(14, 42, 71, .12);
}

.ph-contact .ct-photo {
  overflow: hidden;
  border-radius: 24px;
  background: #f3f6fa;
}

.ph-contact .ct-photo img {
  width: 100%;
  height: auto;
}

.ph-contact .ct-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: -64px 12px 0;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(14, 42, 71, .14);
}

.ph-contact .ct-pin-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: #fdeee4;
}

.ph-contact .ct-bar-text {
  flex: 1 1 220px;
  min-width: 0;
}

.ph-contact .ct-kicker {
  display: block;
  font-family: var(--hp-nav);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hp-orange);
}

.ph-contact .ct-bar-text p {
  margin-top: 4px;
  font-family: var(--hp-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hp-navy);
}

/* contact links under the address (hero bar) */
.ph-contact .ct-bar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.ph-contact .ct-bar-links a,
.ph-contact .ct-loc-contact a {
  font-family: var(--hp-nav);
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-blue);
  overflow-wrap: anywhere;
}

.ph-contact .ct-bar-links a:hover,
.ph-contact .ct-loc-contact a:hover {
  color: var(--hp-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Campus Location section ---------- */
.ph-loc .stage {
  position: relative;
}

.ph-contact .ct-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding: clamp(28px, 3.4vw, 40px);
  background: #ffffff;
  border: 1px solid #e3e9f1;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(14, 42, 71, .08);
}

.ph-contact .ct-loc-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1 1 520px;
}

.ph-contact .ct-loc .ct-pin-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--hp-orange);
  box-shadow: 0 14px 30px rgba(242, 111, 46, .3);
}

.ph-contact .ct-loc .ct-pin-badge .ct-pin {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
}

.ph-contact .ct-loc .ct-kicker::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--hp-orange);
}

.ph-contact .ct-loc-text {
  min-width: 0;
}

.ph-contact .ct-loc h2 {
  font-family: var(--hp-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-blue);
  margin: 6px 0 12px;
}

.ph-contact .ct-loc-address {
  font-size: 18px;
  line-height: 1.6;
  color: var(--hp-ink);
  margin: 0;
}

.ph-contact .ct-loc-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ph-contact .ct-loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: none;
}

/* ---------- tablet: single column ---------- */
@media (max-width: 1024px) {
  .ph-contact.hp-hero {
    padding: 40px 0 64px;
  }
  .ph-contact .hp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ph-contact .ct-media {
    justify-self: center;
    max-width: 600px;
  }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .ph-contact.hp-hero {
    padding: 28px 0 56px;
  }
  .ph-contact .crumbs {
    margin-bottom: 26px;
    font-size: 14px;
  }
  .ph-contact .ct-title {
    font-size: clamp(38px, 11vw, 50px);
    margin-bottom: 20px;
  }
  .ph-contact .ct-lead {
    font-size: 17px;
    margin-bottom: 28px;
  }
  .ph-contact .ct-btns {
    gap: 12px;
    margin-bottom: 36px;
  }
  .ph-contact .ct-btns .hp-pill {
    flex: 1 1 auto;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
  }
  .ph-contact .ct-loc-main {
    flex-direction: column;
    gap: 16px;
  }
  .ph-contact .ct-loc-actions .hp-pill {
    flex: 1 1 auto;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
  }
  .ph-contact .ct-frame {
    padding: 14px;
    border-radius: 26px;
  }
  .ph-contact .ct-photo {
    border-radius: 18px;
  }
  .ph-contact .ct-bar {
    margin: -40px 6px 0;
    padding: 14px 16px;
  }
  .ph-contact .ct-media::before {
    inset: -16px -8px 36px 20px;
  }
}

/* ---------- info cards under Campus Location (screenshot layout) ---------- */
.ph-loc .dl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ph-loc .dl-card {
  --dl-bg: #eaf3fc;
  --dl-line: #cfe0f2;
  --dl-accent: var(--hp-blue);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 26px 24px;
  border: 1px solid var(--dl-line);
  border-radius: 26px;
  background: var(--dl-bg);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease;
}

.ph-loc .dl-card--peach {
  --dl-bg: #fdf1ec;
  --dl-line: #f5d5c6;
  --dl-accent: var(--hp-orange);
}

.ph-loc .dl-card--mint {
  --dl-bg: #e9f5ef;
  --dl-line: #c9e6d8;
  --dl-accent: #2f7d5b;
}

.ph-loc .dl-card--butter {
  --dl-bg: #fdf7e4;
  --dl-line: #f0e0b0;
  --dl-accent: #b07a1e;
}

.ph-loc .dl-card:hover,
.ph-loc .dl-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--dl-accent);
  box-shadow: 0 26px 50px rgba(14, 42, 71, .14);
}

.ph-loc .dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.ph-loc .dl-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--dl-accent);
  box-shadow: 0 6px 16px rgba(14, 42, 71, .06);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.ph-loc .dl-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ph-loc .dl-card:hover .dl-icon {
  transform: rotate(-6deg) scale(1.06);
}

.ph-loc .dl-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  font-family: var(--hp-nav);
  font-size: 13px;
  font-weight: 600;
  color: var(--dl-accent);
  white-space: nowrap;
}

.ph-loc .dl-card h3 {
  font-family: var(--hp-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-blue);
  margin: 0 0 12px;
}

.ph-loc .dl-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--hp-navy);
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.ph-loc .dl-card p a:hover {
  color: var(--dl-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ph-loc .dl-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--dl-line);
  font-family: var(--hp-nav);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dl-accent);
}

.ph-loc .dl-arrow {
  display: inline-block;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.ph-loc .dl-card:hover .dl-arrow,
.ph-loc .dl-card:focus-within .dl-arrow {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .ph-loc .dl-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .ph-loc .dl-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .ph-loc .dl-card h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-contact .crumbs a,
  .ph-loc .dl-card,
  .ph-loc .dl-icon,
  .ph-loc .dl-arrow {
    transition: none;
  }
  .ph-loc .dl-card:hover,
  .ph-loc .dl-card:focus-within,
  .ph-loc .dl-card:hover .dl-arrow,
  .ph-loc .dl-card:focus-within .dl-arrow,
  .ph-loc .dl-card:hover .dl-icon {
    transform: none;
  }
}
