/* ISE Team Area — matches speakeverything.com visual system, brand v2 palette */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #2B2A6B;
  --primary-deep: #1B1A4F;
  --secondary: #B08D2E;
  --secondary-bright: #D6A93C;
  --accent: #D6A93C;
  --cream: #F5F1E6;
  --cream-deep: #E9E2CD;
  --dark: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: #ffffff;
  overflow-x: hidden;
  padding-top: 88px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--dark);
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.12; font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1.25rem; font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
p  { font-size: 1rem; color: var(--text-dark); margin-bottom: 1rem; }
.text-muted { color: var(--text-gray); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(43, 42, 107, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(43, 42, 107, 0.4); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-accent {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(176, 141, 46, 0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(176, 141, 46, 0.4); }
.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.9rem; }

/* Navigation — fixed blurred bar identical to main site */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}
.nav-logo img { width: 38px; height: 38px; display: block; }
.nav-logo .team-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  border-left: 1px solid var(--cream-deep);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.lang-toggle {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.85rem;
}
.lang-toggle a {
  color: var(--text-gray);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}
.lang-toggle a.active { color: var(--primary); background: var(--cream); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 3px; background: var(--dark); border-radius: 2px; transition: all 0.3s ease; }

/* Container + sections */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 0; position: relative; }
.section-alt { background: var(--light-bg); }

/* Hero block (shared) */
.team-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(43, 42, 107, 0.10) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.team-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(176, 141, 46, 0.10) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.team-hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.team-hero h1 {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.team-hero .lede {
  font-size: 1.15rem;
  color: var(--text-gray);
  max-width: 680px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(43, 42, 107, 0.12);
  border-color: var(--primary);
}
.card .card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}
.card .card-meta { color: var(--text-gray); font-size: 0.875rem; margin: 0; }
.lang-pill {
  display: inline-block;
  background: var(--cream);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-right: 0.35rem;
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Section heading */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 3rem 0 0.25rem;
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}
.section-head .h-rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}
.section-note {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

/* Callout block (indigo) */
.callout {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #ffffff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(43, 42, 107, 0.25);
  margin: 2rem 0;
}
.callout h2, .callout h3 { color: #ffffff; }
.callout ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.callout li { color: #ffffff; margin-bottom: 0.5rem; opacity: 0.92; }
.callout li::marker { color: var(--secondary-bright); }

/* Promise (subtle indigo strip) */
.promise {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 1.5rem 0;
}
.promise strong { color: var(--primary); }

/* Tag/Gate banner at very top */
.gate-strip {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  font-weight: 700;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
.gate-strip span { color: var(--secondary-bright); }
body.with-gate-strip { padding-top: 120px; }
.site-nav.with-gate-strip { top: 32px; }

/* Forms */
form.team-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
form.team-form label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.4rem;
}
form.team-form label:first-of-type { margin-top: 0; }
form.team-form input[type="text"],
form.team-form input[type="email"],
form.team-form select,
form.team-form textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--light-bg);
  transition: border-color 0.2s ease, background 0.2s ease;
}
form.team-form input:focus, form.team-form select:focus, form.team-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}
form.team-form textarea { min-height: 160px; resize: vertical; }
form.team-form .help { color: var(--text-gray); font-size: 0.8rem; margin-top: 0.25rem; }
form.team-form button { margin-top: 1.5rem; }

/* Mission-specific (values, etc.) */
.mission-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--secondary);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.mission-card p { font-size: 1.05rem; margin-bottom: 0.9rem; }
.mission-card p:last-child { margin-bottom: 0; }
.mission-card em { color: var(--primary-deep); }

.values {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: value;
}
.values li {
  counter-increment: value;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.values li:hover {
  box-shadow: 0 12px 30px rgba(43, 42, 107, 0.10);
  transform: translateY(-1px);
}
.values li::before {
  content: counter(value);
  position: absolute;
  left: 1.25rem; top: 1.25rem;
  width: 2.75rem; height: 2.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.values li h3 {
  margin: 0 0 0.4rem;
  color: var(--primary);
  font-size: 1.15rem;
}
.values li p { margin: 0.25rem 0 0; font-size: 0.98rem; }
.values li .you {
  color: var(--primary-deep);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--cream-deep);
  font-style: italic;
}

/* Body content (rendered docx) for handbook */
.body-content h1 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-size: 1.75rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
}
.body-content h1:first-of-type { margin-top: 0; }
.body-content h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-deep);
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}
.body-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-deep);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.35rem;
}
.body-content p { font-size: 1rem; margin: 0 0 0.9rem; }
.body-content ul, .body-content ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.body-content li { margin-bottom: 0.35rem; }
.body-content li::marker { color: var(--secondary); }
.body-content blockquote {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
.body-content blockquote p { margin-bottom: 0.5rem; }
.body-content blockquote p:last-child { margin-bottom: 0; }
.body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.92rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.body-content thead { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); color: #ffffff; }
.body-content thead th { font-family: 'Outfit', sans-serif; font-weight: 700; }
.body-content th, .body-content td { padding: 0.7rem 0.95rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.body-content tbody tr:last-child td { border-bottom: 0; }
.body-content tbody tr:nth-child(even) td { background: var(--light-bg); }
.body-content strong { color: var(--primary-deep); }
.body-content em { color: var(--text-gray); }

.welcome-tag {
  margin-top: 2rem;
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-deep);
}

footer.team-foot {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-gray);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  body { padding-top: 76px; }
  body.with-gate-strip { padding-top: 108px; }
  .nav-container { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: flex; }
  .container { padding: 0 1.25rem; }
  .nav-logo .team-tag { display: none; }
  .team-hero { padding: 3rem 0 2rem; }
  .values li { padding: 1.25rem 1.25rem 1.25rem 4.25rem; }
  .values li::before { left: 1rem; top: 1rem; width: 2.25rem; height: 2.25rem; font-size: 0.95rem; }
  .card-grid { grid-template-columns: 1fr; }
  .body-content table { font-size: 0.82rem; }
  .body-content th, .body-content td { padding: 0.5rem 0.65rem; }
}
