/* ==========================================================================
   OVANTA ENTERPRISE — Page-Specific Sections
   ========================================================================== */

/* ---------- Home Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-blue);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 980px) { .hero { min-height: 0; } }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: .55;
}
.hero-blob.b1 { width: 480px; height: 480px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(128,175,34,.55), transparent 70%); }
.hero-blob.b2 { width: 380px; height: 380px; bottom: -160px; left: -100px; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.hero-blob.b3 { width: 260px; height: 260px; top: 30%; left: 55%; background: radial-gradient(circle, rgba(128,175,34,.3), transparent 70%); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 78%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-copy .eyebrow { color: var(--green-500); }
.hero-copy .eyebrow::before { background: var(--white); }
.hero-copy h1 {
  color: var(--white);
  margin-top: .7rem;
  max-width: 16ch;
  font-size: clamp(1.8rem, 1.4rem + 1.9vw, 2.7rem);
  line-height: 1.16;
}
.hero-copy p.lead { color: rgba(255,255,255,.78); font-size: var(--step-0); max-width: 46ch; margin-top: 1rem; }
.hero-actions { display: flex; gap: 1.1rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-trustline { margin-top: 1.8rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero-trustline .avatars { display: flex; }
.hero-trustline .avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--navy-900);
  background: var(--gradient-green);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--white);
}
.hero-trustline .avatars span:first-child { margin-left: 0; }
.hero-trustline p { color: rgba(255,255,255,.65); font-size: .85rem; margin: 0; }

/* ---------- Hero Carousel ---------- */
.hero-carousel-wrap { position: absolute; inset: 0; }
.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-start;
  padding-top: calc(var(--header-h, 100px) + 1.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s var(--ease-out);
  z-index: 1;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-slide .hero-inner { width: 100%; }

/* Below desktop, content height varies too much for absolute-stacked slides —
   stack normally and just show/hide the active one instead of cross-fading. */
@media (max-width: 980px) {
  .hero-carousel-wrap { position: relative; inset: auto; }
  .hero-slides { position: relative; inset: auto; min-height: 0; }
  .hero-slide {
    position: static;
    display: none;
    align-items: flex-start;
    padding-top: calc(var(--header-h, 90px) + 1.25rem);
    padding-bottom: 1.75rem;
    opacity: 1;
    pointer-events: auto;
  }
  .hero-slide.is-active { display: flex; }
}

.hero-slide .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.hero-slide.is-active .hero-copy > * { opacity: 1; transform: translateY(0); }
.hero-slide.is-active .hero-copy > *:nth-child(1) { transition-delay: .05s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { transition-delay: .25s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { transition-delay: .35s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { transition-delay: .45s; }
.hero-slide.is-active .hero-copy > *:nth-child(6) { transition-delay: .55s; }

/* Full-bleed background photo per slide, with a navy scrim so text stays readable */
.hero-slide-bg {
  position: absolute; inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.hero-slide.is-active .hero-slide-bg { opacity: 1; }
.hero-slide-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-scrim {
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,23,86,.96) 0%, rgba(0,23,86,.92) 30%, rgba(0,23,86,.6) 48%, rgba(3,59,127,.26) 68%, rgba(3,59,127,.1) 100%);
}
@media (max-width: 640px) {
  .hero-slide-scrim { background: linear-gradient(180deg, rgba(0,23,86,.9) 0%, rgba(0,23,86,.93) 55%, rgba(0,23,86,.97) 100%); }
}

.hero-slide .hero-inner { display: block; }
.hero-slide .hero-copy { max-width: 640px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: .8rem;
  margin-top: 1.4rem;
  padding: .55rem 1.3rem .55rem .55rem;
  border-radius: var(--radius-full);
  background: rgba(0,23,86,.55);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease-out) .45s, transform .7s var(--ease-out) .45s;
}
.hero-slide.is-active .hero-tag { opacity: 1; transform: translateY(0); }
.hero-tag .icon-tile { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.hero-tag .icon-tile svg { width: 17px; height: 17px; }
.hero-tag span { font-size: .87rem; font-weight: 600; color: rgba(255,255,255,.92); }

.hero-carousel-controls {
  position: absolute; left: 0; right: 0; bottom: 2rem; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  gap: 1.6rem;
}
@media (max-width: 980px) {
  .hero-carousel-controls { position: static; margin-top: 2.5rem; }
}
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
  flex-shrink: 0;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.hero-dots { display: flex; align-items: center; gap: .6rem; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.32);
  transition: all var(--dur-fast) var(--ease-out);
}
.hero-dots button.is-active { width: 28px; border-radius: 5px; background: var(--gradient-green); }
@media (max-width: 560px) {
  .hero-carousel-controls { gap: 1rem; }
  .hero-arrow { width: 40px; height: 40px; }
}

/* ---------- Marquee strip ---------- */
.marquee-strip { background: var(--surface-alt); padding-block: 1.8rem; border-block: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.15rem; color: var(--slate-400); font-weight: 500; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Split section (image-like SVG panel + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-visual { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
}
.split-visual {
  position: relative;
  aspect-ratio: 1.1/1;
  border-radius: var(--radius-lg);
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.split-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 85%, rgba(128,175,34,.4), transparent 55%);
}
.split-visual svg { width: 55%; height: 55%; color: #fff; position: relative; z-index: 2; }

.split-visual.has-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.split-visual.has-photo::before { z-index: 1; background: linear-gradient(200deg, rgba(3,59,127,.22) 15%, rgba(0,23,86,.72) 100%); }
.split-visual.has-photo svg { position: relative; z-index: 2; width: 34%; height: 34%; }
.split-copy h2 { margin-top: .7rem; }
.split-copy p { margin-top: 1.1rem; }
.split-copy .check-list { margin-top: 1.6rem; }
.split-copy .btn { margin-top: 2rem; }

/* ---------- Service / product cards with accent bar ---------- */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-green);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .learn-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-size: .86rem; font-weight: 700; color: var(--blue-700);
}
.service-card .learn-more svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.service-card:hover .learn-more svg { transform: translateX(4px); }

/* ---------- Industries grid ---------- */
.industry-card { text-align: left; }
.industry-card .icon-tile { width: 50px; height: 50px; border-radius: 14px; }

/* ---------- Industries pill cloud (home teaser) ---------- */
.industry-pill-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem; max-width: 980px; margin-inline: auto;
}
.industry-pill {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem 1.5rem .6rem .6rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  font-weight: 600; font-size: .92rem; color: var(--navy-900);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.industry-pill-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}
.industry-pill-icon svg { width: 17px; height: 17px; stroke: var(--white); }
.industry-pill:nth-child(even) .industry-pill-icon { background: var(--gradient-green); }
.industry-pill:hover {
  border-color: transparent;
  background: var(--gradient-blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.industry-pill:hover .industry-pill-icon { background: rgba(255,255,255,.2); }

/* ---------- Process teaser (home) — connected stepper ---------- */
.stepper { display: flex; align-items: flex-start; justify-content: center; gap: .25rem; }
.stepper-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 170px; flex-shrink: 0;
}
.stepper-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--slate-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--navy-900);
  margin-bottom: 1.1rem;
  position: relative; z-index: 2;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.stepper-step:hover .stepper-circle {
  background: var(--gradient-green);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 12px 28px -10px rgba(30,102,28,.5);
}
.stepper-step h4 { font-size: .92rem; }
.stepper-connector {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: .3rem;
  padding-top: 34px;
  min-width: 24px;
  color: var(--slate-300);
}
.stepper-connector::before {
  content: '';
  flex: 1; height: 2px;
  background: repeating-linear-gradient(to right, var(--slate-300) 0 6px, transparent 6px 12px);
}
.stepper-connector svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 780px) {
  .stepper { flex-direction: column; align-items: center; }
  .stepper-step { width: auto; }
  .stepper-connector { transform: rotate(90deg); padding-top: 0; height: 34px; min-width: 0; }
}

/* ---------- Quote / value banner ---------- */
.quote-block {
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  position: relative;
}
.quote-block svg.quote-mark { width: 46px; height: 46px; opacity: .18; margin-bottom: 1rem; }
.quote-block p.quote-text { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy-900); line-height: 1.4; max-width: 44ch; }
.quote-block .attribution { margin-top: 1.4rem; font-size: .88rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Testimonial slider ---------- */
.testimonial-slider { max-width: 720px; margin-inline: auto; position: relative; }
.testimonial-track { position: relative; min-height: 280px; }
.testimonial-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transform: translateY(12px);
}
.testimonial-slide.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); z-index: 2; }
.testimonial-quote-mark { width: 40px; height: 40px; color: var(--slate-200); margin-bottom: 1.2rem; }
.testimonial-text { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy-900); line-height: 1.45; max-width: 54ch; }
.testimonial-author { margin-top: 1.8rem; display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: .82rem;
  flex-shrink: 0;
}
.testimonial-author-info { text-align: left; }
.testimonial-author-info strong { display: block; font-size: .92rem; color: var(--navy-900); }
.testimonial-author-info span { font-size: .82rem; color: var(--ink-soft); }

.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2.4rem; position: relative; z-index: 3; }
.testimonial-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--slate-200);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0;
}
.testimonial-arrow svg { width: 16px; height: 16px; }
.testimonial-arrow:hover { background: var(--gradient-blue); border-color: transparent; color: var(--white); transform: translateY(-2px); }
.testimonial-dots { display: flex; align-items: center; gap: .6rem; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--slate-300); transition: all var(--dur-fast) var(--ease-out); }
.testimonial-dots button.is-active { width: 24px; border-radius: 4px; background: var(--gradient-green); }

/* ---------- Two-column feature list (Why Choose Us full grid uses cards; this is alt) ---------- */
.feature-row { display: flex; gap: 1.4rem; padding-block: 1.6rem; border-bottom: 1px solid var(--border); align-items: flex-start; }
.feature-row:first-child { padding-top: 0; }
.feature-row .icon-tile { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.feature-row h4 { margin-bottom: .3rem; }
.feature-row p { font-size: .93rem; }

/* ---------- Page-level utility sections ---------- */
.bg-alt { background: var(--surface-alt); }
.bg-navy { background: var(--gradient-blue); }
.bg-navy h2, .bg-navy h3, .bg-navy p:not(.form-note) { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,.75); }

/* ---------- Why OVANTA teaser (asymmetric intro + feature list) ---------- */
.why-section { position: relative; overflow: hidden; isolation: isolate; }
.why-section::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 8% 100%, rgba(128,175,34,.22), transparent 50%);
}
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-eyebrow { color: var(--green-500); }
.why-eyebrow::before { background: var(--white); }
.why-intro h2 { margin-top: .8rem; max-width: 15ch; }
.why-intro > p { margin-top: 1.1rem; max-width: 40ch; }
.why-intro .btn { margin-top: 2.2rem; }
.why-stat {
  margin-top: 2.4rem;
  padding: 1.6rem 1.7rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: baseline; gap: 1rem;
  max-width: 34ch;
}
.why-stat-num { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; color: var(--green-500); flex-shrink: 0; }
.why-stat-label { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.4; }

.why-list .feature-row { border-color: rgba(255,255,255,.14); }
.why-list .feature-row h4 { color: var(--white); }
.why-list .feature-row p { color: rgba(255,255,255,.6); }
.why-list .feature-row:hover .icon-tile { transform: scale(1.08) rotate(-4deg); }
.why-list .feature-row .icon-tile { transition: transform var(--dur-fast) var(--ease-out); }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 2.6rem; margin-bottom: 1rem; font-size: var(--step-2); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); margin-bottom: 1rem; font-size: .98rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }
.legal-content ul li { list-style: disc; }
.legal-content .updated { font-size: .85rem; color: var(--slate-500); margin-bottom: 2.5rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--gradient-blue);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: var(--white);
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card p { color: rgba(255,255,255,.72); }
.contact-info-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.6rem; }
.contact-info-list .row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-list .icon-tile { background: rgba(255,255,255,.12); box-shadow: none; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: .92rem; }
.contact-info-list span, .contact-info-list a { font-size: .9rem; color: rgba(255,255,255,.7); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}

/* ---------- FAQ categories tab-like intro ---------- */
.faq-columns { max-width: 820px; margin-inline: auto; }
.faq-columns .section-head { margin-bottom: 2.5rem; }
