/* =========================================================
   Avori Website - Reusable Components
   UI area affected: repeated UI building blocks.
   Purpose: styles buttons, icons, cards, section headings,
   video wrappers, cloud logos, metric cards/slides, customer
   logos, testimonials, and reusable hover treatments.
   Load order: after layout.css, before sections.css.
========================================================= */

/* Buttons: shared CTA styling used in hero, nav, About, and Book Demo areas. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 27px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid transparent;
  transition: .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Primary orange CTA button. */
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255,118,0,.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ff861f;
}

/* Secondary outline CTA used on dark hero background. */
.btn-outline {
  color: #fff;
  border-color: var(--orange);
  background: rgba(0,0,0,.18);
}

.btn-outline:hover {
  background: rgba(255,118,0,.14);
}

/* Default inline SVG icon dimensions. */
.icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
}

/* Adds orange period after headings marked with .section-dot. */
.section-dot::after {
  content: ".";
  color: var(--orange);
}

/* Hero trust pills below the main CTA buttons. */
/* =========================
   Hero Trust Pill Card
   UI: Individual trust badge/card inside the hero trust grid.
   Controls each badge's height, spacing, border, and text style.
========================= */

.pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 9px;
  color: #fff;
  background: rgba(3, 18, 34, .34);
  backdrop-filter: blur(6px);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.15;
}

.pill .icon {
  width: 31px;
  height: 31px;
  color: #fff;
}

/* Section title used above workflow cards. */
.section-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 900;
}

/* Section intro paragraph below title. */
.section-lead {
  margin: 8px 0 25px;
  max-width: 760px;
  color: #40516a;
  font-size: 16px;
}

/* Workflow/use-case cards with Loom video embeds. */
.feature-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 19px 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(5,34,65,.04);
}

/* Header row inside each workflow card: icon + title. */
.feature-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 12px;
}

/* Dark square icon background inside workflow cards. */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #061c35;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: inset -8px -8px 0 rgba(255,118,0,.88);
}

.feature-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.feature-card p {
  margin: 0 0 14px;
  color: #2b3d57;
  font-size: 14px;
  line-height: 1.42;
  min-height: 60px;
}

/* Responsive 16:9 Loom/video embed container. */
.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #05182d;
  border: 1px solid #102f53;
  aspect-ratio: 16/9;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* This is for the loom video embeds
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
*/


/* “See a quick demo” link below each video.
.demo-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #075ec8;
  font-weight: 900;
  margin-top: 13px;
  font-size: 14px;
}
*/

.video-wrap iframe,
.video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.demo-video {
  /*object-fit: cover;*/
  object-fit: contain;
  background: #000;
}

.card-note {
  margin: 6px 0 0;
  color: #4b5c75;
  font-size: 13px;
}

/* Icon size/color inside industry/domain cards. */
.domain-card .icon {
  width: 36px;
  height: 36px;
  color: #0b6eea;
}

/* Icon sizing in the dark value-band section. */
.value-icon .icon,
.value-svg {
  width: 54px;
  height: 54px;
}

/* Icon sizing inside enterprise/security cards. */
.security-item .icon {
  width: 36px;
  height: 36px;
  color: #083b94;
}

/* Cloud/on-prem provider logo cell. */
.cloud-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  border-left: 1px solid #dce3ee;
  font-weight: 900;
  color: #132846;
}

/* Default size for Azure/AWS/GCP PNGs and on-prem SVG. */
.cloud-logo svg,
.cloud-logo img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

/* On-prem SVG icon sizing override. */
.onprem-icon {
  color: #071b36;
  width: 38px !important;
  height: 38px !important;
}

/* Metric card/card shell used in projected impact section. */
.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,110,234,.08), transparent 68%);
}

/* Small orange uppercase label above major sections. */
.section-eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

/* Large headline style for Customers, Metrics, Testimonials, About. */
.section-heading {
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.05;
}

/* Body copy under major section headings. */
.section-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 34px;
}

/* Framed scrolling container for customer logos/testimonials. */
.marquee-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Horizontal scrolling tracks for customer logos/testimonials. */
.logo-track,
.testimonial-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 20px;
  animation: logoMarquee 28s linear infinite;
}

.testimonial-track {
  animation-duration: 38s;
  align-items: stretch;
}

/* Placeholder customer logo tiles. */
.customer-logo {
  min-width: 210px;
  height: 86px;
  border-radius: 18px;
  border: 1px solid #e4ebf4;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--navy);
  background: linear-gradient(135deg, #f9fbff, #eef5ff);
}

/* Small note under customer logo placeholders. */
.logo-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 15px 35px rgba(3,24,45,.08);
}

.metric-card strong {
  display: block;
  font-size: clamp(36px, 5vw, 58px);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--ink);
}

.metric-card p {
  margin: 0;
  color: var(--muted);
}

/* Testimonial placeholder cards in scrolling carousel. */
.testimonial-card {
  min-width: 360px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 14px 32px rgba(3,24,45,.08);
}

.testimonial-card p {
  color: var(--ink);
  font-size: 17px;
  margin: 0 0 18px;
}

.testimonial-card strong {
  display: block;
  color: var(--navy);
}

.testimonial-card small {
  color: var(--muted);
}

/* White heading/copy overrides inside dark About section. */
.about-us /* Balanced text wrapping for major headings. */
.section-heading,
.about-us .section-copy {
  color: #fff;
}

.about-us .section-copy {
  color: rgba(255,255,255,.78);
}

/* Dark translucent Avco info card in About section. */
.about-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(255,255,255,.08);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0,0,0,.20);
}

.about-card ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255,255,255,.78);
}

.about-card li {
  margin: 10px 0;
}

.metric-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(3,24,45,.13);
  border-color: rgba(11,110,234,.22);
}

/* Icon/illustration box inside each metric card. */
.metric-visual {
  width: 112px;
  height: 86px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eef6ff, #fff4eb);
  border: 1px solid #dce8f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.metric-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-card {
  min-height: 335px;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 62px rgba(3,24,45,.14);
  border-color: rgba(11,110,234,.24);
}

.metric-visual {
  width: 100%;
  height: 132px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: radial-gradient(circle at 20% 20%, #ffffff, #eef6ff 62%, #fff3e8);
  border: 1px solid #dce8f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(11,110,234,.08);
  overflow: hidden;
}

.metric-visual svg {
  width: min(150px, 92%);
  height: 110px;
  display: block;
}

.metric-card strong {
  margin-top: auto;
}

.metric-card::after {
  opacity: .7;
}

/* Shared hover transition for reusable cards and logo tiles. */
.feature-card,
.domain-card,
.customer-logo,
.testimonial-card,
.about-card,
.security-item,
.cloud-logo {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-card:hover,
.domain-card:hover,
.customer-logo:hover,
.testimonial-card:hover,
.about-card:hover,
.security-item:hover,
.cloud-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(3,24,45,.10);
}

.section-heading,
.section-title,
.domain-heading {
  text-wrap: balance;
}

.btn:hover {
  box-shadow: 0 14px 32px rgba(255,118,0,.28);
}

/* Individual scrolling metric card in the projected impact carousel. */
.metric-slide {
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(3,24,45,.09);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.metric-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(3,24,45,.16);
  border-color: rgba(11,110,234,.24);
}

.metric-visual {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eff6ff, #fff4eb);
  border: 1px solid #dce8f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.metric-visual svg {
  width: 74px;
  height: 74px;
  display: block;
}

.metric-slide strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--navy);
}

.metric-slide h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.05;
  color: var(--ink);
}

.metric-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-card,
.domain-card,
.security-item,
.testimonial-card,
.about-card,
.customer-logo {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.feature-card:hover,
.domain-card:hover,
.security-item:hover,
.testimonial-card:hover,
.about-card:hover,
.customer-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(3,24,45,.10);
}

.metric-slide {
  min-width: 300px;
  max-width: 300px;
  flex: 0 0 300px;
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(3,24,45,.09);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.metric-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(3,24,45,.16);
  border-color: rgba(11,110,234,.24);
}

.metric-slide strong {
  display: block;
  font-size: 40px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 10px;
}

.metric-slide h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.06;
  color: var(--ink);
}

.metric-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.metric-visual {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eff6ff, #fff4eb);
  border: 1px solid #dce8f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.metric-visual svg {
  width: 74px;
  height: 74px;
  display: block;
}

.metric-loop .metric-slide {
  min-width: 300px;
  max-width: 300px;
  flex: 0 0 300px;
}

/* Optional per-provider logo sizing utilities. Add these classes to .cloud-logo wrappers when needed. */
/* Optional per-provider logo sizing: Azure PNG. */
.cloud-logo-azure img {
  height: 38px;
  max-width: 150px;
}

/* Optional per-provider logo sizing: AWS PNG. */
.cloud-logo-aws img {
  height: 34px;
  max-width: 130px;
}

/* Optional per-provider logo sizing: GCP PNG. */
.cloud-logo-gcp img {
  height: 34px;
  max-width: 150px;
}

/* Optional per-provider logo sizing: on-prem SVG. */
.cloud-logo-onprem svg,
.cloud-logo-onprem .onprem-icon {
  width: 38px;
  height: 38px;
}