/* IGM website - the shell shared by every page. Design pieces are added per section as they are chosen. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--font-body);
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--deep-blue); }
img, svg { max-width: 100%; display: block; }
:where(a, button):focus-visible { outline: 2px solid var(--igm-blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-section) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: var(--dark-text); }
.section--navy a { color: var(--sky); }

/* Buttons: every call to action is a Light Glass Button in Coral (Manny, 2026-11-16; the component is
   components/light-glass-button.*, Originkit's, its glass kept exact). IGM's look: the old button's size (48px tall,
   a 15px label), the hero's white bold type, Coral glass at 94% so it reads true Coral on white grounds and on navy
   alike, and a white light that follows the pointer. */
.lgb.cta-glass {
  --lgb-scale: .375; --lgb-pad-y: 34px; --lgb-pad-x: 60px;
  --lgb-fill: var(--coral); --lgb-tint: .94; --lgb-text: #FFFFFF; --lgb-focus: var(--coral);
  --lgb-font: var(--font-head); --lgb-weight: 800;
  --lgb-light: rgba(255,255,255,.55);
}
.cta-glass .lgb-label { letter-spacing: .01em; text-shadow: 0 1px 1px rgba(0,0,0,.18); }

/* ---- Top nav: floating pills; the page tabs are Bouncing Dot Tabs ---- */
.topnav {
  --nav-pill: 56px; --nav-room: 34px;
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px;
  height: calc(var(--nav-room) + var(--nav-pill)); margin-bottom: calc(-1 * (var(--nav-room) + var(--nav-pill)));
  padding: 0 24px; pointer-events: none;
}
.topnav > * { pointer-events: auto; }
.pill {
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 6px; box-shadow: 0 0 0 1px rgba(13,43,69,.06); transition: box-shadow .3s;
}
.topnav.is-scrolled .pill { box-shadow: 0 10px 30px -12px rgba(13,43,69,.45), 0 0 0 1px rgba(13,43,69,.06); }
.topnav-logo { justify-self: start; display: flex; align-items: center; height: var(--nav-pill); padding: 0 16px; }
.topnav-tabs { justify-self: center; }
.topnav-logo img { height: 48px; width: auto; }
.topnav-right { justify-self: end; display: flex; align-items: flex-end; gap: 8px; }

/* The tabs. The pill sits behind the row only; the headroom above stays clear so the dot can hop out of it. */
.topnav .bdt {
  --bdt-font: var(--font-head); --bdt-font-size: 15px; --bdt-weight: 700;
  --bdt-active: #FFFFFF; --bdt-inactive: rgba(255,255,255,.84);
  --bdt-dot: var(--coral-lifted); --bdt-dot-size: 8px; --bdt-gap: 22px; --bdt-room: var(--nav-room);
  padding: calc(var(--nav-room) + 19px) 20px 19px; isolation: isolate;
}
/* IGM Blue bar, white bold type, no border (Manny, 2026-11-15) */
.topnav .bdt::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: var(--nav-room);
  background: var(--igm-blue);
  border-radius: 6px; transition: box-shadow .3s;
}
.topnav.is-scrolled .bdt::before { box-shadow: 0 10px 30px -12px rgba(13,43,69,.45); }

/* Phone: the tabs fold into a menu */
.topnav-burger {
  display: none; position: relative; width: var(--nav-pill); height: var(--nav-pill); border: 0; border-radius: 6px;
  background: var(--igm-blue); cursor: pointer;
}
.topnav-burger i { position: absolute; left: 15px; right: 15px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .3s, top .3s; }
.topnav-burger i { left: 18px; right: 18px; }
.topnav-burger i:nth-child(1) { top: 24px; }
.topnav-burger i:nth-child(2) { top: 31px; }
.topnav-burger[aria-expanded="true"] i:nth-child(1) { top: 27.5px; transform: rotate(45deg); }
.topnav-burger[aria-expanded="true"] i:nth-child(2) { top: 27.5px; transform: rotate(-45deg); }
.topnav-menu {
  position: absolute; right: 16px; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  padding: 6px; border-radius: 8px; background: var(--dark-bg); color: var(--dark-text);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
.topnav-menu[hidden] { display: none; }
.topnav-menu ul { list-style: none; margin: 0; padding: 0; }
.topnav-menu li a {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 5px;
  color: var(--dark-text); text-decoration: none; font: 700 20px/1.2 var(--font-head); letter-spacing: -.02em;
}
.topnav-menu li a:hover, .topnav-menu a[aria-current="page"] { background: rgba(255,255,255,.06); }
.topnav-menu small { font: 600 11px var(--font-body); color: var(--dark-muted); }
.topnav-menu .lgb { display: flex; width: 100%; margin-top: 6px; }

@media (max-width: 900px) {
  .topnav { --nav-room: 16px; padding: 0 16px; }
  .topnav .bdt { display: none; }
  .topnav-burger { display: block; }
}

/* The navy frame runs through the whole page: every section is a panel inside it (Manny, 2026-11-15) */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 14px 14px; background: var(--navy); }
main > section { border-radius: 6px; overflow: clip; } /* clip, not hidden, so sticky parts inside still stick */
main > .section { background: var(--bg); }
main > .section--surface { background: var(--surface); }
main > .section--navy { background: var(--navy); box-shadow: inset 0 0 0 1px var(--dark-border); }
@media (max-width: 640px) { main { gap: 8px; padding: 0 8px 8px; } }

/* Placeholder slots - each marks a section whose design piece is still to be chosen */
.slot {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 48px 32px; text-align: center; color: var(--muted);
}
.section--navy .slot { border-color: var(--dark-border); color: var(--dark-muted); }
.slot strong { display: block; font-family: var(--font-head); font-weight: 700; color: inherit; font-size: 1.1rem; margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--dark-muted); padding: 56px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--dark-text); text-decoration: none; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Explore an AI summary (Manny, 2026-11-16, after frontal.so's): a small mono label, then one pale tile per AI engine */
.site-footer .ft-ai { display: block; margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--dark-border); }
.ft-ai-k { margin: 0 0 14px; font: 600 12px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dark-muted); }
.ft-ai-row { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .ft-ai-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px;
  background: rgba(255,255,255,.92); transition: transform .2s, background .2s; }
.site-footer .ft-ai-btn:hover { transform: translateY(-2px); background: #fff; }
.ft-ai-btn img { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
