/* Alpha Smart Minds — corporate stylesheet */

:root {
  /* Brand palette — taken from the Alpha Smart Minds logo */
  --ink: #0e1035;          /* midnight navy (ALPHA wordmark) */
  --ink-2: #353a5e;
  --muted: #5d6382;
  --line: #e2e5ef;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --navy: #0b0b36;         /* logo navy */
  --navy-2: #0f1f4f;
  --accent: #0a5f86;       /* logo teal-blue (top of mark) */
  --accent-ink: #084d6d;
  --accent-soft: #e2f0f6;
  --royal: #174585;        /* SMART MINDS blue */
  --on-dark: #b9c1da;
  --on-dark-muted: #8f98b8;
  --glow: #6cc0e2;         /* light teal for accents on dark */
  --brand-gradient: linear-gradient(160deg, #0a5f86 0%, #174585 55%, #0b0b36 100%);

  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11, 11, 54, .05), 0 10px 28px rgba(11, 11, 54, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
h3 { font-family: var(--display); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 6px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--royal); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-family: var(--display); text-transform: uppercase; }
.brand-name strong { font-size: 1.42rem; font-weight: 800; letter-spacing: .06em; color: var(--navy); }
.brand-name span { font-size: .72rem; font-weight: 600; letter-spacing: .205em; color: var(--royal); margin-top: 5px; }
.site-footer .brand-name strong { color: #fff; }
.site-footer .brand-name span { color: var(--glow); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 14px; border-radius: 6px; text-decoration: none;
  color: var(--ink-2); font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--ink); background: var(--mist); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav .btn { margin-left: 10px; padding: 11px 18px; color: #fff; }
.site-nav .btn:hover { background: var(--royal); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 6px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin: 16px 0 0; justify-content: center; padding: 14px; border-bottom: 0; border-radius: 6px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 560px at 88% 0%, rgba(10,95,134,.55) 0%, transparent 62%), radial-gradient(700px 500px at 0% 110%, rgba(23,69,133,.45) 0%, transparent 60%), var(--navy);
  color: #dfe4f2;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: var(--on-dark); }
.hero .eyebrow { color: var(--glow); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 80px 0 84px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-art { display: none; }
}

.hero-mark {
  position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -52%);
  filter: drop-shadow(0 10px 30px rgba(10, 95, 134, .55));
}
.hero-mark-bg { position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand-gradient); box-shadow: 0 0 0 1px rgba(108,192,226,.35), 0 20px 60px rgba(10,95,134,.45); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 420px at 92% -20%, rgba(10,95,134,.55) 0%, transparent 62%), var(--navy);
  color: var(--on-dark); padding: 64px 0 60px;
}
.page-hero h1 { color: #fff; max-width: 22ch; font-size: clamp(2rem, 3.8vw, 3rem); }
.page-hero .lead { color: var(--on-dark); }
.page-hero .eyebrow { color: var(--glow); }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section-sm { padding: 52px 0; }
.section.alt { background: var(--mist); }
.section.dark { background: var(--navy); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.dark .eyebrow { color: var(--glow); }
.section.dark .section-head p { color: var(--on-dark-muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 28px; } .section { padding: 56px 0; } }

/* Capability cards */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover { border-color: #c9d3e3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: .95rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.card .more svg { width: 15px; height: 15px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(3px); }
.icon {
  width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px;
}
.icon svg { width: 26px; height: 26px; }
.num { font-family: var(--display); font-size: .95rem; color: var(--accent-ink); font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .8rem; font-weight: 550; color: var(--ink-2); background: var(--mist); border: 1px solid var(--line); padding: 5px 10px; border-radius: 99px; }

/* Feature lists */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231747c7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks li strong { color: var(--ink); font-weight: 600; }

/* Service detail blocks */
.service { padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service:last-of-type { border-bottom: 0; }
.service .split { align-items: start; }
.service-panel { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-panel h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 22px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 4px 0; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 18px;
}
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--brand-gradient); }
.step p { color: var(--muted); font-size: .97rem; }
.section.dark .steps { border-color: rgba(255,255,255,.12); }
.section.dark .step p { color: var(--on-dark-muted); }
.section.dark .step::before { color: var(--glow); }
.section.dark .step::after { background: var(--glow); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Long-form phase list */
.phases { display: grid; gap: 0; }
.phase { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 36px; padding: 32px 0; border-top: 1px solid var(--line); }
.phase-num { font-family: var(--display); font-size: 3rem; font-weight: 600; color: var(--accent); line-height: 1; }
.phase p { color: var(--muted); }
@media (max-width: 900px) { .phase { grid-template-columns: 1fr; gap: 16px; } }

/* Industries */
.industry { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.industry .icon { margin: 0; flex: none; }
.industry p { color: var(--muted); margin: 0; font-size: .98rem; }
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 800px) { .industry-grid { grid-template-columns: 1fr; } }

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-row span {
  padding: 12px 20px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18);
  color: #dfe4f2; font-size: .95rem; font-weight: 500; background: rgba(255,255,255,.03);
}

/* Principles */
.principle { padding-top: 18px; border-top: 2px solid var(--ink); }
.principle p { color: var(--muted); font-size: .98rem; }
.section.dark .principle { border-color: rgba(255,255,255,.4); }
.section.dark .principle p { color: var(--on-dark-muted); }

/* Quote / statement */
.statement { font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.35; color: var(--ink); font-weight: 600; letter-spacing: -.01em; max-width: 30ch; }
.statement em { font-style: normal; color: var(--accent); }

/* CTA band */
.cta {
  background: radial-gradient(600px 300px at 100% 0%, rgba(10,95,134,.6), transparent 70%), linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: 16px; padding: 48px 52px; color: var(--on-dark);
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(108,192,226,.25); box-shadow: 0 0 0 60px rgba(108,192,226,.04), 0 0 0 120px rgba(108,192,226,.03);
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; max-width: 40rem; }
.cta .btn-row { margin: 0; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Engagement models */
.model { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.model h3 { display: flex; align-items: center; gap: 12px; }
.model h3 span { font-size: .72rem; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; font-weight: 650; }
.model p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 1px solid var(--line); }
.contact-item .icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 2px 0 4px; }
.contact-item p { margin: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form { padding: 26px 20px; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #cfd6e2; border-radius: 6px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-size: .95rem; color: var(--accent-ink); min-height: 1.4em; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--muted); }
.form-status.ok { color: #13795b; }
.form-status.err { color: #b42318; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* Prose (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.7em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Placeholder marker — visible until real details are filled in */
.ph { background: #fff6d6; color: #6b5300; border: 1px dashed #d8b84a; border-radius: 4px; padding: 0 6px; font-size: .92em; white-space: nowrap; }
.section.dark .ph, .site-footer .ph { background: rgba(201,162,39,.12); color: #e7cf7c; border-color: rgba(201,162,39,.5); }

/* Footer */
.site-footer { background: #08082a; color: var(--on-dark-muted); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about { max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 22px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(6px); transition: opacity .45s ease-out, transform .45s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* 404 */
.notfound { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 72px 0; }
.notfound .code { font-family: var(--display); font-size: 6rem; color: var(--accent); line-height: 1; margin-bottom: 12px; }
