/* ==============================
   BCG Employee Portal — Modern
   ============================== */

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

:root {
  --navy:        #0f2340;
  --navy-mid:    #1a3a5c;
  --navy-light:  #2e5f8a;
  --accent:      #1e7fd4;
  --accent-hover:#1568b0;
  --surface:     #ffffff;
  --surface-2:   #f4f6f9;
  --surface-3:   #eaecf0;
  --text-1:      #0f1a24;
  --text-2:      #3d5166;
  --text-3:      #7a8fa3;
  --border:      rgba(0,0,0,0.08);
  --border-md:   rgba(0,0,0,0.14);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --radius:      10px;
  --radius-lg:   16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-w:       1100px;
  --header-h:    68px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface-2);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Skip link ───────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* ── Header ──────────────────────── */
header {
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1.5rem;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

nav ul li a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

nav ul li a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.menu-toggle { display: none; }

/* ── Hero banner (home only) ─────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}

/* ── Page wrapper ─────────────────── */
.page-wrapper {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

/* ── Home grid ────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Card base ─────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-header h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-2);
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
}

/* ── Links sidebar ────────────────── */
.links-list {
  list-style: none;
  padding: 0.5rem 0;
}

.links-list li {
  border-bottom: 1px solid var(--border);
}
.links-list li:last-child { border-bottom: none; }

.links-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  color: var(--text-1);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}

.links-list li a:hover {
  background: var(--surface-2);
  color: var(--accent);
  text-decoration: none;
}

.links-list li a .link-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-2);
  flex-shrink: 0;
}

.links-list li a .ext-arrow {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.12s;
}

.links-list li a:hover .ext-arrow { opacity: 1; }

/* ── Welcome card ─────────────────── */
.welcome-card {
  padding: 2rem;
}

.welcome-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.welcome-card p {
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Quick-access tiles ───────────── */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
  color: inherit;
}

.tile:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,127,212,0.1);
  transform: translateY(-1px);
  text-decoration: none;
}

.tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30,127,212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 17px;
}

.tile-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

/* ── Page content (about) ─────────── */
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  max-width: 760px;
}

.page-card h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  margin: 1.75rem 0 0.5rem;
}

.page-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin: 1.25rem 0 0.5rem;
}

.page-card p {
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.page-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.page-card ul li {
  padding: 0.3rem 0;
  color: var(--text-2);
}

.page-card ul li a {
  color: var(--accent);
  font-weight: 500;
}

/* ── Contact page ─────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 900px;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.contact-info h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-info h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin: 1.5rem 0 0.75rem;
}

.contact-info h2:first-of-type { margin-top: 0; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child { border-bottom: none; }

.contact-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30,127,212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.contact-row-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-row-label {
  font-size: 0.75rem;
  color: var(--text-3);
}

.contact-row-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
}

.contact-row-value a { color: var(--text-1); }
.contact-row-value a:hover { color: var(--accent); text-decoration: none; }

/* ── Contact form ─────────────────── */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.contact-form-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border-md);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-1);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,127,212,0.12);
}

.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}

.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.98); }

/* ── Map section ──────────────────── */
.map-section {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
}

.map-section iframe { display: block; }

/* ── Footer ───────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ── Responsive ───────────────────── */
@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  header { padding: 0 1rem; gap: 0.75rem; }
}

@media (max-width: 600px) {
  nav ul { display: none; flex-direction: column; width: 100%; }
  nav ul.open { display: flex; }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
  }
  header { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; }
  nav { width: 100%; }
  .page-card, .contact-info, .contact-form-card { padding: 1.25rem; }
  .hero { padding: 2.5rem 1.25rem; }
}
