/* =====================================================================
   AJ INFOTECH LIMITED — Design tokens (v2: white / yellow / green theme)
   Background: white. Primary accent: yellow. Secondary accent: green.
   Active/selected state (service filters): orange.
   Type: Space Grotesk (display / headings) + Inter (body/UI)
   ===================================================================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f8faf8;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.22);

  --ink: #14181f;
  --ink-mid: #4b5768;
  --ink-low: #6b7686;

  --yellow-500: #f4b400;
  --yellow-600: #d99900;
  --yellow-100: #fff6dd;

  --green-600: #16824a;
  --green-700: #106439;
  --green-100: #e6f6ec;

  --orange-500: #ff7a1a;
  --orange-600: #e5670a;
  --orange-100: #fff0e2;

  --sky-600: #0b76c9;
  --sky-100: #e6f3fc;

  --purple-600: #7a3bd1;
  --purple-100: #f1e9fb;

  --pink-600: #d1327a;
  --pink-100: #fce9f1;

  --teal-600: #0d8f83;
  --teal-100: #e2f6f4;

  --red-600: #d03636;
  --red-100: #fbe7e7;

  /* Kept for backward compatibility with existing class names that used
     to reference the old dark-navy palette (headers, footers, hero overlay,
     etc. still need a dark tone for image-over-text contrast). */
  --navy-950: #10151c;
  --navy-900: #161c25;
  --navy-800: #1b222d;
  --panel: #ffffff;
  --panel-hi: #fafcfb;

  /* Legacy variable names mapped onto the new palette so every existing
     var(--cyan-400) / var(--blue-600) reference in markup-adjacent CSS
     below resolves to the new theme without touching template files. */
  --blue-600: var(--green-600);
  --blue-500: var(--green-600);
  --blue-400: var(--green-700);
  --cyan-400: var(--green-600);
  --cyan-300: var(--green-700);
  --text-hi: var(--ink);
  --text-mid: var(--ink-mid);
  --text-low: var(--ink-low);

  --radius-sm: 6px;
  --radius-md: 10px;
  --container: 1200px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-mid);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.aj-menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); margin: 0 0 14px; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; max-width: 62ch; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  max-width: 100%;
  position: relative; overflow: hidden;
}
.btn:active { transform: translateY(1px); }
.aj-btn-primary { background: var(--yellow-500); color: #211a00; box-shadow: 0 4px 14px rgba(244,180,0,0.28); }
.aj-btn-primary:hover { background: var(--yellow-600); color: #211a00; }
.aj-btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.aj-btn-outline:hover { border-color: var(--green-600); color: var(--green-600); }
.aj-btn-cyan { background: var(--green-600); color: #fff; }
.aj-btn-cyan:hover { background: var(--green-700); }
.aj-btn-block { width: 100%; }

/* -------------------- Header / Nav -------------------- */
.aj-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.aj-header.is-scrolled { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10); }
.aj-nav { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .25s ease; }
.aj-header.is-scrolled .aj-nav { height: 62px; }
.aj-logo { display: flex; align-items: center; }
.aj-logo img { max-height: 46px; }
.aj-logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }
.aj-logo-text .accent { color: var(--green-600); }
.aj-footer-logo { margin-bottom: 14px; }

/* Desktop inline menu (visible >991px) */
.aj-menu-desktop { display: flex; align-items: center; gap: 30px; }
.aj-menu-links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.aj-menu-links a { color: var(--ink-mid); font-weight: 500; font-size: 0.95rem; padding: 6px 2px; position: relative; }
.aj-menu-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--yellow-500); transition: width .2s ease;
}
.aj-menu-links a:hover, .aj-menu-links a.active { color: var(--ink); }
.aj-menu-links a:hover::after, .aj-menu-links a.active::after { width: 100%; }
.aj-nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.aj-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 0;
  position: relative; z-index: 260; -webkit-tap-highlight-color: transparent;
}
.aj-burger span { display: block; height: 2px; width: 24px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.aj-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aj-burger.open span:nth-child(2) { opacity: 0; }
.aj-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile off-canvas menu panel — deliberately placed OUTSIDE <header> in the
   HTML (see includes/header.php) so backdrop-filter on the header cannot
   trap this position:fixed panel inside the header's own box. Hidden
   entirely on desktop; becomes a full-height overlay under 992px. */
.aj-menu-mobile { display: none; }
.aj-menu-backdrop {
  display: none; position: fixed; inset: 0; z-index: 240;
  background: rgba(15, 23, 42, 0.45); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.aj-menu-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
  .aj-menu-desktop { display: none; }
  .aj-burger { display: flex; }
  .aj-menu-backdrop { display: block; }

  .aj-menu-mobile {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw);
    background: #ffffff; z-index: 250;
    padding: 96px 26px 32px; gap: 22px;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    max-height: 100vh; max-height: 100dvh;
    box-shadow: -12px 0 40px rgba(15,23,42,0.18);
  }
  .aj-menu-mobile.open { transform: translateX(0); }
  .aj-menu-mobile .aj-menu-links { flex-direction: column; gap: 6px; width: 100%; }
  .aj-menu-mobile .aj-menu-links a {
    display: block; padding: 13px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line);
  }
  .aj-menu-mobile .aj-menu-links a::after { display: none; }
  .aj-menu-mobile .aj-menu-links a.active { color: var(--green-600); font-weight: 600; }
  .aj-menu-mobile .aj-nav-cta { text-align: center; margin-top: 8px; width: 100%; }
}

/* -------------------- Cards -------------------- */
.aj-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.aj-panel::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px;
  border-top: 2px solid var(--yellow-500); border-left: 2px solid var(--yellow-500);
  border-top-left-radius: var(--radius-md);
  opacity: 0; transition: opacity .2s ease;
}
.aj-panel:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09); }
.aj-panel:hover::before { opacity: 1; }
.aj-panel-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green-600); font-size: 1.5rem; margin-bottom: 18px;
  transition: transform .2s ease, background .2s ease;
}
.aj-panel:hover .aj-panel-icon { transform: translateY(-2px); background: var(--yellow-100); color: var(--yellow-600); }

/* Tilt / 3D hover effect (used on the Services page cards) */
.aj-tilt {
  transition: transform .15s ease-out, box-shadow .15s ease-out, border-color .15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
.aj-tilt:hover {
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.18);
  border-color: var(--line-strong);
}
.aj-tilt .aj-panel-icon,
.aj-tilt h3,
.aj-tilt p,
.aj-tilt .btn,
.aj-tilt .aj-badge {
  transform: translateZ(20px);
}
@media (hover: none) {
  .aj-tilt:hover { transform: none !important; }
}

/* Rotating color palette for service icon tiles (services listing page) */
.aj-icon-c0 { background: var(--green-100); color: var(--green-600); }
.aj-icon-c1 { background: var(--sky-100); color: var(--sky-600); }
.aj-icon-c2 { background: var(--orange-100); color: var(--orange-600); }
.aj-icon-c3 { background: var(--purple-100); color: var(--purple-600); }
.aj-icon-c4 { background: var(--pink-100); color: var(--pink-600); }
.aj-icon-c5 { background: var(--teal-100); color: var(--teal-600); }
.aj-icon-c6 { background: var(--red-100); color: var(--red-600); }
.aj-icon-c7 { background: var(--yellow-100); color: var(--yellow-600); }
.aj-panel:hover [class^="aj-icon-c"] { transform: translateY(-2px); filter: brightness(0.94); }

/* -------------------- Hero slider -------------------- */
.aj-hero { position: relative; height: 640px; max-height: 88vh; overflow: hidden; background: var(--navy-950); }
.aj-hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease;
  background-size: cover; background-position: center;
}
.aj-hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.aj-hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,21,28,0.92) 20%, rgba(16,21,28,0.62) 55%, rgba(16,21,28,0.32) 100%);
}
.aj-hero-slide .aj-hero-inner {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: 640px; padding: 0 20px;
}
.aj-hero-eyebrow { color: var(--yellow-500); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.aj-hero-inner h1 { margin-bottom: 16px; color: #fff; }
.aj-hero-inner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }
.aj-hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

.aj-hero-dots { position: absolute; z-index: 4; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.aj-hero-dots button { width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0; transition: background .2s ease; }
.aj-hero-dots button.active { background: var(--yellow-500); }

.aj-hero-arrow {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(16,21,28,0.4); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.aj-hero-arrow:hover { border-color: var(--yellow-500); background: rgba(16,21,28,0.7); }
.aj-hero-arrow.prev { left: 24px; } .aj-hero-arrow.next { right: 24px; }
@media (max-width: 767px) { .aj-hero-arrow { display: none; } .aj-hero { height: 540px; } }
@media (max-width: 420px) { .aj-hero { height: 500px; } }

/* -------------------- Section framing -------------------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head p { color: var(--ink-mid); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 600px) { .section { padding: 56px 0; } .section-tight { padding: 40px 0; } .section-head { margin-bottom: 30px; } }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; } }

/* -------------------- Stats -------------------- */
.aj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aj-stat { text-align: center; padding: 26px 14px; border-left: 1px solid var(--line); }
.aj-stat:first-child { border-left: none; }
.aj-stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--green-600); }
.aj-stat-label { color: var(--ink-mid); font-size: 0.9rem; }
@media (max-width: 767px) { .aj-stats { grid-template-columns: repeat(2, 1fr); } .aj-stat { border-left: none; border-top: 1px solid var(--line); } .aj-stat:first-child { border-top: none; } }

/* -------------------- Category & service cards -------------------- */
.aj-cat-card { display: block; overflow: hidden; }
.aj-cat-card .aj-panel-icon { margin-bottom: 20px; }
.aj-cat-card h3 { margin-bottom: 8px; }
.aj-cat-card .count { color: var(--green-600); font-size: 0.85rem; font-weight: 600; }

.aj-service-card { display: flex; flex-direction: column; height: 100%; padding-top: 0; overflow: hidden; }
.aj-service-card-media { margin: 0 -26px 18px; }
.aj-service-card-media img { display: block; width: 100%; height: 170px; object-fit: cover; }
.aj-service-card .aj-panel-icon { margin-bottom: 16px; }
.aj-service-card:not(:has(.aj-service-card-media)) { padding-top: 30px; }
.aj-service-card-media + .aj-panel-icon {
  margin-top: -44px; margin-left: 22px; border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(15,23,42,0.12); position: relative; z-index: 2;
}
.aj-service-card p { flex-grow: 1; font-size: 0.94rem; }
.aj-service-card .btn { align-self: flex-start; margin-top: 8px; padding: 9px 18px; font-size: 0.85rem; }

.aj-vm-card { padding-top: 0; overflow: hidden; }
.aj-vm-card-media { margin: 0 -26px 18px; }
.aj-vm-card-media img { display: block; width: 100%; height: 190px; object-fit: cover; }
.aj-vm-card:not(:has(.aj-vm-card-media)) { padding-top: 30px; }
.aj-vm-card-media + .aj-panel-icon {
  margin-top: -44px; margin-left: 22px; border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(15,23,42,0.12); position: relative; z-index: 2;
}

.aj-media-card { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: 0 2px 10px rgba(15,23,42,0.04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.aj-media-card img { transition: transform .45s ease; }
.aj-media-card:hover img, .aj-media-card:active img { transform: scale(1.08); }
.aj-media-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 10px 26px rgba(15,23,42,0.09); }
.aj-media-card img { height: 210px; width: 100%; object-fit: cover; }
.aj-media-card .body { padding: 20px 22px; }

/* -------------------- CTA band -------------------- */
.aj-cta-band {
  background: linear-gradient(120deg, var(--green-700), var(--green-600));
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.aj-cta-band h2, .aj-cta-band p { color: #fff; }
.aj-cta-band h2 { margin-bottom: 6px; }
.aj-cta-band p { margin: 0; opacity: 0.92; }
@media (max-width: 767px) { .aj-cta-band { padding: 34px 24px; text-align: center; justify-content: center; } }

/* -------------------- Breadcrumb / page header -------------------- */
.aj-page-header { padding: 60px 0 40px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.aj-page-header .crumb { color: var(--ink-low); font-size: 0.88rem; margin-bottom: 10px; }
.aj-page-header .crumb a { color: var(--green-600); }
@media (max-width: 600px) { .aj-page-header { padding: 40px 0 28px; } }

/* -------------------- Badges -------------------- */
.aj-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; }
.aj-badge-cyan { background: var(--green-100); color: var(--green-700); }

/* -------------------- Forms -------------------- */
.aj-form label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.aj-form .field { margin-bottom: 18px; }
.aj-form input, .aj-form textarea, .aj-form select {
  width: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
}
.aj-form input:focus, .aj-form textarea:focus, .aj-form select:focus { border-color: var(--green-600); outline: none; box-shadow: 0 0 0 3px var(--green-100); }
.aj-form textarea { min-height: 130px; resize: vertical; }
.aj-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.aj-alert-success { background: var(--green-100); border: 1px solid rgba(22,130,74,0.3); color: var(--green-700); }
.aj-alert-error { background: #fdecec; border: 1px solid rgba(220,53,69,0.3); color: #b02a37; }

/* -------------------- Gallery lightbox -------------------- */
.aj-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991px) { .aj-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .aj-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.aj-gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; border: 1px solid var(--line); }
.aj-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.aj-gallery-item:hover img { transform: scale(1.06); }
.aj-gallery-item .overlay {
  position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,23,42,0.85), transparent 60%);
  display: flex; align-items: flex-end; padding: 12px; opacity: 0; transition: opacity .2s ease;
  color: #fff; font-size: 0.85rem; font-weight: 500;
}
.aj-gallery-item:hover .overlay { opacity: 1; }
.aj-lightbox { position: fixed; inset: 0; background: rgba(10,14,20,0.94); z-index: 999; display: none; align-items: center; justify-content: center; padding: 30px; }
.aj-lightbox.open { display: flex; }
.aj-lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 4px; }
.aj-lightbox-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }
.aj-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; padding: 12px; }
.aj-lightbox-nav.prev { left: 10px; } .aj-lightbox-nav.next { right: 10px; }

/* -------------------- Filter bar (category tabs incl. Services list) --------------------
   Requirement: the currently selected/active tab is ORANGE; all others use
   the normal theme color. Only the .active element gets the orange state. */
.aj-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.aj-filter-bar a {
  padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: 20px; font-size: 0.88rem;
  color: var(--ink-mid); background: #fff; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.aj-filter-bar a:hover { border-color: var(--green-600); color: var(--green-700); }
.aj-filter-bar a.active {
  background: var(--orange-500); border-color: var(--orange-500); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(255,122,26,0.32);
}
.aj-filter-bar a.active:hover { background: var(--orange-600); border-color: var(--orange-600); color: #fff; }
.aj-filter-bar a:active { transform: translateY(1px); }

/* -------------------- Footer -------------------- */
.aj-footer { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.08); padding: 64px 0 0; margin-top: 40px; }
.aj-footer .aj-logo-text { color: #fff; }
.aj-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 900px) { .aj-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .aj-footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.aj-footer p { color: rgba(255,255,255,0.62); }
.aj-footer-col h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.aj-footer-links { list-style: none; margin: 0; padding: 0; }
.aj-footer-links li { margin-bottom: 10px; }
.aj-footer-links a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.aj-footer-links a:hover { color: var(--yellow-500); }
.aj-footer-contact { list-style: none; margin: 0; padding: 0; }
.aj-footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; color: rgba(255,255,255,0.68); }
.aj-footer-contact span, .aj-footer-contact a { word-break: break-word; }
.aj-footer-contact i { color: var(--yellow-500); margin-top: 3px; flex-shrink: 0; }
.aj-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.aj-footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.aj-footer-social a:hover { border-color: var(--yellow-500); color: var(--yellow-500); }
.aj-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* -------------------- WhatsApp floating button -------------------- */
.aj-whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 210;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  animation: aj-pulse 2.4s infinite;
}
@keyframes aj-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 480px) {
  .aj-whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 16px; right: 16px; }
}

/* -------------------- Utility -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-low); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.aj-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.aj-pagination a, .aj-pagination span { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--ink-mid); }
.aj-pagination a:hover { border-color: var(--green-600); color: var(--green-700); }
.aj-pagination .current { background: var(--green-600); border-color: var(--green-600); color: #fff; }

/* -------------------- Mobile-wide safety net -------------------- */
@media (max-width: 480px) {
  .aj-hero-buttons .btn { flex: 1 1 auto; min-width: 0; }
  .aj-cta-band { flex-direction: column; text-align: center; }
  table { display: block; overflow-x: auto; max-width: 100%; }
}

/* -------------------- JS-driven interactive effects (home page) -------------------- */

/* Scroll reveal: elements fade + slide up into view as the user scrolls (works on touch too) */
.aj-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--aj-delay, 0s);
}
.aj-reveal.aj-in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .aj-reveal { opacity: 1; transform: none; transition: none; }
}

/* Button ripple (tap/click feedback, works with touch) */
.aj-ripple {
  position: absolute; border-radius: 50%; background: currentColor; opacity: 0.28;
  transform: scale(0); pointer-events: none; animation: aj-ripple-anim .6s ease-out forwards;
}
@keyframes aj-ripple-anim { to { transform: scale(2.6); opacity: 0; } }

/* Back to top floating button */
.aj-back-to-top {
  position: fixed; right: 24px; bottom: 96px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-600); color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: 0 10px 24px rgba(15,23,42,0.2); cursor: pointer; z-index: 150;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.aj-back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.aj-back-to-top:hover { background: var(--green-700); }
@media (max-width: 480px) {
  .aj-back-to-top { width: 42px; height: 42px; right: 16px; bottom: 78px; font-size: 1.05rem; }
}

/* Animated stat counters reuse the existing .aj-stat-num styling, no extra class needed */

/* Hero slide text: staggered fade-up entrance each time a slide becomes active */
.aj-hero-slide .aj-hero-eyebrow,
.aj-hero-slide .aj-hero-inner h1,
.aj-hero-slide .aj-hero-inner p,
.aj-hero-slide .aj-hero-buttons {
  opacity: 0; transform: translateY(18px);
}
.aj-hero-slide.active .aj-hero-eyebrow { animation: aj-fade-up .6s ease .05s forwards; }
.aj-hero-slide.active .aj-hero-inner h1 { animation: aj-fade-up .6s ease .15s forwards; }
.aj-hero-slide.active .aj-hero-inner p { animation: aj-fade-up .6s ease .25s forwards; }
.aj-hero-slide.active .aj-hero-buttons { animation: aj-fade-up .6s ease .35s forwards; }
@keyframes aj-fade-up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .aj-hero-slide .aj-hero-eyebrow, .aj-hero-slide .aj-hero-inner h1,
  .aj-hero-slide .aj-hero-inner p, .aj-hero-slide .aj-hero-buttons { opacity: 1; transform: none; animation: none; }
}
