/*
  McIndi Solutions — modern single-file site
  - No dependencies, fast paint, accessible
  - Light modernization of color scheme (indigo + slate + soft teal)
*/

/* CSS Custom Properties (Variables) */
:root {
  --bg: #f8fafc;            /* slate-50 */
  --card: #ffffff;          /* clean white cards */
  --muted: #64748b;         /* slate-500 */
  --txt: #0f172a;           /* slate-900 */
  --brand: #274472;         /* blue-grey blend */
  --brand-600: #1b2838;     /* darker blue-grey for hover */
  --brand-700: #16213e;     /* deepest blue-grey */
  --accent: #0891b2;        /* cyan-600 for better contrast */
  --ring: rgba(39, 68, 114, .2); /* blue-grey blend */
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --maxw: 1120px;
  --radius: 16px;
}

/* CSS Reset (lean) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--txt);
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

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

a {
  color: inherit;
}

/* Layout Utilities */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.stack {
  display: grid;
  gap: 3rem;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: var(--shadow);
  font-weight: 700;
}

.brand-title {
  font-weight: 700;
  letter-spacing: .2px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav a {
  opacity: .9;
  text-decoration: none;
}

.nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Mobile Navigation */
.menu-btn {
  display: none;
  border: 1px solid rgba(37, 99, 235, .3);
  background: transparent;
  color: var(--txt);
  padding: .6rem .7rem;
  border-radius: 10px;
}

@media (max-width: 860px) {
  .nav ul {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 24px;
    top: 64px;
    padding: 12px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
}

/* Hero Section */
.hero {
  padding: 72px 0 32px;
}

.hero-card {
  display: grid;
  gap: 1.2rem;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(37, 99, 235, .08), rgba(8, 145, 178, .04));
  border: 1px solid rgba(37, 99, 235, .15);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .78rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin: 0;
}

.hero p {
  color: var(--muted);
  max-width: 44ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: .2s;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, .3);
  color: var(--txt);
  background: rgba(248, 250, 252, .6);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, .5);
  background: rgba(241, 245, 249, .8);
}

/* Credibility Bar */
.trust {
  padding: 24px 0;
}

.trust .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: center;
  opacity: .85;
}

@media (max-width: 900px) {
  .trust .row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust .pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, .4);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* Section Styles */
section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.notice {
  background: hwb(0 72% 7%);
  border: 1px solid hwb(0 100% 0%);
  padding: 16px 20px;
  border-radius: 12px;
  color: hwb(351 2% 6%);
  box-shadow: var(--shadow);
  text-align: center;
}

/* Cards Grid */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: .2rem 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: 0.95em;
  font-weight: 500;
  color: #3a3a3a;
  background: #f3f6fa;
  border-radius: 999px;
  margin: 0 0.25em 0.25em 0;
  vertical-align: middle;
  box-shadow: none;
  border: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}

/* Work Section */
.work .card {
  display: grid;
  gap: .5rem;
}

.meta {
  display: flex;
  gap: 0.3em 0.4em;
  align-items: center;
  flex-wrap: wrap;
}

/* Split Blocks */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Testimonial */
.quote {
  font-size: 1.05rem;
  color: var(--muted);
}

.quote mark {
  background: linear-gradient(90deg, rgba(8, 145, 178, .15), rgba(37, 99, 235, .15));
  color: var(--txt);
  padding: 0 .1em;
  border-radius: .2em;
}

/* Footer */
footer {
  padding: 36px 0;
  border-top: 1px solid rgba(148, 163, 184, .2);
  color: var(--muted);
}

/* Focus styles */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:0 0 0 6px var(--ring)}

/* Form Inputs */
input, textarea {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(2,6,23,.25);
  color: inherit;
}
