/* ---- page-specific: contact ---- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 249, 246, .98) 0%, rgba(251, 249, 246, .9) 50%, rgba(244, 240, 250, .62) 100%),
    url("../../images/generated/sycamore-contact-pharmacy-counter.webp") center center / cover no-repeat;
  padding: clamp(46px, 7vw, 88px) 0;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.crumbs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  width: auto;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 1px solid rgba(21, 59, 99, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--sv-purple);
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 16px 34px -30px rgba(7, 24, 42, .42);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.crumbs a {
  color: inherit;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--sv-orange);
}

.crumbs i {
  color: var(--sv-orange);
  font-size: 9px;
}

.page-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-hero__lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--sv-ink-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
}

.contact-main {
  padding: clamp(56px, 7vw, 92px) 0;
  background:
    linear-gradient(180deg, var(--sv-surface) 0%, var(--sv-white) 100%);
}

.contact-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.contact-cols h3 {
  margin: 0;
  padding: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.contact-cols h3 em {
  color: var(--sv-purple);
  font-weight: 700;
}

.muted-lead {
  max-width: 650px;
  margin: 12px 0 24px;
  color: var(--sv-ink-soft);
  font-size: 16.5px;
  line-height: 1.68;
}

.form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(21, 59, 99, .16);
  border-radius: 22px;
  background: var(--sv-white);
  box-shadow: 0 28px 60px -46px rgba(7, 24, 42, .52);
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: var(--sv-grad-brand);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field.full,
.form-grid .full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--sv-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--sv-line);
  border-radius: 14px;
  background: var(--sv-cream);
  color: var(--sv-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input {
  min-height: 52px;
  padding: 13px 15px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 15px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(21, 59, 99, .62);
  background: var(--sv-white);
  box-shadow: 0 0 0 4px rgba(21, 59, 99, .12);
}

.send-btn {
  min-height: 54px;
  margin-top: 4px;
  background: var(--sv-grad-brand);
  color: var(--sv-white);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
}

.contact-actions .btn {
  min-width: 180px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--sv-line);
  border-radius: 18px;
  background: var(--sv-white);
  box-shadow: 0 18px 42px -36px rgba(7, 24, 42, .42);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 59, 99, .28);
  box-shadow: 0 24px 48px -34px rgba(7, 24, 42, .5);
}

.info-card:first-child,
.info-card:last-child {
  grid-column: 1 / -1;
}

.info-card .icon-tile {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
  background: var(--sv-surface);
  color: var(--sv-purple);
  font-size: 18px;
}

.info-card h4 {
  margin: 0 0 6px;
  color: var(--sv-purple);
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.info-card p {
  margin: 0;
  color: var(--sv-ink-soft);
  font-size: 15.5px;
  line-height: 1.58;
}

.find-us {
  padding: clamp(54px, 7vw, 90px) 0;
  background: var(--sv-cream);
}

.find-us__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.find-us__head h3 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.04;
}

.find-us__head .learn-more {
  flex: 0 0 auto;
}

.map-embed {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 59, 99, .16);
  border-radius: 22px;
  background: var(--sv-white);
  box-shadow: 0 28px 60px -46px rgba(7, 24, 42, .52);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(340px, 36vw, 500px);
  border: 0;
}

.map-embed--locations iframe {
  filter: saturate(.92) contrast(.98);
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  display: grid;
  gap: 7px;
  justify-items: center;
  transform: translate(-50%, -100%);
  z-index: 2;
}

.map-pin__dot {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid var(--sv-white);
  border-radius: 50% 50% 50% 0;
  background: var(--sv-purple);
  box-shadow: 0 16px 32px -16px rgba(7, 24, 42, .52);
  transform: rotate(-45deg);
}

.map-pin__dot::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sv-white);
}

.map-pin__label {
  display: grid;
  min-width: 142px;
  border: 1px solid rgba(21, 59, 99, .18);
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 36px -26px rgba(7, 24, 42, .5);
  text-align: center;
  backdrop-filter: blur(8px);
}

.map-pin__label strong {
  color: var(--sv-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.map-pin__label small {
  margin-top: 3px;
  color: var(--sv-ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

.map-pin__badge {
  border: 1px solid rgba(95, 101, 112, .22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .95);
  color: #5F6570;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 14px 28px -22px rgba(30, 34, 40, .55);
}

.map-pin--blue-ash {
  left: 68%;
  top: 76%;
}

.map-location-key {
  position: absolute;
  left: 20px;
  right: auto;
  bottom: 20px;
  display: grid;
  width: min(520px, calc(100% - 40px));
  grid-template-columns: 1fr;
  gap: 8px;
  z-index: 3;
}

.map-location-key div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  border: 1px solid rgba(21, 59, 99, .14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 32px -28px rgba(7, 24, 42, .42);
  backdrop-filter: blur(8px);
}

.map-location-key strong,
.map-location-key small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-location-key strong {
  color: var(--sv-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.map-location-key small {
  grid-column: 2;
  color: var(--sv-ink-soft);
  font-size: 12px;
  line-height: 1.3;
}

.key-dot {
  grid-row: 1 / span 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sv-purple);
}

@media (max-width: 980px) {
  .contact-cols {
    grid-template-columns: 1fr;
  }

  .find-us__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 42px 0;
  }

  .crumbs {
    max-width: 100%;
    font-size: 13px;
  }

  .form-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .form-card,
  .info-card,
  .map-embed {
    border-radius: 16px;
  }

  .contact-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .map-pin--blue-ash {
    left: 70%;
    top: 73%;
  }

  .map-pin__label {
    min-width: 118px;
    padding: 8px 9px;
  }

  .map-location-key {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    padding: 12px;
    background: var(--sv-white);
  }
}
