/* ==========================================================================
   Logitech Consultants — service and topic pages.
   Reuses the exported design tokens (black, cream, olive, warm accent) so the
   new page family sits inside the existing site rhythm.
   ========================================================================== */

:root {
  --ink: #000000;
  --panel: #161a18;
  --panel-2: #111413;
  --cream: #f3ffc9;
  --olive: #a9ad9b;
  --olive-soft: #bbc1a7;
  --line: rgba(243, 255, 201, 0.18);
  --line-strong: rgba(243, 255, 201, 0.38);
  --accent: #e7b9a0;
  --red: #ee4a34;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1280px;
  --pad: clamp(18px, 3vw, 34px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--olive-soft);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: Geist, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--cream);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--cream);
  text-decoration-color: rgba(243, 255, 201, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--cream);
}

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

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
}

.skip:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
}

.hdr__logo img {
  width: 126px;
  height: auto;
}

.hdr__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

.hdr__nav a {
  color: var(--olive-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.hdr__nav a:hover,
.hdr__nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.hdr .btn {
  flex: none;
}

.hdr__mobile {
  display: none;
  margin-left: auto;
  position: relative;
}

.hdr__mobile summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 16px;
  color: var(--cream);
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

.hdr__mobile summary::-webkit-details-marker {
  display: none;
}

.hdr__mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hdr__mobile a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--olive-soft);
  text-decoration: none;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
}

.hdr__mobile a:hover {
  background: rgba(243, 255, 201, 0.08);
  color: var(--cream);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--solid {
  background: var(--cream);
  border-color: var(--cream);
  color: #10130f;
}

.btn--solid:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.btn--ghost {
  color: var(--cream);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(243, 255, 201, 0.1);
  border-color: var(--cream);
}

/* ---------- breadcrumbs ---------- */

.crumbs {
  padding-top: 26px;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: rgba(169, 173, 155, 0.85);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.crumbs a:hover {
  color: var(--cream);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(169, 173, 155, 0.5);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(38px, 6vw, 84px) 0 0;
}

.hero__eyebrow,
.eyebrow {
  margin: 0 0 18px;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 255, 201, 0.7);
}

.hero h1 {
  max-width: 20ch;
}

.hero__lede {
  margin: 24px 0 0;
  max-width: 62ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--olive-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__media {
  margin: clamp(34px, 5vw, 64px) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
}

/* ---------- sections ---------- */

.sect {
  padding: clamp(56px, 7vw, 104px) 0;
}

.sect--tight {
  padding-top: clamp(34px, 4vw, 56px);
}

.sect--line {
  border-top: 1px solid var(--line);
}

.sect__head {
  max-width: 720px;
}

.sect__head p {
  margin-top: 16px;
  color: var(--olive-soft);
}

.prose {
  max-width: 78ch;
}

.prose p {
  font-size: clamp(16px, 1.2vw, 18px);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- capability grid ---------- */

.capgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.capgrid li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.capgrid__idx {
  display: block;
  margin-bottom: 10px;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(231, 185, 160, 0.8);
}

.capgrid h3 {
  margin-bottom: 6px;
}

.capgrid p {
  margin: 0;
  font-size: 15px;
  color: var(--olive);
}

/* ---------- two-column detail blocks ---------- */

.detail {
  display: grid;
  gap: 48px;
}

.detail__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 3vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.detail__row:last-child {
  border-bottom: 1px solid var(--line);
}

.detail__row h2,
.detail__row h3 {
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
}

.detail__body p:last-child {
  margin-bottom: 0;
}

.detail__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.detail__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--olive);
}

.detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

/* ---------- delivery ticks ---------- */

.ticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: var(--olive-soft);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 1px solid var(--cream);
  border-bottom: 1px solid var(--cream);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 900px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--cream);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0 0 22px;
  max-width: 72ch;
  color: var(--olive-soft);
}

/* ---------- related links ---------- */

.relgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.relgrid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.relgrid a:hover {
  border-color: var(--line-strong);
  background: var(--panel);
}

.relgrid span {
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  color: var(--cream);
}

.relgrid small {
  font-size: 13px;
  color: var(--olive);
}

/* ---------- closing CTA ---------- */

.cta {
  position: relative;
  margin: clamp(40px, 6vw, 80px) 0 0;
  padding: clamp(40px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(238, 74, 52, 0.24), rgba(238, 74, 52, 0) 62%);
  pointer-events: none;
}

.cta__in {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  max-width: 18ch;
}

.cta p {
  margin: 14px 0 0;
  max-width: 52ch;
}

/* ---------- footer ---------- */

.ftr {
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  font-size: 15px;
}

.ftr__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.ftr__brand img {
  width: 126px;
  height: auto;
  margin-bottom: 18px;
}

.ftr__brand p {
  color: var(--olive);
  max-width: 34ch;
  font-size: 14px;
}

.ftr h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 255, 201, 0.65);
  margin-bottom: 14px;
}

.ftr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ftr a {
  color: var(--olive-soft);
  text-decoration: none;
  font-size: 14px;
}

.ftr a:hover {
  color: var(--cream);
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--olive);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hdr__nav {
    gap: 16px;
    font-size: 13px;
  }

  .hdr .btn {
    display: none;
  }

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

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

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

  .hdr__mobile {
    display: block;
  }

  .detail__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .capgrid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .hero__media img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .relgrid a,
  .faq summary::after {
    transition: none;
  }
}

/* Touch: footer links are the main navigation on a phone, so each one gets a
   40px minimum tap height without moving the column layout. */
.ftr a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* ---------- Solutions menu ---------- */

.hdr__dd {
  position: relative;
}

.hdr__dd > summary,
.hdr__dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--olive-soft);
  font: inherit;
  cursor: pointer;
  list-style: none;
}

.hdr__dd > summary::-webkit-details-marker {
  display: none;
}

.hdr__dd > summary::after {
  content: "\25BE";
  font-size: 10px;
  line-height: 1;
}

.hdr__dd > summary:hover,
.hdr__dd[open] > summary,
.hdr__dd-btn:hover,
.hdr__dd-btn[aria-expanded="true"] {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.hdr__dd-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 268px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hdr__dd-panel a {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--olive-soft);
  font-size: 15px;
  text-decoration: none;
}

.hdr__dd-panel a:first-child {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  color: var(--cream);
}

.hdr__dd-panel a:hover,
.hdr__dd-panel a:focus-visible {
  background: rgba(243, 255, 201, 0.08);
  color: var(--cream);
}

/* Nested group inside the phone menu: same idea, stacked rather than floating. */
.hdr__mobile .hdr__mgroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--olive-soft);
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.hdr__mobile .hdr__mgroup > summary::-webkit-details-marker {
  display: none;
}

.hdr__mobile .hdr__mgroup > summary::after {
  content: "\25BE";
  font-size: 10px;
}

.hdr__mobile .hdr__mgroup[open] > summary {
  color: var(--cream);
}

.hdr__mobile .hdr__mgroup-list {
  display: flex;
  flex-direction: column;
  margin: 2px 0 6px 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.hdr__mobile .hdr__mgroup-list a {
  font-size: 14px;
}

/* ---------- Sector index (industries) ---------- */

.sector-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.sector-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--olive-soft);
  font-size: 14px;
  text-decoration: none;
}

.sector-nav a:hover,
.sector-nav a:focus-visible {
  border-color: var(--cream);
  color: var(--cream);
}

.capgrid > li[id] {
  scroll-margin-top: 96px;
}

.capgrid > li[id]:target {
  border-color: rgba(243, 255, 201, 0.55);
  box-shadow: 0 0 0 1px rgba(243, 255, 201, 0.35);
}
