/* ==========================================================================
   assets/css/ic-shell.css
   IndiaConnect AI - site-wide shell: design tokens, fonts, buttons, icon
   tiles, store badges, navbar (+ mega menu, mobile drawer), footer and
   scroll-reveal. Loaded on every page (before the page stylesheet).
   Everything is prefixed "ic-" so it never collides with page CSS.
   ========================================================================== */

@font-face {
  font-family: 'ICJakarta';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'ICInter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
}

:root {
  /* Brand */
  --ic-blue-50: #EEF4FF;
  --ic-blue-100: #DCE7FF;
  --ic-blue-200: #BCD2FF;
  --ic-blue-400: #4D8DFF;
  --ic-blue-500: #2F7BFF;
  --ic-blue-600: #0F57E8;
  --ic-blue-700: #0B45C2;
  --ic-navy: #0A1B4D;
  --ic-cyan: #14B8E6;
  --ic-saffron: #FF9933;
  --ic-green: #138808;

  /* Neutrals */
  --ic-ink: #0B1530;
  --ic-text: #3A4560;
  --ic-muted: #67728C;
  --ic-line: #E4E9F2;
  --ic-line-soft: #EEF2F8;
  --ic-bg: #FFFFFF;
  --ic-bg-soft: #F5F8FE;

  /* Type */
  --ic-font-display: 'ICJakarta', 'ICInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ic-font-body: 'ICInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius (8px system) */
  --ic-r-sm: 10px;
  --ic-r-md: 14px;
  --ic-r-lg: 20px;
  --ic-r-xl: 28px;
  --ic-r-2xl: 36px;

  /* Shadows */
  --ic-sh-sm: 0 1px 2px rgba(11, 21, 48, 0.05), 0 1px 3px rgba(11, 21, 48, 0.04);
  --ic-sh-md: 0 12px 32px -12px rgba(11, 21, 48, 0.16), 0 2px 6px rgba(11, 21, 48, 0.04);
  --ic-sh-lg: 0 32px 64px -28px rgba(10, 40, 120, 0.32), 0 8px 20px -8px rgba(11, 21, 48, 0.08);
  --ic-sh-blue: 0 10px 24px -10px rgba(15, 87, 232, 0.6);

  /* Layout */
  --ic-container: 1240px;
  --ic-gutter: 24px;
  --ic-nav-h: 68px;
  --ic-nav-space: 68px; /* full-width bar: no extra breathing room */

  /* Motion */
  --ic-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 640px) {
  :root {
    --ic-gutter: 16px;
    --ic-nav-h: 60px;
    --ic-nav-space: 60px;
  }
}

/* Legacy pages set overflow-x:hidden on html AND body, which turns body
   into a scroll container and stops the sticky navbar from sticking.
   clip prevents sideways overflow without creating a scroll container. */
:root:has(body.ai-platform),
html body.ai-platform { overflow-x: clip; }

html {
  scroll-padding-top: calc(var(--ic-nav-space) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* --------------------------------------------------------------------------
   Primitives
   -------------------------------------------------------------------------- */
.ic-nav, .ic-nav *, .ic-footer, .ic-footer *,
.ic-nav *::before, .ic-nav *::after, .ic-footer *::before, .ic-footer *::after {
  box-sizing: border-box;
}

.ic-container {
  width: 100%;
  max-width: calc(var(--ic-container) + var(--ic-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--ic-gutter);
}

.ic-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--ic-r-sm);
  background: var(--ic-ink);
  color: #fff;
  font: 600 14px/1 var(--ic-font-body);
  text-decoration: none;
  transition: top 0.2s var(--ic-ease);
}
.ic-skip:focus { top: 12px; }

.ic-nav :focus-visible,
.ic-footer :focus-visible,
.ic-page :focus-visible {
  outline: 3px solid rgba(47, 123, 255, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.ai-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Logo ------------------------------------------------------------------- */
.ic-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ic-ink);
  text-decoration: none;
  flex-shrink: 0;
}
img.ic-logo__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
img.ic-logo__img { display: block; height: 44px; width: auto; max-width: none; }
.ic-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.ic-logo__name {
  font: 800 18px/1.1 var(--ic-font-display);
  letter-spacing: -0.02em;
  color: var(--ic-ink);
}
.ic-logo__name span { color: var(--ic-blue-600); }
.ic-logo__tag {
  margin-top: 3px;
  font: 500 10.5px/1 var(--ic-font-body);
  color: var(--ic-muted);
  letter-spacing: 0.01em;
}

/* Indian flag chip -------------------------------------------------------- */
.ic-flag {
  display: inline-flex;
  flex-direction: column;
  width: 18px;
  height: 13px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(11, 21, 48, 0.08);
}
.ic-flag i { flex: 1; display: block; }
.ic-flag i:nth-child(1) { background: var(--ic-saffron); }
.ic-flag i:nth-child(2) { background: radial-gradient(circle, #0B3D91 0 1.3px, #fff 1.6px); }
.ic-flag i:nth-child(3) { background: var(--ic-green); }

/* Buttons ---------------------------------------------------------------- */
.ic-btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--ic-r-md);
  font: 600 15px/1 var(--ic-font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ic-ease), box-shadow 0.2s var(--ic-ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.ic-btn .ai-icon { width: 18px; height: 18px; }
.ic-btn__lead, .ic-btn__icon { display: inline-flex; }
.ic-btn__icon { transition: transform 0.2s var(--ic-ease); }
.ic-btn:hover .ic-btn__icon { transform: translateX(3px); }
.ic-btn:hover { transform: translateY(-1px); }
.ic-btn:active { transform: translateY(0); }

.ic-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--ic-blue-500) 0%, var(--ic-blue-600) 100%);
  box-shadow: var(--ic-sh-blue), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ic-btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(15, 87, 232, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.ic-btn--secondary {
  color: var(--ic-ink);
  background: #fff;
  border-color: var(--ic-line);
  box-shadow: var(--ic-sh-sm);
}
.ic-btn--secondary .ic-btn__lead { color: var(--ic-blue-600); }
.ic-btn--secondary:hover { color: var(--ic-ink); border-color: var(--ic-blue-200); box-shadow: var(--ic-sh-md); }
.ic-btn--light {
  color: var(--ic-blue-700);
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
}
.ic-btn--light:hover { color: var(--ic-blue-700); }
.ic-btn--amber {
  color: #3A1D00;
  background: linear-gradient(180deg, #FFC062 0%, #F59E0B 100%);
  box-shadow: 0 10px 24px -10px rgba(245, 140, 11, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ic-btn--amber:hover { color: #3A1D00; }
.ic-btn--sm { --btn-h: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.ic-btn--sm .ai-icon { width: 16px; height: 16px; }
.ic-btn--lg { --btn-h: 56px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.ic-btn--block { width: 100%; }

/* Text link with arrow */
.ic-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 14.5px/1.2 var(--ic-font-body);
  color: var(--ic-blue-600);
  text-decoration: none;
}
.ic-link .ai-icon { width: 16px; height: 16px; transition: transform 0.2s var(--ic-ease); }
.ic-link:hover .ai-icon, a:hover > .ic-link .ai-icon { transform: translateX(3px); }

/* Icon tiles ------------------------------------------------------------- */
.ic-tile {
  --tile: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--tone-fg, var(--ic-blue-600));
  background: var(--tone-bg, var(--ic-blue-50));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.ic-tile .ai-icon { width: 22px; height: 22px; stroke-width: 1.8; }
.ic-tile--sm { --tile: 30px; border-radius: 10px; }
.ic-tile--sm .ai-icon { width: 16px; height: 16px; }
.ic-tile--lg { --tile: 52px; border-radius: 16px; }
.ic-tile--lg .ai-icon { width: 26px; height: 26px; }

.ic-tile--blue   { --tone-bg: #EAF1FF; --tone-fg: #1F5FE0; }
.ic-tile--rose   { --tone-bg: #FFECEF; --tone-fg: #E11D48; }
.ic-tile--amber  { --tone-bg: #FFF3DC; --tone-fg: #D97706; }
.ic-tile--violet { --tone-bg: #F1ECFF; --tone-fg: #7C3AED; }
.ic-tile--orange { --tone-bg: #FFEDDF; --tone-fg: #EA580C; }
.ic-tile--indigo { --tone-bg: #ECEEFF; --tone-fg: #4F46E5; }
.ic-tile--green  { --tone-bg: #E5F6EC; --tone-fg: #15803D; }
.ic-tile--cyan   { --tone-bg: #E2F6FB; --tone-fg: #0890B2; }
.ic-tile--teal   { --tone-bg: #DFF4F1; --tone-fg: #0D8A7E; }
.ic-tile--pink   { --tone-bg: #FDEAF5; --tone-fg: #DB2777; }

/* Store badges ----------------------------------------------------------- */
.ic-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.ic-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s var(--ic-ease), box-shadow 0.2s;
}
.ic-store:hover { transform: translateY(-2px); }
.ic-store__icon { display: inline-flex; }
.ic-store__icon .ai-icon { width: 24px; height: 24px; }
.ic-store__text { display: flex; flex-direction: column; text-align: left; }
.ic-store__text small { font: 500 10px/1.1 var(--ic-font-body); opacity: 0.8; }
.ic-store__text strong { font: 700 15px/1.2 var(--ic-font-display); letter-spacing: -0.01em; }
.ic-stores--dark .ic-store { color: #fff; background: var(--ic-ink); box-shadow: 0 8px 18px -10px rgba(11, 21, 48, 0.6); }
.ic-stores--dark .ic-store:hover { color: #fff; box-shadow: 0 14px 24px -12px rgba(11, 21, 48, 0.6); }
.ic-stores--light .ic-store { color: var(--ic-ink); background: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }
.ic-stores--light .ic-store:hover { color: var(--ic-ink); }

/* Glass surface */
.ic-glass {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--ic-sh-md);
}

/* Check bullet */
.ic-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #22C55E, #15A34A);
}
.ic-check .ai-icon { width: 12px; height: 12px; stroke-width: 2.6; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.ic-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: var(--ic-font-body);
  pointer-events: none; /* only the bar itself takes clicks */
}

/* Standard full-width header: flat white bar, hairline bottom border */
.ic-nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--ic-nav-h);
  padding: 0 max(var(--ic-gutter), calc((100% - var(--ic-container)) / 2));
  background: #fff;
  border-bottom: 1px solid var(--ic-line);
  pointer-events: auto;
  transition: box-shadow 0.25s var(--ic-ease);
}
.ic-nav.is-scrolled .ic-nav__bar { box-shadow: 0 6px 20px -12px rgba(11, 21, 48, 0.25); }
/* the tagline stays in the footer logo; the header keeps just the name */
.ic-nav .ic-logo__tag { display: none; }

.ic-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.ic-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: 500 14.5px/1 var(--ic-font-body);
  color: var(--ic-text);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.ic-nav__link:hover,
.ic-nav__item--mega.is-open > .ic-nav__link { color: var(--ic-ink); background: var(--ic-bg-soft); }
.ic-nav__link.is-current { color: var(--ic-blue-600); font-weight: 600; }
.ic-nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--ic-blue-600);
}
.ic-nav__chev { display: inline-flex; transition: transform 0.2s var(--ic-ease); }
.ic-nav__chev .ai-icon { width: 15px; height: 15px; }
.ic-nav__item--mega.is-open .ic-nav__chev { transform: rotate(180deg); }

.ic-nav__actions { display: flex; align-items: center; gap: 8px; }
.ic-nav__cta { border-radius: 10px; padding: 0 18px; }
.ic-nav__login {
  padding: 10px 12px;
  font: 600 14.5px/1 var(--ic-font-body);
  color: var(--ic-ink);
  text-decoration: none;
  border-radius: 10px;
}
.ic-nav__login:hover { color: var(--ic-blue-600); }

.ic-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ic-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.ic-nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ic-ink);
  transition: transform 0.25s var(--ic-ease), opacity 0.2s;
}
.ic-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ic-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ic-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mega menu */
.ic-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
  width: min(860px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--ic-line);
  box-shadow: var(--ic-sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s var(--ic-ease), transform 0.2s var(--ic-ease), visibility 0.2s;
}
.ic-mega::before { /* hover bridge between trigger and panel */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.ic-nav__item--mega.is-open .ic-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.ic-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
/* Simple dropdown: one column of category cards, no promo panel. */
.ic-mega--list { grid-template-columns: 1fr; width: min(360px, calc(100vw - 32px)); padding: 8px; border-radius: 20px; }
.ic-mega--list .ic-mega__grid { grid-template-columns: 1fr; gap: 2px; }
.ic-mega--list .ic-mega__card { gap: 12px; padding: 10px 12px; border-radius: 14px; align-items: center; }
.ic-mega--list .ic-mega__card .ic-tile { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.ic-mega--list .ic-mega__card-body { gap: 2px; min-width: 0; }
.ic-mega--list .ic-mega__card-title { font-size: 14px; }
.ic-mega--list .ic-mega__card-desc { font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-mega__card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.ic-mega__card:hover { background: var(--ic-bg-soft); }
.ic-mega__card-body { display: flex; flex-direction: column; gap: 4px; }
.ic-mega__card-title { font: 700 15px/1.3 var(--ic-font-display); color: var(--ic-ink); }
.ic-mega__card-title em {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font: 600 11px/1.6 var(--ic-font-body);
  font-style: normal;
  color: var(--ic-blue-600);
  background: var(--ic-blue-50);
  vertical-align: 1px;
  white-space: nowrap;
}
.ic-mega__card-desc { font: 400 13.5px/1.45 var(--ic-font-body); color: var(--ic-muted); }
.ic-mega__promo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(20, 184, 230, 0.55), transparent 60%),
    linear-gradient(160deg, var(--ic-blue-600), var(--ic-navy));
}
.ic-mega__promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font: 600 12px/1 var(--ic-font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ic-mega__promo-title { margin: 0; font: 800 19px/1.25 var(--ic-font-display); letter-spacing: -0.02em; }
.ic-mega__promo .ic-btn { align-self: flex-start; }
.ic-mega__footer {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  padding: 12px 14px 4px;
  border-top: 1px solid var(--ic-line-soft);
}
.ic-mega__footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13.5px/1 var(--ic-font-body);
  color: var(--ic-text);
  text-decoration: none;
}
.ic-mega__footer a:hover { color: var(--ic-blue-600); }
.ic-mega__footer .ai-icon { width: 14px; height: 14px; }

/* Mobile drawer */
.ic-drawer {
  position: absolute;
  top: calc(100% + 6px);
  left: var(--ic-gutter);
  right: var(--ic-gutter);
  max-height: calc(100vh - var(--ic-nav-space) - 16px);
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ic-line);
  box-shadow: var(--ic-sh-lg);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ic-ease), transform 0.22s var(--ic-ease);
}
.ic-drawer.is-open { opacity: 1; transform: none; }
@media (max-width: 640px) { .ic-drawer { left: 12px; right: 12px; } }
.ic-drawer__inner { display: flex; flex-direction: column; padding: 10px; }
.ic-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font: 600 16px/1 var(--ic-font-body);
  color: var(--ic-ink);
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}
.ic-drawer__link::-webkit-details-marker { display: none; }
.ic-drawer__link:hover, .ic-drawer__link.is-current { background: var(--ic-bg-soft); color: var(--ic-blue-600); }
.ic-drawer__link .ai-icon { width: 18px; height: 18px; transition: transform 0.2s; }
.ic-drawer__group[open] .ic-drawer__link .ai-icon { transform: rotate(180deg); }
.ic-drawer__sub { display: flex; flex-direction: column; padding: 4px 0 8px 8px; }
.ic-drawer__sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font: 500 15px/1.2 var(--ic-font-body);
  color: var(--ic-text);
  text-decoration: none;
}
.ic-drawer__sub a:hover { background: var(--ic-bg-soft); }
.ic-drawer__sub .ai-icon { width: 18px; height: 18px; color: var(--ic-blue-600); }
.ic-drawer__sub em {
  margin-left: auto;
  font: 600 12px/1 var(--ic-font-body);
  font-style: normal;
  color: var(--ic-muted);
}
.ic-drawer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--ic-line-soft);
}

@media (max-width: 1180px) {
  .ic-nav__links, .ic-nav__login { display: none; }
  .ic-nav__burger { display: inline-flex; }
  .ic-nav__actions { margin-left: auto; }
}
@media (min-width: 1181px) {
  .ic-drawer { display: none !important; }
}
@media (max-width: 520px) {
  .ic-nav__cta { display: none; }
  img.ic-logo__img { height: 38px; }
  .ic-drawer__actions { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ic-footer {
  position: relative;
  padding: 36px 0 22px;
  font-family: var(--ic-font-body);
  color: var(--ic-text);
  background: #fff;
}
.ic-footer ul { list-style: none; margin: 0; padding: 0; }
.ic-footer p { margin: 0; }
.ic-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding-bottom: 28px;
}
.ic-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.ic-footer__nav a, .ic-footer__legal a {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ic-text);
  text-decoration: none;
  transition: color 0.2s;
}
.ic-footer__nav a:hover, .ic-footer__legal a:hover { color: var(--ic-blue-600); }
.ic-footer__social { display: flex; gap: 6px; }
.ic-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ic-ink);
  background: #fff;
  border: 1px solid var(--ic-line);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, transform 0.2s var(--ic-ease);
}
.ic-footer__social a:hover { color: #fff; background: var(--ic-blue-600); border-color: var(--ic-blue-600); transform: translateY(-2px); }
.ic-footer__social .ai-icon { width: 17px; height: 17px; }
.ic-footer__made { display: inline-flex; align-items: center; gap: 10px; }
.ic-footer__made .ic-flag { width: 24px; height: 17px; border-radius: 3px; }
.ic-footer__made span:last-child { display: flex; flex-direction: column; white-space: nowrap; font-size: 11.5px; line-height: 1.35; color: var(--ic-muted); }
.ic-footer__made strong { font: 700 13px/1.35 var(--ic-font-display); color: var(--ic-ink); }
.ic-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 18px;
  border-top: 1px solid var(--ic-line);
  font-size: 12.5px;
  color: var(--ic-muted);
}
.ic-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 0; }
.ic-footer__legal li + li::before { content: "|"; margin: 0 12px; color: var(--ic-line); }
.ic-footer__legal a { font-size: 12.5px; color: var(--ic-muted); }

@media (max-width: 1180px) {
  .ic-footer__main { flex-wrap: wrap; justify-content: center; text-align: center; }
  .ic-footer__nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .ic-footer__main { flex-direction: column; gap: 22px; }
  .ic-footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is running - see head.php)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .ic-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ic-ease), transform 0.7s var(--ic-ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .ic-js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Legacy-page guard: ai-platform.css styles `.ai-platform a` (specificity
   0,1,1), which beats the single-class link colours above. Re-assert them
   with a-qualified selectors (same specificity; this file loads last).
   -------------------------------------------------------------------------- */
a.ic-btn--primary, a.ic-btn--primary:hover { color: #fff; }
a.ic-btn--secondary, a.ic-btn--secondary:hover { color: var(--ic-ink); }
a.ic-btn--light, a.ic-btn--light:hover { color: var(--ic-blue-700); }
a.ic-btn--amber, a.ic-btn--amber:hover { color: #3A1D00; }
a.ic-nav__link { color: var(--ic-text); }
a.ic-nav__link:hover { color: var(--ic-ink); }
a.ic-nav__link.is-current { color: var(--ic-blue-600); }
a.ic-nav__login { color: var(--ic-ink); }
a.ic-nav__login:hover { color: var(--ic-blue-600); }
a.ic-logo { color: var(--ic-ink); }
a.ic-link { color: var(--ic-blue-600); }
a.ic-drawer__link { color: var(--ic-ink); }
a.ic-drawer__link:hover, a.ic-drawer__link.is-current { color: var(--ic-blue-600); }
a.ic-skip { color: #fff; }
