/* Mini: mobile-first, system fonts, no scripts or external assets. */
:root {
  --color-background: #f8f9fa;
  --color-text: #252d3a;
  /* Retain the original J&O footer branding colors. */
  --color-muted: #5f685e;
  --color-accent: #24483e;
  --color-border: #dedfd5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-background);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 3px solid #374151;
  outline-offset: 5px;
}

.name-header {
  padding: calc(32px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 32px max(24px, env(safe-area-inset-left));
  background: #252d3a;
  color: #fff;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
}

.contact-card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Extra bottom space places the group 20px above the available center. */
  padding-block: 32px 72px;
}

h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #374151;
  color: #fff;
  box-shadow: 0 2px 4px #252d3a05;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Platform colors stay attached to each button when others are removed. */
.contact-button-line {
  background: #06c755;
  color: #fff;
}

.contact-button-instagram {
  background: linear-gradient(115deg, #713db5, #b52b72 55%, #b44928);
}

.contact-button-facebook {
  background: #0866e6;
}

.contact-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-icon {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: currentColor;
}

@media (hover: hover) {
  .contact-button:hover {
    filter: brightness(.94);
  }
}

.contact-button:active {
  filter: brightness(.9);
}

/* Compact J&O MINI credit; spacing adapted to the Mini viewport. */
.jopw-attribution {
  width: 100%;
  max-width: 440px;
  margin: auto auto 0;
  border-top: 1px solid var(--color-border);
  padding-block: 20px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--color-muted);
}

.jopw-attribution-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 4px;
  text-align: left;
  font-size: .875rem;
  line-height: 1.7;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.jopw-attribution-link:focus-visible {
  outline-color: var(--color-accent);
}

.jopw-attribution-link > span {
  min-width: 0;
}

.jopw-attribution-logo {
  display: block;
  width: 60px;
  height: auto;
  flex-shrink: 0;
}

.jopw-attribution-credit {
  display: block;
}

.jopw-attribution-name {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jopw-attribution-link:hover .jopw-attribution-name {
  text-decoration-thickness: 2px;
}

@media (max-height: 650px) {
  .contact-card {
    padding-block: 32px 24px;
  }
}
