﻿/* ==============================================
   ABOUT PAGE — Idmanos
   ============================================== */

:root {
  --font-body: 1.0625rem;
  --line-height-body: 1.8;
  --font-h1: 1.75rem;
  --font-h2: 1.5rem;
  --font-h3: 1.125rem;
  --content-max-width: 42rem;
  --text-color: #1a1a1a;
  --text-body: #555;
  --text-muted: #999;
}

/* ---- Page ---- */

.about,
.about-terms {
  margin: 5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.brand-image {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.team-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
}

.brand-story {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}

.team-more {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.8s;
}

.contact {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1s;
}

/* ---- Brand Image ---- */

.brand-image {
  max-width: 40rem;
  margin: 4rem auto 8rem;
  padding: 0 2rem;
  box-sizing: border-box;
}

.brand-image-img,
.banner-image {
  width: 100%;
  height: auto;
  display: block;
  margin: auto;
}

.banner-image {
  max-width: var(--content-max-width);
  border-radius: 8px;
}

/* ---- Shared Containers ---- */

.brand-story,
.team-more,
.contact,
.team-title,
.about-contact-wrapper,
.terms-content,
.terms-title {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* ---- h1: Page Title ---- */

.team-title {
  margin-bottom: 2.5rem;
}

.team-title h1 {
  font-size: var(--font-h1);
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

/* ---- h2: Section Titles ---- */

.brand-story h2 {
  font-size: var(--font-h2);
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

/* ---- h3: Subsection Labels ---- */

.brand-story h3 {
  font-size: var(--font-h3);
  font-weight: 500;
  color: var(--text-color);
  margin: 0 0 1.25rem;
  padding: 0;
}

/* ---- Body Text ---- */

.brand-story p,
.contact p,
.terms-content p {
  font-size: var(--font-body);
  color: var(--text-body);
  line-height: var(--line-height-body);
  text-align: left;
  font-weight: 400;
  hanging-punctuation: allow-end;
}

.brand-story p {
  margin-bottom: 0;
}

.terms-content p {
  margin-bottom: 1.25rem;
}

/* ---- Story Blocks ---- */

.story-block {
  margin-bottom: 12rem;
}

.story-block:last-child {
  margin-bottom: 0;
}

/* ---- Manifesto ---- */

.manifesto-block {
  text-align: center;
  margin: 10rem 0;
}

.manifesto-block h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

/* ==============================================
   CONTACT — Tile Grid
   ============================================== */

.about-contact-wrapper {
  padding-top: 8rem;
}

.about-contact-wrapper .team-title {
  margin-bottom: 3rem;
  padding: 0;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-row {
  display: grid;
  gap: 0.75rem;
}

.contact-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.contact-row-4 {
  grid-template-columns: repeat(4, 1fr);
}

.contact-row-1 {
  grid-template-columns: 1fr;
}

.contact-tile {
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex-wrap: wrap;
  border: 1px solid #e8e8e8;
  border-radius: 0.625rem;
}

a.contact-tile:hover,
.contact-tile[onclick]:hover {
  cursor: pointer;
}

.tile-head {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.tile-head-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

img.tile-head-icon {
  filter: brightness(0);
  object-fit: contain;
}

svg.tile-head-icon {
  color: #000;
}

/* 小红书 icon 视觉偏小，稍微放大 */
img[src*="xiaohongshu"].tile-head-icon {
  width: 18px;
  height: 18px;
}

/* MartonCo icon 视觉偏小，稍微放大 */
img[src*="MartonCo"].tile-head-icon {
  width: 17px;
  height: 17px;
}

/* Instagram 填充图标 */
svg.instagram-icon {
  width: 18px;
  height: 18px;
}

.tile-value {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-color);
  text-decoration: none;
}

a[href*="martoncreative.com"] .tile-value,
.tile-value[href*="martoncreative"],
a[href*="martoncreative.com"] {
  white-space: nowrap;
  overflow: visible;
}

a.tile-value:hover {
  opacity: 0.7;
}

/* ---- Terms Link ---- */

.back,
.terms-link {
  text-decoration: underline;
  cursor: pointer;
  text-underline-offset: 4px;
  color: var(--text-muted);
}

.back:hover,
.terms-link:hover {
  color: var(--text-color);
}

/* ---- Old social / contact (cleared) ---- */
.social-media-icons,
.social-item,
.social-item-content,
.social-icon,
.social-name,
.team-logo-container,
.team-logo-link,
.contact h2,
.contact p,
.contact,
.tile-label,
.tile-icon,
.contact-tile-link {
  /* reset – replaced by tile grid */
}

/* ---- Terms Page ---- */

.about-terms {
  display: none;
}

.terms-back {
  margin: 3rem auto 2rem;
  text-align: center;
}

.terms-title h2,
.terms-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 3rem 0 1.25rem;
  line-height: 1.35;
}

/* ---- WeChat Popup ---- */

#wechat-icon {
  font-size: 40px;
  cursor: pointer;
}

.wechat-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #f7f7f7;
  padding: 1.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wechat-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wechat-qr {
  min-height: 10rem;
  max-width: 1200px;
  margin: 0 auto;
}

.popup-text {
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
}

/* ==============================================
   TABLET (481–768px)
   ============================================== */

@media screen and (min-width: 481px) and (max-width: 768px) {
  :root {
    --font-body: 1rem;
    --line-height-body: 1.7;
    --font-h1: 1.5rem;
    --font-h2: 1.25rem;
    --font-h3: 1.0625rem;
  }

  .brand-image {
    margin: 3rem auto 5rem;
  }

  .story-block {
    margin-bottom: 8rem;
  }

  .manifesto-block {
    margin: 7rem 0;
  }

  .manifesto-block h2 {
    font-size: 1.625rem;
  }

  .about-contact-wrapper {
    padding-top: 5rem;
  }

  .contact-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================================
   MOBILE (≤ 480px)
   ============================================== */

@media screen and (max-width: 480px) {
  :root {
    --font-body: 0.9375rem;
    --line-height-body: 1.65;
    --font-h1: 1.375rem;
    --font-h2: 1.125rem;
    --font-h3: 1rem;
  }

  .about {
    margin: 3.5rem auto;
  }

  .brand-image {
    margin: 2.5rem auto 4rem;
  }

  .brand-story,
  .team-more,
  .team-title,
  .contact,
  .about-contact-wrapper,
  .terms-content,
  .terms-title {
    padding: 0 1.5rem;
  }

  .story-block {
    margin-bottom: 6rem;
  }

  .manifesto-block {
    margin: 5rem 0;
  }

  .manifesto-block h2 {
    font-size: 1.375rem;
    letter-spacing: 0.06em;
  }

  .about-contact-wrapper {
    padding-top: 4rem;
  }

  .contact-row-3 {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .contact-row-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .contact-tile {
    padding: 0.875rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  .tile-value {
    font-size: 0.9375rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .tile-head {
    font-size: 0.75rem;
  }

  .terms-title h2,
  .terms-content h2 {
    font-size: 1.25rem;
  }

  .social-media-icons {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-terms {
    margin: 3rem auto 6rem auto;
  }
}

/* ==============================================
   DARK MODE
   ============================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e5e5e5;
    --text-body: #a1a1a6;
    --text-muted: #6d6d6d;
  }

  .contact-tile {
    border-color: #2a2a2a;
  }

  svg.tile-head-icon {
    color: #aaa;
  }

  img.tile-head-icon {
    filter: brightness(0) invert(0.8);
  }

  .brand-image-img {
    filter: invert(0.5);
  }

  .social-media-icons img {
    filter: brightness(0) invert(0.8);
  }

  .social-media-icons img:hover {
    filter: brightness(0) invert(1);
  }

  .social-icon svg {
    color: #aaa;
  }

  .social-media-icons a {
    color: #aaa;
  }

  .social-media-icons a:hover {
    color: #f7f7f7;
  }

  .social-media-icons a:hover .social-icon svg {
    color: #f7f7f7;
  }

  .back,
  .terms-link {
    color: #6d6d6d;
  }

  .back:hover,
  .terms-link:hover {
    color: #e5e5e5;
  }
}
