/* styles.css */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --gap: 12px;
  --radius: 14px;
  --text: #0f172a;
  --muted: #475569;
  --bg1: #f8fafc;
  --bg2: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.12);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.menu-wrapper {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 14px;
}

.title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.title-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 18px;
  line-height: 1;
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  aspect-ratio: 1 / 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-cta {
  margin-top: 14px;
  text-align: center;
}

.contact-cta-text {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.contact-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.95));
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.contact-cta-button:hover {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

@media (max-width: 360px) {
  :root {
    --gap: 10px;
  }

  .page {
    padding: 8px 10px;
  }

  .menu-wrapper {
    max-width: 520px;
  }

  .title-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .title {
    font-size: 22px;
  }

  .title-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 17px;
  }

  .card {
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
  }

  .icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
    border-radius: 10px;
  }

  .label {
    font-size: 13px;
    line-height: 1.1;
  }

  .contact-cta {
    margin-top: 10px;
  }

  .contact-cta-text {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .contact-cta-button {
    width: auto;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.40);
}

.modal-panel {
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.modal-close {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 16px;
}

.modal-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.modal-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.modal-option:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .modal-option,
  .contact-cta-button {
    transition: none;
  }

  .card:hover,
  .modal-option:hover,
  .contact-cta-button:hover {
    transform: none;
  }
}

a:active,
button:active {
  background: inherit;
}
