/*
Theme Name: Trilliant Simulations
Theme URI: https://trilliantsimulations.com
Description: Official WordPress theme for Trilliant Simulations – a retail learning simulation platform.
Version: 1.0.0
Author: Trilliant Simulations
Author URI: https://trilliantsimulations.com
Text Domain: trilliant-simulations
Tags: education, business, clean, responsive
*/

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --ink:      #0f0d12;
  --ink-2:    #2e2a35;
  --ink-3:    #5c5668;
  --ink-4:    #9b95a6;
  --rule:     #e6e2ec;
  --rule-2:   #f0edf5;
  --surface:  #faf9fc;
  --white:    #ffffff;
  --plum:     #80278c;
  --plum-dk:  #5a1a64;
  --plum-lt:  #f3eaf5;
  --plum-md:  #c97fd4;
  --sky:      #00bfff;
  --sky-lt:   #e5f8ff;
  --sky-dk:   #0099cc;
}

/* ── BASE TYPOGRAPHY ──────────────────────────────────────── */
body {
  font-family: 'Karla', sans-serif;
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Rubik', sans-serif; color: var(--ink); line-height: 1.15; }
h1 { font-size: clamp(38px, 5.2vw, 58px);  font-weight: 600; letter-spacing: -1.5px; }
h2 { font-size: clamp(27px, 3.6vw, 42px);  font-weight: 600; letter-spacing: -1px; }
h3 { font-size: clamp(19px, 2.1vw, 24px);  font-weight: 500; letter-spacing: -0.3px; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.2px; }
h5 { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
p  { font-size: 17px; line-height: 1.75; color: var(--ink-3); }
a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── LAYOUT HELPERS ───────────────────────────────────────── */
.wrap      { max-width: 1320px; margin: 0 auto; padding: 0 36px; }
.wrap-wide { max-width: 1520px; margin: 0 auto; padding: 0 36px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Karla', sans-serif; font-size: 15px; font-weight: 600;
  padding: 11px 24px; border-radius: 6px; cursor: pointer;
  border: none; transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
.btn svg { flex-shrink: 0; }
.btn-dark        { background: var(--ink); color: #fff; }
.btn-dark:hover  { background: var(--ink-2); }
.btn-plum        { background: var(--plum); color: #fff; }
.btn-plum:hover  { background: var(--plum-dk); }
.btn-ghost       { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink-4); background: var(--surface); }
.btn-ghost-plum        { background: transparent; color: var(--plum); border: 1.5px solid var(--plum-md); }
.btn-ghost-plum:hover  { background: var(--plum-lt); }
.btn-ghost-white       { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.btn-white       { background: #fff; color: var(--ink); font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,0.9); }

/* ── HEADER ───────────────────────────────────────────────── */
#hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}
#hd nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.site-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.site-logo img {
  height: 42px; width: auto; display: block;
}
.site-logo-sm img { height: 38px; }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 13px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.nav-list a:hover,
.nav-list li.current-menu-item > a,
.nav-list li.current_page_item > a { background: var(--plum-lt); color: var(--plum); }
.nav-list .nav-cta { margin-left: 12px; }
.nav-list .nav-cta a { padding: 9px 20px; }
.nav-login-btn { margin-left: 16px; flex-shrink: 0; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: all 0.25s; }

.mob-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--rule);
  padding: 16px 24px 24px; z-index: 899;
}
.mob-nav.open { display: block; }
.mob-nav ul { list-style: none; }
.mob-nav ul a { display: block; padding: 13px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.mob-nav ul li:last-child a { border-bottom: none; margin-top: 16px; }

/* ── SECTION UTILITIES ────────────────────────────────────── */
section { padding: 104px 0; }

.sec-label {
  font-family: 'Karla', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--plum);
  margin-bottom: 16px; display: block;
}
.sec-head { max-width: 680px; margin-bottom: 60px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p  { font-size: 17px; color: var(--ink-3); }
.sec-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── IMAGE PLACEHOLDER ────────────────────────────────────── */
.img-ph {
  width: 100%; background: var(--surface);
  border: 1.5px dashed var(--rule); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: var(--ink-4);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; text-align: center; gap: 8px;
}
.img-ph svg { opacity: 0.3; }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4); margin-bottom: 32px; font-weight: 500;
}
.breadcrumb a { color: var(--ink-4); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--plum); }
.breadcrumb-sep { display: block; width: 14px; height: 1px; background: var(--ink-4); opacity: 0.4; }
.breadcrumb span { color: var(--ink-2); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--ink-2); color: rgba(255,255,255,0.6); padding: 76px 0 0; }

.ft-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ft-brand p { font-size: 15px; line-height: 1.7; margin-top: 18px; color: rgba(255,255,255,0.45); max-width: 280px; }

.ft-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35); text-transform: uppercase; margin-bottom: 18px;
}
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ft-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.ft-links a:hover { color: #fff; }

.ft-contact-row { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.ft-contact-row svg { flex-shrink: 0; margin-top: 2px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ft-contact-row span { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.5; }

.ft-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 22px 0;
}
.ft-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); margin: 0; }
.ft-legal { display: flex; gap: 18px; }
.ft-legal a { font-size: 13px; color: rgba(255,255,255,0.25); transition: color 0.15s; }
.ft-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── FADE ANIMATION ───────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s ease forwards; opacity: 0; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
.d6 { animation-delay: 0.55s; }

/* ── RESPONSIVE (shared) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 880px) {
  .nav-list, .nav-list .nav-cta { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 600px) {
  section { padding: 68px 0; }
  .wrap { padding: 0 20px; }
  .wrap-wide { padding: 0 20px; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; text-align: center; }
}
