/*---------------------------------------------------------------------
File Name: theme.css
Modern visual redesign layer for avjsoftware.com.
Loaded AFTER bootstrap.min.css / style.css / responsive.css / aos.css.
Introduces its own section/component classes rather than overriding the
legacy absolutely-positioned template classes, to avoid fighting the old
carousel/positioning hacks still relied on for the Clients slider.
---------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0f172a;
  --navy: #13294b;
  --navy-2: #1c3a63;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --border: #e6ebf2;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --maxw: 1180px;
}

/* ---------- base ---------- */

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--muted);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
}

.tp-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; }

/* ---------- section heading ---------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 99, 235, .08);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
}

.section-head p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.section-head.align-left {
  text-align: left;
  margin: 0 0 48px;
}

section.pad {
  padding: 96px 0;
}

section.pad.alt {
  background: var(--bg-alt);
}

/* ---------- buttons ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-cta.solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .32);
}

.btn-cta.solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, .4);
  color: #fff !important;
}

.btn-cta.outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .55);
}

.btn-cta.outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff !important;
}

.btn-cta.outline.on-light {
  color: var(--navy) !important;
  border-color: var(--border);
}

.btn-cta.outline.on-light:hover {
  background: var(--bg-alt);
  border-color: var(--navy);
  color: var(--navy) !important;
}

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.site-header.is-scrolled {
  background: rgba(15, 23, 42, .92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  padding: 10px 0;
  backdrop-filter: blur(8px);
}

.site-header .header {
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
  height: auto !important;
  padding: 0 !important;
}

.site-header .logo img {
  transition: width .3s ease, height .3s ease;
}

.site-header .navigation.navbar-dark .navbar-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  position: relative;
  padding: 8px 20px;
}

.site-header .navigation.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 2px;
  height: 2px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-header .navigation.navbar-dark .navbar-nav .nav-link:hover::after,
.site-header .navigation.navbar-dark .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  background: radial-gradient(circle at 15% 20%, #1c3a63 0%, var(--navy) 45%, var(--ink) 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .35;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  top: -140px;
  right: -120px;
}

.hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  bottom: -160px;
  left: -100px;
}

.hero .tp-wrap {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #bfe0ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
}

.hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 34px;
  max-width: 640px;
}

.hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- inner page hero (about/services/products/contact) ---------- */

.page-hero {
  position: relative;
  padding: 168px 0 84px;
  background: radial-gradient(circle at 85% 15%, #1c3a63 0%, var(--navy) 45%, var(--ink) 100%);
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- card grids (expertise / services / about highlights) ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card .icon-badge {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(14, 165, 233, .12));
  margin-bottom: 22px;
}

.card .icon-badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: none;
}

.card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

/* ---------- case-study / service-image cards (services.html, product.html) ---------- */

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.media-card .media-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.media-card .media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.media-card:hover .media-thumb img {
  transform: scale(1.06);
}

.media-card .media-body {
  padding: 28px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.media-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  flex: 1;
}

.media-card .btn-cta {
  align-self: flex-start;
  margin-top: 16px;
  padding: 10px 22px;
  font-size: 13.5px;
}

/* ---------- clients ---------- */

.clients-section {
  background: var(--navy);
  padding: 90px 0;
}

.clients-section .section-head h2,
.clients-section .section-head .eyebrow {
  color: #fff;
}

.clients-section .section-head .eyebrow {
  background: rgba(255, 255, 255, .1);
  color: #bfe0ff;
}

.clients-section .section-head p { color: rgba(255,255,255,.75); }

#clientsl .clientsl_text {
  text-align: center;
}

#clientsl .clientsl_text i img {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .25);
}

#clientsl .clientsl_text h3 a {
  color: #fff;
  font-weight: 600;
}

#clientsl .carousel-control-prev,
#clientsl .carousel-control-next {
  filter: invert(1);
  width: 44px;
}

/* ---------- about page ---------- */

.about-lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}

.about-lead:last-child { margin-bottom: 0; }

/* ---------- contact page ---------- */

.info-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.info-card .icon-badge {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.info-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
}

.info-card p, .info-card a {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.contact-panel h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-panel .hint {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg-alt);
  transition: border-color .25s ease, background .25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.field textarea { resize: vertical; min-height: 130px; }

.map-panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 320px;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- footer ---------- */

footer .footer {
  background: var(--ink) !important;
  padding-top: 70px;
}

footer .Informa h3 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin-bottom: 22px;
}

footer .Informa ul li a {
  color: rgba(255, 255, 255, .68);
  font-size: 14.5px;
  line-height: 2.1;
  transition: color .2s ease, padding-left .2s ease;
}

footer .Informa ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

footer .copyright {
  background: #0b1220 !important;
  padding: 22px 0;
}

footer .copyright p {
  color: rgba(255, 255, 255, .55);
  font-size: 13.5px;
  margin: 0;
}

/* ---------- back to top ---------- */

#back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 999;
  border: none;
  cursor: pointer;
}

#back-to-top.b-show_scrollBut {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .site-header { background: rgba(15, 23, 42, .95); padding: 14px 0; }
  .site-header .navbar-collapse { background: var(--ink); border-radius: 14px; padding: 12px 6px; margin-top: 12px; }
}

@media (max-width: 640px) {
  .grid, .grid.cols-2 { grid-template-columns: 1fr; }
  section.pad { padding: 64px 0; }
  .hero { min-height: auto; padding: 150px 0 70px; }
  .contact-panel { padding: 26px; }
}
