﻿/* ═══════════════════════════════════════════════════════
   About Us Page Styles (V4.1)
   ═══════════════════════════════════════════════════════ */

/* ── 1. Hero Banner ── */
.about-hero {
  position: relative;
  height: 400px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  z-index: 0;
}

.about-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

/* ── 2. Secondary Nav ── */
.about-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 50;
}

.about-nav__list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-nav__link {
  display: block;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.about-nav__link:hover {
  color: #2563eb;
}

.about-nav__link.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* ── 3. Introduction Section ── */
.about-intro {
  padding: 100px 0;
}

.about-intro__content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 2;
  color: #475569;
}

.about-intro__content p {
  margin-bottom: 24px;
}

/* ── 4. Vision Cards ── */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.vision-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: left;
  transition: all 0.3s;
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: #bfdbfe;
}

.vision-card__icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 1.5rem;
}

.vision-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.vision-card__desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.vision-card__tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── 5. Honors Grid ── */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.honor-item {
  background: #ffffff;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-align: center;
}

.honor-item__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.honor-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

/* ── 6. Contact Section ── */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 29rem) minmax(24rem, 42rem);
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  margin-top: 4rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.contact-info__top {
  display: grid;
  gap: 1rem;
}

.contact-info__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28), transparent);
}

.contact-info__branches {
  display: grid;
  gap: 0.85rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item--static {
  align-items: flex-start;
  padding: 0.35rem 0.1rem;
}

.contact-item__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: #f0f9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
}

.contact-item__body h4 {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item__body p {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.contact-office {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.contact-office:hover,
.contact-office:focus-visible {
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 14px 24px -20px rgba(37, 99, 235, 0.25);
  transform: translateX(2px);
}

.contact-office.is-active {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
  box-shadow: 0 18px 26px -24px rgba(37, 99, 235, 0.38);
}

.contact-office__bullet {
  position: relative;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
}

.contact-office__bullet::after {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-radius: inherit;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08);
  transform: scale(0.6);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.contact-office.is-active .contact-office__bullet::after {
  transform: scale(1);
  opacity: 1;
}

.contact-office__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.contact-office__name {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-office__address {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-map {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-height: 0;
}

.contact-map__stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5edf7;
  border-radius: 1.5rem;
  min-height: 31rem;
    background:
      radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.12), transparent 28%),
      radial-gradient(circle at 14% 78%, rgba(14, 165, 233, 0.1), transparent 24%),
      linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.contact-map__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.05), transparent 42%),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08), transparent 22%, transparent 78%, rgba(148, 163, 184, 0.08));
  pointer-events: none;
}

.contact-map__image {
  position: absolute;
  inset: 4% 4% 4% 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.02) brightness(1.03);
  opacity: 0.96;
  user-select: none;
  pointer-events: none;
}

.contact-map__ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 69% 57%, rgba(37, 99, 235, 0.12), transparent 10%),
    radial-gradient(circle at 58% 48%, rgba(56, 189, 248, 0.14), transparent 10%),
    radial-gradient(circle at 24% 30%, rgba(99, 102, 241, 0.12), transparent 11%);
  pointer-events: none;
}

.contact-map__marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  --marker-offset: 0rem;
  transform: translate(-50%, -50%) translateX(var(--marker-offset));
  cursor: pointer;
  transition: transform 220ms ease;
}

.contact-map__marker[data-marker-align="left"] {
  --marker-offset: -0.35rem;
}

.contact-map__marker[data-marker-align="right"] {
  --marker-offset: 0.35rem;
}

.contact-map__marker:hover,
.contact-map__marker:focus-visible {
  transform: translate(-50%, -50%) translateX(var(--marker-offset)) scale(1.02);
}

.contact-map__marker-dot {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.contact-map__marker-pulse {
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  opacity: 0.7;
  animation: contact-pulse 2.8s ease-in-out infinite;
}

.contact-map__marker.is-active .contact-map__marker-dot {
  background: #1d4ed8;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.contact-map__marker.is-active .contact-map__marker-pulse {
  border-color: rgba(37, 99, 235, 0.3);
}

.contact-map__marker-label {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

.contact-map__callout {
  padding: 1rem 1.05rem 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px -26px rgba(15, 23, 42, 0.28);
}

.contact-map__callout-kicker {
  margin: 0 0 0.35rem;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-map__callout-title {
  margin: 0 0 0.5rem;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.contact-map__callout-desc {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.7;
}

.contact-map__caption {
  margin: 0 0 0 0.35rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.5;
}

@keyframes contact-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* 鈹€鈹€ 7. Responsive 鈹€鈹€ */
@media (max-width: 1024px) {
  html:not(.is-desktop) .vision-grid { grid-template-columns: repeat(2, 1fr); }
  html:not(.is-desktop) .honors-grid { grid-template-columns: repeat(2, 1fr); }
  html:not(.is-desktop) .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html:not(.is-desktop) .about-hero__title { font-size: 2.5rem; }
  html:not(.is-desktop) .vision-grid, html:not(.is-desktop) .honors-grid { grid-template-columns: 1fr; }
  html:not(.is-desktop) .about-nav__link { padding: 1rem; font-size: 0.875rem; }

  html:not(.is-desktop) .contact-info {
    padding: 1.25rem;
  }

  html:not(.is-desktop) .contact-item__body p {
    font-size: 1.1rem;
  }

  html:not(.is-desktop) .contact-office {
    padding-inline: 0.85rem;
  }

  html:not(.is-desktop) .contact-map {
    min-height: 28rem;
  }

  html:not(.is-desktop) .contact-map__stage {
    min-height: 26rem;
  }

  html:not(.is-desktop) .contact-map__callout {
    padding: 0.9rem 1rem;
  }

  html:not(.is-desktop) .contact-map__marker-label {
    display: none;
  }
}
