/* ============================================================
   HumanTiger — shared stylesheet (light + dark themes)
   Used by index.html and about.html.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS  —  ★ EDIT BRAND COLORS & FONTS HERE ★
   Semantic tokens flip between light (default) and dark themes.
   "Feature band" tokens (--ink*) stay dark in BOTH themes
   (hero / about header / footer are always dark by design).
   ============================================================ */
:root {
  /* Brand accents (constant across themes) */
  --amber:       #F59E0B;
  --orange:      #EA580C;
  --orange-soft: #FB923C;
  --grad: linear-gradient(135deg, var(--amber) 0%, var(--orange) 100%);

  /* Always-dark feature bands */
  --ink:   #0F1115;
  --ink-2: #171A21;
  --ink-3: #20242E;
  --text-light:     #E7E9EE;
  --text-light-dim: #9AA1B1;

  /* Semantic surfaces / text — LIGHT THEME defaults */
  --bg:         #FFFFFF;
  --bg-alt:     #F7F7F5;
  --surface:    #FFFFFF;
  --surface-2:  #F7F7F5;
  --border:     #E6E7EB;
  --text:       #1B1E25;
  --text-dim:   #5A6072;
  --field-bg:   #FFFFFF;
  --nav-bg:     rgba(255,255,255,0.82);
  --nav-border: #E6E7EB;
  --nav-shadow: 0 4px 20px rgba(15,17,21,0.05);
  --shadow:     0 10px 30px rgba(15,17,21,0.08);
  --shadow-lg:  0 24px 60px rgba(15,17,21,0.16);

  /* Typography / layout */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
  --radius: 16px;
  --nav-h: 70px;
}

/* ============================================================
   DARK THEME  —  applied when <html data-theme="dark">
   ============================================================ */
[data-theme="dark"] {
  --bg:         #0F1115;
  --bg-alt:     #14171E;
  --surface:    #171A21;
  --surface-2:  #14171E;
  --border:     #262B36;
  --text:       #E7E9EE;
  --text-dim:   #9AA1B1;
  --field-bg:   #0F1115;
  --nav-bg:     rgba(15,17,21,0.85);
  --nav-border: #262B36;
  --nav-shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow:     0 10px 30px rgba(0,0,0,0.3);
  --shadow-lg:  0 24px 60px rgba(0,0,0,0.5);
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
section { scroll-margin-top: var(--nav-h); }

/* Layout helpers */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.section-pad { padding: clamp(64px, 9vw, 120px) 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(234,88,12,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(234,88,12,0.45); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   NAVBAR (sticky)
   ============================================================ */
header.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
header.nav.scrolled { border-bottom-color: var(--nav-border); box-shadow: var(--nav-shadow); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 100%; }

/* Logo: mascot mark + wordmark */
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--text); }
.logo .mark { width: 36px; height: 36px; flex: none; }
.logo b { color: var(--orange); }
.logo .logo-sub { font-weight: 500; color: var(--text-dim); }
.footer-logo .logo-sub { font-weight: 500; color: var(--text-light-dim); }

/* Primary links */
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-links a.link { font-weight: 500; font-size: 0.96rem; color: var(--text-dim); position: relative; transition: color .2s ease; }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s ease; }
.nav-links a.link:hover { color: var(--text); }
.nav-links a.link:hover::after, .nav-links a.link.active::after { width: 100%; }
.nav-links a.link.active { color: var(--text); }

/* Right-hand actions (theme toggle + hamburger) */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1.5px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
/* Show moon in light mode (click → dark); sun in dark mode (click → light) */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s ease, opacity .3s ease, background-color .3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   SHARED SECTION HEADER
   ============================================================ */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 14px; color: var(--text); }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ============================================================
   HERO (always dark feature band)
   ============================================================ */
.hero { position: relative; background: var(--ink); color: var(--text-light); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; }
.hero::before { width: 460px; height: 460px; background: var(--orange); top: -140px; right: -120px; }
.hero::after  { width: 380px; height: 380px; background: #7C3AED; bottom: -160px; left: -120px; opacity: 0.28; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 104px) 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 500; color: var(--text-light-dim); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245,158,11,0.25); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--text-light-dim); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.6rem; color: #fff; display: block; }
.hero-stats .stat span { font-size: 0.85rem; color: var(--text-light-dim); }

/* Tiger mascot graphic */
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .ring { position: absolute; inset: 0; margin: auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, rgba(245,158,11,0.22), transparent 64%); }
.mascot { width: min(380px, 80vw); height: auto; position: relative; z-index: 1; filter: drop-shadow(0 24px 50px rgba(0,0,0,0.5)); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(234,88,12,0.14)); color: var(--orange); margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   ABOUT (always dark feature band) + entity card
   ============================================================ */
.about { background: var(--ink); color: var(--text-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 18px; }
.about p { color: var(--text-light-dim); font-size: 1.06rem; margin-bottom: 18px; }
.about .btn-light { margin-top: 6px; }
/* ★ Legal entity reference — easy to find & update ★ */
.entity-card { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.entity-card .row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ink-3); }
.entity-card .row:last-child { border-bottom: 0; }
.entity-card .row svg { width: 22px; height: 22px; color: var(--amber); flex: none; margin-top: 2px; }
.entity-card .row .k { font-family: var(--font-head); font-weight: 600; color: #fff; font-size: 0.95rem; }
.entity-card .row .v { color: var(--text-light-dim); font-size: 0.92rem; }

/* ============================================================
   WHY HUMANTIGER
   ============================================================ */
.why { background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease, background-color .3s ease; }
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-item .num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 18px; }
.why-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.why-item p { color: var(--text-dim); font-size: 0.93rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; color: var(--text); }
.contact p.intro { color: var(--text-dim); margin-bottom: 28px; }
/* ★ Primary contact email — easy to find & update ★ */
.contact-email { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--text); padding: 16px 22px; border: 1.5px solid var(--border); border-radius: 14px; transition: border-color .2s ease, color .2s ease; }
.contact-email:hover { border-color: var(--orange); color: var(--orange); }
.contact-email svg { width: 22px; height: 22px; color: var(--orange); }

form.contact-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: background-color .3s ease, border-color .3s ease; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 7px; color: var(--text); }
.field input, .field textarea { width: 100%; font-family: var(--font-body); font-size: 0.98rem; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--field-bg); transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease, color .3s ease; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(234,88,12,0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--text-dim); margin-top: 14px; }
.form-status { font-size: 0.9rem; font-weight: 500; margin-top: 14px; min-height: 1.2em; color: var(--text-dim); }
.form-status.ok { color: #16A34A; }

/* ============================================================
   FOOTER (always dark)
   ============================================================ */
footer.site { background: var(--ink); color: var(--text-light-dim); padding: 50px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--ink-3); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-logo .mark { width: 32px; height: 32px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--text-light-dim); transition: color .2s ease, transform .2s ease, border-color .2s ease; }
.socials a:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-3px); }
.socials a svg { width: 19px; height: 19px; }
.footer-bottom { padding-top: 24px; font-size: 0.86rem; text-align: center; }
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--amber); }

/* ============================================================
   ABOUT US PAGE — specific blocks
   ============================================================ */
/* Page header (compact dark band) */
.page-head { position: relative; background: var(--ink); color: var(--text-light); overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 90px); }
.page-head::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: 0.4; background: var(--orange); top: -160px; right: -120px; }
.page-head .inner { position: relative; z-index: 1; max-width: 760px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 18px; }
.page-head h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-head p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-light-dim); max-width: 620px; }

/* Story block */
.story { background: var(--bg); }
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.story h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 18px; color: var(--text); }
.story p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 16px; }
.quote-card { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 32px; }
.quote-card p { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.4; color: var(--text); margin-bottom: 16px; }
.quote-card .by { font-size: 0.9rem; color: var(--text-dim); }

/* Values */
.values { background: var(--bg-alt); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(234,88,12,0.14)); color: var(--orange); margin-bottom: 18px; }
.value .icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.value p { color: var(--text-dim); font-size: 0.93rem; }

/* Stats band */
.stats-band { background: var(--ink); color: var(--text-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stats-grid .s b { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats-grid .s span { color: var(--text-light-dim); font-size: 0.92rem; }

/* The company (entity) on About page */
.company { background: var(--bg); }
.company-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.company h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 16px; color: var(--text); }
.company p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 16px; }

/* CTA band */
.cta { background: var(--bg-alt); }
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 14px; color: var(--text); }
.cta p { color: var(--text-dim); font-size: 1.06rem; margin-bottom: 28px; }
.cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE (mobile-first adjustments)
   ============================================================ */
@media (max-width: 980px) {
  .cards, .why-grid, .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid, .story-grid, .company-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mascot { width: min(300px, 70vw); }
}
@media (max-width: 760px) {
  /* Collapse nav into mobile dropdown */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin-left: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .35s ease; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.link::after { display: none; }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
}
@media (max-width: 520px) {
  .cards, .why-grid, .values-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
