/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f9fafb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.25;
  color: #0f172a;
}

p {
  margin: 0 0 0.75rem;
}

:root {
  --primary: #0f418c;     /* deep blue */
  --primary-soft: #e5efff;
  --accent: #0f9b8e;      /* teal/green */
  --bg-light: #f3f4f6;
  --border-subtle: #e5e7eb;
  --text-muted: #6b7280;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.18s ease;
  --nav-height: 70px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  section {
    padding: 5rem 0;
  }
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* ---------- HEADER & NAV ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background-color: rgba(249, 250, 251, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0f172a;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #4ade80, #0f9b8e 40%, #0f418c 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(15, 64, 140, 0.3);
}

.logo-text-small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.2rem 0;
  position: relative;
  color: #1f2933;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* Mobile nav */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: white;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.25rem;
  height: 2px;
  background-color: #111827;
  border-radius: 999px;
  position: relative;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 2px;
  background-color: #111827;
  border-radius: 999px;
  left: 0;
  transition: transform var(--transition-fast), top var(--transition-fast), bottom var(--transition-fast);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  bottom: -6px;
}

#nav-checkbox {
  display: none;
}

/* Mobile menu */
.nav-menu-mobile {
  position: fixed;
  inset: var(--nav-height) 0 auto 0;
  background-color: rgba(249, 250, 251, 0.98);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  transform: translateY(-120%);
  transition: transform var(--transition-fast);
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.nav-menu-mobile a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
}

.nav-menu-mobile .btn-primary {
  margin-top: 0.5rem;
  width: fit-content;
}

#nav-checkbox:checked ~ .nav-menu-mobile {
  transform: translateY(0);
}

#nav-checkbox:checked + label .nav-toggle span {
  transform: rotate(45deg);
}

#nav-checkbox:checked + label .nav-toggle span::before {
  top: 0;
  transform: rotate(90deg);
}

#nav-checkbox:checked + label .nav-toggle span::after {
  bottom: 0;
  transform: rotate(90deg);
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-toggle,
  .nav-menu-mobile {
    display: none;
  }
}

/* ---------- BUTTONS ---------- */

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #f9fafb;
  box-shadow: 0 16px 35px rgba(15, 64, 140, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(15, 64, 140, 0.4);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--primary);
  border-color: rgba(15, 65, 140, 0.3);
}

.btn-outline:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary);
}

/* ---------- HERO SECTION ---------- */

.hero {
  padding: 4rem 0 3.5rem;
}

@media (min-width: 960px) {
  .hero {
    padding: 5rem 0 4.5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
}

.hero-kicker span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 0, #a7f3d0, #0f9b8e);
}

.hero-title {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 960px) {
  .hero-title {
    font-size: 2.6rem;
  }
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta-block {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 155, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero-card {
  border-radius: 26px;
  background: radial-gradient(circle at 0 0, #e0f2fe, #f9fafb 60%);
  border: 1px solid rgba(15, 64, 140, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
}

.hero-card-title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(15, 65, 140, 0.06);
  color: #1f2937;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-card-metrics {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
}

.metric-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.73rem;
}

/* ---------- GRID UTILITIES ---------- */

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- CARDS ---------- */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 65, 140, 0.25);
  background-color: #fefefe;
}

.card-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card-list {
  padding-left: 1.1rem;
  margin: 0.4rem 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-list li {
  margin-bottom: 0.25rem;
}

.card-footer-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.card-footer-link::after {
  content: "→";
  font-size: 0.85em;
}

/* ---------- SPECIAL SECTIONS ---------- */

/* Services */
#services {
  background-color: #ffffff;
}

.service-intro {
  margin-bottom: 1.25rem;
}

/* Why Risk Sprint Advisory */
.why-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.why-item {
  font-size: 0.9rem;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
}

.why-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #111827;
}

.why-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Typical engagements pills */
.engagement-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.engagement-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background-color: #e5efff;
  color: #1f2937;
  border: 1px solid rgba(15, 65, 140, 0.35);
  font-weight: 500;
}

/* Industries */
#industries {
  background-color: var(--bg-light);
}

/* Approach */
.approach-timeline {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .approach-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.approach-step {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  font-size: 0.9rem;
  position: relative;
}

.approach-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.approach-step-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.approach-step-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* About */
#about {
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.5fr 1.1fr;
  }
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.values-label {
  font-weight: 600;
  color: #111827;
}

.leader-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  font-size: 0.88rem;
}

.leader-name {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.leader-role {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.leader-points {
  padding-left: 1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Insights */
#insights {
  background-color: var(--bg-light);
}

.insight-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
}

.insight-title {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.insight-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* Careers */
#careers {
  background-color: #ffffff;
}

.careers-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .careers-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.bullet-list {
  padding-left: 1rem;
  margin: 0.3rem 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
#contact {
  background: radial-gradient(circle at 0 0, #e0f2fe, #f9fafb 60%);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.contact-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.contact-form-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 768px) {
  .contact-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #374151;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(15, 64, 140, 0.2);
  background-color: #ffffff;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.contact-details {
  font-size: 0.9rem;
}

.contact-details-item {
  margin-bottom: 0.7rem;
}

.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid rgba(209, 213, 219, 0.7);
  background-color: #f9fafb;
  padding: 1.6rem 0 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  font-weight: 500;
}

/* ---------- MISC ---------- */

.link-inline {
  font-weight: 600;
  color: var(--primary);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(15, 64, 140, 0.07);
  font-size: 0.74rem;
  font-weight: 500;
  color: #111827;
  gap: 0.35rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #a7f3d0, #0f9b8e);
}

.muted {
  color: var(--text-muted);
}

.text-small {
  font-size: 0.8rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.insight-excerpt {
    flex-grow: 1;
    margin: 12px 0 20px;
}

.read-more {
    font-weight: 600;
    color: #0b5ed7;
    text-decoration: none;
}

/* === SUCCESS POPUP === */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 14px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: popupScale 0.35s ease;
}

@keyframes popupScale {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* === SUCCESS ICON === */
.success-icon {
  width: 64px;
  height: 64px;
  background: #22c55e;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.4s ease-out;
}

.checkmark {
  width: 22px;
  height: 12px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
  margin-top: -4px;
}

@keyframes popIn {
  0% { transform: scale(0); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
