/* ==========================================================================
   Confer Consulting — Shared Stylesheet
   ========================================================================== */

:root {
  --primary: #0f4c81;
  --primary-dark: #0a3660;
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --bg: #f7fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --border: #e2e8f0;
  --placeholder-bg: #fffbea;
  --placeholder-border: #f5c518;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.brand img { height: 36px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 28px;
  color: #dbeafe;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover { background: #fff; color: var(--primary); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }

section.alt { background: var(--surface); }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  font-size: 2rem;
  color: var(--primary-dark);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .icon { font-size: 2rem; margin-bottom: 10px; }
.stat-card h3 { margin: 0 0 8px; color: var(--primary-dark); font-size: 1.1rem; }
.stat-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Cards / Grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--primary-dark);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.team-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.team-card h3 { margin: 0 0 4px; color: var(--primary-dark); }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.badge {
  background: #ecfdf5;
  color: var(--accent-dark);
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.org-list {
  margin: 14px 0;
  padding-left: 18px;
  color: var(--text);
}

.org-list li { margin-bottom: 6px; }

/* ---------- Placeholder callouts ---------- */
.placeholder {
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #92720c;
  margin: 12px 0;
}

/* ---------- Case Studies ---------- */
.case-study {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.case-study h3 { color: var(--primary-dark); margin-top: 0; }
.case-study .tag {
  display: inline-block;
  background: #e0f2fe;
  color: var(--primary);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info .item { margin-bottom: 20px; }
.contact-info .item strong { display: block; color: var(--primary-dark); margin-bottom: 2px; }

form.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form label { font-weight: 600; font-size: 0.9rem; }

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 40px 0 24px;
  margin-top: 40px;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

footer.site-footer h4 { color: #fff; margin-top: 0; }
footer.site-footer a { color: #cbd5e1; }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats-grid, .card-grid, .team-grid, .contact-grid, footer .footer-grid {
    grid-template-columns: 1fr;
  }
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
  }
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.8rem; }
}
