/* ===========================================================
   Ardentech Solutions — Global Stylesheet
   =========================================================== */

:root {
  --navy: #004AAD;
  --navy-dark: #003580;
  --cyan: #20DFE3;
  --white: #FFFFFF;
  --gray-bg: #F5F7FA;
  --text: #172033;
  --text-muted: #52607A;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0, 20, 60, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 30, 80, 0.10);
  --shadow-lg: 0 20px 48px rgba(0, 30, 80, 0.16);
  --radius: 14px;
  --gradient: linear-gradient(115deg, var(--navy) 0%, #0A6FD1 45%, var(--cyan) 100%);
  --max-width: 1180px;
  --transition: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--text-muted); }

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

section { position: relative; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span[aria-current="page"] { color: var(--navy); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(32, 223, 227, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  background-size: 200% 100%;
  background-position: 0% 0%;
  background-image: var(--gradient);
}
.btn-primary:hover {
  color: var(--white);
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-on-dark {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-on-dark:hover {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(32, 223, 227, 0.12);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  color: var(--navy);
  background: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* -----------------------------------------------------------
   Header / Navigation
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}
.logo:hover { color: var(--navy); }

.logo-image { height: 34px; width: auto; display: block; }

.logo .logo-word { color: var(--navy); }
.logo .logo-word span { color: var(--cyan); }

.footer-brand .logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  position: relative;
}
.nav-links a:hover { color: var(--navy); background: var(--gray-bg); }
.nav-links a[aria-current="page"]:not(.btn) {
  color: var(--navy);
  background: rgba(32, 223, 227, 0.14);
}

.nav-cta { margin-left: 8px; }

.nav-item-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-trigger .chev {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.nav-item-dropdown:hover .nav-dropdown-trigger .chev,
.nav-item-dropdown:focus-within .nav-dropdown-trigger .chev {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 50;
}
.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu li + li { margin-top: 2px; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.nav-dropdown-menu a:hover { background: var(--gray-bg); color: var(--navy); }
.nav-dropdown-menu a[aria-current="page"] { background: rgba(32, 223, 227, 0.14); color: var(--navy); }

@media (max-width: 860px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    margin-top: 2px;
  }
  .nav-dropdown-trigger .chev { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span { margin: 5px 0; }

.nav-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; }
}

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: var(--gradient);
  background-size: 200% 200%;
  opacity: 0.16;
  filter: blur(60px);
  border-radius: 50%;
  animation: glow-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes glow-drift {
  0%   { background-position: 0% 20%; transform: translate3d(-2%, 0, 0) scale(1); }
  100% { background-position: 100% 80%; transform: translate3d(2%, 3%, 0) scale(1.06); }
}

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

.hero-content.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-content.center .hero-actions { justify-content: center; }

.success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.success-icon { width: 84px; height: 84px; }
.success-circle {
  transform-origin: 48px 48px;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.success-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: success-draw 0.4s ease 0.45s forwards;
}
@keyframes success-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes success-draw {
  to { stroke-dashoffset: 0; }
}

.trust-line {
  margin-top: 44px;
  padding: 18px 22px;
  background: var(--white);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  max-width: 640px;
}
.trust-line p { margin: 0; color: var(--text); font-size: 0.98rem; }

/* -----------------------------------------------------------
   Hero carousel — full-bleed
   ----------------------------------------------------------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel-viewport {
  position: relative;
  min-height: 85vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide-bg-a { background: linear-gradient(125deg, var(--navy) 0%, #0A6FD1 50%, var(--cyan) 100%); }
.hero-slide-bg-b { background: linear-gradient(235deg, var(--navy) 0%, #0A6FD1 50%, var(--cyan) 100%); }

.hero-slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 90px 0 70px;
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-slide-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-slide-text { max-width: 640px; }
.hero-slide-text h1 { color: var(--white); }
.hero-slide-text .lead { color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; }
.hero-slide-text .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.hero-slide-visual {
  display: flex;
  justify-content: center;
}
.hero-slide-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 15, 45, 0.25));
}
@media (max-width: 960px) {
  .hero-slide-visual img { max-width: 380px; }
}
@media (max-width: 640px) {
  .hero-slide-visual { display: none; }
}

.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
  z-index: 3;
}
.hero-carousel-arrow:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-50%) scale(1.06); }
.hero-carousel-arrow svg { width: 22px; height: 22px; }
.hero-carousel-arrow.prev { left: 24px; }
.hero-carousel-arrow.next { right: 24px; }
@media (max-width: 640px) {
  .hero-carousel-arrow { display: none; }
  .hero-carousel-viewport { min-height: 0; }
  .hero-slide.is-active { position: relative; }
  .hero-slide-inner { padding: 100px 0 64px; }
}

.hero-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}
.hero-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.hero-carousel-dot.is-active {
  background: var(--white);
  transform: scale(1.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page header (non-home pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background: var(--gray-bg);
}
.page-hero .hero-glow { height: 420px; opacity: 0.14; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-content p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
}
.page-hero .hero-content { max-width: 780px; }

/* -----------------------------------------------------------
   Bento grid / Pillar cards
   ----------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.pillar-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 74, 173, 0.08);
  margin-bottom: 16px;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}
.pillar-card:hover .icon {
  background: var(--gradient);
  color: var(--white);
}
.pillar-card .icon svg { width: 26px; height: 26px; }
.pillar-card h3 { margin-bottom: 10px; }
.pillar-card p { margin-bottom: 0; }

.pillar-card .illustration {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 18px;
  pointer-events: none;
}

/* -----------------------------------------------------------
   Tilt (3D hover) — applied via JS to .tilt elements
   ----------------------------------------------------------- */
.tilt { perspective: 900px; }

/* -----------------------------------------------------------
   Cursor-follow spotlight glow
   ----------------------------------------------------------- */
.glow-surface {
  position: relative;
  overflow: hidden;
}
.glow-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(32, 223, 227, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 0;
}
.glow-surface:hover::before { opacity: 1; }
.glow-surface > * { position: relative; z-index: 1; }

/* -----------------------------------------------------------
   Magnetic buttons — applied via JS to .magnetic elements
   ----------------------------------------------------------- */
.magnetic { transition: transform 180ms cubic-bezier(0.22, 0.61, 0.36, 1); }

/* -----------------------------------------------------------
   Tech-stack marquee
   ----------------------------------------------------------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.75;
}
.marquee-item svg { width: 22px; height: 22px; color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* -----------------------------------------------------------
   Process steps (How we work / What to expect)
   ----------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .process-steps.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .process-steps { grid-template-columns: 1fr; }
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { margin-bottom: 0; font-size: 0.95rem; }

.process-connector {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.process-connector path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible .process-connector path { stroke-dashoffset: 0; }

/* -----------------------------------------------------------
   Feature grid ("What's included" on service detail pages)
   ----------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 780px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 74, 173, 0.08);
  color: var(--navy);
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* -----------------------------------------------------------
   Signs card ("Signs you need this")
   ----------------------------------------------------------- */
.signs-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}
.signs-card .feature-list { grid-template-columns: repeat(2, 1fr); margin: 0; gap: 14px 28px; }
@media (max-width: 700px) {
  .signs-card { padding: 28px 24px; }
  .signs-card .feature-list { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------
   Cross-link cards ("Explore our other services")
   ----------------------------------------------------------- */
.cross-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .cross-link-grid { grid-template-columns: 1fr; }
}
.cross-link-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cross-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan);
}
.cross-link-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: var(--white);
  margin-bottom: 16px;
}
.cross-link-card .icon svg { width: 24px; height: 24px; }
.cross-link-card h3 { font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cross-link-card h3 svg { width: 16px; height: 16px; transition: transform var(--transition); }
.cross-link-card:hover h3 svg { transform: translateX(3px); }
.cross-link-card p { margin-bottom: 0; font-size: 0.95rem; }

/* -----------------------------------------------------------
   Feature list / tech badges (Services page)
   ----------------------------------------------------------- */
.feature-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
}
.feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tech-badge {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--navy);
}

.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--navy);
}
.service-learn-more svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}
.service-learn-more:hover svg { transform: translateX(3px); }

.service-illustration {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* -----------------------------------------------------------
   FAQ (accordion)
   ----------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  font-family: inherit;
}
.faq-question .chev {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-question .chev { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-answer p { padding: 0 24px 20px; margin: 0; }

/* -----------------------------------------------------------
   Value grid (About)
   ----------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 780px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.value-card .icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-card p { font-size: 0.92rem; margin-bottom: 0; }

/* -----------------------------------------------------------
   Generic sections
   ----------------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--gray-bg); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.section-head.center .divider-row { justify-content: center; }

.divider {
  height: 3px;
  width: 72px;
  border-radius: 999px;
  background: var(--gradient);
  margin: 0;
}

/* Pixel-square trail — echoes the ascending accent squares in the Ardentech mark */
.pixel-trail {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
}
.pixel-trail i {
  display: block;
  border-radius: 2px;
  font-style: normal;
}
.pixel-trail i:nth-child(1) { width: 9px; height: 9px; background: var(--cyan); opacity: 0.9; }
.pixel-trail i:nth-child(2) { width: 6px; height: 6px; background: var(--navy); opacity: 0.55; }
.pixel-trail i:nth-child(3) { width: 4px; height: 4px; background: var(--cyan); opacity: 0.7; }

.cta-band { position: relative; overflow: hidden; }
.cta-band .pixel-trail-corner {
  position: absolute;
  top: 22px;
  right: 26px;
}
.cta-band .pixel-trail-corner i:nth-child(2) { background: #FFFFFF; }

.service-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}
.service-block:first-of-type { border-top: none; }
.service-block .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}
@media (max-width: 640px) {
  .service-block { grid-template-columns: 1fr; gap: 10px; }
}

.service-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
.service-block:nth-of-type(even) .service-media { order: 2; }
.service-block:nth-of-type(even) .service-text { order: 1; }

.service-media {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 20px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 780px) {
  .service-body { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .service-media,
  .service-block:nth-of-type(even) .service-text { order: initial; }
}

.cta-band {
  background: var(--navy);
  background-image: var(--gradient);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { opacity: 0.92; }
.cta-band-btn { margin-top: 8px; }

@media (max-width: 640px) {
  .cta-band { padding: 40px 24px; }
}

/* About page specifics */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .about-block { grid-template-columns: 1fr; }
}
.credibility-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(32, 223, 227, 0.18);
}
.form-field textarea { min-height: 150px; resize: vertical; }

/* Honeypot: kept in the tab order's reach visually but off-screen, not display:none,
   since naive spam bots skip fields hidden via display or visibility. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-side {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-side h3 { margin-bottom: 12px; }
.contact-side .email-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 6px 0 22px;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.footer-brand .logo { color: var(--white); }
.footer-brand .logo .logo-word { color: var(--white); }
.footer-tagline {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.footer-nav {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-nav h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: rgba(255, 255, 255, 0.78); }
.footer-nav a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.86rem;
  color: var(--white);
}
.footer-bottom p { color: var(--white); margin: 0; }

/* -----------------------------------------------------------
   Scroll-reveal animation
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > * { transition-delay: calc(var(--stagger-i, 0) * 90ms); }

/* -----------------------------------------------------------
   Scroll progress bar
   ----------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  pointer-events: none;
}

/* -----------------------------------------------------------
   Pillar connector (echoes "three connected stages")
   ----------------------------------------------------------- */
@media (min-width: 901px) {
  .pillars { position: relative; }
  .pillar-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 20px;
    height: 2px;
    background: var(--gradient);
    opacity: 0.5;
  }
  .pillar-card:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -26px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    transform: translateY(-2px);
    opacity: 0.7;
  }
}

/* -----------------------------------------------------------
   Section icons (Services / About / Contact)
   ----------------------------------------------------------- */
.section-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 74, 173, 0.08);
  color: var(--navy);
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.section-icon svg { width: 26px; height: 26px; }

.service-block:hover .section-icon,
.credibility-card:hover .section-icon,
.contact-side:hover .section-icon {
  background: var(--gradient);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}

.service-block .heading-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.service-block .heading-row h2 { margin: 0; }
.service-block .section-icon { margin-bottom: 0; }

/* -----------------------------------------------------------
   Small-phone refinements
   ----------------------------------------------------------- */
@media (max-width: 480px) {
  .page-hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 32px 20px; border-radius: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .trust-line { padding: 14px 16px; }
  .pillar-card { padding: 26px 22px; }
  .container { padding: 0 18px; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}
