/*
 * Ayaan Infra Tech — Design System (Formal / Corporate)
 * Light theme only. Traditional enterprise/financial-institution visual
 * language: structured, low-ornament, sharp edges, solid color blocks.
 * WCAG AA contrast targets throughout.
 */

:root {
  /* --- Brand palette (light theme, WCAG AA on white) --- */
  --ait-blue-900: #0b2545;
  --ait-blue-700: #13407a;
  --ait-blue-600: #1d5bb8;
  --ait-blue-500: #2f7fe0;
  --ait-cyan-500: #0ea5b7;
  --ait-cyan-300: #7fe0ea;
  --ait-purple-600: #6b46c1;
  --ait-green-600: #16875a;
  --ait-orange-600: #c2620a;

  --ait-ink-900: #10192b;
  --ait-ink-700: #34405a;
  --ait-ink-500: #5a6786;
  --ait-ink-300: #9aa5bd;

  --ait-bg-page: #ffffff;
  --ait-bg-alt: #f4f6f9;
  --ait-bg-card: #ffffff;
  --ait-border: #dde3ec;

  /* Formal palette leans on one solid brand color per surface rather than
     multi-stop gradients or blur effects. */
  --ait-gradient-cta: var(--ait-blue-700);
  --ait-gradient-accent-text: none;

  --ait-shadow-sm: 0 1px 2px rgba(16, 25, 43, 0.05);
  --ait-shadow-md: 0 2px 8px rgba(16, 25, 43, 0.07);
  --ait-shadow-lg: 0 4px 16px rgba(16, 25, 43, 0.10);

  --ait-radius-sm: 3px;
  --ait-radius-md: 4px;
  --ait-radius-lg: 6px;

  --ait-space-1: 6px;
  --ait-space-2: 12px;
  --ait-space-3: 20px;
  --ait-space-4: 32px;
  --ait-space-5: 48px;
  --ait-space-6: 64px;

  --ait-font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ait-font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ait-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

.ait * { box-sizing: border-box; }

.ait {
  font-family: var(--ait-font-body);
  color: var(--ait-ink-900);
  background: var(--ait-bg-page);
  -webkit-font-smoothing: antialiased;
}

.ait h1, .ait h2, .ait h3, .ait h4 {
  font-family: var(--ait-font-display);
  color: var(--ait-blue-900);
  line-height: 1.2;
  margin: 0 0 var(--ait-space-2);
  font-weight: 700;
}

.ait h1 { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.9rem); letter-spacing: -0.01em; }
.ait h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem); letter-spacing: -0.005em; }
.ait h3 { font-size: 1.2rem; color: var(--ait-ink-900); }
.ait p  { color: var(--ait-ink-700); line-height: 1.65; font-size: 1.02rem; margin: 0 0 var(--ait-space-2); }

/* Formal style: solid brand-color emphasis instead of a gradient text clip */
.ait .ait-accent-text {
  color: var(--ait-blue-700);
}

.ait-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--ait-space-3);
}

.ait-section { padding: var(--ait-space-6) 0; }
.ait-section--alt { background: var(--ait-bg-alt); }

/* --- Buttons: rectangular, minimal radius, solid fills --- */
.ait-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ait-font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--ait-radius-md);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.ait-btn:focus-visible {
  outline: 3px solid var(--ait-cyan-500);
  outline-offset: 2px;
}
.ait-btn--primary {
  background: var(--ait-blue-700);
  color: #ffffff;
}
.ait-btn--primary:hover { background: var(--ait-blue-900); color: #fff; }
.ait-btn--secondary {
  background: #ffffff;
  color: var(--ait-blue-700);
  border-color: var(--ait-blue-700);
}
.ait-btn--secondary:hover { background: var(--ait-bg-alt); }
.ait-btn--whatsapp {
  background: #ffffff;
  color: #0f6b37;
  border-color: #0f6b37;
}
.ait-btn--whatsapp:hover { background: var(--ait-bg-alt); }

/* --- Hero: white, structured, bounded by a bottom rule --- */
.ait-hero {
  background: #ffffff;
  padding: var(--ait-space-5) 0;
  border-bottom: 1px solid var(--ait-border);
}
.ait-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--ait-space-4);
  align-items: center;
}
.ait-hero h1 { color: var(--ait-blue-900); }
.ait-hero .ait-accent-text { color: var(--ait-blue-700); }
.ait-hero p { color: var(--ait-ink-700); }
.ait-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ait-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ait-blue-700);
  background: var(--ait-bg-alt);
  border: 1px solid var(--ait-border);
  padding: 5px 12px;
  border-radius: var(--ait-radius-sm);
  margin-bottom: var(--ait-space-2);
}
.ait-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ait-green-600);
}
.ait-hero-ctas { display: flex; flex-wrap: wrap; gap: var(--ait-space-2); margin: var(--ait-space-2) 0; }
.ait-hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--ait-space-3);
  margin-top: var(--ait-space-2);
  color: var(--ait-ink-500);
  font-size: 0.88rem;
}
.ait-hero-trust span { display: flex; align-items: center; gap: 6px; }

.ait-hero-panel {
  background: var(--ait-bg-alt);
  border: 1px solid var(--ait-border);
  border-radius: var(--ait-radius-lg);
  padding: var(--ait-space-3);
}
.ait-hero-panel-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 4px;
  border-bottom: 1px solid var(--ait-border);
  font-family: var(--ait-font-mono);
  font-size: 0.84rem;
}
.ait-hero-panel-row:last-child { border-bottom: none; }
.ait-hero-panel-header {
  font-family: var(--ait-font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ait-ink-500);
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--ait-border);
  margin-bottom: 4px;
}
.ait-status-ok { color: var(--ait-green-600); font-weight: 600; }

/* --- Cards: sharp corners, thin border, minimal shadow, no lift/scale --- */
.ait-grid {
  display: grid;
  gap: var(--ait-space-3);
}
.ait-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ait-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ait-card {
  background: var(--ait-bg-card);
  border: 1px solid var(--ait-border);
  border-top: 3px solid var(--ait-blue-700);
  border-radius: var(--ait-radius-sm);
  padding: var(--ait-space-3);
  box-shadow: var(--ait-shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ait-card:hover {
  box-shadow: var(--ait-shadow-md);
  border-color: var(--ait-blue-500);
  border-top-color: var(--ait-blue-700);
}
.ait-card-icon {
  width: 42px; height: 42px;
  border-radius: var(--ait-radius-sm);
  background: var(--ait-blue-700);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: var(--ait-space-2);
  flex-shrink: 0;
}
.ait-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--ait-space-1) 0 var(--ait-space-2); }
.ait-tag {
  font-family: var(--ait-font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: var(--ait-radius-sm);
  background: var(--ait-bg-alt);
  color: var(--ait-ink-500);
  border: 1px solid var(--ait-border);
}
.ait-card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--ait-blue-700);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ait-card-link:hover { color: var(--ait-blue-900); text-decoration: underline; }

/* --- Process: numbered, formal, no gradient badges --- */
.ait-process { display: flex; gap: var(--ait-space-2); flex-wrap: wrap; justify-content: space-between; }
.ait-process-step { flex: 1 1 140px; text-align: center; position: relative; }
.ait-process-num {
  width: 38px; height: 38px; border-radius: var(--ait-radius-sm);
  background: var(--ait-blue-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ait-font-display); font-weight: 700;
  margin: 0 auto var(--ait-space-1);
}

/* --- Testimonials: plain, no decorative quote glyph --- */
.ait-testimonial {
  background: var(--ait-bg-card);
  border: 1px solid var(--ait-border);
  border-left: 3px solid var(--ait-blue-700);
  border-radius: var(--ait-radius-sm);
  padding: var(--ait-space-3);
  box-shadow: var(--ait-shadow-sm);
}
.ait-testimonial-quote { font-style: normal; color: var(--ait-ink-700); }
.ait-testimonial-who { margin-top: var(--ait-space-2); font-weight: 600; color: var(--ait-ink-900); font-size: 0.92rem; }
.ait-testimonial-role { color: var(--ait-ink-500); font-size: 0.85rem; }

/* --- Final CTA band: solid navy, no radial pattern --- */
.ait-cta-band {
  background: var(--ait-blue-900);
  color: #fff;
  border-radius: var(--ait-radius-lg);
  padding: var(--ait-space-5) var(--ait-space-4);
  text-align: center;
}
.ait-cta-band h2, .ait-cta-band p { color: #fff; }

/* --- Accessibility & motion --- */
@media (prefers-reduced-motion: reduce) {
  .ait * { transition: none !important; animation: none !important; }
}
.ait a:focus-visible, .ait button:focus-visible {
  outline: 3px solid var(--ait-cyan-500);
  outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .ait-hero-grid { grid-template-columns: 1fr; }
  .ait-grid--3, .ait-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ait-grid--3, .ait-grid--4 { grid-template-columns: 1fr; }
  .ait-process { flex-direction: column; }
  .ait-section { padding: var(--ait-space-4) 0; }
}

/* =========================================================================
 * Sub-navigation tab strip (sits directly under the hero, linking to real
 * service/category pages) — original layout pattern, original copy/links.
 * ======================================================================= */
.ait-subnav {
  background: var(--ait-bg-alt);
  border-bottom: 1px solid var(--ait-border);
}
.ait-subnav-list {
  display: flex;
  gap: var(--ait-space-3);
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  margin: 0;
  padding: 0 var(--ait-space-3);
  scrollbar-width: thin;
}
.ait-subnav-list::-webkit-scrollbar { height: 4px; }
.ait-subnav-list::-webkit-scrollbar-thumb { background: var(--ait-border); border-radius: 2px; }
.ait-subnav-item {
  flex-shrink: 0;
  padding: 14px 2px;
  font-family: var(--ait-font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ait-ink-500);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.ait-subnav-item:hover { color: var(--ait-blue-700); }
.ait-subnav-item.is-active {
  color: var(--ait-blue-700);
  border-bottom-color: var(--ait-blue-700);
}

/* =========================================================================
 * Floating-icon service card + horizontal drag/scroll carousel.
 * Icon badge overlaps a colored top banner strip, card body sits below.
 * ======================================================================= */
.ait-carousel { position: relative; }
.ait-carousel-track {
  display: flex;
  gap: var(--ait-space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px var(--ait-space-2);
  margin: 0 -4px;
  cursor: grab;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.ait-carousel-track.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.ait-carousel-track::-webkit-scrollbar { height: 6px; }
.ait-carousel-track::-webkit-scrollbar-thumb { background: var(--ait-border); border-radius: 3px; }

.ait-fcard {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--ait-border);
  border-radius: var(--ait-radius-lg);
  box-shadow: var(--ait-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}
.ait-fcard:hover { box-shadow: var(--ait-shadow-md); transform: translateY(-3px); }
.ait-fcard-banner {
  height: 84px;
  background: linear-gradient(120deg, var(--ait-blue-700), var(--ait-blue-500));
}
.ait-fcard-icon {
  position: absolute;
  left: 24px;
  top: 56px;
  width: 56px; height: 56px;
  border-radius: var(--ait-radius-lg);
  background: #fff;
  box-shadow: var(--ait-shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--ait-blue-700);
}
.ait-fcard-body { padding: 36px 22px 22px; }
.ait-fcard-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.ait-fcard-body p { font-size: 0.92rem; margin-bottom: 10px; }

/* Plain wrapping grid — used instead of the horizontal carousel when the
   item count is small enough to just show everything at once (no scroll). */
.ait-fcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ait-space-3);
}
.ait-fcard-grid .ait-fcard { flex: none; width: 100%; }
@media (max-width: 960px) {
  .ait-fcard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ait-fcard-grid { grid-template-columns: 1fr; }
}

.ait-carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: var(--ait-space-2);
}
.ait-carousel-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ait-border);
  background: #fff;
  color: var(--ait-blue-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ait-carousel-btn:hover { background: var(--ait-bg-alt); border-color: var(--ait-blue-500); }
.ait-carousel-btn:disabled { opacity: 0.35; cursor: default; }

/* =========================================================================
 * Subtle scroll-reveal (fade + slight rise). Formal, not bouncy — a single
 * short ease-out, applied once per element via IntersectionObserver in
 * assets/js/interactions.js.
 * ======================================================================= */
.ait-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ait-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .ait-fcard { flex-basis: 260px; }
}
