/* ============================
   Blackgility — Design System
   Navy + Gold, dark theme
============================ */

:root {
  --navy-950: #060e1c;
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #16294a;
  --navy-600: #1e355c;
  --navy-border: #223257;

  --gold: #e2a836;
  --gold-light: #f2c968;
  --gold-dark: #b9832199;

  --text-primary: #f5f7fa;
  --text-secondary: #b7c0d1;
  --text-muted: #8592a8;

  --white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1180px;

  --shadow-card: 0 10px 30px rgba(0,0,0,0.35);
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--navy-900);
  color: var(--text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 16px; }

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

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--navy-800);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.section-head {
  max-width: 700px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-950);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(226,168,54,0.25);
}

.btn-outline {
  border-color: var(--navy-border);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-border);
}

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

.logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 500px at 15% 0%, rgba(226,168,54,0.08), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 20%, rgba(30,53,92,0.5), transparent 60%),
    var(--navy-900);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--navy-border);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.hero-visual .diagram-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.hero-visual .diagram-node:last-child { margin-bottom: 0; }
.hero-visual .diagram-node .dot {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226,168,54,0.12);
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.hero-visual .diagram-node strong { color: var(--white); display: block; font-size: 0.95rem; }
.hero-visual .diagram-node span { font-size: 0.8rem; color: var(--text-muted); }

/* Logo strip */
.logo-strip {
  padding: 40px 0;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}
.logo-strip .strip-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.strip-row {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(226,168,54,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

.card ul { padding-left: 18px; margin: 14px 0 0; font-size: 0.92rem; }
.card ul li { margin-bottom: 6px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Azure service portfolio chips */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.chip-card {
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: var(--transition);
}
.chip-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}
.chip-card .chip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(226,168,54,0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.chip-card h4 {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.chip-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Industry tiles */
.industry-tile {
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
}
.industry-tile::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226,168,54,0.16), transparent 70%);
}
.industry-tile .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Process steps */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 10px; }
.process-step .step-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-dark);
  display: block;
  margin-bottom: 10px;
}

/* Testimonial / quote */
.quote-block {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 40px;
}
.quote-block p {
  font-size: 1.2rem;
  color: var(--white);
  font-style: italic;
}
.quote-block .attribution {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  font-style: normal;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-700), var(--navy-800));
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  border: 1px solid var(--navy-border);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin-left: auto; margin-right: auto; margin-bottom: 30px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Page header (interior pages) */
.page-header {
  padding: 70px 0 60px;
  background:
    radial-gradient(ellipse 700px 400px at 85% 0%, rgba(226,168,54,0.08), transparent 60%),
    var(--navy-900);
  border-bottom: 1px solid var(--navy-border);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-band .stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.stats-band .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Table-ish list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--navy-border);
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list .mark { color: var(--gold); font-weight: 800; }

/* Team / values */
.value-item { display: flex; gap: 18px; margin-bottom: 30px; }
.value-item .num {
  font-weight: 800;
  color: var(--gold);
  font-size: 1.4rem;
  width: 44px;
  flex-shrink: 0;
}

/* Case study cards */
.case-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-card .case-top {
  padding: 30px 30px 0;
}
.case-card .case-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.case-card .case-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(226,168,54,0.1);
  padding: 5px 10px;
  border-radius: 20px;
}
.case-card .case-body { padding: 0 30px 30px; flex-grow: 1; }
.case-card .case-results {
  border-top: 1px solid var(--navy-border);
  padding: 20px 30px;
  display: flex;
  gap: 30px;
  background: var(--navy-900);
}
.case-card .case-results .r-num { color: var(--gold); font-weight: 800; font-size: 1.3rem; display: block; }
.case-card .case-results .r-label { font-size: 0.78rem; color: var(--text-muted); }

/* Success modal dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,14,28,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-box {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  animation: modalPop 0.25s ease;
}
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(226,168,54,0.15);
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal-box h3 { color: var(--white); margin-bottom: 10px; }
.modal-box p { color: var(--text-secondary); margin-bottom: 24px; }
.modal-box .modal-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }
.modal-box .btn { min-width: 120px; }

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Form status message */
.form-status {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  text-align: center;
}
.form-status h3 { color: var(--white); margin-bottom: 10px; }
.form-status p { color: var(--text-secondary); margin-bottom: 0; }
.form-status.form-status-error { border-left-color: #e5484d; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--navy-900);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.contact-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 20px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin-bottom: 0; font-size: 0.92rem; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--navy-border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a { color: var(--text-secondary); font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--navy-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--gold); }

/* Utilities */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .process-row { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy-800);
    padding: 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--navy-border);
  }
  .grid-4, .grid-5, .grid-3, .grid-2, .chip-grid { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
