/* =====================================================
   Junglee Studios — Shared Base CSS
   Unified layout system, variables, and components
   ====================================================== */

/* --- Custom Properties --- */
:root {
  /* Brand colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-cyan: #00f2ea;
  --color-magenta: #ff2d9a;
  --color-dark: #0b0f14;
  --color-muted: rgba(255, 255, 255, 0.78);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-light: rgba(0, 0, 0, 0.12);

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 24px;
  --space-xl: 44px;
  --space-2xl: 72px;

  /* Typography scale */
  --text-sm: 0.8rem;
  --text-base: 0.95rem;
  --text-md: 1.1rem;
  --text-lg: clamp(1.55rem, 2.6vw, 2.05rem);
  --text-xl: clamp(2.25rem, 4.6vw, 3.5rem);
  --text-hero: clamp(2.25rem, 4.6vw, 3.7rem);

  /* Layout */
  --container: 1120px;
  --pad: var(--space-lg);
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.28);
  --shadow-card-light: 0 18px 40px rgba(0, 0, 0, 0.14);

  /* Font */
  --font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* --- Reset --- */
*{ box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* --- Container --- */
.container {
  width: min(var(--container), calc(100% - (2 * var(--pad))));
  margin: 0 auto;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  min-width: 220px;
}

.brand img.logo {
  height: 38px;
  max-height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.wm {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wm b {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-white);
}

/* --- Nav Links --- */
.navlinks {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  font-weight: 750;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-white);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
  outline: none;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.30);
}

.btn:focus,
.btn:active {
  outline: none;
  box-shadow: none;
}

.btn.primary {
  background: var(--color-cyan);
  color: var(--color-black);
  border: none;
}

.btn.pink {
  background: var(--color-magenta);
  color: var(--color-black);
  border: none;
}

.btn.white {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.actions {
  margin-top: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Mobile Menu --- */
.menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu span {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  position: relative;
}

.menu span:before,
.menu span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
}

.menu span:before { top: -6px; }
.menu span:after { top: 6px; }

.mobile-panel {
  display: none;
  padding: 10px 0 var(--space-md);
}

.mobile-panel a {
  display: block;
  text-decoration: none;
  padding: var(--space-sm) 10px;
  border-radius: var(--radius-md);
  font-weight: 850;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-panel a:hover { background: rgba(255, 255, 255, 0.08); }
.mobile-cta { margin-top: 10px; display: grid; gap: 10px; }
.mobile-panel.open { display: block; }

/* --- Sections --- */
.section {
  padding: clamp(var(--space-xl), 5vw, var(--space-2xl)) 0;
}

.section.tight-bottom { padding-bottom: var(--radius-xl); }
.section.tight-top { padding-top: var(--radius-xl); }

.section.light {
  background: var(--color-white);
  color: var(--color-dark);
}

.section.light .kicker { color: rgba(11, 15, 20, 0.55); }
.section.light .kicker i { background: var(--color-magenta); }
.section.light h2,
.section.light h3 { color: var(--color-dark); }
.section.light .lead,
.section.light p {
  color: rgba(11, 15, 20, 0.78);
  text-shadow: none;
}

/* --- Kicker --- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-white);
}

.kicker i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-cyan);
  display: inline-block;
}

/* --- Typography --- */
h1 {
  margin: 14px 0 0;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 950;
  color: var(--color-white);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

h2 {
  margin: 14px 0 0;
  font-size: var(--text-lg);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 14px;
  max-width: 72ch;
  color: var(--color-muted);
  font-weight: 650;
  line-height: 1.65;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 56px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(1.08) contrast(1.03) saturate(1.05);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
}

.hero .vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 520px at 20% 30%, rgba(0, 242, 234, 0.10), transparent 60%),
    radial-gradient(1200px 520px at 75% 15%, rgba(255, 45, 154, 0.08), transparent 60%);
  opacity: 0.55;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero .lead {
  margin-left: auto;
  margin-right: auto;
}

/* --- Grids --- */
.grid3 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid2 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- Cards --- */
.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.card h3 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.card p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-weight: 650;
  line-height: 1.6;
}

.card ul {
  margin: var(--space-sm) 0 0;
  padding-left: var(--space-md);
  display: grid;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.card li { line-height: 1.45; }

/* Cards in light sections */
.section.light .card {
  background: var(--color-dark);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: var(--shadow-card-light);
}

.section.light .card h3 { color: var(--color-white); }
.section.light .card p { color: var(--color-muted); }
.section.light .card ul { color: rgba(255, 255, 255, 0.84); }

/* --- Chips --- */
.chips {
  margin-top: var(--space-md);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 900;
  font-size: 0.92rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  color: var(--color-white);
}

.chip i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-magenta);
  display: inline-block;
  flex: 0 0 10px;
}

/* --- Pills --- */
.pills {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 850;
  color: var(--color-white);
}

.pill i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-magenta);
  display: inline-block;
}

.section.light .pill {
  border: 1px solid rgba(0, 0, 0, 0.20);
  background: rgba(11, 15, 20, 0.06);
  color: var(--color-dark);
}

.section.light .pill i { background: var(--color-cyan); }

/* --- List (in cards/sections) --- */
.list {
  margin: var(--space-sm) 0 0;
  padding-left: var(--space-md);
  display: grid;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.80);
  font-weight: 750;
}

.section.light .list { color: rgba(11, 15, 20, 0.75); }

/* --- Contact Wrap --- */
.contact-wrap {
  margin-top: var(--space-md);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-wrap iframe {
  width: 100%;
  border: 0;
  border-radius: 0;
  display: block;
}

/* --- CTA Strip --- */
.ctaStrip {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: var(--space-md);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ctaStrip b {
  font-weight: 950;
  letter-spacing: -0.02em;
}

.ctaStrip small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

/* --- Footer --- */
footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-black);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.fine {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.icon:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .navlinks { display: none; }
  .menu { display: inline-flex; }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .hero { min-height: calc(92svh - 72px); }
  .hero::before { background-position: center top; }
  .ctaStrip { justify-content: center; text-align: center; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
