/* 
  Blackswell Consulting
  Brand-aligned global stylesheet
  Palette + typography based on shared guidelines
*/

:root {
  /* Brand palette */
  --color-navy:      #0F1C2E; /* Blackswell Navy */
  --color-teal:      #009CA6; /* Ocean Teal */
  --color-mist:      #F2F2F2; /* Mist Grey */
  --color-graphite:  #585D63; /* Graphite Grey */
  --color-horizon:   #3BAFDA; /* Horizon Blue */
  --color-white:     #FFFFFF; /* Pure White */
  --color-coral:     #FF866E; /* Coral Glow */

  /* Layout tokens */
  --brand-bg:        var(--color-mist);
  --brand-surface:   var(--color-white);

  /* Brand usage mapping */
  --brand-primary:   var(--color-navy);      /* Headings, CTAs */
  --brand-accent:    var(--color-teal);      /* Subtle accents, tags, icons */
  --brand-softblue:  var(--color-horizon);   /* Light gradient / highlight */
  --brand-warm:      var(--color-coral);     /* Occasional highlight, not dominant */
}

/* Base */

body {
  background: var(--brand-bg);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-graphite);
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

a {
  text-decoration: none;
  color: var(--brand-primary);
}

a:hover {
  text-decoration: underline;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700; /* Heading = Bold */
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.75rem;
  color: var(--color-graphite);
}

small, .text-muted {
  font-weight: 300; /* Accent text style */
}

/* Navbar */

.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 28, 46, 0.06);
}

/* Logo inside navbar */

.brand-logo {
  height: 32px;
  width: auto;
  display: inline-block;
  object-fit: contain;
}

/* Brand text next to logo */

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--brand-primary);
}

.navbar-brand span {
  color: var(--brand-accent); /* Ocean Teal accent on "Black" */
}

/* Buttons – navy primary, outlined navy secondary */

.btn-brand {
  background: var(--brand-primary);
  color: var(--color-white);
  border: none;
  font-weight: 500;
}

.btn-brand:hover {
  background: #050814;
  color: var(--color-white);
}

.btn-outline-brand {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 500;
}

.btn-outline-brand:hover {
  background: var(--brand-primary);
  color: var(--color-white);
}

/* Hero */

.hero {
  padding: 6rem 0 3rem;
  background:
    radial-gradient(circle at top left, rgba(59, 175, 218, 0.18) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 156, 166, 0.16) 0, transparent 55%);
}

/* Hero tag line */

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 156, 166, 0.10);
  color: var(--brand-accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-tag .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1.1rem, 3rem);
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--color-graphite);
}

/* Sections */

section {
  scroll-margin-top: 5rem;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #6b7280;
  max-width: 720px;
  margin-bottom: 2rem;
}

/* Pill list under hero */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.pill-list span {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 28, 46, 0.06);
  color: #4b5563;
}

/* Service cards (index) */

.service-card {
  border-radius: 1rem;
  border: 1px solid rgba(15, 28, 46, 0.06);
  box-shadow: 0 18px 45px rgba(15, 28, 46, 0.06);
  background: var(--brand-surface);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

.service-card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  border-bottom: none;
}

.service-card-body {
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

.service-card-footer {
  padding: 0 1.5rem 1.25rem;
  border-top: none;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
}

/* Service icons */

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(0, 156, 166, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--brand-accent);
}

/* Lists within cards */

.service-card ul,
.contact-card ul,
.card-soft ul {
  padding-left: 1.1rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Shared “soft card” block */

.card-soft,
.contact-card,
.stats {
  background: var(--brand-surface);
  border-radius: 1rem;
  border: 1px solid rgba(15, 28, 46, 0.06);
  box-shadow: 0 18px 45px rgba(15, 28, 46, 0.04);
  padding: 1.75rem;
  height: 100%;
}

/* Additional spacing for generic soft cards */

.card-soft {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Stats panel on home */

.stats {
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.stats-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.stats-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

/* Contact card (forms) */

.contact-card {
  padding: 1.75rem;
  margin-top: 1rem;
}

/* Soft badges */

.badge-soft {
  background: rgba(15, 28, 46, 0.05);
  color: #374151;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

/* Breadcrumbs */

.breadcrumb {
  font-size: 0.85rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */

footer {
  border-top: 1px solid rgba(15, 28, 46, 0.08);
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive tweaks */

@media (max-width: 992px) {
  .stats {
    margin-top: 1.5rem;
  }

  .contact-card {
    margin-top: 2rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .pill-list {
    margin-bottom: 1rem;
  }
}
