/* -----------------------------------------------------------------------------
   Hong Kong Spirit Tech Limited — Additional styles for multi-page site
   Extends index.css. Load AFTER index.css.
   ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   Navigation (multi-page) + mobile toggle
   ----------------------------------------------------------------------------- */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  cursor: pointer;
}

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

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------------------------
   Inner page hero (compact, not full screen)
   ----------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero .hero-bg {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
              var(--bg-deep);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10rem var(--section-pad-x) 4rem;
  text-align: center;
}

.breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--text-secondary); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb span { color: var(--accent-cyan); }

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.page-hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto;
}

/* Centered section header variant */
.section-inner.is-centered { text-align: center; }
.section-inner.is-centered .section-tag,
.section-inner.is-centered .section-title { }
.section-inner.is-centered .section-desc { margin-left: auto; margin-right: auto; }

/* -----------------------------------------------------------------------------
   Two-column split content (About / feature rows)
   ----------------------------------------------------------------------------- */

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.content-split.is-reversed .content-media { order: 2; }

.content-body .section-tag { margin-bottom: 0.75rem; }
.content-body .section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.content-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 1.1rem;
}
.content-body p:last-child { margin-bottom: 0; }

.content-media {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: linear-gradient(135deg, #0c1929 0%, #0f1629 50%, #0a0e17 100%);
}

.content-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(14, 165, 233, 0.16) 0%, transparent 45%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.02) 3px, rgba(255,255,255,0.02) 6px);
}

.content-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* Case card + featured news images fill their frames */
.case-card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.news-featured-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* -----------------------------------------------------------------------------
   Stats band
   ----------------------------------------------------------------------------- */

.stats { background: var(--bg-surface); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-item:hover { border-color: var(--border-mid); transform: translateY(-4px); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Values grid (reuses advantage look, boxed)
   ----------------------------------------------------------------------------- */

.values { background: var(--bg-deep); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.value-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.value-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-cyan);
  margin-bottom: 1.1rem;
}

.value-icon svg { width: 100%; height: 100%; }

.value-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--text-primary);
}

.value-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Process / steps
   ----------------------------------------------------------------------------- */

.process { background: var(--bg-surface); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.process-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  margin-bottom: 1.1rem;
}

.process-step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
  color: var(--text-primary);
}

.process-step-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Team
   ----------------------------------------------------------------------------- */

.team { background: var(--bg-deep); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.team-card:hover { border-color: var(--border-mid); transform: translateY(-4px); }

.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.team-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.team-role {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin: 0 0 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   Contact
   ----------------------------------------------------------------------------- */

.contact { background: var(--bg-surface); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
}

.info-icon svg { width: 100%; height: 100%; }

.info-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.info-value {
  font-size: 0.98rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}

.info-value a { color: var(--accent-cyan); }
.info-value a:hover { color: var(--accent-amber); }

.contact-form {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-deep);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  min-height: 1.2em;
}

/* Map placeholder */
.map-embed {
  margin-top: 2.5rem;
  height: 320px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0a1620 0%, #0c1929 50%, #0a0e17 100%);
}

.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }

/* -----------------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------------- */

.faq { background: var(--bg-deep); }

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-card);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.75rem 1.5rem;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* -----------------------------------------------------------------------------
   News page: featured + list
   ----------------------------------------------------------------------------- */

.news-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}

.news-featured-visual {
  border-radius: 18px;
  min-height: 320px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, #0c1929 0%, #0f1629 50%, #0a0e17 100%);
  position: relative;
  overflow: hidden;
}

.news-featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(34,211,238,0.18) 0%, transparent 50%),
             radial-gradient(circle at 80% 75%, rgba(245,158,11,0.12) 0%, transparent 45%);
}

.news-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured-body .news-title { font-size: 1.6rem; }
.news-featured-body .news-desc { font-size: 1.02rem; }

.tag-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   Footer nav shown across pages (already partly styled in index.css)
   ----------------------------------------------------------------------------- */

.footer-nav { flex-wrap: wrap; }

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .content-split { grid-template-columns: 1fr; }
  .content-split.is-reversed .content-media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Reveal nav as a dropdown panel via toggle */
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--section-pad-x) 1rem;
    background: rgba(6, 9, 16, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav.is-open { display: flex; }

  .btn-cta-header { display: none; }

  .nav .nav-link {
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .page-hero-inner { padding-top: 8rem; }

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

@media (max-width: 480px) {
  .values-grid,
  .team-grid,
  .process-grid { grid-template-columns: 1fr; }
}
