/*
Theme Name: StigTech ScrollWorld
Theme URI: https://stigtech.example.com
Author: StigTech
Author URI: https://stigtech.example.com
Description: Scroll-scrubbed immersive landing page for StigTech.
Version: 1.0.0
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: stigtech-scrollworld
*/

/* Google Font: Noto Sans HK */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@400;500;700;900&display=swap');

:root, .sw-root {
  --sw-bg: #05060A;
  --sw-ink: #F5F0E8;
  --sw-ink-soft: #B8C2CC;
  --sw-accent: #FF6B35;
  --sw-font-display: 'Noto Sans HK', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
  --sw-font-body: 'Noto Sans HK', 'PingFang HK', 'Microsoft JhengHei', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--sw-bg);
}

body {
  font-family: var(--sw-font-body);
  line-height: 1.6;
  color: var(--sw-ink);
}

/* Full-bleed scroll world container */
#stig-world {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

/* WordPress entry content reset for the scroll page */
.page-template-page-stigtech .entry-content,
.page-template-page-stigtech .site-main,
.page-template-page-stigtech article,
.stig-scrollworld-wrap .entry-content,
.stig-scrollworld-wrap .site-main,
.stig-scrollworld-wrap article {
  margin: 0;
  padding: 0;
  max-width: none;
}

/* Hide the default page title on scroll pages */
.page-template-page-stigtech .entry-header,
.stig-scrollworld-wrap .entry-header {
  display: none;
}

/* Hide default WordPress margins on the scroll page */
.page-template-page-stigtech #page,
.page-template-page-stigtech #primary,
.stig-scrollworld-wrap #page,
.stig-scrollworld-wrap #primary {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* ============================================================================
   Bilingual content sections below the scroll world
   ============================================================================ */

/* Language-aware show/hide: both languages are in the DOM, only the active one shows */
[data-stig-lang="zh"] [data-lang="en"],
[data-stig-lang="en"] [data-lang="zh"] {
  display: none !important;
}

[data-stig-lang="zh"] [data-lang="zh"],
[data-stig-lang="en"] [data-lang="en"] {
  display: revert;
}

/* Inline elements inside bilingual blocks */
[data-lang] {
  animation: stig-fade-in .35s ease-out;
}

@keyframes stig-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Content area sits naturally after the scroll track */
.stig-content {
  position: relative;
  z-index: 100;
  background: var(--sw-bg);
  color: var(--sw-ink);
  padding: 0;
}

.stig-section {
  padding: clamp(72px, 10vh, 120px) clamp(18px, 6vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
}

.stig-section + .stig-section {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.stig-section__eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sw-accent);
  margin-bottom: 12px;
}

.stig-section__title {
  font-family: var(--sw-font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -.02em;
}

.stig-section__lead {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  color: var(--sw-ink-soft);
  max-width: 72ch;
  margin-bottom: 48px;
}

/* Service cards grid */
.stig-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}

.stig-service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.stig-service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sw-accent) 50%, transparent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.stig-service-card__num {
  display: inline-block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--sw-bg);
  background: var(--sw-accent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.stig-service-card__title {
  font-family: var(--sw-font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.25;
}

.stig-service-card__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stig-service-card__items li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 22px;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--sw-ink-soft);
  word-break: break-word;
  overflow-wrap: break-word;
}

.stig-service-card__items li:last-child {
  margin-bottom: 0;
}

.stig-service-card__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sw-accent);
}

.stig-service-card__subhead {
  font-weight: 700;
  color: var(--sw-ink);
  display: block;
  margin: 28px 0 18px;
  font-size: 1rem;
}

/* Contact section */
.stig-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.stig-contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.stig-contact-card__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sw-accent);
  margin-bottom: 10px;
}

.stig-contact-card__value {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--sw-ink);
  word-break: break-word;
}

.stig-contact-card__value a {
  color: var(--sw-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.25);
  transition: color .2s, border-color .2s;
}

.stig-contact-card__value a:hover {
  color: var(--sw-accent);
  border-color: var(--sw-accent);
}

/* CTA band */
.stig-cta-band {
  position: relative;
  z-index: 100;
  text-align: center;
  padding: clamp(64px, 8vh, 100px) clamp(18px, 6vw, 80px);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sw-accent) 12%, var(--sw-bg)) 0%, var(--sw-bg) 70%);
  border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.stig-cta-band__title {
  font-family: var(--sw-font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 16px;
}

.stig-cta-band__body {
  color: var(--sw-ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 60ch;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.stig-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  font-family: var(--sw-font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  background: var(--sw-accent);
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--sw-accent) 35%, transparent);
  transition: transform .2s, box-shadow .2s;
}

.stig-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px color-mix(in srgb, var(--sw-accent) 45%, transparent);
}

/* Tablet / mobile tweaks */
@media (max-width: 900px) {
  .stig-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stig-service-grid {
    grid-template-columns: 1fr;
  }
  .stig-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the scroll-world topbar above the content sections when scrolling past the fold */
.sw-topbar { z-index: 200 !important; }
.sw-scrollbar { z-index: 210 !important; }

/* Mobile topbar cleanup: hide brand text, keep logo + buttons */
@media (max-width: 640px) {
  .sw-brand__name { display: none; }
  .sw-topbar { gap: 10px; padding: 12px 16px; }
  .sw-topcta { padding: 8px 14px; font-size: .82rem; }
  .sw-lang { padding: 8px 12px; font-size: .8rem; }
}
