/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --color-navy:       #0d1b2a;
  --color-navy-mid:   #1a2e45;
  --color-accent:     #1e6fbf;
  --color-accent-light: #2d8de0;
  --color-light-grey: #f4f6f9;
  --color-mid-grey:   #e2e8f0;
  --color-text:       #2d3748;
  --color-muted:      #6c7a8d;
}

/* ─── Base ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar-custom {
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-custom .navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #ffffff !important;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-custom .nav-link:hover {
  color: #ffffff !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.65);
}

.navbar-toggler-icon {
  filter: none;
}

@media (max-width: 575.98px) {
  .navbar-custom .navbar-brand {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    white-space: nowrap;
  }

  .navbar-custom .navbar-toggler {
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-custom .navbar-collapse.show {
    max-height: calc(100vh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 60%, #1a3a5c 100%);
  color: #ffffff;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 111, 191, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section .display-4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-section .lead {
  font-size: 1.2rem;
  opacity: 0.88;
  max-width: 620px;
}

/* Ensure markdown-rendered bold text in the hero subheading is white */
.hero-section .lead strong {
  color: #ffffff;
}

.hero-badge {
  background: rgba(30, 111, 191, 0.25);
  border: 1px solid rgba(30, 111, 191, 0.5);
  color: #80bfff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.btn-primary-custom {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary-custom:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light-custom {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-outline-light-custom:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* ─── Stat Row (Hero) ───────────────────────────────────────── */
.stat-item .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  margin: auto 2rem;
}

/* ─── Section Titles ────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ─── About Section ─────────────────────────────────────────── */
.about-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.about-card {
  background: var(--color-light-grey);
  border: 1px solid var(--color-mid-grey);
  border-radius: 0.75rem;
  padding: 1.75rem;
  height: 100%;
}

.about-card .icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.2rem;
}

.about-card h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ─── Who I Work With ───────────────────────────────────────── */
.who-section {
  background-color: var(--color-light-grey);
  padding: 5rem 0;
}

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

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.97rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-mid-grey);
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li .bi {
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.signal-box {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  border-radius: 0.75rem;
  padding: 2rem;
  color: #ffffff;
}

.signal-box h5 {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.75;
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.signal-item .bi {
  color: #80bfff;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Services Section ──────────────────────────────────────── */
.services-section {
  background-color: #ffffff;
  padding-bottom: 5rem;
}

.service-card {
  border: 1px solid var(--color-mid-grey);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.2s;
  background: #fff;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(13, 27, 42, 0.1);
  transform: translateY(-3px);
}

.service-card .service-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.service-card h4 {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.service-card h4 a {
  color: inherit;
  text-decoration: none;
}

.service-card h4 a:hover {
  text-decoration: underline;
}

.service-card .description {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.service-card ul.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.service-card ul.feature-list li {
  font-size: 0.88rem;
  color: var(--color-text);
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-card ul.feature-list li::before {
  content: '▸';
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 2px;
}

.price-badge {
  display: inline-block;
  background: var(--color-light-grey);
  border: 1px solid var(--color-mid-grey);
  border-radius: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
}

.price-badge .price-value {
  color: var(--color-accent);
  font-weight: 700;
}

/* ─── Experience / Background ───────────────────────────────── */
.experience-section {
  background-color: var(--color-light-grey);
  padding: 5rem 0;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-mid-grey);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.55rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-company {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
}

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

.timeline-achievements li {
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.timeline-achievements li .bi {
  color: var(--color-accent);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.metric-highlight {
  font-weight: 700;
  color: var(--color-navy);
}

/* ─── Approach Section ──────────────────────────────────────── */
.approach-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.approach-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-light-grey);
  border: 1px solid var(--color-mid-grey);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

.approach-pill .bi {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.approach-pill span {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.dont-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fef9f9;
  border: 1px solid #f0dede;
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

.dont-pill .bi {
  color: #c0392b;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dont-pill span {
  font-size: 0.93rem;
  color: var(--color-text);
}

/* ─── Engagement Model ──────────────────────────────────────── */
.engagement-section {
  background-color: var(--color-light-grey);
  padding-bottom: 5rem;
}

.engagement-card {
  background: #ffffff;
  border: 1px solid var(--color-mid-grey);
  border-radius: 0.75rem;
  padding: 1.75rem;
  text-align: center;
  height: 100%;
}

.engagement-card .step-number {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.engagement-card h5 {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.engagement-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* ─── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  padding: 5rem 0;
  color: #ffffff;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ─── Contact Section ───────────────────────────────────────── */
.contact-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-mid-grey);
}

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

.contact-detail .icon-box {
  width: 44px;
  height: 44px;
  background: var(--color-light-grey);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.15rem;
  flex-shrink: 0;
}

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

.contact-detail .value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-navy);
}

.contact-form {
  padding: 2rem;
  border: 1px solid var(--color-mid-grey);
  border-radius: 0.75rem;
  background: #fff;
}

.contact-form .form-label {
  color: var(--color-navy);
  font-weight: 600;
}

.contact-form .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(0, 119, 182, 0.15);
}

.contact-form-note {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.contact-form-note a {
  color: var(--color-accent);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer-custom {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-custom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-custom a:hover {
  color: #ffffff;
}

.footer-custom .footer-brand {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

/* ─── Dividers ──────────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-mid-grey);
  margin: 0;
}

/* ─── Utilities ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 5rem 0 3.5rem;
  }

  .hero-section .display-4 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .stat-divider {
    display: none;
  }
}

/* ─── Inner / Service Pages ──────────────────────────────────── */
.inner-page {
  min-height: 70vh;
  color: var(--color-text);
}

.inner-page h1 {
  color: var(--color-heading);
}

.inner-page h2,
.inner-page h3 {
  color: var(--color-heading);
}

.inner-page .section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.inner-page ul.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.inner-page ul.feature-list li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.inner-page ul.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.inner-page a {
  color: var(--color-accent);
  text-decoration: none;
}

.inner-page a:hover {
  text-decoration: underline;
}
