:root {
  --ar-navy: #0b1b34;
  --ar-navy-2: #12284a;
  --ar-blue: #1d6fd6;
  --ar-blue-dk: #1556a8;
  --ar-blue-lt: #5aa2ff;
  --ar-blue-tint: #eaf2fd;
  --ar-text: #1a2433;
  --ar-muted: #5c6a80;
  --ar-border: #e4e8f0;
  --ar-bg-light: #f5f7fc;
  --ar-white: #ffffff;
  --ar-radius: 14px;
  --ar-shadow: 0 12px 32px rgba(11, 27, 52, .10);
}

.arista-page {
  color: var(--ar-text);
  overflow-wrap: break-word;
}

.arista-page img {
  max-width: 100%;
}

.arista-page section {
  scroll-margin-top: 90px;
}

/* ── SHARED HEADINGS ── */
.arista-heading {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.arista-heading h2 {
  position: relative;
  padding-bottom: .9rem;
  margin-bottom: .75rem;
  color: var(--ar-navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.arista-heading h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--ar-blue);
  transform: translateX(-50%);
}

.arista-heading p {
  margin: 0;
  color: var(--ar-muted);
}

.arista-heading-light h2 {
  color: var(--ar-white);
}

.arista-heading-light h2::after {
  background: var(--ar-blue-lt);
}

.arista-heading-light p {
  color: rgba(255, 255, 255, .72);
}

/* ── HERO ── */
.arista-section {
  position: relative;
  overflow: hidden;
  color: var(--ar-white);
  background: var(--ar-navy);
}

.arista-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/arista/ocp-2026-banner-background.webp') center / cover no-repeat;
}

.arista-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 27, 52, .94) 0%, rgba(11, 27, 52, .7) 55%, rgba(11, 27, 52, .4) 100%);
}

/* faint grid texture over the overlay */
.arista-hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.arista-hero-content {
  position: relative;
  z-index: 1;
  align-items: center;
  padding: 56px 0 104px; /* bottom space is taken by the overlapping stats card */
}

.arista-hero-content h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.arista-hero-content p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 26px;
  max-width: 30rem;
}

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

.arista-hero-visual {
  position: relative;
}

.arista-hero-visual::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(90, 162, 255, .35) 0%, rgba(90, 162, 255, 0) 70%);
  filter: blur(10px);
}

.arista-hero-visual img {
  position: relative;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.arista-section .btn-theme,
.arista-section .btn-theme-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

/* overrides the site-wide red .btn-theme (custom.css) and Bootstrap's
   .btn state variables so every state stays on the Arista blue */
.arista-section .btn-theme {
  --bs-btn-hover-bg: var(--ar-blue-dk);
  --bs-btn-hover-border-color: var(--ar-blue-dk);
  --bs-btn-active-bg: var(--ar-blue-dk);
  --bs-btn-active-border-color: var(--ar-blue-dk);
  --bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(29, 111, 214, .4);
  background: var(--ar-blue);
  border: 2px solid var(--ar-blue);
  color: var(--ar-white);
  box-shadow: 0 3px 12px rgba(29, 111, 214, .3);
}

.arista-section .btn-theme i {
  font-size: .8em;
}

.arista-section .btn-theme:hover,
.arista-section .btn-theme:focus,
.arista-section .btn-theme:active,
.arista-section .btn-theme:focus-visible {
  background: var(--ar-blue-dk);
  border-color: var(--ar-blue-dk);
  color: var(--ar-white);
  box-shadow: 0 6px 20px rgba(29, 111, 214, .4);
}

.arista-section .btn-theme:hover {
  transform: translateY(-2px);
}

.arista-section .btn-theme:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(29, 111, 214, .4);
}

.arista-section .btn-theme-secondary {
  background: rgba(255, 255, 255, .06);
  border: 2px solid rgba(255, 255, 255, .7);
  color: var(--ar-white);
}

.arista-section .btn-theme-secondary:hover {
  background: var(--ar-white);
  border-color: var(--ar-white);
  color: var(--ar-navy);
  transform: translateY(-2px);
}

/* ── STATS (floating card overlapping the hero) ── */
.arista-stats {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  background: linear-gradient(180deg, transparent 0 60px, var(--ar-bg-light) 60px);
}

.arista-stats-card {
  background: var(--ar-white);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow);
}

.arista-stat {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.arista-stat + .arista-stat {
  border-left: 1px solid var(--ar-border);
}

/* accolade illustrations — fixed frame so all three render at one size */
.arista-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 66px;
  margin-bottom: .75rem;
}

.arista-stat-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.arista-stat h3 {
  margin-bottom: .35rem;
  color: var(--ar-navy);
  font-size: 1.5rem;
  font-weight: 700;
}

.arista-stat p {
  max-width: 18rem;
  margin: 0 auto;
  color: var(--ar-muted);
  font-size: .9rem;
}

/* ── SWITCH FAMILY CARDS ── */
.arista-cards {
  padding: 3.5rem 0 4rem;
  background: var(--ar-bg-light);
}

.arista-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ar-white);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.arista-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 111, 214, .35);
  box-shadow: var(--ar-shadow);
}

/* product shots sit on a soft gradient, contained rather than cropped */
.arista-card-img {
  padding: 16px;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #e9eef8 100%);
  border-bottom: 1px solid var(--ar-border);
}

/* fixed-size frame so every image renders at the same size */
.arista-card .image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
}

.arista-card .image-wrapper img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .3s;
}

.arista-card:hover .image-wrapper img {
  transform: scale(1.05);
}

.arista-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem;
}

.arista-card-body h3 {
  color: var(--ar-navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

/* description grows so the quote links line up across cards */
.arista-card-body p {
  flex: 1;
  color: var(--ar-muted);
  margin-bottom: 1rem;
  font-size: .92rem;
  line-height: 1.6;
}

.arista-card-link {
  padding-top: .8rem;
  border-top: 1px solid var(--ar-border);
  color: var(--ar-blue);
  font-weight: 600;
  text-decoration: none;
}

.arista-card-link i {
  margin-left: .35rem;
  font-size: .8em;
  transition: transform .2s;
}

.arista-card-link:hover {
  color: var(--ar-blue-dk);
}

.arista-card-link:hover i {
  transform: translateX(4px);
}

/* ── EOS ── */
.arista-eos {
  padding: 4.5rem 0;
  background: var(--ar-white);
}

.arista-eos-panel {
  position: relative;
  overflow: hidden;
  padding: 2.75rem;
  border: 1px solid var(--ar-border);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ar-blue-tint) 0%, var(--ar-bg-light) 60%, var(--ar-white) 100%);
}

/* soft blue glow in the corner of the panel */
.arista-eos-panel::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 111, 214, .14) 0%, rgba(29, 111, 214, 0) 70%);
  pointer-events: none;
}

.arista-eos-panel .row {
  position: relative;
}

.arista-eos-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--ar-navy);
  color: var(--ar-white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.arista-eos h2 {
  color: var(--ar-navy);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .9rem;
}

.arista-eos-lead {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--ar-blue);
  color: var(--ar-muted);
  font-size: 1.05rem;
}

.arista-eos-tile {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  background: var(--ar-white);
  box-shadow: 0 4px 14px rgba(11, 27, 52, .05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.arista-eos-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 111, 214, .35);
  box-shadow: var(--ar-shadow);
}

.arista-eos-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ar-blue) 0%, var(--ar-blue-dk) 100%);
  color: var(--ar-white);
  font-size: 1rem;
}

.arista-eos-tile p {
  margin: 0;
  color: var(--ar-text);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ── SOLUTIONS BAND ── */
.arista-solutions {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(160deg, var(--ar-navy) 0%, var(--ar-navy-2) 100%);
}

.arista-solutions::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(90, 162, 255, .16) 0%, rgba(90, 162, 255, 0) 65%);
  pointer-events: none;
}

.arista-solutions .container {
  position: relative;
}

.arista-solution {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--ar-radius);
  background: rgba(255, 255, 255, .04);
  transition: transform .25s, background .25s, border-color .25s;
}

.arista-solution:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 162, 255, .5);
  background: rgba(255, 255, 255, .07);
}

.arista-solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: rgba(90, 162, 255, .15);
  color: var(--ar-blue-lt);
  font-size: 1.2rem;
}

.arista-solution h3 {
  color: var(--ar-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

/* description grows so the quote links line up across cards */
.arista-solution p {
  flex: 1;
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
  line-height: 1.65;
}

.arista-solution-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(90, 162, 255, .5);
  border-radius: 8px;
  color: var(--ar-white);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.arista-solution-link i {
  font-size: .8em;
  transition: transform .2s;
}

.arista-solution-link:hover {
  border-color: var(--ar-blue);
  background: var(--ar-blue);
  color: var(--ar-white);
}

.arista-solution-link:hover i {
  transform: translateX(4px);
}

/* ── RESPONSIVE ── */

/* tablet and below: hero stacks, image moves under the copy */
@media (max-width: 991.98px) {
  .arista-hero-content p {
    max-width: 36rem;
  }
  .arista-hero-visual {
    max-width: 560px;
    margin: 2rem auto 0;
  }
  .arista-hero-visual img {
    max-height: 260px;
  }
  .arista-stat {
    padding: 1.5rem 1rem;
  }
  .arista-stat h3 {
    font-size: 1.3rem;
  }
  .arista-eos-panel {
    padding: 2.25rem 2rem;
  }
}

/* phones: tighter spacing, stats and EOS tiles switch to icon-left rows */
@media (max-width: 767.98px) {
  .arista-page section {
    scroll-margin-top: 70px;
  }
  .arista-hero-content {
    padding: 40px 0 88px;
  }
  .arista-hero-content p {
    margin-bottom: 22px;
  }
  .arista-hero-visual img {
    max-height: 210px;
  }
  .arista-heading {
    margin-bottom: 1.75rem;
  }

  .arista-stat {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.25rem;
    text-align: left;
  }
  .arista-stat-icon {
    grid-row: span 2;
    width: 72px;
    height: 50px;
    margin-bottom: 0;
  }
  .arista-stat h3 {
    margin-bottom: .15rem;
    font-size: 1.2rem;
  }
  .arista-stat p {
    max-width: none;
    margin: 0;
  }
  .arista-stat + .arista-stat {
    border-left: 0;
    border-top: 1px solid var(--ar-border);
  }

  .arista-cards,
  .arista-eos,
  .arista-solutions {
    padding: 3rem 0;
  }
  .arista-card .image-wrapper {
    height: 140px;
  }

  .arista-eos-panel {
    padding: 1.75rem 1.25rem;
    border-radius: var(--ar-radius);
  }
  .arista-eos-lead {
    font-size: 1rem;
  }
  .arista-eos-tile {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
  }
  .arista-eos-icon {
    flex: 0 0 42px;
  }

  .arista-solution {
    padding: 1.5rem 1.25rem;
  }
}

/* small phones: full-width stacked buttons */
@media (max-width: 479.98px) {
  .arista-hero-actions {
    flex-direction: column;
  }
  .arista-section .btn-theme,
  .arista-section .btn-theme-secondary {
    justify-content: center;
    width: 100%;
  }
  .arista-solution-link {
    align-self: stretch;
    justify-content: center;
  }
}

/* touch screens: drop hover lifts so cards don't stay stuck "raised" after a tap */
@media (hover: none) {
  .arista-card:hover,
  .arista-eos-tile:hover,
  .arista-solution:hover,
  .arista-section .btn-theme:hover,
  .arista-section .btn-theme-secondary:hover,
  .arista-card:hover .image-wrapper img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arista-page *,
  .arista-page *::before {
    transition: none !important;
  }
}

/* ── ABOUT ── */
.arista-about {
  padding: 4.5rem 0;
  background: var(--ar-white);
  border-top: 1px solid var(--ar-border);
}

.arista-about-title {
  position: relative;
  padding-bottom: .9rem;
  margin-bottom: 1.25rem;
  color: var(--ar-navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.arista-about-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--ar-blue);
}

.arista-about p {
  margin-bottom: 1rem;
  color: var(--ar-muted);
  line-height: 1.7;
}

.arista-about-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: var(--ar-blue);
  border: 2px solid var(--ar-blue);
  color: var(--ar-white);
  box-shadow: 0 3px 12px rgba(29, 111, 214, .3);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

.arista-about-btn i {
  font-size: .8em;
}

.arista-about-btn:hover,
.arista-about-btn:focus,
.arista-about-btn:active {
  background: var(--ar-blue-dk);
  border-color: var(--ar-blue-dk);
  color: var(--ar-white);
  box-shadow: 0 6px 20px rgba(29, 111, 214, .4);
}

.arista-about-btn:hover {
  transform: translateY(-2px);
}

.arista-about-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(29, 111, 214, .4);
}

.arista-about-logo {
  overflow: hidden;
  background: var(--ar-navy);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow);
}

.arista-about-logo iframe {
  border: 0;
}

@media (max-width: 767.98px) {
  .arista-about {
    padding: 3rem 0;
  }
  .arista-about-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (hover: none) {
  .arista-about-btn:hover {
    transform: none;
  }
}

/* hero logo — recoloured to solid white for the dark hero background */
.arista-hero-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}
