/* ==========================================================================
   contact-ds.css — Contact page design system
   Scoped under .sh-contact-page — zero Bootstrap, zero WooCommerce leakage
   ========================================================================== */

/* ── Hard-reset any WC / Bootstrap form rules leaking in ───────────────────
   WooCommerce adds .woocommerce-page body class site-wide and sometimes
   injects inline <style> blocks that target bare input / label selectors.
   We scope everything under .sh-contact-page and re-declare every property
   so nothing from outside can win even with !important.
   -------------------------------------------------------------------------- */
.sh-contact-page,
.sh-contact-page *,
.sh-contact-page *::before,
.sh-contact-page *::after {
  box-sizing: border-box;
}

.sh-contact-page input[type="text"],
.sh-contact-page input[type="email"],
.sh-contact-page input[type="tel"],
.sh-contact-page textarea,
.sh-contact-page select,
.sh-contact-page label {
  /* kill WC / Bootstrap inline !important rules */
  all: revert;
  box-sizing: border-box;
}

/* ── Page wrapper ──────────────────────────────────────────────────────── */
.sh-contact-page {
  padding: 60px 0 80px;
  background: var(--sh-ink-50, #f9fafb);
}


/* ── Page heading ──────────────────────────────────────────────────────── */
.sh-contact-page .sh-contact-header {
  text-align: center;
  margin-bottom: 48px;
}
.sh-contact-page .sh-contact-header h1 {
  font-family: var(--sh-font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--sh-ink-950, #0b1012);
  margin: 0 0 10px;
  line-height: 1.2;
}
.sh-contact-page .sh-contact-header p {
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 15px;
  color: var(--sh-ink-500, #718096);
  margin: 0;
}

/* ── Two-column layout ─────────────────────────────────────────────────── */
.sh-contact-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 820px) {
  .sh-contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Info card ─────────────────────────────────────────────────────────── */
.sh-contact-info {
  background: var(--sh-teal-900, #0A4040);
  border-radius: var(--sh-r-lg, 12px);
  padding: 36px 32px;
  color: rgba(255,255,255,0.88);
}

.sh-contact-info__eyebrow {
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sh-sand-400, #C8B380);
  margin: 0 0 20px;
}

.sh-contact-info h2 {
  font-family: var(--sh-font-serif, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
  line-height: 1.3;
}

/* ── Contact detail rows ───────────────────────────────────────────────── */
.sh-contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.sh-contact-detail:last-of-type {
  margin-bottom: 0;
}
.sh-contact-detail__icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--sh-r-sm, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sh-contact-detail__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--sh-sand-400, #C8B380);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.sh-contact-detail__body {
  flex: 1;
  min-width: 0;
}
.sh-contact-detail__label {
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 3px;
}
.sh-contact-detail__value {
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.5;
}
.sh-contact-detail__value a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
}
.sh-contact-detail__value a:hover {
  color: var(--sh-sand-300, #D4C08A);
  text-decoration: underline;
}

/* ── Hours ─────────────────────────────────────────────────────────────── */
.sh-contact-hours {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sh-contact-hours__label {
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 8px;
}
.sh-contact-hours__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}
.sh-contact-hours__row:last-child { margin-bottom: 0; }
.sh-contact-hours__closed { color: rgba(255,255,255,0.35); }

/* ── Social links ──────────────────────────────────────────────────────── */
.sh-contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.sh-contact-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--sh-r-sm, 6px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sh-contact-socials a:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}
/* Sprite icons are stroke-based; inherit currentColor from parent <a> */
.sh-contact-socials svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  overflow: visible;
}

/* ── Form card ─────────────────────────────────────────────────────────── */
.sh-contact-form-card {
  background: #fff;
  border-radius: var(--sh-r-lg, 12px);
  border: 1px solid var(--sh-ink-150, #e8ecf0);
  padding: 40px 36px 36px;
}

.sh-contact-form-card__eyebrow {
  font-family: var(--sh-font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sh-teal-600, #1A9C9C);
  margin: 0 0 8px;
}

.sh-contact-form-card h2 {
  font-family: var(--sh-font-serif, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--sh-ink-950, #0b1012);
  margin: 0 0 28px;
  line-height: 1.3;
}

/* ── Form grid ─────────────────────────────────────────────────────────── */
.sh-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.sh-cf-row.sh-cf-row--full {
  grid-template-columns: 1fr;
}
@media (max-width: 560px) {
  .sh-cf-row { grid-template-columns: 1fr; }
}

.sh-cf-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ── Label ─────────────────────────────────────────────────────────────── */
.sh-contact-page .sh-cf-label {
  display: block;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--sh-ink-600, #4a5568);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  line-height: 1.4;
}
.sh-contact-page .sh-cf-label .sh-cf-req {
  color: var(--sh-teal-500, #1A9C9C);
  margin-left: 2px;
}

/* ── Inputs ────────────────────────────────────────────────────────────── */
.sh-contact-page .sh-cf-input,
.sh-contact-page input[type="text"].sh-cf-input,
.sh-contact-page input[type="email"].sh-cf-input,
.sh-contact-page input[type="tel"].sh-cf-input {
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  padding: 0 13px !important;
  background: var(--sh-ink-75, #f7f8f9) !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--sh-r-sm, 6px) !important;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif) !important;
  font-size: 14px !important;
  color: var(--sh-ink-950, #0b1012) !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  float: none !important;
  position: static !important;
}
.sh-contact-page .sh-cf-input:focus,
.sh-contact-page input[type="text"].sh-cf-input:focus,
.sh-contact-page input[type="email"].sh-cf-input:focus,
.sh-contact-page input[type="tel"].sh-cf-input:focus {
  border-color: var(--sh-teal-500, #1A9C9C) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(26,156,156,0.10) !important;
}
.sh-contact-page .sh-cf-input::placeholder {
  color: var(--sh-ink-400, #a0aec0);
  opacity: 1;
}

/* ── Textarea ──────────────────────────────────────────────────────────── */
.sh-contact-page .sh-cf-textarea,
.sh-contact-page textarea.sh-cf-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 120px !important;
  padding: 12px 13px !important;
  background: var(--sh-ink-75, #f7f8f9) !important;
  border: 1.5px solid transparent !important;
  border-radius: var(--sh-r-sm, 6px) !important;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif) !important;
  font-size: 14px !important;
  color: var(--sh-ink-950, #0b1012) !important;
  box-shadow: none !important;
  outline: none !important;
  margin: 0 !important;
  resize: vertical !important;
  line-height: 1.55 !important;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.sh-contact-page .sh-cf-textarea:focus,
.sh-contact-page textarea.sh-cf-textarea:focus {
  border-color: var(--sh-teal-500, #1A9C9C) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(26,156,156,0.10) !important;
}
.sh-contact-page .sh-cf-textarea::placeholder {
  color: var(--sh-ink-400, #a0aec0);
  opacity: 1;
}

/* ── Submit button ─────────────────────────────────────────────────────── */
.sh-contact-page .sh-cf-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 50px !important;
  margin-top: 8px !important;
  padding: 0 24px !important;
  background: var(--sh-teal-600, #1A9C9C) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--sh-r-sm, 6px) !important;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  text-decoration: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  letter-spacing: 0.01em !important;
}
.sh-contact-page .sh-cf-submit:hover:not(:disabled) {
  background: var(--sh-teal-700, #127070) !important;
}
.sh-contact-page .sh-cf-submit:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
}
.sh-contact-page .sh-cf-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Status messages ───────────────────────────────────────────────────── */
.sh-form-status {
  padding: 12px 16px;
  border-radius: var(--sh-r-sm, 6px);
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  border-left: 3px solid transparent;
}
.sh-form-success {
  background: #f0fff4;
  border-left-color: #38a169;
  color: #22543d;
}
.sh-form-error {
  background: #fff5f5;
  border-left-color: #e53e3e;
  color: #742a2a;
}

/* ── Maps grid (store + factory) ───────────────────────────────────────── */
.sh-contact-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 700px) {
  .sh-contact-maps { grid-template-columns: 1fr; }
}

.sh-contact-map-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sh-contact-map-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sh-contact-map-label svg {
  width: 18px;
  height: 18px;
  stroke: var(--sh-teal-600, #1A9C9C);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}
.sh-contact-map-label span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--sh-font-sans, 'IBM Plex Sans', sans-serif);
}
.sh-contact-map-label strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-ink-900, #1a202c);
}
.sh-contact-map-label span > :not(strong) {
  font-size: 12px;
  color: var(--sh-ink-500, #718096);
}

.sh-contact-map-block iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--sh-r-lg, 12px);
}

/* ── Mobile: 16px inputs prevent iOS Safari auto-zoom on focus ──────────── */
@media (max-width: 640px) {
  .sh-contact-page .sh-cf-input,
  .sh-contact-page input[type="text"].sh-cf-input,
  .sh-contact-page input[type="email"].sh-cf-input,
  .sh-contact-page input[type="tel"].sh-cf-input,
  .sh-contact-page .sh-cf-textarea,
  .sh-contact-page textarea.sh-cf-textarea,
  .sh-contact-page select {
    font-size: 16px !important;
  }
  .sh-contact-map-block iframe { height: 240px; }
}
