/* Azure Architecture Advisor: Microsoft-inspired, light, minimal. */

:root {
  --blue: #0078D4;
  --blue-dark: #005A9E;
  --blue-tint: #EFF6FC;
  /* Logo colors, sampled from the edthefixer wordmark. Brand only: never
     for body text or controls (the green fails text contrast on white). */
  --logo-green: #3BB54A;
  --logo-blue: #417DBD;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #333333;
  --muted: #5F6B7A;
  --border: #DDE3EA;
  --success: #107C10;
  --danger: #A4262C;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .05);
  --font: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; color: #1B1B1B; }

a { color: var(--blue-dark); }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- Top bar and search -------------------------------------------------- */

.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; height: 28px; width: auto; }

.search {
  position: relative; flex: 1; max-width: 560px; margin-left: auto;
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  transition: box-shadow .15s, border-color .15s;
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 2px 8px rgba(0, 120, 212, .18); }
.search-icon { width: 18px; height: 18px; margin-left: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 15px; color: var(--text); padding: 10px 12px;
}
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-go {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 3px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.search-go svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-go:hover { background: var(--blue-tint); }

/* ---- Hero --------------------------------------------------------------- */

.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); font-weight: 700; margin: 0 0 4px; letter-spacing: -.02em; }
.wm-green { color: var(--logo-green); }
.wm-blue { color: var(--logo-blue); }
.kicker { margin: 0 0 24px; color: var(--muted); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.statement { margin: 0 auto 16px; max-width: 640px; font-size: clamp(1.125rem, 2.6vw, 1.375rem); color: var(--text); }
.statement span, .tagline, .hero h1 { display: block; text-wrap: balance; }
.tagline { margin: 0 0 32px; color: var(--blue-dark); font-weight: 600; letter-spacing: .02em; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 24px;
  background: var(--blue); color: #FFF; border: 0; border-radius: 4px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { background: #8AB8E0; cursor: progress; }

.btn-hero { min-height: 56px; padding: 14px 48px; font-size: 1.25rem; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 120, 212, .3); }

.examples-label { margin: 40px 0 12px; color: var(--muted); font-size: .95rem; }
/* Flex rather than grid so an incomplete last row stays centered (5 buttons:
   one row on desktop, 3 + 2 on a phone). */
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin: 0 auto; }
.btn-example {
  flex: 0 1 calc((100% - 4 * 12px) / 5);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; background: var(--surface); color: var(--blue-dark);
  border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.btn-example:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.example-name { font-weight: 700; letter-spacing: .06em; }
.example-hint { font-size: .8rem; color: var(--muted); }

/* ---- Cards and the prompt ------------------------------------------------ */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.ask { padding: 8px 0 48px; }
.ask-card { padding: 28px; }
.ask-card h2 { margin: 0 0 16px; font-size: 1.375rem; font-weight: 600; }

textarea {
  display: block; width: 100%; min-height: 160px; resize: vertical;
  padding: 14px 16px; border: 1px solid #C8D1DB; border-radius: 6px;
  font: inherit; color: var(--text); background: var(--surface);
}
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.ask-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 8px; }
.help { margin: 0; color: var(--muted); font-size: .875rem; }
.char-count { flex: none; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.char-count.near-limit { color: var(--danger); }
.ask-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.privacy { margin: 16px 0 0; color: var(--muted); font-size: .8rem; }

/* ---- Recommendation ----------------------------------------------------- */

.results { padding: 0 0 64px; }
.recommendation { padding: 28px; }

.rec-header { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 8px; }
.rec-eyebrow { margin: 0 0 8px; color: var(--blue-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.rec-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rec-topics li { background: var(--blue-tint); color: var(--blue-dark); border-radius: 999px; padding: 4px 12px; font-size: .875rem; font-weight: 600; }

.rec-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.rec-section:last-of-type { border-bottom: 0; }
.rec-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.125rem; font-weight: 600; }
.rec-number {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px;
  border-radius: 50%; background: var(--blue); color: #FFF; font-size: .875rem;
}
.rec-goal { margin: 0; font-size: 1.0625rem; }

.rec-list, .rec-phases { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rec-list li, .rec-phases li { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 4px 16px; }
.rec-list strong, .rec-phases strong { font-weight: 600; color: #1B1B1B; }
.rec-list span, .rec-phases span { color: var(--text); }

.rec-services li strong::before { content: "✓"; color: var(--success); margin-right: 8px; }

.rec-phases { counter-reset: phase; }
.rec-phases li strong::before { counter-increment: phase; content: counter(phase) ". "; color: var(--blue-dark); }

.rec-ownership li strong { color: var(--blue-dark); }

.rec-questions { margin-top: 8px; padding: 16px 20px; background: var(--blue-tint); border-radius: 6px; }
.rec-questions h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.rec-questions ul { margin: 0; padding-left: 20px; }
.rec-questions li + li { margin-top: 4px; }

.rec-error { margin: 0; color: var(--danger); font-weight: 600; }

/* ---- Consulting CTA ------------------------------------------------------ */

.engage { margin-top: 24px; padding: 28px; border-top: 4px solid var(--blue); }
.engage h2 { margin: 0 0 16px; font-size: 1.375rem; font-weight: 600; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; margin: 0 0 20px; padding: 0; list-style: none; }
.services li::before { content: "✓"; color: var(--success); font-weight: 700; margin-right: 8px; }
.engage-pitch { margin: 0 0 20px; color: var(--muted); }
.engage-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact { margin: 0; color: var(--muted); }

/* ---- Footer -------------------------------------------------------------- */

.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; color: var(--muted); font-size: .8rem; }
.footer p { margin: 0; }
.footer p + p { margin-top: 6px; }

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .search { max-width: none; flex-basis: 100%; margin-left: 0; }
  .hero { padding: 40px 0 32px; }
  .btn-hero { width: 100%; max-width: 360px; }
  .examples { gap: 8px; }
  .btn-example { flex-basis: calc((100% - 2 * 8px) / 3); }
  .ask-card, .recommendation, .engage { padding: 20px; }
  .ask-meta { flex-direction: column; gap: 4px; }
  .rec-list li, .rec-phases li { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut { display: none; }
}

@media (max-width: 380px) {
  .services { grid-template-columns: 1fr; }
  .example-hint { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
