/* --------------- Contact Page --------------- */

body.page-contact {
  color: var(--brand);
  background: #f6f8fb;
}

.hero--contact {
  --contact-hero-position: 45% 22%;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 78vh, 640px);
  color: var(--ink);
  background: #0b172f;
  isolation: isolate;
}

.hero--contact .hero-bg {
  object-position: var(--contact-hero-position);
}

.hero--contact .hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      rgba(10, 20, 40, 0.75),
      rgba(25, 41, 69, 0.5)
    ),
    linear-gradient(180deg, rgba(9, 20, 46, 0.18), rgba(9, 20, 46, 0));
  z-index: -1;
}

.hero--contact .hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding-block: calc(var(--section-spacing) * 1.4);
}

.hero--contact .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(12, 25, 49, 0.3);
}

.hero--contact .eyebrow::before {
  background: rgba(255, 255, 255, 0.72);
}

.hero--contact .hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero--contact .hero__lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero--contact .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-overview {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #f8fafc;
}

.contact-overview__layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.contact-overview__header {
  display: grid;
  gap: 0.55rem;
  align-items: start;
}

.contact-overview__intro {
  display: grid;
  gap: 0.4rem;
  max-width: 820px;
}

.contact-overview__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  margin-top: 3.2rem;
  padding: 2.8rem 0;
}

.contact-pane {
  position: relative;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.35rem;
  box-shadow: none;
  height: 100%;
  align-content: start;
}

.contact-pane--address {
  text-align: center;
  justify-items: center;
  align-self: stretch;
}

.contact-pane__body {
  display: grid;
  height: 100%;
  align-items: center;
  justify-items: center;
  align-self: stretch;
  justify-self: stretch;
}

.contact-pane--hours {
  text-align: center;
  justify-items: center;
}

.contact-pane--hours .contact-hours-simple {
  margin-top: 0.6rem;
}

@media (max-width: 719px) {
  .contact-pane__body {
    margin-top: 0.6rem;
  }
}

@media (max-width: 531px) {
  .contact-pane--hours {
    margin-top: 1.9rem;
  }
}

.contact-pane__eyebrow {
  display: inline-block;
  width: auto;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.76rem;
  color: #50607c;
}

.contact-address {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.12rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-pane--address .contact-address li:first-child {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.contact-link--ghost {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  color: #0f2b52;
}

.contact-overview__cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 0.4rem;
}

.contact-cards {
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  background: #f8fafc;
}

@media (max-width: 719px) {
  .contact-overview__cards {
    gap: 1.5rem;
  }
}

.contact-card {
  position: relative;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.06),
      transparent 45%
    ),
    #192945;
  border: 1px solid #0f172a;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  color: #ffffff;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.contact-card--sales .contact-card__icon {
  background: linear-gradient(135deg, #e9f2ff, #c7dcff);
  color: #0f2b52;
}

.contact-card--care .contact-card__icon {
  background: linear-gradient(135deg, #e6fff4, #c8f3e2);
  color: #0b3a2c;
}

.contact-card--procurement .contact-card__icon {
  background: linear-gradient(135deg, #fffde9, #fffce0);
  color: #5a3b00;
}

.contact-meta-block {
  display: grid;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.contact-meta-block h3 {
  margin: 0;
  color: #0f172a;
}

.contact-meta-address {
  display: grid;
  gap: 0.35rem;
  position: relative;
  padding-left: 2.6rem;
}

.contact-meta-address::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f1ff, #d0e6ff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.contact-meta-address::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%230f2b52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
    center/22px 22px no-repeat;
}

.contact-card h3 {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.contact-card__copy {
  margin: 0;
  color: #ffffff;
}

.contact-card::after {
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-card__links {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.contact-card__links--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #dfe6f5;
  background: #ffffff;
  color: #1c2f52;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background-color 0.15s ease;
}

.contact-link::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #1c2f52;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.contact-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  border-color: #c8d6ee;
  background: #f6f9ff;
}

.contact-link--muted {
  color: #1c2f52;
  font-weight: 600;
  background: #ffffff;
}

.contact-link--muted::before {
  border-color: #dfe6f5;
  color: #1c2f52;
}

.contact-card--sales .contact-link,
.contact-card--sales .contact-link--muted {
  border-color: #c7dcff;
  background: linear-gradient(135deg, #e9f2ff, #d5e7ff);
  color: #0f2b52;
}

.contact-card--sales .contact-link::before,
.contact-card--sales .contact-link--muted::before {
  border-color: transparent;
  background: transparent;
  color: #0f2b52;
}

.contact-card--care .contact-link,
.contact-card--care .contact-link--muted {
  border-color: #c8f3e2;
  background: linear-gradient(135deg, #e6fff4, #d1f4e3);
  color: #0b3a2c;
}

.contact-card--care .contact-link::before,
.contact-card--care .contact-link--muted::before {
  border-color: transparent;
  background: transparent;
  color: #0b3a2c;
}

.contact-card--procurement .contact-link,
.contact-card--procurement .contact-link--muted {
  border-color: #fffce0;
  background: linear-gradient(135deg, #fffde9, #fffce0);
  color: #5a3b00;
}

.contact-card--procurement .contact-link::before,
.contact-card--procurement .contact-link--muted::before {
  border-color: transparent;
  background: transparent;
  color: #5a3b00;
}

.contact-link[data-icon="phone"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231c2f52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.08 4.18 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}

.contact-link[data-icon="mail"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231c2f52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

/* Force consistent heading color across all contact cards */
.contact-card--sales h3,
.contact-card--care h3 {
  color: #ffffff;
}

.contact-hours-simple {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.contact-hours-simple--inline {
  grid-template-columns: 1fr;
}

.contact-hours-simple--stacked {
  gap: 1.1rem;
}

.contact-hours-simple--stacked span {
  color: #0f172a;
  font-weight: 700;
}

.contact-hours-simple--stacked strong {
  color: var(--muted);
  font-weight: 700;
}

.hours-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
}

.contact-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.contact-map-section {
  padding: clamp(1.8rem, 4vw, 2.6rem) 0 0;
  background: #fff;
}

.contact-map-lede {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.contact-map-lede .section-title {
  margin: 0.1rem 0 0.2rem;
}

.contact-map__note {
  margin: 0;
  color: #4b5d7b;
  max-width: 760px;
}

.contact-map-frame {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  height: clamp(320px, 60vh, 620px);
  overflow: hidden;
}

.contact-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map {
  width: 100%;
  height: 100%;
}

.contact-map-marker {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.contact-map-pin__glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
}

.contact-map-pin__logo {
  width: 56px;
  height: 56px;
  display: block;
  color: currentColor;
}

.contact-form {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.contact-form .section-head {
  max-width: 860px;
}

.contact-form .brochure-form__card {
  border-color: #dfe8f5;
}
