/* ================================================================
   iamJayChong · Global Design System v2.0 · 2026
   Source of truth for: tokens, navigation, footer, hamburger
   Host at: /wp-content/themes/hello-elementor-child/iamjc-global.css
   Or embed directly in each HTML page <style> block
   ================================================================ */

/* ── 1. TOKENS ──────────────────────────────────────────────── */
:root {
  /* Color */
  --teal:       #7DCFCC;
  --teal-l:     #A8E0DD;
  --teal-d:     #4AAEAA;
  --black:      #0A0A0A;
  --off:        #F7F5F2;
  --warm:       #E8E5E0;
  --grey:       #9E9B96;
  --ink:        #1A1A1A;
  --gold:       #C9A96E;
  /* Typography */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'DM Sans', system-ui, sans-serif;
  --mono:   'DM Mono', monospace;
  /* Layout */
  --r:      12px;
  --nav-h:  68px;
  --max-w:  1200px;
  /* Motion */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-entry: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── 2. BASE RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
body { padding-top: var(--nav-h); }

/* ── 3. NAVIGATION ──────────────────────────────────────────── */
.jc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

.jc-nav {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 48px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(125, 207, 204, 0);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.jc-header.scrolled .jc-nav {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(125, 207, 204, 0.08);
}

/* Logo */
.jc-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.jc-logo img {
  height: 34px;
  width: 34px;
  object-fit: contain;
  display: block;
}

/* Back link (landing pages only) */
.jc-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 24px;
  flex-shrink: 0;
}

.jc-nav-back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 32px;
  transition: color 0.24s;
}

.jc-nav-back .arrow {
  display: inline-block;
  transition: transform 0.24s var(--ease);
  font-style: normal;
}

.jc-nav-back:hover { color: rgba(255, 255, 255, 0.7); }
.jc-nav-back:hover .arrow { transform: translateX(-3px); }

/* Nav links */
.jc-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  gap: 2px;
}

.jc-nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color 0.22s, background 0.22s;
}

.jc-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.jc-nav-links a.active { color: var(--teal); }

/* Nav right (CTA + hamburger) */
.jc-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding-left: 24px;
  flex-shrink: 0;
}

/* CTA button */
.jc-nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--teal);
  padding: 10px 22px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s, transform 0.18s var(--ease);
  display: inline-block;
}

.jc-nav-cta:hover {
  background: var(--teal-l);
  transform: translateY(-1px);
}

/* Hamburger */
.jc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5.5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
  border-radius: 7px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.jc-hamburger:hover { background: rgba(255, 255, 255, 0.06); }

.jc-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.36s var(--ease), opacity 0.22s, width 0.28s var(--ease);
  transform-origin: center;
  border-radius: 2px;
}

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

/* ── 4. MOBILE OVERLAY ──────────────────────────────────────── */
.jc-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  padding: 0 40px 60px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
  overflow-y: auto;
}

.jc-overlay.is-open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}

.jc-overlay-top {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  justify-content: space-between;
  border-bottom: 1px solid rgba(125, 207, 204, 0.08);
  flex-shrink: 0;
}

.jc-overlay-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  border-radius: 7px;
  line-height: 1;
  transition: color 0.2s;
  font-family: var(--sans);
}

.jc-overlay-close:hover { color: #fff; }

.jc-overlay-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
  gap: 0;
}

.jc-overlay-nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 7vw, 42px);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.22s, opacity 0.4s var(--ease-entry), transform 0.4s var(--ease-entry);
}

.jc-overlay-nav a em {
  font-style: italic;
  color: var(--teal-l);
}

.jc-overlay.is-open .jc-overlay-nav a { opacity: 1; transform: none; }
.jc-overlay.is-open .jc-overlay-nav a:nth-child(1) { transition-delay: 0.04s; }
.jc-overlay.is-open .jc-overlay-nav a:nth-child(2) { transition-delay: 0.08s; }
.jc-overlay.is-open .jc-overlay-nav a:nth-child(3) { transition-delay: 0.12s; }
.jc-overlay.is-open .jc-overlay-nav a:nth-child(4) { transition-delay: 0.16s; }
.jc-overlay.is-open .jc-overlay-nav a:nth-child(5) { transition-delay: 0.20s; }
.jc-overlay.is-open .jc-overlay-nav a:nth-child(6) { transition-delay: 0.24s; }

.jc-overlay-nav a:hover { color: #fff; }

.jc-overlay-cta-wrap {
  padding-top: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-entry) 0.28s, transform 0.4s var(--ease-entry) 0.28s;
}

.jc-overlay.is-open .jc-overlay-cta-wrap { opacity: 1; transform: none; }

.jc-overlay-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--teal);
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.22s;
}

.jc-overlay-cta:hover { background: var(--teal-l); }

/* ── 5. FOOTER ──────────────────────────────────────────────── */
.jc-footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(125, 207, 204, 0.1);
  padding: 80px 48px 44px;
}

.jc-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.jc-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px 40px;
  margin-bottom: 60px;
}

/* Brand col */
.jc-footer-brand {}

.jc-footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.jc-footer-logo-wrap img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.jc-footer-wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}

.jc-footer-wordmark em { font-style: italic; color: var(--teal-l); }

.jc-footer-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1.6;
  margin-bottom: 28px;
}

.jc-footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jc-footer-social a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: color 0.22s, border-color 0.22s;
}

.jc-footer-social a:hover {
  color: var(--teal);
  border-color: rgba(125, 207, 204, 0.35);
}

/* Nav cols */
.jc-footer-col {}

.jc-footer-col h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jc-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.jc-footer-col ul li a {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.22s;
}

.jc-footer-col ul li a:hover { color: #fff; }

.jc-footer-col ul li a.soon {
  color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

.jc-footer-col ul li a.soon::after {
  content: ' — soon';
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.15);
}

/* Bottom bar */
.jc-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.jc-footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.16);
}

.jc-footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.jc-footer-legal a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition: color 0.22s;
}

.jc-footer-legal a:hover { color: rgba(255, 255, 255, 0.45); }

/* ── 6. RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .jc-nav { padding: 0 32px; }
  .jc-nav-links a { font-size: 12px; padding: 7px 9px; }
  .jc-footer { padding: 72px 32px 40px; }
  .jc-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .jc-nav { padding: 0 20px; }
  .jc-nav-links { display: none; }
  .jc-nav-cta { display: none; }
  .jc-hamburger { display: flex; }
  .jc-footer { padding: 60px 24px 36px; }
  .jc-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .jc-footer-bottom { flex-direction: column; align-items: flex-start; }
  .jc-overlay { padding: 0 24px 48px; }
}

@media (max-width: 480px) {
  .jc-overlay-nav a { font-size: 28px; padding: 12px 0; }
  .jc-footer-social { gap: 6px; }
  .jc-footer-legal { gap: 14px; }
}

/* ── 7. UTILITY ─────────────────────────────────────────────── */
body.nav-open { overflow: hidden; }

/* ── 8. SCROLL REVEAL (shared) ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-entry), transform 0.65s var(--ease-entry);
}
.reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
