/* static/css/sections/contact.css */
/* =========================
   CONTACT (FULL SCREEN)
   - full-bleed bg image + vignette + animated glow
   - premium glass cards
   - logo rail (3 logos)
   UPDATED: 2026/02/01
   ========================= */

.ct{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(76px, 9vh, 110px) 24px;
}

.ct-bg{
  position:absolute; inset:0;
  z-index: 0;
  overflow:hidden;
}

.ct-bg-img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.04);
  will-change: transform;
}

.ct-vignette{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 800px at 20% 30%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(1000px 700px at 70% 60%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.50) 45%, rgba(0,0,0,.78));
  pointer-events:none;
}

.ct-grid{
  position:absolute; inset:0;
  background:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .18;
  mask-image: radial-gradient(800px 540px at 30% 50%, rgba(0,0,0,1), transparent 70%);
  pointer-events:none;
}

.ct-noise{
  position:absolute; inset:-20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .08;
  mix-blend-mode: overlay;
  transform: translate3d(0,0,0);
  animation: ctNoise 9s linear infinite;
  pointer-events:none;
}

@keyframes ctNoise{
  0%{ transform: translate3d(-2%, -2%, 0); }
  50%{ transform: translate3d(2%, 1%, 0); }
  100%{ transform: translate3d(-2%, -2%, 0); }
}

.ct-glow{
  position:absolute;
  width: 520px; height: 520px;
  left: -9999px; top: -9999px;
  background: radial-gradient(circle at center,
    rgba(255,255,255,.18),
    rgba(255,255,255,.08) 35%,
    rgba(255,255,255,0) 70%);
  filter: blur(8px);
  opacity: .0;
  transition: opacity .25s ease;
  pointer-events:none;
  mix-blend-mode: screen;
}

.ct.is-hover .ct-glow{ opacity: .95; }

.ct-inner{
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}

/* reveal */
.ct-reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.ct.is-in .ct-reveal{
  opacity: 1;
  transform: translateY(0);
}

.ct-kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.78);
}
.ct-kicker::before{
  content:"";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 18px rgba(255,255,255,.35);
  opacity: .9;
}

.ct-title{
  margin: 14px 0 10px;
  font-size: clamp(44px, 5.1vw, 78px);
  line-height: .92;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.96);
  text-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.ct-lead{
  max-width: 58ch;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px;
}

/* ct-lead 下方的 email */
.ct-lead-email{
  display:flex;
  gap: 10px;
  align-items: center;
  margin: -6px 0 18px;
  color: rgba(255,255,255,.86);
  font-size: 14px;
}
.ct-lead-email-label{
  color: rgba(255,255,255,.65);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ct-lead-email-link{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 700;
}
.ct-lead-email-link:hover{ text-decoration: underline; }

/* glass card (default) */
.ct-card{
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ✅ 需求 2：ct-card ct-person 不需要邊框 + 透明背景 */
.ct-card.ct-person{
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ct-person{
  padding: 18px 18px 16px;
}

.ct-card-top{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 14px;
}

/* 取代原本頭像區的敘述內容：無邊框/無背景 */
.ct-card-desc{
  display:block;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  border: 0;

  color: rgba(255,255,255,.84);
  font-size: 14px;
  line-height: 1.75;
  max-width: 62ch;
}

.ct-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ct-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.16);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  user-select:none;
}
.ct-btn:hover{ transform: translateY(-1px); }

.ct-btn-primary{
  background: rgba(255,255,255,.88);
  color: rgba(10,10,12,.92);
  border-color: rgba(255,255,255,.35);
}
.ct-btn-primary:hover{
  background: rgba(255,255,255,.96);
}

.ct-btn-ghost{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

.ct-mini{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}
.ct-mini-dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 0 18px rgba(255,255,255,.28);
}

/* right side */
.ct-right{ position: relative; }

/* Logo rail */
.ct-logos{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 22px;        /* ✅ 精準水平間距（你可微調 18~26） */
  row-gap: 12px;
  align-items: center;
  justify-items: center;

  /* 右欄通常靠右，整組對齊一致 */
  width: min(520px, 100%);
  margin-left: auto;
  margin-bottom: 14px;
}

/* ✅ 需求 1：3 個 logo 再大一點（放大 pill + 圖） */

/* ✅ 每顆 logo 的容器統一尺寸，視覺才會對稱 */
.ct-logo-pill{
  width: 100%;
  max-width: 160px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 14px;
  border-radius: 999px;

  background: transparent;
  border: 0px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.0);
  -webkit-backdrop-filter: blur(10px);

  /* ✅ 精準排版：不要位移、不要漂浮動畫 */
  transform: none;
  animation: none;
}

.ct-logo-img{
  max-width: 100%;
  max-height: 26px;
  width: auto;
  height: auto;
  object-fit: contain;

  filter: brightness(1.08) contrast(1.05);
  opacity: .95;
}

@keyframes ctFloat{
  0%,100%{ transform: translateY(calc(var(--i) * 4px)); }
  50%{ transform: translateY(calc(var(--i) * 4px - 8px)); }
}

.ct-logo-img{
  max-width: 82px;   /* 原本 62 */
  max-height: 32px;  /* 原本 24 */
  object-fit: contain;
  filter: brightness(1.08) contrast(1.05);
  opacity: .95;
}

/* Company cards stack */
.ct-stack{
  display:grid;
  gap: 12px;
}

.ct-company{
  padding: 16px 16px 14px;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.ct-company:hover{
  transform: translateY(-2px);
  background: transparent;
  border-color: transparent;
}

.ct-company-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ct-company-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.ct-company-name{
  font-weight: 800;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  line-height: 1.2;
}

.ct-website{
  color: rgba(255,255,255,.86);
  text-decoration:none;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}
.ct-website:hover{ background: rgba(255,255,255,.12); }

.ct-company-body{
  display:grid;
  gap: 10px;
}

.ct-addr{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.ct-addr:first-child{
  border-top: 0;
  padding-top: 0;
}

.ct-addr-tag{
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ct-addr-text{
  color: rgba(255,255,255,.86);
  font-size: 13px;
  line-height: 1.55;
}

.ct-bottomline{
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
}
.ct-bottomline-txt{
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

/* responsive */
@media (max-width: 980px){
  .ct-inner{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ct-logos{
    justify-content:flex-start;
  }
  .ct-bottomline{
    justify-content:flex-start;
  }
}


/* =========================
   Company card
   ========================= */
.ct-find{
  margin-top: 12px;
  padding: 14px 16px;
  text-align: center;

  border-radius: 18px;
  background: transparent;
  border: 0px solid rgba(255,255,255, 0);
  -webkit-backdrop-filter: blur(10px);

  color: rgba(255,255,255,.92);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(20px, 1.4vw, 22px);
}


