/* Contact uses the shared Store palette, type roles and responsive page frame. */
.contact-hero {
  max-width: 680px;
  padding: 26px 0 30px;
}
.contact-hero .eyebrow,
.contact-explore .eyebrow { color: var(--brand-ink); }
.contact-hero h1 { margin: 12px 0 14px; }
.contact-hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
}

.contact-details {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.1fr;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.contact-detail {
  min-width: 0;
  padding: 28px;
}
.contact-detail + .contact-detail { border-left: 1px solid var(--line); }
.contact-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 18px;
  color: var(--brand-ink);
}
.contact-detail h2 {
  font-size: var(--type-card-title);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.contact-detail p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 37ch;
}
.contact-email,
.contact-number {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--brand-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.contact-email { font-size: clamp(18px, 2vw, 22px); }
.contact-number { font-size: 18px; font-variant-numeric: tabular-nums; }
.contact-sales .btn { margin-top: 24px; min-height: 44px; white-space: normal; }
.contact-location address {
  font-style: normal;
  color: var(--text-dim);
  line-height: 1.8;
}
.contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-text-link svg,
.contact-support-link svg,
.contact-story-link svg { width: 18px; height: 18px; flex: none; }

.contact-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.contact-support-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}
.contact-support-card .contact-icon { margin: 2px 0 0; }
.contact-support-body { display: flex; flex-direction: column; align-items: flex-start; }
.contact-support-card h2 { margin: 0 0 8px; font-size: var(--type-card-title); line-height: 1.3; }
.contact-support-card p { margin: 0 0 12px; color: var(--text-dim); font-size: 15px; }
.contact-support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
}

.contact-explore { padding-top: 42px; }
.contact-explore-heading h2 { margin: 10px 0; text-wrap: balance; }
.contact-explore-heading p { margin: 0; color: var(--text-dim); }
.contact-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.contact-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background .18s ease;
}
.contact-story-media {
  height: 210px;
  margin: 10px 10px 0;
  overflow: hidden;
  background: var(--tile);
  border-radius: var(--radius-sm);
}
.contact-story-media img {
  width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;
}
.contact-story-media-build img {
  padding: 0;
  object-fit: cover;
  object-position: center;
}
.contact-story-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: 22px;
}
.contact-story-category {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-story h3 { margin: 9px 0 12px; text-wrap: balance; }
.contact-story p { margin: 0 0 20px; color: var(--text-dim); font-size: 15px; }
.contact-story-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: auto;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover,
  .contact-number:hover,
  .contact-text-link:hover { color: var(--text); }
  .contact-support-card:hover,
  .contact-story:hover { background: var(--surface-soft); border-color: var(--brand-ink); }
  .contact-support-card:hover .contact-support-link,
  .contact-story:hover .contact-story-link { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 980px) {
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-sales { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .contact-sales p { max-width: 60ch; }
  .contact-detail.contact-phone { border-left: 0; }
  .contact-story-media { height: 180px; }
  .contact-story-body { padding: 18px; }
}
@media (max-width: 760px) {
  .contact-hero { padding: 22px 0 24px; }
  .contact-hero p { font-size: 16px; }
  .contact-detail { padding: 24px; }
  .contact-support { grid-template-columns: 1fr; }
  .contact-story-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-story-media { height: clamp(190px, 42vw, 280px); }
  .contact-story-media-build img { object-position: center 45%; }
  .contact-story-body { padding: 22px; }
  .contact-explore { padding-top: 32px; }
}
@media (max-width: 480px) {
  .contact-details { grid-template-columns: 1fr; }
  .contact-detail { padding: 22px; }
  .contact-sales { border-bottom: 0; }
  .contact-detail + .contact-detail { border-left: 0; border-top: 1px solid var(--line); }
  .contact-icon { margin-bottom: 14px; }
  .contact-sales .btn { width: 100%; padding-inline: 12px; }
  .contact-support-card { padding: 22px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-support-card,
  .contact-story { transition: none; }
}
