/* ==========================================================================
   AICT PVT LTD - common site header / navbar / footer
   File : /Register/css/aict-site.css
   Matches https://aictech.co.in (theme colour #4f46e5)
   Every class starts with "ax-" so it never clashes with css/main.css
   ========================================================================== */

:root {
  --ax-brand: #4f46e5;
  --ax-brand-dark: #4338ca;
  --ax-brand-soft: #eef2ff;
  --ax-ink: #1e1b4b;
  --ax-text: #374151;
  --ax-muted: #6b7280;
  --ax-line: #e5e7eb;
  --ax-bg: #ffffff;
  --ax-foot: #0f0d2e;
  --ax-accent: #f59e0b;
  --ax-ok: #059669;
  --ax-err: #dc2626;
}

.ax-skip { position: absolute; left: -9999px; top: 0; }
.ax-skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- offer strip ---------- */
.ax-offer {
  background: linear-gradient(90deg, var(--ax-brand) 0%, #7c3aed 100%);
  color: #fff; font-size: 13px; font-family: "Poppins", Arial, sans-serif;
}
.ax-offer__in {
  max-width: 1240px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.ax-offer__msg { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.ax-offer__tag {
  flex: none; background: var(--ax-accent); color: #1f1300; font-weight: 700; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 2px 8px;
}
.ax-offer__rot { position: relative; min-width: 0; }
.ax-offer__item { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-offer__item.is-on { display: block; animation: axFade .5s ease; }
.ax-offer__item b { font-weight: 600; }
.ax-offer__item code {
  font-family: inherit; font-weight: 700; background: rgba(255,255,255,.18);
  border: 1px dashed rgba(255,255,255,.6); border-radius: 4px; padding: 0 6px; margin: 0 2px;
  cursor: pointer;
}
.ax-offer__contact { flex: none; display: flex; gap: 16px; }
.ax-offer__contact a { color: #fff; text-decoration: none; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.ax-offer__contact a:hover { opacity: 1; text-decoration: underline; }
@keyframes axFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- navbar ---------- */
.ax-nav {
  position: sticky; top: 0; z-index: 900; background: var(--ax-bg);
  border-bottom: 1px solid var(--ax-line); font-family: "Poppins", Arial, sans-serif;
  box-shadow: 0 1px 0 rgba(17, 24, 39, .02);
  transition: box-shadow .2s;
}
.ax-nav.is-scrolled { box-shadow: 0 6px 20px rgba(17, 24, 39, .08); }
.ax-nav__in {
  max-width: 1240px; margin: 0 auto; padding: 0 16px; height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.ax-logo { display: flex; align-items: center; flex: none; }
.ax-logo img { height: 44px; width: auto; display: block; }

.ax-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.ax-menu > li { position: relative; }
.ax-menu > li > a,
.ax-menu > li > button {
  display: flex; align-items: center; gap: 4px; height: 68px; padding: 0 12px;
  font: 500 14.5px/1 "Poppins", Arial, sans-serif; color: var(--ax-text);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.ax-menu > li > a:hover, .ax-menu > li > button:hover,
.ax-menu > li:focus-within > button, .ax-menu > li > a.is-active { color: var(--ax-brand); }
.ax-menu > li > a.is-active { box-shadow: inset 0 -3px 0 var(--ax-brand); }
.ax-chev { width: 14px; height: 14px; transition: transform .2s; }

.ax-drop {
  position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--ax-line); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease;
}
.ax-drop a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--ax-text);
  text-decoration: none; font-size: 14px;
}
.ax-drop a:hover { background: var(--ax-brand-soft); color: var(--ax-brand); }

.ax-mega { left: 50%; width: 820px; padding: 18px; transform: translate(-50%, 8px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 18px; }
.ax-mega h6 {
  margin: 0 0 6px; padding: 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ax-brand);
}
.ax-mega ul { list-style: none; margin: 0; padding: 0; }
.ax-mega a { font-size: 13.5px; padding: 7px 12px; }
.ax-mega__deal {
  grid-column: 1 / -1; margin-top: 8px; padding: 12px 14px; border-radius: 10px;
  background: var(--ax-brand-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--ax-ink);
}
.ax-mega__deal a { background: var(--ax-brand); color: #fff; font-weight: 600; padding: 8px 14px; }
.ax-mega__deal a:hover { background: var(--ax-brand-dark); color: #fff; }

@media (hover: hover) and (min-width: 992px) {
  .ax-menu > li:hover > .ax-drop,
  .ax-menu > li:focus-within > .ax-drop { opacity: 1; visibility: visible; transform: translateY(0); }
  .ax-menu > li:hover > .ax-mega,
  .ax-menu > li:focus-within > .ax-mega { transform: translate(-50%, 0); }
  .ax-menu > li:hover .ax-chev { transform: rotate(180deg); }
}

.ax-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 9px; text-decoration: none;
  font: 600 14px/1 "Poppins", Arial, sans-serif; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ax-btn--solid { background: var(--ax-brand); color: #fff; border: 1px solid var(--ax-brand); }
.ax-btn--solid:hover { background: var(--ax-brand-dark); color: #fff; }
.ax-btn--ghost { background: #fff; color: var(--ax-brand); border: 1px solid #c7d2fe; }
.ax-btn--ghost:hover { background: var(--ax-brand-soft); }

.ax-burger {
  display: none; width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--ax-line);
  background: #fff; align-items: center; justify-content: center; cursor: pointer; margin-left: auto;
}
.ax-burger span, .ax-burger span::before, .ax-burger span::after {
  display: block; width: 20px; height: 2px; background: var(--ax-ink); border-radius: 2px;
  position: relative; transition: transform .2s, background .2s;
}
.ax-burger span::before, .ax-burger span::after { content: ""; position: absolute; left: 0; }
.ax-burger span::before { top: -6px; }
.ax-burger span::after { top: 6px; }
.ax-nav.is-open .ax-burger span { background: transparent; }
.ax-nav.is-open .ax-burger span::before { transform: translateY(6px) rotate(45deg); }
.ax-nav.is-open .ax-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- mobile / tablet ---------- */
@media (max-width: 1100px) {
  .ax-menu > li > a, .ax-menu > li > button { padding: 0 9px; font-size: 14px; }
  .ax-mega { width: 720px; }
}
@media (max-width: 991px) {
  .ax-nav__in { height: 62px; }
  .ax-logo img { height: 38px; }
  .ax-burger { display: inline-flex; }
  .ax-panel {
    position: fixed; left: 0; right: 0; top: var(--ax-top, 62px); bottom: 0; background: #fff;
    overflow-y: auto; padding: 8px 16px 24px; border-top: 1px solid var(--ax-line);
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .ax-nav.is-open .ax-panel { transform: none; visibility: visible; }
  .ax-menu { display: block; margin: 0; }
  .ax-menu > li { border-bottom: 1px solid var(--ax-line); }
  .ax-menu > li > a, .ax-menu > li > button { height: 52px; width: 100%; padding: 0 4px; justify-content: space-between; font-size: 15.5px; }
  .ax-menu > li > a.is-active { box-shadow: none; }
  .ax-drop, .ax-mega {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    width: auto; min-width: 0; padding: 0 0 10px 6px; display: none; border-radius: 0;
  }
  .ax-mega { grid-template-columns: 1fr; }
  .ax-menu > li.is-sub-open > .ax-drop { display: block; }
  .ax-menu > li.is-sub-open > .ax-mega { display: grid; }
  .ax-menu > li.is-sub-open .ax-chev { transform: rotate(180deg); }
  .ax-mega h6 { margin-top: 10px; }
  .ax-actions { margin-top: 18px; flex-direction: column; align-items: stretch; }
  .ax-btn { height: 48px; font-size: 15px; }
  body.ax-lock { overflow: hidden; }
}
@media (min-width: 992px) {
  .ax-panel { display: flex; align-items: center; gap: 18px; flex: 1; }
}
@media (max-width: 640px) {
  .ax-offer__contact { display: none; }
  .ax-offer__in { padding: 7px 14px; }
  .ax-offer { font-size: 12.5px; }
}

/* ---------- footer ---------- */
.ax-foot { background: var(--ax-foot); color: #c7c9e0; font-family: "Poppins", Arial, sans-serif; font-size: 14px; }
.ax-foot__trust {
  max-width: 1240px; margin: 0 auto; padding: 22px 16px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ax-foot__trust span {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font-size: 12.5px; color: #e0e1f5; padding: 10px 8px; border-radius: 10px; background: rgba(255,255,255,.04);
}
.ax-foot__trust svg { flex: none; color: #a5b4fc; }
.ax-foot__grid {
  max-width: 1240px; margin: 0 auto; padding: 44px 16px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px;
}
.ax-foot h5 { color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.ax-foot p { margin: 0 0 12px; line-height: 1.7; }
.ax-foot ul { list-style: none; margin: 0; padding: 0; }
.ax-foot li { margin: 0 0 9px; }
.ax-foot a { color: #c7c9e0; text-decoration: none; }
.ax-foot a:hover { color: #fff; text-decoration: underline; }
.ax-foot__logo img { height: 46px; width: auto; margin-bottom: 14px; background: #fff; border-radius: 8px; padding: 5px 8px; }
.ax-social { display: flex; gap: 8px; margin-top: 14px; }
.ax-social a {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.ax-social a:hover { background: var(--ax-brand); text-decoration: none; }
.ax-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.ax-contact svg { flex: none; margin-top: 3px; color: #a5b4fc; }
.ax-foot__bar {
  border-top: 1px solid rgba(255,255,255,.08); max-width: 1240px; margin: 0 auto; padding: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #9a9cc0;
}
@media (max-width: 991px) {
  .ax-foot__grid { grid-template-columns: 1fr 1fr; }
  .ax-foot__trust { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .ax-foot__grid { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; }
  .ax-foot__trust { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- floating WhatsApp ---------- */
.ax-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4); transition: transform .2s;
}
.ax-wa:hover { transform: scale(1.06); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ax-offer__item.is-on { animation: none; }
  .ax-panel, .ax-drop, .ax-chev, .ax-wa { transition: none; }
}

/* text logo (shown when the logo image file is missing) */
.ax-textlogo { display: inline-flex; align-items: baseline; gap: 5px; background: linear-gradient(90deg, #4f46e5, #7c3aed); color: #fff; border-radius: 999px; padding: 8px 16px; font-family: "Poppins", Arial, sans-serif; line-height: 1; white-space: nowrap; }
.ax-textlogo b { font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.ax-textlogo small { font-size: 11px; font-weight: 500; opacity: .9; }
