/* TCYIT redesign — dark elegant navy + teal/cyan */

:root {
  --bg: #0b1220;
  --bg-elevated: #111a2b;
  --bg-card: rgba(17, 26, 43, 0.72);
  --bg-alt: #0e1728;
  --text: #e8eef7;
  --text-muted: #9aa8bc;
  --accent: #3ec9d6;
  --accent-soft: rgba(62, 201, 214, 0.14);
  --accent-strong: #2bb8c6;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe57;
  --border: rgba(148, 176, 210, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(62, 201, 214, 0.12), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7ee0ea;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #062028;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(62, 201, 214, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 1.45rem;
  font-size: 1rem;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06280f !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #06280f !important;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(62, 201, 214, 0.45);
  background: var(--accent-soft);
  color: var(--text) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -8%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 201, 214, 0.22), transparent 68%);
  filter: blur(8px);
  animation: glow-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-zh {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-sub {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(62, 201, 214, 0.03)),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.about-copy h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.7rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 201, 214, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(62, 201, 214, 0.08);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.card-zh {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.card p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
}

.zh-block {
  padding: 1rem 1.1rem;
  border-left: 2px solid rgba(62, 201, 214, 0.45);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text) !important;
}

.about-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(62, 201, 214, 0.08), rgba(17, 26, 43, 0.9));
  overflow: hidden;
  min-height: 260px;
}

.about-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -30px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 201, 214, 0.35), transparent 70%);
  animation: orb-float 9s ease-in-out infinite alternate;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.55);
  border: 1px solid var(--border);
}

.about-points li span:first-child {
  font-weight: 600;
}

.about-points li span:last-child {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 201, 214, 0.3);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #062028;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Contact */
.section-contact {
  padding-bottom: 4rem;
}

.contact-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(62, 201, 214, 0.25);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(62, 201, 214, 0.12), transparent 55%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.contact-lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  color: var(--text-muted);
}

.zh-inline {
  display: block;
  margin-top: 0.4rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.4rem;
  background: #080e18;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.04em;
}

.footer-brand span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  margin: 0;
  color: #6d7c90;
  font-size: 0.82rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Soft grid overlay for body sections */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 176, 210, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 176, 210, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
  opacity: 0.5;
  animation: grid-drift 28s linear infinite;
}

.section-contact::before,
.hero::before {
  display: none;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.08); }
}

@keyframes orb-float {
  from { transform: translate(0, 0); }
  to { transform: translate(-18px, 24px); }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

/* Mobile */
@media (max-width: 900px) {
  .cards,
  .steps,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 1.75rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn {
    margin-top: 0.85rem;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .contact-card {
    padding: 2.2rem 1.25rem;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-glow,
  .about-orb,
  .section::before {
    animation: none !important;
  }

  .btn:hover,
  .card:hover,
  .step:hover {
    transform: none;
  }

  .hero-canvas {
    display: none;
  }
}


/* Professional media — hero video + service photos */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video {
  z-index: 1;
}

.hero-fallback {
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(8, 14, 26, 0.92) 0%, rgba(8, 14, 26, 0.78) 42%, rgba(8, 14, 26, 0.45) 70%, rgba(8, 14, 26, 0.55) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(62, 201, 214, 0.12), transparent 55%);
}

.hero .hero-canvas {
  opacity: 0.35;
  z-index: 3;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 4;
}

.card {
  overflow: hidden;
  padding: 0;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a101c;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.card-icon { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
}
