/* ============================================================
   Resiliency Consulting Services — Custom Stylesheet
   Bootstrap 5 overrides + brand styles
   ============================================================ */

:root {
  --navy:      #1a2a4a;
  --navy-dark: #111e36;
  --blue:      #2563eb;
  --blue-light:#3b82f6;
  --accent:    #e8f0fe;
  --text:      #1e293b;
  --muted:     #64748b;
  --light-bg:  #f8fafc;
  --border:    #e2e8f0;
  --shadow:    0 4px 24px rgba(26,42,74,.10);
  --shadow-sm: 0 2px 8px rgba(26,42,74,.07);
  --radius:    10px;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--text); }
a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar { background: #fff; box-shadow: 0 2px 12px rgba(26,42,74,.10); padding: .75rem 0; }
.navbar-brand { font-weight: 700; color: var(--navy) !important; font-size: 1rem; letter-spacing: .02em; }
.navbar-brand img { height: 40px; width: auto; margin-right: 10px; }
.nav-link { color: var(--navy) !important; font-weight: 500; padding: .4rem .9rem !important; border-radius: 6px; transition: background .15s; }
.nav-link:hover, .nav-link.active { background: var(--accent); color: var(--blue) !important; }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); }
.dropdown-item { font-size: .9rem; padding: .5rem 1.25rem; color: var(--text); }
.dropdown-item:hover { background: var(--accent); color: var(--blue); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 50%, var(--blue) 100%); color: #fff; padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { 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"); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.25rem; }
.hero p.lead { font-size: 1.15rem; opacity: .9; max-width: 600px; margin-bottom: 2rem; }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: .75rem; }
.page-hero p { opacity: .85; font-size: 1.1rem; margin: 0; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-alt { background: var(--light-bg); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.divider { width: 50px; height: 4px; background: var(--blue); border-radius: 2px; margin: .75rem auto 1.5rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 1.75rem; }

/* ── Service Cards (home) ─────────────────────────────────── */
.service-card .icon-wrap { width: 54px; height: 54px; background: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.service-card .icon-wrap i { font-size: 1.4rem; color: var(--blue); }
.service-card h5 { font-weight: 700; color: var(--navy); margin-bottom: .6rem; }
.service-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.service-card a.stretched-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.service-card a.stretched-link:hover { text-decoration: underline; }

/* ── Service Detail Blocks ────────────────────────────────── */
.service-block { border-left: 4px solid var(--blue); padding-left: 1.5rem; }
.service-block h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.service-checklist { list-style: none; padding: 0; margin: 0; }
.service-checklist li { padding: .3rem 0 .3rem 1.6rem; position: relative; font-size: .93rem; }
.service-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar { background: var(--navy); color: #fff; padding: 40px 0; }
.stat-item { text-align: center; padding: .75rem; }
.stat-number { font-size: 2.5rem; font-weight: 800; }
.stat-label { font-size: .8rem; opacity: .7; letter-spacing: .05em; text-transform: uppercase; }

/* ── Why Choose Us ────────────────────────────────────────── */
.why-card { text-align: center; }
.why-card .icon-circle { width: 64px; height: 64px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.why-card .icon-circle i { font-size: 1.5rem; color: #fff; }
.why-card h5 { font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.why-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── Logo Grid ────────────────────────────────────────────── */
.logo-category-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.logo-grid { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2.5rem; }
.logo-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1.1rem; display: flex; align-items: center; justify-content: center; transition: box-shadow .15s; text-decoration: none; color: inherit; }
.logo-item:hover { box-shadow: var(--shadow); }
.logo-item img { max-height: 44px; max-width: 110px; width: auto; object-fit: contain; filter: grayscale(25%); transition: filter .2s; }
.logo-item:hover img { filter: grayscale(0%); }

/* ── Team Cards ───────────────────────────────────────────── */
.team-card { text-align: center; }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 2.2rem; color: var(--blue); }
.team-card h5 { font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.team-role { color: var(--blue); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }

/* ── BCM Activity Cards ───────────────────────────────────── */
.activity-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--blue); height: 100%; }
.activity-card h5 { font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.activity-card ul { list-style: none; padding: 0; margin: 0; }
.activity-card ul li { padding: .35rem 0 .35rem 1.4rem; position: relative; font-size: .9rem; border-bottom: 1px solid var(--border); }
.activity-card ul li:last-child { border-bottom: none; }
.activity-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue); }

/* ── Contact ──────────────────────────────────────────────── */
.ci-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.ci-icon { width: 44px; height: 44px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon i { color: var(--blue); font-size: 1.1rem; }
.ci-item strong { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: .15rem; letter-spacing: .04em; text-transform: uppercase; }
.ci-item p { margin: 0; font-size: .9rem; color: var(--muted); }
.ci-item a { color: var(--muted); text-decoration: none; }
.ci-item a:hover { color: var(--blue); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.cta-banner p { opacity: .85; margin-bottom: 2rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary { background: var(--blue); border-color: var(--blue); font-weight: 600; }
.btn-primary:hover, .btn-primary:focus { background: #1d4ed8; border-color: #1d4ed8; }
.btn-outline-primary { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.btn-outline-primary:hover { background: var(--blue); }
.btn-outline-light { font-weight: 600; }
.btn-outline-white { color: #fff; border: 2px solid rgba(255,255,255,.7); font-weight: 600; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer h5 { color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer p { font-size: .9rem; line-height: 1.7; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .5rem; }
.footer ul a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; margin-top: 2.5rem; font-size: .85rem; opacity: .6; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); text-decoration: none; margin-right: .4rem; transition: background .15s; }
.social-links a:hover { background: var(--blue); color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .hero { padding: 72px 0 56px; }
  .stat-number { font-size: 1.8rem; }
  .logo-grid { gap: .6rem; }
  .logo-item img { max-height: 36px; max-width: 90px; }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          