/*
  MCA website styles.
  Colors, fonts and spacing live in the variables below so the look can be
  changed in one place.
*/

:root {
  --color-text: #1a1a1a;
  --color-muted: #5b6470;
  --color-background: #ffffff;
  --color-gray: #f2f3f5;
  --color-border: #dfe2e6;
  --color-brand: #0b5cad;
  --color-brand-dark: #08488a;
  --color-navy: #0c1b2e;
  --color-green: #5aaa3c;
  --color-green-dark: #3f8a28;
  --color-green-tint: #f1f8ee;
  --color-blue-tint: #eaf2fb;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;

  --container-width: 80rem;
  --header-height: 140px;
}

/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
}

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

a {
  color: var(--color-brand);
}

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 40rem;
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section-gray {
  background: var(--color-gray);
}

.section-dark {
  background: var(--color-navy);
  color: #fff;
}

.section-label {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark .section-label {
  color: #9fb6d1;
}

/* Buttons and links */
.arrow {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-brand);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.button:hover {
  background: var(--color-brand-dark);
}

.button:hover .arrow,
.text-link:hover .arrow,
.tile:hover .arrow {
  transform: translateX(4px);
}

.button-small {
  padding: 0.6rem 1rem;
  font-size: 0.9375rem;
}

.button-light {
  background: #fff;
  color: var(--color-navy);
}

.button-light:hover {
  background: #dbe6f3;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9375rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 92rem;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Sized so the tagline under "Computer Corporation" stays readable */
.logo img {
  width: auto;
  height: clamp(84px, 7.6vw, 112px);
}

.main-nav .button-small {
  white-space: nowrap;
}

/* Mid-size screens: a little less space between menu items so the bigger logo fits */
@media (max-width: 1400px) {
  .header-inner {
    gap: 2rem;
  }

  .main-nav {
    gap: 2rem;
  }

  .logo img {
    height: clamp(80px, 7.2vw, 100px);
  }

  .nav-list {
    gap: 1.6rem;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-list {
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--color-navy);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-brand);
}

.nav-toggle {
  display: none;
  padding: var(--space-sm);
  background: none;
  border: 0;
  color: var(--color-navy);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--color-navy);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(6, 16, 30, 0.7) 0%, rgba(6, 16, 30, 0) 60%),
    linear-gradient(to top, rgba(6, 16, 30, 0.85) 0%, rgba(6, 16, 30, 0.3) 50%, rgba(6, 16, 30, 0.05) 100%);
}

/* Pause/play button for the background video */
.video-toggle {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(6, 16, 30, 0.4);
  color: #fff;
  cursor: pointer;
}

.video-toggle:hover {
  background: rgba(6, 16, 30, 0.7);
}

.video-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.video-toggle .icon-play,
.video-toggle.is-paused .icon-pause {
  display: none;
}

.video-toggle.is-paused .icon-play {
  display: block;
}

.hero-content {
  position: relative;
  width: 100%;
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-bottom: 4.5rem;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* Short accent line before the tagline */
.hero .eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: #4f9be8;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  max-width: 16ch;
}

.hero-sub {
  max-width: 36rem;
  margin: 0 0 var(--space-lg);
  font-size: 1.25rem;
  color: #e4ebf3;
}

/* Shorter banner at the top of inner pages (About, etc.) */
.hero-page {
  min-height: 0;
  align-items: center;
}

.hero-page .hero-content {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.hero-page .eyebrow {
  margin-bottom: 0.75rem;
}

.hero-page h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  max-width: 28ch;
}

.hero-page .hero-sub {
  font-size: 1.125rem;
}

.hero-page .hero-sub {
  margin-bottom: 0;
}

/* Rugged servers page */
.hero-rugged .hero-image {
  object-position: 75% center;
}

.hero-rugged .hero-sub,
.hero-procurement .hero-sub {
  max-width: 30rem;
}

.hero-rugged .hero-overlay,
.hero-procurement .hero-overlay {
  background: linear-gradient(to right, rgba(6, 16, 30, 0.85) 0%, rgba(6, 16, 30, 0) 65%);
}

.hero-procurement .hero-overlay {
  background: linear-gradient(to right, rgba(6, 16, 30, 0.92) 0%, rgba(6, 16, 30, 0.6) 45%, rgba(6, 16, 30, 0.1) 80%);
}

.section-dark .split-text p {
  color: #c9d4e2;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-links a:not(.button) {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-links a:not(.button):hover {
  border-bottom-color: #fff;
}

.rugged-product {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 2rem;
  background: radial-gradient(circle at 50% 45%, #2a4466, #07111f 80%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid li {
  border-top: 2px solid var(--color-brand);
  padding-top: var(--space-md);
}

.feature-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.feature-grid p {
  margin: 0;
  color: var(--color-muted);
}

.two-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.two-lists .check-list {
  margin-top: var(--space-md);
}

.faq details {
  max-width: 56rem;
  border-bottom: 1px solid var(--color-border);
}

.faq summary {
  padding: 1.1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
}

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

/* Statement */
.statement-text {
  max-width: 56rem;
  margin: 0 0 var(--space-md);
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 300;
  line-height: 1.3;
}

.statement-sub {
  max-width: 52rem;
  margin: 0 0 var(--space-lg);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--color-muted);
}

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: var(--space-lg);
}

.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--color-navy);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 16, 30, 0.85), rgba(6, 16, 30, 0) 55%);
}

.tile:hover img {
  transform: scale(1.05);
}

.tile-label {
  position: absolute;
  left: 1.25rem;
  right: 3rem;
  bottom: 1.25rem;
  z-index: 1;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
}

.tile .arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.4rem;
  z-index: 1;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats li {
  border-top: 2px solid var(--color-brand);
  padding-top: var(--space-md);
}

.stat-value {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-navy);
}

.stat-label {
  color: var(--color-muted);
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.split-text p {
  color: var(--color-muted);
}

/* Photo or video beside text, with a soft shadow */
.media-frame {
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-navy);
  box-shadow: 0 20px 40px rgba(12, 27, 46, 0.18);
}

.media-frame .split-image {
  display: block;
}

/* Servers section: a slightly wider video, kept at its own shape so it stays sharp */
#servers .split {
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-top: var(--space-lg);
  align-items: start;
}

#servers .split-image {
  aspect-ratio: 16 / 9;
}

#servers .split-text > :first-child {
  margin-top: 0;
}

/* Manufacturer logos under the server video, in soft gray until hovered */
.brand-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.brand-logos li {
  display: flex;
  justify-content: center;
}

.brand-logos img {
  width: auto;
  max-width: 100%;
  height: 26px;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

/* The Dell circle and the stacked HPE and Supermicro logos need more height to look the same size */
.brand-logos img[alt="Dell"],
.brand-logos img[alt="HPE"],
.brand-logos img[alt="Supermicro"] {
  height: 40px;
}

/* The Oracle wordmark is very wide, so it sits a little lower */
.brand-logos img[alt="Oracle"] {
  height: 18px;
}

/* MCA's own line gets a little extra size so its smaller words stay readable */
.brand-logos img[alt="MCA Rugged Servers"] {
  height: 48px;
}

.brand-logos img:hover {
  filter: none;
  opacity: 1;
}

.servers-quote {
  margin-top: 1.75rem;
}

/* Text laid over the bottom of a photo or video */
.media-frame {
  position: relative;
}

.media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 3rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(6, 16, 30, 0.9), rgba(6, 16, 30, 0));
  color: #fff;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.25;
}

.media-caption strong {
  font-weight: 600;
}

.media-caption::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 0.6rem;
  background: #4f9be8;
}

/* Bulleted list with blue check marks */
.check-list {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.35em;
  width: 0.5rem;
  height: 0.85rem;
  border: solid var(--color-brand);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Quote */
.quote {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  margin: 0 0 var(--space-md);
}

.quote p {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
}

.quote figcaption {
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
}

/* Careers */
.careers {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.careers h2 {
  margin: 0;
}

/* Footer */
.site-footer {
  background: #08121f;
  color: #b9c4d1;
  padding: 4rem 0 var(--space-lg);
  font-size: 0.9375rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer h3 {
  margin-bottom: var(--space-md);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

/* White-lettered logo made for the dark footer */
.footer-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  opacity: 0.92;
}

.footer-address {
  margin-top: var(--space-md);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.photo-credits {
  margin-top: var(--space-sm) !important;
  font-size: 0.8125rem;
  color: #7f8b9a;
}

.site-footer .photo-credits a {
  color: inherit;
  text-decoration: underline;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
  z-index: 20;
  padding: var(--space-sm);
  background: var(--color-background);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Tablet */
@media (max-width: 1100px) {
  /* Tiles stay in one row; the labels shrink to fit */
  .tile-label {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: clamp(0.625rem, 1.7vw, 1.125rem);
  }

  .tile .arrow {
    display: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Medium screens: shrink the logo and tighten the links so they stay in one line */
@media (max-width: 1240px) {
  .header-inner {
    gap: 1.5rem;
  }

  .logo img {
    height: clamp(58px, 6.6vw, 96px);
  }

  .main-nav,
  .nav-list {
    gap: 1.25rem;
  }

  .nav-list a {
    font-size: 0.9375rem;
  }

  .main-nav .button-small {
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

/* Narrow laptops and tablets: squeeze the menu so it stays on one line */
@media (max-width: 1000px) {
  .header-inner {
    gap: 1rem;
  }

  .logo img {
    height: 62px;
  }

  .main-nav,
  .nav-list {
    gap: 0.85rem;
  }

  .nav-list a {
    font-size: 0.875rem;
  }

  .main-nav .button-small {
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
  }
}

/* Phone: collapse the menu behind a button */
@media (max-width: 860px) {
  .logo img {
    height: 92px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-md) 1.5rem var(--space-lg);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav .button {
    justify-content: center;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .two-lists {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  #servers .split {
    grid-template-columns: 1fr;
  }

  .brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: min(66px, calc((100vw - 150px) / 3.75));
  }

  :root {
    --header-height: 92px;
  }

  .container {
    padding: 0 1rem;
  }

  .tile-label {
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.4rem;
    line-height: 1.15;
  }

  .feature-grid,
  .feature-grid-3,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-rugged .hero-overlay,
  .hero-procurement .hero-overlay {
    background: rgba(6, 16, 30, 0.82);
  }

  .hero-content {
    padding-bottom: 3rem;
  }
}

/* Terms & Conditions and other legal pages */
.legal > * {
  max-width: 52rem;
}

.legal h2 {
  margin: var(--space-xl) 0 var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 1.625rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.legal h3 {
  margin: var(--space-lg) 0 0.5rem;
  font-size: 1.1875rem;
  font-weight: 600;
}

.legal p,
.legal li {
  color: #3a424d;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--color-brand);
  background: var(--color-gray);
}

.legal-callout p {
  margin: 0;
}

.legal-toc {
  margin-top: var(--space-lg);
}

.legal-toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.25rem;
}

.legal-toc a {
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

/* Disclaimers the law expects to stand out */
.legal-conspicuous {
  font-weight: 600;
  color: var(--color-text) !important;
}

@media (max-width: 600px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* News & Events */
.news-list {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.news-empty {
  padding: 1.5rem;
  border: 1px dashed var(--color-border);
  background: #fff;
}

.news-empty p {
  margin: 0;
  color: var(--color-muted);
}

.news-card {
  max-width: 52rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand);
  background: #fff;
}

.news-card h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.news-card p {
  color: var(--color-muted);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.875rem;
}

.news-tag {
  padding: 0.15rem 0.6rem;
  background: var(--color-gray);
  color: var(--color-brand);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .news-card {
    padding: 1.25rem;
  }
}

.news-card .news-source {
  margin-bottom: 0;
  font-size: 0.875rem;
  font-style: italic;
}

.news-card .news-link {
  margin-top: 1rem;
}

/* News story with a thumbnail beside the text */
.news-card-image {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 64rem;
}

.news-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 700px) {
  .news-card-image {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Event card with a calendar-style date block */
.event-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  align-items: start;
  max-width: 64rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand);
  background: #fff;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  background: var(--color-navy);
  color: #fff;
  text-align: center;
  line-height: 1.1;
}

.event-month {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fb6d1;
}

.event-days {
  margin: 0.25rem 0;
  font-size: 2rem;
  font-weight: 500;
}

.event-year {
  font-size: 0.875rem;
}

.event-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.event-card p {
  color: var(--color-muted);
}

.event-card .event-place {
  margin-top: 0;
  font-weight: 500;
  color: var(--color-text);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 600px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }

  .event-date {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .event-days {
    margin: 0;
    font-size: 1.25rem;
  }
}

/* Thin announcement banner above the homepage header */
.announcement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  padding: 0.55rem 1rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
}

.announcement:hover .announcement-cta {
  text-decoration: underline;
}

.announcement-tag {
  padding: 0.1rem 0.5rem;
  background: var(--color-brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #9fc5ef;
  font-weight: 600;
}

.announcement-cta svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 600px) {
  .announcement {
    font-size: 0.8125rem;
  }
}

@media (max-width: 600px) {
  .announcement-tag,
  .announcement-extra {
    display: none;
  }
}

.announcement-logo {
  width: auto;
  height: 34px;
}

@media (max-width: 600px) {
  .announcement-logo {
    height: 26px;
  }
}

/* Careers: open roles that expand when clicked */
.job-list {
  display: grid;
  gap: 1rem;
  max-width: 60rem;
  margin-top: var(--space-lg);
}

.job {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brand);
  background: #fff;
}

.job summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.job-title {
  font-size: 1.375rem;
  font-weight: 500;
}

.job-meta {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.job-body {
  padding: 0 1.5rem 1.5rem;
}

.job-body p,
.job-body li {
  color: #3a424d;
}

.job-body h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.job-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.job-body li {
  margin-bottom: 0.35rem;
}


/* Careers banner: friendly photo collage with brand-color accents */
.careers-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(90, 170, 60, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(79, 155, 232, 0.18), transparent 45%),
    var(--color-navy);
  color: #fff;
}

.careers-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.careers-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.careers-hero .eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: #5aaa3c;
}

.careers-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
}

.careers-hero h1 span {
  color: #7fd35b;
}

.careers-hero .hero-sub {
  margin-bottom: var(--space-lg);
}

.careers-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  height: 360px;
}

.careers-collage img {
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cc-a {
  grid-row: 1 / 3;
}

.cc-b {
  object-position: center 30%;
}

.cc-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  font-size: 0.875rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cc-badge strong {
  font-size: 1.25rem;
  font-weight: 600;
}

.cc-badge-green {
  left: -28px;
  bottom: -18px;
  background: #5aaa3c;
  transform: rotate(-8deg);
}

.cc-badge-blue {
  right: -14px;
  top: -18px;
  background: var(--color-brand);
  transform: rotate(8deg);
}

@media (max-width: 860px) {
  .careers-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .careers-collage {
    height: 260px;
    margin: 0 12px 12px;
  }

  .cc-badge {
    width: 84px;
    height: 84px;
    font-size: 0.75rem;
  }

  .cc-badge strong {
    font-size: 1rem;
  }

  .cc-badge-green {
    left: -12px;
  }

  .cc-badge-blue {
    right: -8px;
  }
}

/* Servers and By the numbers share a white background, so close the gap between them */
#servers {
  padding-bottom: 1.5rem;
}

.section-numbers {
  padding-top: 1.5rem;
}

#servers .chips {
  margin-bottom: 0;
}

/* Products & Services tiles: never taller than the visible screen,
   so the whole row shows when someone clicks the menu link */
@media (min-width: 861px) {
  #what-we-do .tile {
    aspect-ratio: auto;
    height: min(calc((min(100vw, 80rem) - 3rem) / 5 * 4 / 3), max(220px, calc(100vh - var(--header-height) - 280px)));
  }
}

/* Servers & Storage page */
.brand-logos-wide {
  max-width: 64rem;
  margin-top: var(--space-lg);
}

.feature-grid a {
  font-weight: 600;
}

/* Today's date, small, at the top right of the header */
.header-date {
  position: absolute;
  top: 0.4rem;
  right: max(1.5rem, calc((100% - 92rem) / 2 + 1.5rem));
  z-index: 1;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.header-date:empty {
  display: none;
}

@media (max-width: 860px) {
  .header-date {
    display: none;
  }
}

/* Dell PowerEdge product listing and product pages */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

.filter-bar span {
  margin-right: 0.25rem;
  color: var(--color-muted);
  font-weight: 500;
}

.filter-bar button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.filter-bar button:hover {
  border-color: var(--color-brand);
}

.filter-bar button.is-active {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.product-group + .product-group {
  margin-top: var(--space-xl);
}

.product-group h2 {
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card a:hover {
  border-color: var(--color-brand);
  box-shadow: 0 8px 24px rgba(12, 27, 46, 0.1);
}

.product-card-img {
  display: grid;
  place-items: center;
  height: 120px;
  margin-bottom: 1rem;
}

.product-card-img img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.product-card-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.product-card-meta {
  margin: 0.25rem 0 0.5rem;
  color: var(--color-brand);
  font-size: 0.875rem;
  font-weight: 500;
}

.product-card-cpu {
  flex-grow: 1;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--color-brand);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card-link .arrow {
  width: 1rem;
  height: 1rem;
}

.breadcrumb {
  margin-bottom: var(--space-lg);
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 2rem;
  background: var(--color-gray);
}

.product-image img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.product-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

.product-hero .chips {
  margin: 0 0 1rem;
}

.product-intro {
  color: var(--color-muted);
}

.product-hero .check-list {
  margin: 1rem 0 1.5rem;
}

.spec-table {
  width: 100%;
  max-width: 64rem;
  margin-top: var(--space-md);
  border-collapse: collapse;
  background: #fff;
}

.spec-table th,
.spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 14rem;
  font-weight: 600;
}

.spec-table td {
  color: #3a424d;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) 3rem;
  margin-top: var(--space-md);
}

.spec-block h3 {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-brand);
  font-size: 1.125rem;
  font-weight: 600;
}

.spec-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.spec-block li {
  margin-bottom: 0.3rem;
  color: #3a424d;
}

.spec-block .spec-sub {
  margin: 0.6rem 0 0.2rem -1.1rem;
  list-style: none;
  color: var(--color-text);
  font-weight: 600;
}

.spec-note {
  margin-top: var(--space-lg);
  color: var(--color-muted);
  font-size: 0.875rem;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero-grid,
  .spec-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .spec-table th {
    width: auto;
  }
}

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

  .spec-table th,
  .spec-table td {
    display: block;
    padding: 0.5rem 0;
    border: 0;
  }

  .spec-table tr {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }
}

.dell-browse {
  margin-top: var(--space-lg);
}

#servers .chips + .text-link {
  margin-top: 1.25rem;
}

/* Brand logo or tag that links to a product page */
.brand-logos a {
  display: inline-flex;
}

.chips a {
  color: inherit;
  text-decoration: none;
}

.chips li:has(a) {
  padding: 0;
}

.chips li a {
  display: block;
  padding: 0.35rem 0.85rem;
}

.chips li:has(a):hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

/* Product photo gallery: main photo with clickable thumbnails */
.product-gallery {
  min-width: 0;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.gallery-thumbs button {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0.35rem;
  border: 2px solid transparent;
  background: var(--color-gray);
  cursor: pointer;
}

.gallery-thumbs button:hover {
  border-color: var(--color-border);
}

.gallery-thumbs button.is-active {
  border-color: var(--color-brand);
}

.gallery-thumbs img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-thumbs button {
  overflow: hidden;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
}

.product-badge {
  margin: 0 0 0.75rem;
}

.product-badge img {
  height: 44px;
  width: auto;
}

/* MCA Rugged Servers logo in a dark banner */
.banner-logo {
  display: block;
  width: auto;
  height: 64px;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .banner-logo {
    height: 48px;
  }
}

/* Top menu rollover: a blue underline slides in from the left */
@media (min-width: 861px) {
  .nav-list a {
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--color-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-list a:hover::after,
  .nav-list a:focus-visible::after,
  .nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .main-nav .button-small {
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }

  .main-nav .button-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 92, 173, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-list a::after,
  .main-nav .button-small {
    transition: none;
  }
}

/* Request a quote page */
.quote-layout {
  display: grid;
  grid-template-columns: 22rem 1fr;
  gap: 3rem;
  align-items: start;
}

.quote-item {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  padding: 1.5rem;
  background: var(--color-gray);
}

.quote-item h2 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.375rem;
}

.quote-item-img {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
}

.quote-item-img img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.quote-item-empty p {
  margin: 0;
  color: var(--color-muted);
}

.quote-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.quote-pick button {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.quote-pick button:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.quote-item .check-list {
  margin-top: 1.5rem;
}

.quote-contact {
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-field label span {
  color: var(--color-brand);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c3c9d1;
  border-radius: 0;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 0;
  border-color: var(--color-brand);
}

.form-field [aria-invalid="true"] {
  border-color: #c0392b;
}

.form-error {
  margin: 0;
  color: #c0392b;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.form-sent {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #5aaa3c;
  background: #f1f8ee;
}

.form-sent h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.form-sent p {
  margin: 0;
}

@media (max-width: 860px) {
  .quote-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .quote-item {
    position: static;
  }
}

@media (max-width: 600px) {
  .quote-form {
    grid-template-columns: 1fr;
  }
}

/* Products & Services dropdown in the top menu */
.has-menu {
  position: relative;
}

.sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.has-menu > a {
  padding-right: 1.05em !important;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%230c1b2e%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right center / 0.65em auto;
}

@media (min-width: 861px) {
  .sub-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    z-index: 20;
    min-width: 16rem;
    padding: 0.5rem 0;
    border-top: 3px solid var(--color-brand);
    background: #fff;
    box-shadow: 0 12px 30px rgba(12, 27, 46, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  /* An invisible bridge so the menu stays open while the pointer moves down to it */
  .has-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.75rem;
  }

  .has-menu:hover .sub-menu,
  .has-menu:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0.4rem);
  }

  .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
  }

  .nav-list .sub-menu a::after {
    display: none;
  }

  .sub-menu a:hover,
  .sub-menu a:focus-visible {
    background: var(--color-gray);
    color: var(--color-brand);
  }
}

@media (max-width: 860px) {
  .has-menu > a::before {
    display: none;
  }

  .sub-menu a {
    padding-left: 1.25rem !important;
    color: var(--color-muted) !important;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-menu {
    transition: none;
  }
}

/* Dropdown redesign: two-line items with MCA green accents */
.sm-title,
.sm-desc {
  display: block;
}

.sm-title {
  font-weight: 600;
}

@media (min-width: 861px) {
  .sub-menu {
    left: -1.25rem;
    min-width: 21rem;
    padding: 0.6rem;
    border-top: 3px solid var(--color-green);
    border-radius: 0 0 8px 8px;
  }

  .sub-menu li + li {
    margin-top: 2px;
  }

  .sub-menu a {
    position: relative;
    padding: 0.7rem 1rem 0.7rem 1.15rem;
    border-radius: 6px;
    white-space: normal;
  }

  /* Green bar slides in on the left of the item you point at */
  .sub-menu a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    bottom: 0.65rem;
    width: 3px;
    border-radius: 3px;
    background: var(--color-green);
    transform: scaleY(0);
    transition: transform 0.2s ease;
  }

  .sub-menu a:hover,
  .sub-menu a:focus-visible {
    background: var(--color-green-tint);
    color: var(--color-navy);
  }

  .sub-menu a:hover::before,
  .sub-menu a:focus-visible::before {
    transform: scaleY(1);
  }

  .sub-menu .sm-title {
    color: var(--color-navy);
    font-size: 0.975rem;
  }

  .sub-menu a:hover .sm-title,
  .sub-menu a:focus-visible .sm-title {
    color: var(--color-green-dark);
  }

  .sub-menu .sm-desc {
    margin-top: 0.15rem;
    color: var(--color-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
  }

  /* Request a Quote: set apart at the bottom with a green arrow */
  .sub-menu .sm-cta {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
  }

  .sub-menu .sm-cta .sm-title {
    color: var(--color-green-dark);
  }

  .sub-menu .sm-cta .sm-title::after {
    content: " \2192";
  }

  /* Green arrow next to Products & Services while its menu is open */
  .has-menu:hover > a,
  .has-menu:focus-within > a {
    color: var(--color-green-dark);
  }

  .has-menu:hover > a::after,
  .has-menu:focus-within > a::after {
    background: var(--color-green);
    transform: scaleX(1);
  }
}

@media (max-width: 860px) {
  .sub-menu .sm-desc {
    display: none;
  }

  .sub-menu .sm-title {
    font-weight: 500;
  }

  .sub-menu .sm-cta .sm-title {
    color: var(--color-green-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-menu a::before {
    transition: none;
  }
}

/* ---------- Site search ---------- */
.main-nav {
  margin-left: auto;
}

.search-toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: #fff;
  color: var(--color-navy);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--color-green);
  background: var(--color-green-tint);
  color: var(--color-green-dark);
}

.search-open {
  overflow: hidden;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 30, 0.55);
  animation: search-fade 0.2s ease;
}

.search-box {
  position: relative;
  max-width: 72rem;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  padding: 1.75rem 2rem 1.5rem;
  overflow-y: auto;
  border-top: 4px solid var(--color-green);
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(6, 16, 30, 0.3);
  animation: search-drop 0.25s ease;
}

@keyframes search-drop {
  from { transform: translateY(-1.5rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes search-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.search-title {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.25rem;
  font-weight: 600;
}

.search-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-navy);
  cursor: pointer;
}

.search-close svg {
  width: 1.4rem;
  height: 1.4rem;
}

.search-close:hover {
  background: var(--color-green-tint);
  color: var(--color-green-dark);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem 0 1.1rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-gray);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-form:focus-within {
  border-color: var(--color-green);
  background: #fff;
}

.search-form-icon {
  display: grid;
  color: var(--color-muted);
}

.search-form-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1.125rem;
  outline: none;
}

.search-form input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e3e7ec;
  color: var(--color-navy);
  cursor: pointer;
}

.search-clear svg {
  width: 0.9rem;
  height: 0.9rem;
}

.search-clear[hidden] {
  display: none;
}

.search-label {
  margin: 1.5rem 0 0.6rem;
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-chips,
.search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-chips button {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-gray);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.search-chips button:hover {
  border-color: var(--color-green);
  background: var(--color-green-tint);
  color: var(--color-green-dark);
}

.search-links {
  gap: 0.5rem 1.5rem;
}

.search-links a {
  color: var(--color-brand);
  font-weight: 500;
  text-decoration: none;
}

.search-links a:hover {
  color: var(--color-green-dark);
  text-decoration: underline;
}

.search-results ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.search-results li + li {
  margin-top: 2px;
}

.search-results a {
  position: relative;
  display: block;
  padding: 0.75rem 1rem 0.75rem 1.15rem;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
}

.search-results a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 3px;
  border-radius: 3px;
  background: var(--color-green);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--color-green-tint);
}

.search-results a:hover::before,
.search-results a:focus-visible::before {
  transform: scaleY(1);
}

.search-tag {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.05rem 0.5rem;
  border-radius: 4px;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result-title {
  display: block;
  color: var(--color-navy);
  font-size: 1.0625rem;
  font-weight: 600;
}

.search-results a:hover .search-result-title {
  color: var(--color-green-dark);
}

.search-result-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.9rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-none {
  margin: 1.25rem 0 0;
  color: var(--color-muted);
}

.search-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.search-foot span {
  display: block;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.search-foot a[href^="tel"] {
  color: var(--color-navy);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.search-quote {
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .search-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    order: 3;
  }

  .search-box {
    padding: 1.25rem 1rem;
    border-radius: 0 0 10px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-box,
  .search-backdrop {
    animation: none;
  }
}

@media (max-width: 600px) {
  .search-toggle {
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.25rem;
  }
}

/* Dropdown, refreshed: MCA blue, smoother open, staggered items, sliding arrows */
@media (min-width: 861px) {
  .sub-menu {
    border-top-color: var(--color-brand);
    transform: translateY(10px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.22s;
  }

  .has-menu:hover .sub-menu,
  .has-menu:focus-within .sub-menu {
    transform: translateY(0.4rem) scale(1);
  }

  /* Items fade up one after another as the menu opens */
  .sub-menu li {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .has-menu:hover .sub-menu li,
  .has-menu:focus-within .sub-menu li {
    opacity: 1;
    transform: none;
  }

  .sub-menu li:nth-child(1) { transition-delay: 0.03s; }
  .sub-menu li:nth-child(2) { transition-delay: 0.06s; }
  .sub-menu li:nth-child(3) { transition-delay: 0.09s; }
  .sub-menu li:nth-child(4) { transition-delay: 0.12s; }
  .sub-menu li:nth-child(5) { transition-delay: 0.15s; }

  .sub-menu a {
    transition: background 0.2s ease;
  }

  .sub-menu a::before {
    background: var(--color-brand);
  }

  .sub-menu a:hover,
  .sub-menu a:focus-visible {
    background: var(--color-blue-tint);
  }

  .sub-menu a:hover .sm-title,
  .sub-menu a:focus-visible .sm-title {
    color: var(--color-brand);
  }

  /* A small arrow slides in next to the name you point at */
  .sub-menu li:not(.sm-cta) .sm-title::after {
    content: "\2192";
    display: inline-block;
    margin-left: 0.4rem;
    color: var(--color-brand);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .sub-menu a:hover .sm-title::after,
  .sub-menu a:focus-visible .sm-title::after {
    opacity: 1;
    transform: translateX(0);
  }

  /* Request a Quote: a solid blue row at the bottom */
  .sub-menu .sm-cta {
    border-top: 0;
    padding-top: 0.25rem;
  }

  .sub-menu .sm-cta a {
    background: var(--color-brand);
  }

  .sub-menu .sm-cta a::before {
    display: none;
  }

  .sub-menu .sm-cta .sm-title,
  .sub-menu .sm-cta a:hover .sm-title {
    color: #fff;
  }

  .sub-menu .sm-cta .sm-desc {
    color: #d6e6f7;
  }

  .sub-menu .sm-cta .sm-title::after {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .sub-menu .sm-cta a:hover,
  .sub-menu .sm-cta a:focus-visible {
    background: var(--color-brand-dark);
  }

  .sub-menu .sm-cta a:hover .sm-title::after {
    transform: translateX(4px);
  }

  /* Products & Services turns blue while open, and its arrow flips up */
  .has-menu:hover > a,
  .has-menu:focus-within > a {
    color: var(--color-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 7l5-5 5 5%27 fill=%27none%27 stroke=%27%230b5cad%27 stroke-width=%272%27/%3E%3C/svg%3E");
  }

  .has-menu:hover > a::after,
  .has-menu:focus-within > a::after {
    background: var(--color-brand);
  }
}

@media (max-width: 860px) {
  .sub-menu .sm-cta .sm-title {
    color: var(--color-brand);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-menu,
  .sub-menu li,
  .sub-menu .sm-title::after {
    transition: none;
  }
}

@media (min-width: 861px) {
  .sub-menu .sm-cta .sm-title::after {
    content: "\2192";
    margin-left: 0.4rem;
  }
}

/* More space between "Products & Services" and the dropdown's blue top line */
@media (min-width: 861px) {
  .has-menu:hover .sub-menu,
  .has-menu:focus-within .sub-menu {
    transform: translateY(1.5rem) scale(1);
  }

  /* Keep the invisible bridge tall enough that the menu stays open across the gap */
  .has-menu::after {
    height: 2.1rem;
  }
}
