/* About page — refined single-composition layout */

.about-page {
  --about-ink: #eef3fa;
  --about-muted: rgba(176, 192, 214, 0.82);
  --about-line: rgba(255, 255, 255, 0.09);
  --about-surface: rgba(12, 20, 34, 0.78);
}

[data-theme="light"] .about-page {
  --about-ink: var(--afram-text, #0f172a);
  --about-muted: var(--afram-text-muted, #64748b);
  --about-line: var(--afram-border, #e2e8f0);
  --about-surface: #fff;
}

.about-nav-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.about-nav-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--afram-accent) 22%, transparent);
  color: var(--afram-accent, #38bdf8);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ─── Hero ─── */
.about-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 9vw, 5.75rem) 0 clamp(2.5rem, 6vw, 3.75rem);
  overflow: hidden;
  background: linear-gradient(165deg, #03080f 0%, #0a1526 48%, #06101c 100%);
}

[data-theme="light"] .about-hero {
  background: linear-gradient(165deg, #e8eef6 0%, #f7fafc 52%, #eef3f9 100%);
}

.about-hero-glow {
  position: absolute;
  inset: -18% 0 auto auto;
  width: min(48rem, 85vw);
  height: min(32rem, 70vw);
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 40%, color-mix(in srgb, var(--afram-accent) 34%, transparent), transparent 70%);
  animation: about-glow-drift 12s ease-in-out infinite alternate;
}

.about-hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 72%);
}

[data-theme="light"] .about-hero-grid-bg {
  opacity: 0.35;
}

@keyframes about-glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5%, 6%) scale(1.06); }
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.about-hero-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.15rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  background: linear-gradient(145deg, #38bdf8, #0284c7 55%, #0369a1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 14px 36px rgba(2, 132, 199, 0.35);
  animation: about-rise 0.65s ease both;
}

.about-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--afram-accent, #38bdf8);
}

.about-brand-title {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #f8fafc;
  animation: about-rise 0.7s ease 0.05s both;
}

[data-theme="light"] .about-brand-title {
  color: var(--afram-text, #0f172a);
}

.about-tagline {
  margin: 0 0 0.95rem;
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
  animation: about-rise 0.7s ease 0.1s both;
}

[data-theme="light"] .about-tagline {
  color: var(--afram-text, #334155);
}

.about-lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--about-muted);
  animation: about-rise 0.7s ease 0.14s both;
}

.about-chips {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  animation: about-rise 0.7s ease 0.18s both;
}

.about-chips li {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--afram-accent) 28%, transparent);
  background: color-mix(in srgb, var(--afram-accent) 10%, transparent);
  color: var(--about-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: about-rise 0.7s ease 0.22s both;
}

@keyframes about-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Visit: contact + map as one unit ─── */
.about-visit {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--afram-bg-page, #080f1a);
}

[data-theme="light"] .about-visit {
  background: var(--afram-bg, #f1f5f9);
}

.about-visit-shell {
  display: grid;
  grid-template-columns: minmax(16rem, 0.92fr) minmax(0, 1.35fr);
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--about-line);
  background: var(--about-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  min-height: min(70vh, 34rem);
}

[data-theme="light"] .about-visit-shell {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.about-visit-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-inline-end: 1px solid var(--about-line);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--afram-accent) 10%, transparent), transparent 50%),
    transparent;
}

.about-visit-title {
  margin: -0.35rem 0 0.35rem;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--about-ink);
}

.about-fact {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.about-fact-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--afram-accent) 15%, transparent);
  color: var(--afram-accent, #38bdf8);
  font-size: 1.15rem;
}

.about-fact h3 {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--about-muted);
}

.about-fact p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 600;
  color: var(--about-ink);
}

.about-phone {
  color: inherit;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.about-phone:hover {
  color: var(--afram-accent, #38bdf8);
}

.about-fact--routes {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--about-line);
}

.about-route-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.about-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--about-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--about-ink) !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.about-route-btn:hover {
  background: color-mix(in srgb, var(--afram-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--afram-accent) 40%, transparent);
  transform: translateY(-1px);
}

.about-route-btn--accent {
  background: color-mix(in srgb, var(--afram-accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--afram-accent) 35%, transparent);
}

[data-theme="light"] .about-route-btn {
  background: #f8fafc;
}

.about-map-shell {
  position: relative;
  min-height: 22rem;
  background: #0a1220;
}

.about-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(70vh, 34rem);
  border: 0;
}

/* map pin */
.about-map-marker {
  background: transparent !important;
  border: 0 !important;
}

.about-map-pin {
  position: relative;
  width: 44px;
  height: 56px;
  filter: drop-shadow(0 6px 12px rgba(2, 132, 199, 0.4));
}

.about-map-pin-pulse {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  background: color-mix(in srgb, #38bdf8 40%, transparent);
  animation: about-pin-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.about-map-pin-head {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  border: 3px solid #fff;
  color: #fff;
  font-size: 1.05rem;
}

.about-map-pin-tip {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  margin-left: -10px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 22px solid #0284c7;
}

@keyframes about-pin-pulse {
  0% { transform: scale(0.7); opacity: 0.85; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { opacity: 0; }
}

.leaflet-tooltip.about-map-tooltip {
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.leaflet-tooltip.about-map-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.94);
}

[data-theme="light"] .leaflet-tooltip.about-map-tooltip {
  background: #fff;
  color: #0f172a;
  border-color: #bae6fd;
}

[data-theme="light"] .leaflet-tooltip.about-map-tooltip::before {
  border-top-color: #fff;
}

/* ─── Footer ─── */
.about-footer {
  border-top: 1px solid var(--about-line);
}

.about-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.about-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
}

[data-theme="light"] .about-footer-brand {
  color: var(--afram-text);
}

.about-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.about-footer-links a {
  color: var(--about-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.about-footer-links a:hover {
  color: var(--afram-accent, #38bdf8);
}

@media (max-width: 900px) {
  .about-visit-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-visit-side {
    border-inline-end: 0;
    border-bottom: 1px solid var(--about-line);
  }

  .about-map-canvas {
    min-height: 22rem;
    height: 22rem;
  }

  .about-fact--routes {
    margin-top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-mark,
  .about-brand-title,
  .about-tagline,
  .about-lead,
  .about-chips,
  .about-hero-actions,
  .about-hero-glow,
  .about-map-pin-pulse,
  .about-route-btn {
    animation: none !important;
    transition: none !important;
  }
}
